Harness Intelligence Wiki
SpecsCLIReview Phase Token Rebuild

Review Phase Token Rebuild

Architecture: Review Phase Token Rebuild

Context and Scope

  • Capability identity: apps/wiki/content/docs/project/specs/cli/review-phase-token-rebuild. It covers the rebuild of one Full Code Review Pass in review-phase: scripts own the mechanical work, two Axis Runs call the upstream autoreview helper, one Adjudicator verifies candidates, and a temporary Pass Report holds the result.
  • Actors:
    • The root delivery agent runs delivery-phase and starts review-phase.
    • The review.mjs script runs engine processes and writes state.
    • Engine CLIs (claude --print, codex exec) review the bundle.
    • The Adjudicator subagent verifies candidates.
    • Human operators start deliveries, standalone reviews and hi update.
    • Maintainers publish the Baseline.
  • Outcome: one pass costs a median of at most 4M tokens and at most 10 model turns outside the Adjudicator, applies the upstream review method, never waits on a dead engine, and keeps its report out of the wiki and out of later review scopes (Q1, Q19).
  • In scope:
    • The wearedevpunks/skills source tree: review-phase, delivery-phase, ask-hi, debugging-phase, finder-phase, the removed autoreview and review skills, and their tests.
    • The HI CLI catalog and publisher (apps/cli/src/data, apps/cli/src/registry), the subagent manifests, the prompt templates, the synced copies (.agents/skills, apps/cli/skills) through bun run sync:skills.
    • The harness wiki review pages, runbook and BASELINE_CHANGELOG.md (Q38).
  • Non-goals: PR bots and CI overlap, Claude-engine usage accounting, and the 2026-10-05 to 2026-10-19 subagent start-context inflation (status branch Out of scope, parked at L1). Old wiki review reports stay in place (Q18).
  • Spec: the sibling SPEC.md in this folder. Its codes are mapped in Spec Traceability.

Canonical Terms

The terms come from the published glossary and Glossary Q31. The Delivery Phase Flow Optimization Glossary keeps Full Code Review Pass, Review Packet and Review Lens Result.

  • Axis Run: one upstream autoreview engine run for one axis (standards or spec), started by the wrapper script. Avoid: axis subagent, lens worker.
  • Adjudicator: the one subagent that verifies candidates and sets final severity and route. Avoid: parent review, gate subagent.
  • Engine Fallback: the wrapper starting the same Axis Run on the next engine after an engine failure.
  • Pass Report: the temporary JSON report of one completed Full Code Review Pass at .devpunks/delivery/<goal>/reviews/pass-<n>.json. Avoid: retained report, review report page.
  • Relationships: one Full Code Review Pass has exactly two Axis Runs, one Adjudicator and at most one Pass Report. Each Axis Run yields exactly one Review Lens Result.
  • Axioms: no model turn does work with one correct output. No agent waits on an engine process.

Sources

