Skip to content

Decisions

Luis edited this page Dec 5, 2026 · 11 revisions

Decisions

Architecture Decision Records live in docs/adr/. An ADR is needed when a change adds a dependency or alters a public contract, and to change the agent loop. All fifteen ADRs (0001–0015) were Accepted as of v0.1 (2026-11-16). On 2026-11-19 ADR 0016 and its amendment (#22) were accepted, and ADR 0017 was accepted (#266) and implemented (#268, #270); it supersedes 0008 and 0012. Index in docs/architecture.md.

ADR Status Decision
0001 Accepted go.yaml.in/yaml/v3 for strict, line-numbered config decoding
0002 Accepted Developer, tester and auditor share context; the pentester stays independent (amended by 0004, 0005)
0003 Accepted docs/architecture.md is the source of truth with a machine-checked layer table; module path github.com/sneakercreepers/creep (the module path decision is superseded by ADR 0040: github.com/Ludocius/creep from v0.7.0)
0004 Accepted Pentester once per version over the whole diff, and on every external PR
0005 Accepted Auditor checks every PR against architecture.md; per-version architecture review and wiki diagrams
0006 Accepted Up to three features in flight, in different packages, each with its own loop
0007 Accepted Exit code 4: report written, not everything evaluated; never clean
0008 Superseded by 0017 tree-sitter grammars as pinned WebAssembly in wazero, with memory, node and time caps; wazero, the grammars and internal/static were removed in #270 (kept for its threat analysis)
0009 Accepted creep scan and creep why: .creep/report.*, incompleteness rules, gate severities per class. Amended by #213 (a vendor tree is skipped only when installed and untracked by the git index; by-design count beside the coverage), #260 (scan deadline budget.max_seconds) and ADR 0017 (exit 0 needs a full discovery read; no_routes, unsupported_language and syntax_error, from #207/#248, no longer emitted)
0010 Accepted Optional scanners detected on PATH and listed with their classes; a match in the repository is refused
0011 Accepted creep estimate with no transport, --stats, prices from flags only
0012 Superseded by 0017 Language kits as data (queries, sink tables, fixtures) in a Go matcher; never built, #217 closed as not planned
0013 Accepted gitleaks and osv-scanner run offline from internal/scanrun: fixed arguments, no shell, empty environment; a failure makes the run incomplete (amended by #62: the project file cannot set scanners.enabled; header records it, #253)
0014 Accepted A model CLI runs only through the gateway (EgressLog.Exec): no shell, never from the repository, empty working directory; tool canary (amended by #229: each call runs in a private <user cache>/creep/model/run-* directory with ancestor checks and stop files)
0015 Accepted Presets embedded in the binary; each declares verified and host_reads; unverified or host-reading presets warn (amended by #229, #258: gemini --skip-trust, MCP blocked, API key only; codex ignores user config, shell and image tools off; no antigravity preset; verified presets pinned)
0016 Accepted internal/sandbox drives the docker or podman CLI through os/exec (exact exception, no net, no runtime socket from creep) with one hardened run builder; local endpoints only; per-run labels and creep clean (amendment accepted 2026-11-19, #22: one --internal network per run, rootful Podman gets none; synthetic Postgres pinned by digest, seeded only from migrations; network canary before every batch and the database; images never pulled by creep)
0017 Accepted Language-agnostic analysis (#265): inventory by file name and bytes, lexical tripwire and model discovery over whole redacted files (internal/discover, layer 4), combined by union only with worst-case planner flags and a canary per batch; replaced the per-language static code (#268, #270); supersedes 0008 and 0012, amends 0009
0018 Accepted The docs-only shortcut excludes governance, security and ADR files; the required docs-only check enforces it, and policy changes need an ADR
0019 Accepted PoC templates with closed parameters, sent from a runner container; creep owns the oracles (#24)
0020 Accepted PoCs run 5 times against HEAD, verified with a rate, a redacted reproduction bundle and creep reproduce (#25)
0021 Accepted A gate per scan mode (--mode pr|nightly); a nightly scan that cannot verify reads its gate at probable (#28)
0022 Accepted Baseline and accepted risks with an expiry: fingerprints, --baseline, --baseline-write, creep accept (#27)
0023 Accepted The GitHub Action contract: verified install, SARIF upload, one PR comment, every non-zero exit fails (#29)
0024 Accepted Discovery stability --stability N: a probable finding seen in fewer runs is labeled unstable; the gate is unchanged (#37)
0025 Accepted Recipes: closed JSON v1, loaded only when the reader flags the vulnerable fixture and clears the safe one; creep recipe new|lint|test; scan loads none until #34 (#33)
0026 Accepted Signed commits required on main, applied with make rulesets (#49)
0040 Accepted Personal project: repository Ludocius/creep, module github.com/Ludocius/creep from v0.7.0, new release signer from v0.7.0 (v0.1.0–v0.6.0 keep the sneakercreepers identity), cask and Scoop manifest in the creep repository updated by a release pull request, package-check required; supersedes 0003's module path, amends 0033 (#403)
0041 Accepted Agent definitions: versioned review agents in .claude/agents/ and one review template (#432)

ADRs 0027–0039 are listed in the ADR index.

Decisions D1–D5 of ADR 0017, recorded in #265 (maintainer, 2026-11-19):

  • D1 Egress: discovery sends whole redacted source files through the gateway, each logged in egress.log and counted by creep estimate; consent per endpoint unchanged.
  • D2 Exit 0: only when every inventoried source file not left out by design was read in full by discovery, every discovery canary was found and every tripwire candidate was evaluated; otherwise exit 4.
  • D3 Report: JSON stays v1; existing not-evaluated reasons are reused (parse_failed widened to cover an invalid reply or a missed canary), and unsupported_language, syntax_error and no_routes are no longer emitted.
  • D4 Removal gate (as amended, amendment 9): the static code was deleted once the tripwire alone found 100% of the sinks that have a planner kind in every testdata/apps/*/expected.json (TestTripwireRecall, in make protections) and the protection suite was rebuilt without internal/static. Recall of routes and entry points, and recall on fixtures recorded from a real model, are measured later in #204 and #35. Steps C–F therefore landed in one PR (#270).
  • D5 Calibration: templates stay Python and JS for now; templates in the detected language are a follow-up. Superseded from v0.6 by ADR 0037 (#358): calibration is one language-neutral pseudocode task set (64 tasks, 8 per planned class, prompts v2), never one template set per language; the tier measures structured output, context, tool calling and data-flow reasoning, not knowledge of the repository's languages.

New ADRs start from the template. Allowed dependencies: dependencies.txt.

Clone this wiki locally