SourceRoleExact location and anchorImmutable revision or content hash
S1Grill status and closureapps/wiki/content/docs/project/grilling/review-phase-token-rebuild-grill-status.md; Branch Dashboard, Current Round closed R4, Technical Groundingcommit d4dfce1a4; sha256 52587f468e2d2a510ed0a76b8955182b9fdcd175d593cdb4b4fd43bf8b409cfa
S2Durable grill log…/grilling/review-phase-token-rebuild-grill-log.md; ### Q1–### Q40, ### Glossary Q31, ## Closurecommit d4dfce1a4; sha256 eefd78cbf56b9e0ee85ae07764f729628b974d1fe112e602ec6a6aa3d7321c8b
S3Current glossaryS1 ## Glossary; published apps/wiki/content/docs/project/domains/review-phase-token-rebuild-glossary.mdxcommit d4dfce1a4; sha256 e83bf02f96edca9b33fc87df1063bd4e8f7447059673628cf1c0aee341a7a5a2
S4Brainstorm Brief (retro evidence)…/grilling/review-phase-token-rebuild-brainstorm-brief.md; Findings tablesha256 d5cfa290af27ed3a6c1f4bab783205c5b03fea3491d4cfaf36c5984a18593987
S5Upstream helper (accepted dependency, observed behaviour)openclaw/agent-skills skills/autoreview/scripts/autoreview S:151, S:413-423, S:4200-4275, S:5635-5681, S:5867-5891, S:5910, S:7294, S:7301, S:7312, S:7330, S:8336-8347, S:8537, S:8567; references/engines.md:19tag v0.6.0 → commit aa2f8f7afd8ff26a26ac0b20b8d5a62b7dd16fae
S6Current skills (observed behaviour)wearedevpunks/skills skills/phases/review-phase/**, skills/agnostic/quality/{review,autoreview}/**, skills/phases/delivery-phase/{phases,references}/**, tests/review-phase-graph.contract.test.mjs, tests/v43-frozen-review.contract.test.mjscommit 979a504f0fd7cd49f01b16689e224db608c89f5c
S7Harness consumers (observed behaviour)apps/cli/src/data/catalog/skills.ts:841-857, packs.ts:266-268, apps/cli/src/registry/pipeline.ts:1135-1166,1229-1239, publisher/sources/skills.test.ts:106, builders/prompts.ts:36, registry/prompts/root.md.tmpl:37,69commit 88e393523d17640143b1b903c6a92ac9906e3cb1
S8Codex host marker (observed behaviour, source only)openai/codex codex-rs/core/src/exec_env.rs:30-42, codex-rs/core/src/unified_exec/process_manager.rs:105main @ e6ebdfe00b520e21ed50ac0362656f32dd64d2fc

Source Disposition

Question / entryDispositionAccepted detail, replacement, or unresolved pointEvidenceParked owner / resume trigger
Q1–Q14acceptedImported from the Brief with Source: Brainstorm BriefS2 #q1–#q14, S4—
Q15–Q19acceptedUser R1 answersS2—
Q20–Q30acceptedUser R2 answers; Q25 records the user's rejection of a byte-identity test; Q26 records the Codex markerS2, S8—
Q32–Q39acceptedUser R3 and R4 answersS2, S7—
Q40acceptedWriting rule for every prompt and skill textS2 #q40—
Glossary Q31acceptedAxis Run, Adjudicator, Engine Fallback, Pass ReportS2 #glossary-q31, S3—
Out of scope branchparkedPR bots and CI; Claude-engine usage; subagent start-context inflationS1 Branch DashboardMaintainer; resume when a later grill opens one of them

Whole System

The system has three levels: the skill text the agent reads, the scripts that do the mechanical work, and the engine processes that review.

Evidence: Q3, Q20, Q21, Q28, Q35. Conclusion: the root agent makes four short calls and starts one subagent. All hashing, budget, sizing, engine control and report writing run in scripts, so the 25–30M-token gate subagent of the current design (S4) has no successor.

Block selector / component / levelOwnerState and authorityInterface / dependencySupported constraint and source
ARC-001 review-phase skillskills repo skills/phases/review-phase/None; procedure text onlySKILL.md (about 60 lines) + references/{adjudicator,axis-standards,axis-spec,routing}.mdRemoves about 1,900 lines of graph docs the gate read every pass; Q35, Q40
ARC-002 review.mjs CLIreview-phase/scripts/review.mjsOwns run directory and Pass Report writes; side effects only (git, fs, processes)prepare, run, retain, status; one JSON line eachNo model turn does mechanical work; Q2, Q20, Q32, Q33
ARC-003 review-contract.mjsreview-phase/scripts/review-contract.mjsPure functions, no stateKeeps reviewPacketIdentity, planDeliveryReviewGate, deriveReviewRouting; adds recoverPassCount, validatePassReport, planEngineOrder, selectSourceContextTestable logic in-process; Q33, Q36
ARC-004 vendored upstream helperreview-phase/scripts/vendor/autoreview + UPSTREAM.mdUpstream bytes, unchanged; pin = tag + --version source-sha256upstream CLI (S5); seam CODEX_BIN / CLAUDE_BINUpstream review method and engine picker; no byte test; Q6, Q25
ARC-005 engine selection and Engine Fallbackreview-contract.mjs planEngineOrder + review.mjs runEngine order per runCLAUDECODE=1 → Claude; CODEX_THREAD_ID set → Codex; order [host, other]; override HI_REVIEW_ENGINES; upstream model defaultsNo open-ended wait; any engine failure or timeout moves to the next engine; Q9, Q10, Q26
ARC-006 axis guidance and source contextreferences/axis-standards.md, axis-spec.md; selectSourceContextFrozen per run--prompt-file, --source-context, --max-priority P2, --dry-runEngines see only the bundle (S5 S:4236); Q7, Q8, Q11, Q12, Q27, Q29
ARC-007 Adjudicatorroot agent starts it; brief references/adjudicator.mdWrites only adjudication.json in the run dirInput: packet + 2 Lens Results; output: findings and rejected candidatesVerification with read tools; commands only to test one candidate; Q5, Q28
ARC-008 run directoryreview.mjs$TMPDIR/hi-review/<run-id>/: packet, context list, engine outputs, Lens Results, adjudication; removed by retainRead by status, run, AdjudicatorOutputs outside the repo; resume reuse; Q21, Q22
ARC-009 Pass Report and budgetreview.mjs retain; recoverPassCount.devpunks/delivery/<goal>/reviews/pass-<n>.json, exclusive create, pathspec commit; count = valid filespass-report-v1 schemaOne source of truth for the count; out of wiki and review target; Q13, Q16, Q17, Q23, Q24, Q34
ARC-010 delivery-phase integrationskills delivery-phaseHandoff carries pass_report and review_run_id; no stored review_countphases/{review,router,closeout,implement,debug}.md, references/{phase-handoff,artifact-state}.mdConsumers move with the contract; Q37
ARC-011 standalone Git reviewreview.mjs prepare --standalone <locator>No budget countersGit commit or range onlyUpstream reviews only Git changes (S5 S:4224, S:2055); Q15
ARC-012 measurementPass Report fieldsPer-attempt usage or null; Adjudicator subagent_tokensAcceptance measurement, not a runtime guardQ1, Q14, Q19, Q30
ARC-013 distribution and harness catalogharness apps/cli, wiki, changelogCatalog drops autoreview and review; consumers lose them through STEP-011 stale removalpipeline.ts:1135-1166 (S7)One delivery across both repos; Q18, Q38
ARC-014 testsskills tests/—tests/review-phase-cli.test.mjs with fake engines + review-contract.mjs unit testsReplaces 1,487 lines of graph tests and fixtures; Q39
ARC-015 writing disciplineevery prompt and skill text in scope—$writing-for-agentsQ40

Critical Flows and Boundaries

FLOW-001: one delivery pass

StepWhat happensBoundary and failure resultSource
FLOW-001-STEP-001status derives the next step from the run directory and Pass Reports, and the pass count from recoverPassCountPure readQ32, Q37
FLOW-001-STEP-002prepare freezes base..HEAD, computes the Review Packet with reviewPacketIdentity, checks budget with planDeliveryReviewGate, selects context with selectSourceContext, sizes both axes with upstream --dry-run, and runs the skill-evidence cardinality and acceptance-criterion-to-Verification checksOversize, budget exhaustion or a missing source returns blocker before any model runs; gaps from the mechanical checks become candidatesQ2, Q11, Q17, Q27, Q32
FLOW-001-STEP-003The root agent starts run in the background; no agent watches itThe harness notifies on exitQ4, Q32; axiom
FLOW-001-STEP-004Each axis calls upstream unchanged: --mode branch --base <base>, --engine <e>, --engine-timeout-seconds, --max-priority P2, --prompt-file axis-*.md, --source-context …, --json-output/--status-output in the run dirAny failure or timeout starts FLOW-002Q7, Q8, Q10, Q26, Q27
FLOW-001-STEP-005run writes one Review Lens Result per axis and prints one lineBoth axes incomplete after every engine → blockerQ10, Q32
FLOW-001-STEP-006The Adjudicator reads the packet and both Lens Results, verifies each distinct claim with read tools, runs a command only to test one candidate, and writes adjudication.jsonNo Task Gate validation repeatsQ5, Q28
FLOW-001-STEP-007retain validates adjudication.json, derives routing with deriveReviewRouting, creates pass-<n>.json exclusively, commits only that path, and removes the run dirA second writer fails on exclusive create; HEAD change since prepare invalidates the runQ13, Q23, Q34
FLOW-001-STEP-008The root agent returns the route; delivery consumes pass_report and review_run_idRouting table in references/routing.mdQ37

Conclusion: model turns occur only at STEP-006 and in the engines. Every other step is one script call, so the pass cost is the Adjudicator plus two engine runs (Q1).

FLOW-002: Engine Fallback inside one Axis Run

Evidence: Q10, Q26; S5 S:5910 (any nonzero Claude exit is reviewer_unavailable), S:7294 (timeout per attempt), engines.md:19 (no fallback inside upstream). Conclusion: upstream cannot tell quota from other failures and never switches engine, so the wrapper treats every failure the same and starts a new explicit run. This removes the 2026-10-22 stall pattern (S4).

FLOW-003: resume

  • FLOW-003-STEP-001: status finds an existing run dir for the goal.
  • FLOW-003-STEP-002: run reuses each Lens Result whose packet identity is unchanged and reruns only a failed or missing axis.
  • FLOW-003-STEP-003: a missing run dir (for example after a reboot) reruns both axes from a new prepare.

Evidence: Q22, Q32. Conclusion: a harness restart costs at most the missing axis, not the pass.

FLOW-004: standalone Git review

The operator commits the plan, spec or docs, then runs prepare --standalone <commit-or-range>. No delivery counter is read or written; the Pass Report location follows the locator. Evidence: Q15; S5 S:2055. Conclusion: the non-Git bundle adapter and its identity rules leave the design.

Modules and Interfaces

skills/phases/review-phase/                      ARC-001
  SKILL.md                                       prepare → run → adjudicate → retain → return route
  UPSTREAM.md, LICENSE                           mattpocock provenance (moved from skills/agnostic/quality/review)
  references/
    adjudicator.md                               ARC-007 brief + adjudication.json schema
    axis-standards.md                            ARC-006 Standards guidance + Fowler smells (P3 info)
    axis-spec.md                                 ARC-006 Spec guidance (missing / unasked / wrong)
    routing.md                                   ARC-010 return_route table
  scripts/
    review.mjs                                   ARC-002 side effects
    review-contract.mjs                          ARC-003 pure logic
    vendor/autoreview                            ARC-004 upstream v0.6.0, unchanged
    vendor/UPSTREAM.md                           tag + --version source-sha256
removed: phases/, AUTHORING-HANDOFF.md, references/{durable-report,runtime-handoff,state-graph,targets,review-packet}.md
removed skills: skills/agnostic/quality/autoreview/, skills/agnostic/quality/review/

review.mjs interface (Q32):

prepare --goal <delivery-dir> --base <sha> [--standalone <locator>]
  → {"run_id","run_dir","ordinal":n|null,"axes":{"standards":{"bytes","passes"},"spec":{…}},"blocker":null|"…"}
run --run-dir <dir>
  → {"standards":{"outcome","engine","attempts"},"spec":{…},"blocker":null|"…"}
retain --run-dir <dir>
  → {"pass_report","commit","route":{"primary","secondary_debt"}}
status --goal <delivery-dir>
  → {"next":"prepare|run|adjudicate|retain|done","run_dir","pass_count"}

blocker is one sentence the agent relays unchanged.

Seams (Q33): review.mjs depends on review-contract.mjs (pure) and on the vendored helper (process). The engine seam is upstream's CODEX_BIN / CLAUDE_BIN (S5 S:7301, S:7312); production uses the real CLIs and tests use fake engine binaries. Two adapters make it a real seam.

review-contract.mjs exports (Q36): keep reviewPacketIdentity, planDeliveryReviewGate, deriveReviewRouting; add recoverPassCount, validatePassReport, planEngineOrder, selectSourceContext; remove the wiki report path, Markdown report encode/parse, retained-ref checks, validateRetainedPass, resolveRetainedRun and the standalone bundle normalizer.

Pass Report pass-report-v1 (Q34):

{ schema: "pass-report-v1", run_id, ordinal, mode, base, head, packet_identity,
  axes: { standards|spec: { lens_result, attempts: [{engine, model, seconds, outcome, usage|null}] } },
  adjudication: { subagent_tokens, findings: [{id, axis, severity, location, evidence, action, return_route}],
                  rejected: [{candidate_ref, reason}] },
  route: { primary, secondary_debt } }

No Markdown body and no wiki frontmatter.

Source context per axis (Q27): Standards gets the AGENTS.md chain for the touched paths, the matched Codebase Rules and each assigned skill's SKILL.md; Spec gets SPEC.md, ARCHITECTURE.md, PLAN.md and IMPLEMENTATION-NOTES.md. All pass as --source-context (upstream may partition it); --dry-run sizes first.

delivery-phase handoff (Q37): references/phase-handoff.md and artifact-state.md replace report path, report SHA-256, report commit and verified_retained_ref with pass_report and review_run_id; review_count is derived, not stored.

Accepted Detail Coverage

Question + exact entry/evidence anchorExact accepted choice and supplied detailProvided rationale / alternativesArchitecture selector + applicable visualSystem constraint served
Q1Median pass ≤ 4M tokens; ≤ 10 model turns outside adjudicationRetro: gate 12–26M (S4)ARC-012; FLOW-001Cost target
Q2Scripts own freeze, hash, packet, budget, size, retention, routing, cardinality, AC→Verification check—ARC-002, FLOW-001-STEP-002No model turn for one-answer work
Q3prepare → run → adjudicate → retain—Whole System map; FLOW-001Pass shape
Q4No axis subagents; script starts enginesRejected: waiting subagents; native host subagentARC-002, FLOW-001-STEP-003No agent waits on an engine
Q5One Adjudicator subagent; commands only to test one candidate—ARC-007, FLOW-001-STEP-006Verification without repeated validation
Q6Upstream unchanged; local logic in wrapperRejected: in-place patchARC-004Clean updates
Q7steipete prompt in both runs; mattpocock guidance via --prompt-file/--source-context; no third runRejected: third pure runARC-006, FLOW-001-STEP-004Upstream method applied
Q8--max-priority P2; repo standards hard rules; smells P3 info—ARC-006Upstream default P0 would drop findings
Q9Host model default; optional second model—ARC-005—
Q10Fallback on quota, unavailable or timeout; all fail → incomplete + blockerRejected: same-engine retryARC-005, FLOW-002No open-ended wait
Q11Small runs; --dry-run rejects oversize before any model—FLOW-001-STEP-002Time and size limits
Q12No simplify in Standardsimplement-spec owns itARC-006No double check
Q13pass-<n>.json in .devpunks/delivery/<goal>/reviews/; count = files; excluded from target—ARC-009One count source
Q14Usage where upstream provides itClaude-engine usage out of scopeARC-012Measurement
Q15Standalone as Git review only; bundle adapter removedRejected: drop standaloneARC-011, FLOW-004Upstream Git-only
Q16Keep Pass Reports at closeoutRejected: deleteARC-009Stable debt keys
Q17Extra-pass rules unchanged; count source changesRejected: drop accepted-risk passARC-009, FLOW-001-STEP-002Budget
Q18Wiki reports frozen; reviews/ removed from scaffolded wiki contractRejected: remove in consumersARC-013History kept
Q19Acceptance measurement; runtime limits only time and sizeRejected: runtime guard; soft guardARC-012Code still gets reviewed
Q20Node ESM review.mjs; one JSON line; --standalone flagRejected: Python CLIARC-002node --test
Q21$TMPDIR/hi-review/<run-id>/; removed by retainRejected: repo-local .runs/ARC-008Outputs outside the repo
Q22Reuse completed Axis Runs on same packet identityRejected: always rerunFLOW-003Restart cost
Q23Exclusive create; pathspec commit; debt keys = path + finding IDRejected: no commitARC-009, FLOW-001-STEP-007Durable count
Q24Legacy wiki reports ignored; in-flight count restarts; changelog noteRejected: read legacy ordinalsARC-009, ARC-013Smallest change
Q25Helper only at scripts/vendor/autoreview; UPSTREAM.md tag + sha; no byte test; delete autoreview skillRejected: model-visible upstream skill; byte testARC-004Helper only inside review-phase
Q26CLAUDECODE=1 / CODEX_THREAD_ID; [host, other]; HI_REVIEW_ENGINES; upstream modelsRejected: fixed Codex-firstARC-005, FLOW-002-STEP-001Host model default
Q27Per-axis source context; --dry-run sizingRejected: add neighboursARC-006Empty engine sandbox
Q28Adjudicator input paths; adjudication.json; references/adjudicator.mdRejected: text returnARC-007Validated output
Q29Guidance moves to axis-*.md; provenance kept; review skill deletedRejected: keep reviewARC-001, ARC-006Single source of truth
Q30Per-attempt usage; Adjudicator subagent_tokensRejected: engine onlyARC-012Measurement
Q32Four subcommands and their JSON shapesRejected: no statusModules and InterfacesResume
Q33Side effects vs pure split; CODEX_BIN/CLAUDE_BIN seamRejected: own engine interfaceARC-002, ARC-003Testability
Q34pass-report-v1 fieldsRejected: keep two-axis-v1ARC-009—
Q35One procedure; four references; removed graph filesRejected: thin graphARC-001Doc load
Q36Export keep/add/remove listsRejected: new libraryARC-003—
Q37pass_report + review_run_id; derived count; five phase filesRejected: stored countARC-010Consumers move together
Q38One delivery; STEP-011 removal; changelog hi update --yes noteRejected: two deliveriesARC-013Catalog matches source
Q39tests/review-phase-cli.test.mjs + unit tests; text pins updatedRejected: adapt graph testARC-014—
Q40All prompt and skill text through $writing-for-agents—ARC-015Predictable agent behaviour
Glossary Q31Four terms and relationships—Canonical TermsShared language

Spec Traceability

  • State: complete. Every OUT and AC code of the sibling SPEC maps below.
Spec code / section selectorArchitecture selectorsAccepted grill Q / exact log-entry and evidence anchorsCoverage explanation
OUT-001 (SPEC #requirements-and-outcomes)ARC-012, FLOW-001Q1, Q19, Q30 (S2 @ d4dfce1a4)Cost target and the usage that measures it
OUT-002 (SPEC #requirements-and-outcomes)ARC-002, ARC-003, FLOW-001Q2, Q3, Q20, Q32, Q33 (S2 @ d4dfce1a4)Mechanical work in scripts
OUT-003 (SPEC #requirements-and-outcomes)ARC-006, FLOW-001-STEP-004Q7, Q8, Q11, Q12, Q27 (S2 @ d4dfce1a4)Upstream method with axis guidance
OUT-004 (SPEC #requirements-and-outcomes)ARC-005, FLOW-002Q9, Q10, Q26 (S2 @ d4dfce1a4)Host engine and Engine Fallback
OUT-005 (SPEC #requirements-and-outcomes)ARC-007, FLOW-001-STEP-006Q5, Q28 (S2 @ d4dfce1a4)One Adjudicator
OUT-006 (SPEC #requirements-and-outcomes)ARC-009, FLOW-001-STEP-007Q13, Q16, Q17, Q23, Q24, Q34 (S2 @ d4dfce1a4)Pass Report and count
OUT-007 (SPEC #requirements-and-outcomes)ARC-008, FLOW-003Q21, Q22 (S2 @ d4dfce1a4)Resume
OUT-008 (SPEC #requirements-and-outcomes)ARC-011, FLOW-004Q15 (S2 @ d4dfce1a4)Standalone Git review
OUT-009 (SPEC #requirements-and-outcomes)ARC-001, ARC-004Q25, Q29, Q35 (S2 @ d4dfce1a4)Skill layout and vendored helper
OUT-010 (SPEC #requirements-and-outcomes)ARC-010Q37 (S2 @ d4dfce1a4)Delivery handoff
OUT-011 (SPEC #requirements-and-outcomes)ARC-013Q18, Q24, Q38 (S2 @ d4dfce1a4)Consumers, docs, release
OUT-012 (SPEC #requirements-and-outcomes)ARC-014Q33, Q39 (S2 @ d4dfce1a4)Tests
OUT-013 (SPEC #requirements-and-outcomes)ARC-015Q40 (S2 @ d4dfce1a4)Writing discipline
AC-001 (SPEC #acceptance-criteria)ARC-012Q30, Q34 (S2 @ d4dfce1a4)Per-attempt usage and Adjudicator tokens
AC-002 (SPEC #acceptance-criteria)ARC-012, FLOW-001Q1, Q19 (S2 @ d4dfce1a4)Median ≤ 4M tokens, ≤ 10 turns
AC-003 (SPEC #acceptance-criteria)ARC-012Q19, Q11 (S2 @ d4dfce1a4)No runtime token guard
AC-004 (SPEC #acceptance-criteria)ARC-002Q20, Q32 (S2 @ d4dfce1a4)Four subcommands, one JSON line
AC-005 (SPEC #acceptance-criteria)FLOW-001-STEP-002Q2, Q11, Q17, Q27 (S2 @ d4dfce1a4)Mechanical checks before any model
AC-006 (SPEC #acceptance-criteria)ARC-003Q36 (S2 @ d4dfce1a4)Library exports
AC-007 (SPEC #acceptance-criteria)FLOW-001-STEP-004Q7, Q8, Q25, Q26 (S2 @ d4dfce1a4)Helper arguments per Axis Run
AC-008 (SPEC #acceptance-criteria)ARC-006Q27 (S2 @ d4dfce1a4)Source context per axis
AC-009 (SPEC #acceptance-criteria)ARC-006Q8, Q12, Q29 (S2 @ d4dfce1a4)Standards guidance content
AC-010 (SPEC #acceptance-criteria)ARC-005, FLOW-002Q26 (S2 @ d4dfce1a4)Engine order
AC-011 (SPEC #acceptance-criteria)FLOW-002Q10 (S2 @ d4dfce1a4)Fallback on any failure
AC-012 (SPEC #acceptance-criteria)FLOW-002Q10, Q17 (S2 @ d4dfce1a4)All engines fail
AC-013 (SPEC #acceptance-criteria)FLOW-001-STEP-003Q4, Q32 (S2 @ d4dfce1a4)No waiting agent
AC-014 (SPEC #acceptance-criteria)ARC-007Q28 (S2 @ d4dfce1a4)Adjudicator I/O
AC-015 (SPEC #acceptance-criteria)FLOW-001-STEP-006Q5 (S2 @ d4dfce1a4)Commands only to test a candidate
AC-016 (SPEC #acceptance-criteria)FLOW-001-STEP-007Q23 (S2 @ d4dfce1a4)Exclusive create and pathspec commit
AC-017 (SPEC #acceptance-criteria)ARC-009Q34 (S2 @ d4dfce1a4)Report schema
AC-018 (SPEC #acceptance-criteria)ARC-009Q13, Q17, Q37 (S2 @ d4dfce1a4)Count and pass rules
AC-019 (SPEC #acceptance-criteria)ARC-009Q13 (S2 @ d4dfce1a4)Reports excluded from target
AC-020 (SPEC #acceptance-criteria)ARC-009Q16, Q18, Q24 (S2 @ d4dfce1a4)No wiki writes; legacy ignored
AC-021 (SPEC #acceptance-criteria)ARC-008Q21 (S2 @ d4dfce1a4)Run directory
AC-022 (SPEC #acceptance-criteria)FLOW-003Q22 (S2 @ d4dfce1a4)Resume reuse
AC-023 (SPEC #acceptance-criteria)FLOW-004, ARC-011Q15, Q20 (S2 @ d4dfce1a4)Standalone
AC-024 (SPEC #acceptance-criteria)ARC-004Q25 (S2 @ d4dfce1a4)Vendored bytes and pin
AC-025 (SPEC #acceptance-criteria)ARC-001Q29, Q35 (S2 @ d4dfce1a4)Skill layout
AC-026 (SPEC #acceptance-criteria)ARC-004Q25, Q29 (S2 @ d4dfce1a4)Removed skills
AC-027 (SPEC #acceptance-criteria)ARC-010Q37 (S2 @ d4dfce1a4)Delivery handoff fields
AC-028 (SPEC #acceptance-criteria)ARC-013Q38 (S2 @ d4dfce1a4)Catalog and manifests
AC-029 (SPEC #acceptance-criteria)ARC-013Q24, Q38 (S2 @ d4dfce1a4)Consumer removal and changelog
AC-030 (SPEC #acceptance-criteria)ARC-013Q18, Q38 (S2 @ d4dfce1a4)Docs and other skills
AC-031 (SPEC #acceptance-criteria)ARC-014Q33, Q39 (S2 @ d4dfce1a4)Tests
AC-032 (SPEC #acceptance-criteria)ARC-015Q40 (S2 @ d4dfce1a4)Writing discipline evidence

Flow Failure Coverage

LensEvidence / unknown / justified not applicableGuarantee at stakeMaterial unresolved gap
Entry points and path convergenceFull delivery, other delivery modes and standalone all enter review.mjs; Q15, Q20, Q37Same rules on every entryNone
Critical execution pathsFLOW-001 order; Q3, Q32Mechanics before model workNone
State ownership and authorityRun dir owned by review.mjs; Pass Report owned by retain; count derived; Q13, Q21, Q23, Q37One count sourceNone
Transaction and side-effect boundariesPathspec commit of one file; run dir outside repo; Q21, Q23No partial report visible as completeNone
Concurrency and stale stateExclusive create; HEAD check before retain; upstream tree-change check S5 S:8537; Q23No double ordinal; no stale reviewNone
Idempotency and retriesRetain retry hits exclusive create; resume reuses Lens Results; Q22, Q23No duplicate passNone
Partial failure and recoveryFLOW-002 fallback; incomplete + blocker; Q10, Q22No open-ended waitNone
Execution lifetime and durabilityBackground run; harness notification; status resume; FLOW-003Restart costs at most one axisNone
Lifecycle and dependency transitionsLegacy reports ignored; consumer STEP-011 removal; Q24, Q38Consumers convergeNone
Completion observabilityOne JSON line per call; Pass Report attempts and usage; Q30, Q32, Q34Operator sees engines, causes, costNone

Parked Work and Non-material Unknowns

Question / sourceDisposition and scope consequenceOwner / resume triggerWhy current guarantees remain closed
Out of scope branch (S1)Parked at L1: PR bots and CI, Claude-engine usage, subagent start-context inflationMaintainer; a later grillNo accepted guarantee depends on them
Codex marker runtime proof (S8, Q26)Non-material unknown: CODEX_THREAD_ID is source-proven only; Codex served no model on 2026-10-23Implementation verifies with a live Codex hostHI_REVIEW_ENGINES override and Engine Fallback still hold without detection

Validation

  • Decision/source/glossary reconciliation: S1 Closure closed R4, confirmation quoted in S2 ## Closure; every accepted entry Q1–Q40 and Glossary Q31 is in Accepted Detail Coverage.
  • Exact-detail and cross-level coverage: each accepted detail maps to an ARC block or FLOW step and a visual.
  • Relative links: every grill link points to an existing ### Q<N> heading in S2 at commit d4dfce1a4.
  • Spec-code coverage: complete; OUT-001–OUT-013 and AC-001–AC-032 each map to ARC/FLOW selectors and accepted Q entries.
  • Mermaid: syntax reviewed by hand; no Mermaid parser ran in this session (limitation). The wiki build renders it.
  • Existing spec agreement: sibling SPEC compiled from the same sources; no conflict.
  • Remaining limits: the Codex marker unknown above; no approval stamp.

On this page