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 inreview-phase: scripts own the mechanical work, two Axis Runs call the upstreamautoreviewhelper, one Adjudicator verifies candidates, and a temporary Pass Report holds the result. - Actors:
- The root delivery agent runs
delivery-phaseand startsreview-phase. - The
review.mjsscript 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.
- The root delivery agent runs
- 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/skillssource tree:review-phase,delivery-phase,ask-hi,debugging-phase,finder-phase, the removedautoreviewandreviewskills, 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) throughbun run sync:skills. - The harness wiki review pages, runbook and
BASELINE_CHANGELOG.md(Q38).
- The
- 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.mdin 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
autoreviewengine run for one axis (standardsorspec), 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
| Source | Role | Exact location and anchor | Immutable revision or content hash |
|---|---|---|---|
| S1 | Grill status and closure | apps/wiki/content/docs/project/grilling/review-phase-token-rebuild-grill-status.md; Branch Dashboard, Current Round closed R4, Technical Grounding | commit d4dfce1a4; sha256 52587f468e2d2a510ed0a76b8955182b9fdcd175d593cdb4b4fd43bf8b409cfa |
| S2 | Durable grill log | …/grilling/review-phase-token-rebuild-grill-log.md; ### Q1–### Q40, ### Glossary Q31, ## Closure | commit d4dfce1a4; sha256 eefd78cbf56b9e0ee85ae07764f729628b974d1fe112e602ec6a6aa3d7321c8b |
| S3 | Current glossary | S1 ## Glossary; published apps/wiki/content/docs/project/domains/review-phase-token-rebuild-glossary.mdx | commit d4dfce1a4; sha256 e83bf02f96edca9b33fc87df1063bd4e8f7447059673628cf1c0aee341a7a5a2 |
| S4 | Brainstorm Brief (retro evidence) | …/grilling/review-phase-token-rebuild-brainstorm-brief.md; Findings table | sha256 d5cfa290af27ed3a6c1f4bab783205c5b03fea3491d4cfaf36c5984a18593987 |
| S5 | Upstream 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:19 | tag v0.6.0 → commit aa2f8f7afd8ff26a26ac0b20b8d5a62b7dd16fae |
| S6 | Current 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.mjs | commit 979a504f0fd7cd49f01b16689e224db608c89f5c |
| S7 | Harness 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,69 | commit 88e393523d17640143b1b903c6a92ac9906e3cb1 |
| S8 | Codex 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:105 | main @ e6ebdfe00b520e21ed50ac0362656f32dd64d2fc |
Source Disposition
| Question / entry | Disposition | Accepted detail, replacement, or unresolved point | Evidence | Parked owner / resume trigger |
|---|---|---|---|---|
| Q1–Q14 | accepted | Imported from the Brief with Source: Brainstorm Brief | S2 #q1–#q14, S4 | — |
| Q15–Q19 | accepted | User R1 answers | S2 | — |
| Q20–Q30 | accepted | User R2 answers; Q25 records the user's rejection of a byte-identity test; Q26 records the Codex marker | S2, S8 | — |
| Q32–Q39 | accepted | User R3 and R4 answers | S2, S7 | — |
| Q40 | accepted | Writing rule for every prompt and skill text | S2 #q40 | — |
| Glossary Q31 | accepted | Axis Run, Adjudicator, Engine Fallback, Pass Report | S2 #glossary-q31, S3 | — |
| Out of scope branch | parked | PR bots and CI; Claude-engine usage; subagent start-context inflation | S1 Branch Dashboard | Maintainer; 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 / level | Owner | State and authority | Interface / dependency | Supported constraint and source |
|---|---|---|---|---|
ARC-001 review-phase skill | skills repo skills/phases/review-phase/ | None; procedure text only | SKILL.md (about 60 lines) + references/{adjudicator,axis-standards,axis-spec,routing}.md | Removes about 1,900 lines of graph docs the gate read every pass; Q35, Q40 |
ARC-002 review.mjs CLI | review-phase/scripts/review.mjs | Owns run directory and Pass Report writes; side effects only (git, fs, processes) | prepare, run, retain, status; one JSON line each | No model turn does mechanical work; Q2, Q20, Q32, Q33 |
ARC-003 review-contract.mjs | review-phase/scripts/review-contract.mjs | Pure functions, no state | Keeps reviewPacketIdentity, planDeliveryReviewGate, deriveReviewRouting; adds recoverPassCount, validatePassReport, planEngineOrder, selectSourceContext | Testable logic in-process; Q33, Q36 |
| ARC-004 vendored upstream helper | review-phase/scripts/vendor/autoreview + UPSTREAM.md | Upstream bytes, unchanged; pin = tag + --version source-sha256 | upstream CLI (S5); seam CODEX_BIN / CLAUDE_BIN | Upstream review method and engine picker; no byte test; Q6, Q25 |
| ARC-005 engine selection and Engine Fallback | review-contract.mjs planEngineOrder + review.mjs run | Engine order per run | CLAUDECODE=1 → Claude; CODEX_THREAD_ID set → Codex; order [host, other]; override HI_REVIEW_ENGINES; upstream model defaults | No open-ended wait; any engine failure or timeout moves to the next engine; Q9, Q10, Q26 |
| ARC-006 axis guidance and source context | references/axis-standards.md, axis-spec.md; selectSourceContext | Frozen per run | --prompt-file, --source-context, --max-priority P2, --dry-run | Engines see only the bundle (S5 S:4236); Q7, Q8, Q11, Q12, Q27, Q29 |
| ARC-007 Adjudicator | root agent starts it; brief references/adjudicator.md | Writes only adjudication.json in the run dir | Input: packet + 2 Lens Results; output: findings and rejected candidates | Verification with read tools; commands only to test one candidate; Q5, Q28 |
| ARC-008 run directory | review.mjs | $TMPDIR/hi-review/<run-id>/: packet, context list, engine outputs, Lens Results, adjudication; removed by retain | Read by status, run, Adjudicator | Outputs outside the repo; resume reuse; Q21, Q22 |
| ARC-009 Pass Report and budget | review.mjs retain; recoverPassCount | .devpunks/delivery/<goal>/reviews/pass-<n>.json, exclusive create, pathspec commit; count = valid files | pass-report-v1 schema | One source of truth for the count; out of wiki and review target; Q13, Q16, Q17, Q23, Q24, Q34 |
| ARC-010 delivery-phase integration | skills delivery-phase | Handoff carries pass_report and review_run_id; no stored review_count | phases/{review,router,closeout,implement,debug}.md, references/{phase-handoff,artifact-state}.md | Consumers move with the contract; Q37 |
| ARC-011 standalone Git review | review.mjs prepare --standalone <locator> | No budget counters | Git commit or range only | Upstream reviews only Git changes (S5 S:4224, S:2055); Q15 |
| ARC-012 measurement | Pass Report fields | Per-attempt usage or null; Adjudicator subagent_tokens | Acceptance measurement, not a runtime guard | Q1, Q14, Q19, Q30 |
| ARC-013 distribution and harness catalog | harness apps/cli, wiki, changelog | Catalog drops autoreview and review; consumers lose them through STEP-011 stale removal | pipeline.ts:1135-1166 (S7) | One delivery across both repos; Q18, Q38 |
| ARC-014 tests | skills tests/ | — | tests/review-phase-cli.test.mjs with fake engines + review-contract.mjs unit tests | Replaces 1,487 lines of graph tests and fixtures; Q39 |
| ARC-015 writing discipline | every prompt and skill text in scope | — | $writing-for-agents | Q40 |
Critical Flows and Boundaries
FLOW-001: one delivery pass
| Step | What happens | Boundary and failure result | Source |
|---|---|---|---|
| FLOW-001-STEP-001 | status derives the next step from the run directory and Pass Reports, and the pass count from recoverPassCount | Pure read | Q32, Q37 |
| FLOW-001-STEP-002 | prepare 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 checks | Oversize, budget exhaustion or a missing source returns blocker before any model runs; gaps from the mechanical checks become candidates | Q2, Q11, Q17, Q27, Q32 |
| FLOW-001-STEP-003 | The root agent starts run in the background; no agent watches it | The harness notifies on exit | Q4, Q32; axiom |
| FLOW-001-STEP-004 | Each 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 dir | Any failure or timeout starts FLOW-002 | Q7, Q8, Q10, Q26, Q27 |
| FLOW-001-STEP-005 | run writes one Review Lens Result per axis and prints one line | Both axes incomplete after every engine → blocker | Q10, Q32 |
| FLOW-001-STEP-006 | The 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.json | No Task Gate validation repeats | Q5, Q28 |
| FLOW-001-STEP-007 | retain validates adjudication.json, derives routing with deriveReviewRouting, creates pass-<n>.json exclusively, commits only that path, and removes the run dir | A second writer fails on exclusive create; HEAD change since prepare invalidates the run | Q13, Q23, Q34 |
| FLOW-001-STEP-008 | The root agent returns the route; delivery consumes pass_report and review_run_id | Routing table in references/routing.md | Q37 |
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:
statusfinds an existing run dir for the goal. - FLOW-003-STEP-002:
runreuses 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 anchor | Exact accepted choice and supplied detail | Provided rationale / alternatives | Architecture selector + applicable visual | System constraint served |
|---|---|---|---|---|
| Q1 | Median pass ≤ 4M tokens; ≤ 10 model turns outside adjudication | Retro: gate 12–26M (S4) | ARC-012; FLOW-001 | Cost target |
| Q2 | Scripts own freeze, hash, packet, budget, size, retention, routing, cardinality, AC→Verification check | — | ARC-002, FLOW-001-STEP-002 | No model turn for one-answer work |
| Q3 | prepare → run → adjudicate → retain | — | Whole System map; FLOW-001 | Pass shape |
| Q4 | No axis subagents; script starts engines | Rejected: waiting subagents; native host subagent | ARC-002, FLOW-001-STEP-003 | No agent waits on an engine |
| Q5 | One Adjudicator subagent; commands only to test one candidate | — | ARC-007, FLOW-001-STEP-006 | Verification without repeated validation |
| Q6 | Upstream unchanged; local logic in wrapper | Rejected: in-place patch | ARC-004 | Clean updates |
| Q7 | steipete prompt in both runs; mattpocock guidance via --prompt-file/--source-context; no third run | Rejected: third pure run | ARC-006, FLOW-001-STEP-004 | Upstream method applied |
| Q8 | --max-priority P2; repo standards hard rules; smells P3 info | — | ARC-006 | Upstream default P0 would drop findings |
| Q9 | Host model default; optional second model | — | ARC-005 | — |
| Q10 | Fallback on quota, unavailable or timeout; all fail → incomplete + blocker | Rejected: same-engine retry | ARC-005, FLOW-002 | No open-ended wait |
| Q11 | Small runs; --dry-run rejects oversize before any model | — | FLOW-001-STEP-002 | Time and size limits |
| Q12 | No simplify in Standards | implement-spec owns it | ARC-006 | No double check |
| Q13 | pass-<n>.json in .devpunks/delivery/<goal>/reviews/; count = files; excluded from target | — | ARC-009 | One count source |
| Q14 | Usage where upstream provides it | Claude-engine usage out of scope | ARC-012 | Measurement |
| Q15 | Standalone as Git review only; bundle adapter removed | Rejected: drop standalone | ARC-011, FLOW-004 | Upstream Git-only |
| Q16 | Keep Pass Reports at closeout | Rejected: delete | ARC-009 | Stable debt keys |
| Q17 | Extra-pass rules unchanged; count source changes | Rejected: drop accepted-risk pass | ARC-009, FLOW-001-STEP-002 | Budget |
| Q18 | Wiki reports frozen; reviews/ removed from scaffolded wiki contract | Rejected: remove in consumers | ARC-013 | History kept |
| Q19 | Acceptance measurement; runtime limits only time and size | Rejected: runtime guard; soft guard | ARC-012 | Code still gets reviewed |
| Q20 | Node ESM review.mjs; one JSON line; --standalone flag | Rejected: Python CLI | ARC-002 | node --test |
| Q21 | $TMPDIR/hi-review/<run-id>/; removed by retain | Rejected: repo-local .runs/ | ARC-008 | Outputs outside the repo |
| Q22 | Reuse completed Axis Runs on same packet identity | Rejected: always rerun | FLOW-003 | Restart cost |
| Q23 | Exclusive create; pathspec commit; debt keys = path + finding ID | Rejected: no commit | ARC-009, FLOW-001-STEP-007 | Durable count |
| Q24 | Legacy wiki reports ignored; in-flight count restarts; changelog note | Rejected: read legacy ordinals | ARC-009, ARC-013 | Smallest change |
| Q25 | Helper only at scripts/vendor/autoreview; UPSTREAM.md tag + sha; no byte test; delete autoreview skill | Rejected: model-visible upstream skill; byte test | ARC-004 | Helper only inside review-phase |
| Q26 | CLAUDECODE=1 / CODEX_THREAD_ID; [host, other]; HI_REVIEW_ENGINES; upstream models | Rejected: fixed Codex-first | ARC-005, FLOW-002-STEP-001 | Host model default |
| Q27 | Per-axis source context; --dry-run sizing | Rejected: add neighbours | ARC-006 | Empty engine sandbox |
| Q28 | Adjudicator input paths; adjudication.json; references/adjudicator.md | Rejected: text return | ARC-007 | Validated output |
| Q29 | Guidance moves to axis-*.md; provenance kept; review skill deleted | Rejected: keep review | ARC-001, ARC-006 | Single source of truth |
| Q30 | Per-attempt usage; Adjudicator subagent_tokens | Rejected: engine only | ARC-012 | Measurement |
| Q32 | Four subcommands and their JSON shapes | Rejected: no status | Modules and Interfaces | Resume |
| Q33 | Side effects vs pure split; CODEX_BIN/CLAUDE_BIN seam | Rejected: own engine interface | ARC-002, ARC-003 | Testability |
| Q34 | pass-report-v1 fields | Rejected: keep two-axis-v1 | ARC-009 | — |
| Q35 | One procedure; four references; removed graph files | Rejected: thin graph | ARC-001 | Doc load |
| Q36 | Export keep/add/remove lists | Rejected: new library | ARC-003 | — |
| Q37 | pass_report + review_run_id; derived count; five phase files | Rejected: stored count | ARC-010 | Consumers move together |
| Q38 | One delivery; STEP-011 removal; changelog hi update --yes note | Rejected: two deliveries | ARC-013 | Catalog matches source |
| Q39 | tests/review-phase-cli.test.mjs + unit tests; text pins updated | Rejected: adapt graph test | ARC-014 | — |
| Q40 | All prompt and skill text through $writing-for-agents | — | ARC-015 | Predictable agent behaviour |
| Glossary Q31 | Four terms and relationships | — | Canonical Terms | Shared language |
Spec Traceability
- State:
complete. Every OUT and AC code of the sibling SPEC maps below.
| Spec code / section selector | Architecture selectors | Accepted grill Q / exact log-entry and evidence anchors | Coverage explanation |
|---|---|---|---|
OUT-001 (SPEC #requirements-and-outcomes) | ARC-012, FLOW-001 | Q1, Q19, Q30 (S2 @ d4dfce1a4) | Cost target and the usage that measures it |
OUT-002 (SPEC #requirements-and-outcomes) | ARC-002, ARC-003, FLOW-001 | Q2, Q3, Q20, Q32, Q33 (S2 @ d4dfce1a4) | Mechanical work in scripts |
OUT-003 (SPEC #requirements-and-outcomes) | ARC-006, FLOW-001-STEP-004 | Q7, Q8, Q11, Q12, Q27 (S2 @ d4dfce1a4) | Upstream method with axis guidance |
OUT-004 (SPEC #requirements-and-outcomes) | ARC-005, FLOW-002 | Q9, Q10, Q26 (S2 @ d4dfce1a4) | Host engine and Engine Fallback |
OUT-005 (SPEC #requirements-and-outcomes) | ARC-007, FLOW-001-STEP-006 | Q5, Q28 (S2 @ d4dfce1a4) | One Adjudicator |
OUT-006 (SPEC #requirements-and-outcomes) | ARC-009, FLOW-001-STEP-007 | Q13, Q16, Q17, Q23, Q24, Q34 (S2 @ d4dfce1a4) | Pass Report and count |
OUT-007 (SPEC #requirements-and-outcomes) | ARC-008, FLOW-003 | Q21, Q22 (S2 @ d4dfce1a4) | Resume |
OUT-008 (SPEC #requirements-and-outcomes) | ARC-011, FLOW-004 | Q15 (S2 @ d4dfce1a4) | Standalone Git review |
OUT-009 (SPEC #requirements-and-outcomes) | ARC-001, ARC-004 | Q25, Q29, Q35 (S2 @ d4dfce1a4) | Skill layout and vendored helper |
OUT-010 (SPEC #requirements-and-outcomes) | ARC-010 | Q37 (S2 @ d4dfce1a4) | Delivery handoff |
OUT-011 (SPEC #requirements-and-outcomes) | ARC-013 | Q18, Q24, Q38 (S2 @ d4dfce1a4) | Consumers, docs, release |
OUT-012 (SPEC #requirements-and-outcomes) | ARC-014 | Q33, Q39 (S2 @ d4dfce1a4) | Tests |
OUT-013 (SPEC #requirements-and-outcomes) | ARC-015 | Q40 (S2 @ d4dfce1a4) | Writing discipline |
AC-001 (SPEC #acceptance-criteria) | ARC-012 | Q30, Q34 (S2 @ d4dfce1a4) | Per-attempt usage and Adjudicator tokens |
AC-002 (SPEC #acceptance-criteria) | ARC-012, FLOW-001 | Q1, Q19 (S2 @ d4dfce1a4) | Median ≤ 4M tokens, ≤ 10 turns |
AC-003 (SPEC #acceptance-criteria) | ARC-012 | Q19, Q11 (S2 @ d4dfce1a4) | No runtime token guard |
AC-004 (SPEC #acceptance-criteria) | ARC-002 | Q20, Q32 (S2 @ d4dfce1a4) | Four subcommands, one JSON line |
AC-005 (SPEC #acceptance-criteria) | FLOW-001-STEP-002 | Q2, Q11, Q17, Q27 (S2 @ d4dfce1a4) | Mechanical checks before any model |
AC-006 (SPEC #acceptance-criteria) | ARC-003 | Q36 (S2 @ d4dfce1a4) | Library exports |
AC-007 (SPEC #acceptance-criteria) | FLOW-001-STEP-004 | Q7, Q8, Q25, Q26 (S2 @ d4dfce1a4) | Helper arguments per Axis Run |
AC-008 (SPEC #acceptance-criteria) | ARC-006 | Q27 (S2 @ d4dfce1a4) | Source context per axis |
AC-009 (SPEC #acceptance-criteria) | ARC-006 | Q8, Q12, Q29 (S2 @ d4dfce1a4) | Standards guidance content |
AC-010 (SPEC #acceptance-criteria) | ARC-005, FLOW-002 | Q26 (S2 @ d4dfce1a4) | Engine order |
AC-011 (SPEC #acceptance-criteria) | FLOW-002 | Q10 (S2 @ d4dfce1a4) | Fallback on any failure |
AC-012 (SPEC #acceptance-criteria) | FLOW-002 | Q10, Q17 (S2 @ d4dfce1a4) | All engines fail |
AC-013 (SPEC #acceptance-criteria) | FLOW-001-STEP-003 | Q4, Q32 (S2 @ d4dfce1a4) | No waiting agent |
AC-014 (SPEC #acceptance-criteria) | ARC-007 | Q28 (S2 @ d4dfce1a4) | Adjudicator I/O |
AC-015 (SPEC #acceptance-criteria) | FLOW-001-STEP-006 | Q5 (S2 @ d4dfce1a4) | Commands only to test a candidate |
AC-016 (SPEC #acceptance-criteria) | FLOW-001-STEP-007 | Q23 (S2 @ d4dfce1a4) | Exclusive create and pathspec commit |
AC-017 (SPEC #acceptance-criteria) | ARC-009 | Q34 (S2 @ d4dfce1a4) | Report schema |
AC-018 (SPEC #acceptance-criteria) | ARC-009 | Q13, Q17, Q37 (S2 @ d4dfce1a4) | Count and pass rules |
AC-019 (SPEC #acceptance-criteria) | ARC-009 | Q13 (S2 @ d4dfce1a4) | Reports excluded from target |
AC-020 (SPEC #acceptance-criteria) | ARC-009 | Q16, Q18, Q24 (S2 @ d4dfce1a4) | No wiki writes; legacy ignored |
AC-021 (SPEC #acceptance-criteria) | ARC-008 | Q21 (S2 @ d4dfce1a4) | Run directory |
AC-022 (SPEC #acceptance-criteria) | FLOW-003 | Q22 (S2 @ d4dfce1a4) | Resume reuse |
AC-023 (SPEC #acceptance-criteria) | FLOW-004, ARC-011 | Q15, Q20 (S2 @ d4dfce1a4) | Standalone |
AC-024 (SPEC #acceptance-criteria) | ARC-004 | Q25 (S2 @ d4dfce1a4) | Vendored bytes and pin |
AC-025 (SPEC #acceptance-criteria) | ARC-001 | Q29, Q35 (S2 @ d4dfce1a4) | Skill layout |
AC-026 (SPEC #acceptance-criteria) | ARC-004 | Q25, Q29 (S2 @ d4dfce1a4) | Removed skills |
AC-027 (SPEC #acceptance-criteria) | ARC-010 | Q37 (S2 @ d4dfce1a4) | Delivery handoff fields |
AC-028 (SPEC #acceptance-criteria) | ARC-013 | Q38 (S2 @ d4dfce1a4) | Catalog and manifests |
AC-029 (SPEC #acceptance-criteria) | ARC-013 | Q24, Q38 (S2 @ d4dfce1a4) | Consumer removal and changelog |
AC-030 (SPEC #acceptance-criteria) | ARC-013 | Q18, Q38 (S2 @ d4dfce1a4) | Docs and other skills |
AC-031 (SPEC #acceptance-criteria) | ARC-014 | Q33, Q39 (S2 @ d4dfce1a4) | Tests |
AC-032 (SPEC #acceptance-criteria) | ARC-015 | Q40 (S2 @ d4dfce1a4) | Writing discipline evidence |
Flow Failure Coverage
| Lens | Evidence / unknown / justified not applicable | Guarantee at stake | Material unresolved gap |
|---|---|---|---|
| Entry points and path convergence | Full delivery, other delivery modes and standalone all enter review.mjs; Q15, Q20, Q37 | Same rules on every entry | None |
| Critical execution paths | FLOW-001 order; Q3, Q32 | Mechanics before model work | None |
| State ownership and authority | Run dir owned by review.mjs; Pass Report owned by retain; count derived; Q13, Q21, Q23, Q37 | One count source | None |
| Transaction and side-effect boundaries | Pathspec commit of one file; run dir outside repo; Q21, Q23 | No partial report visible as complete | None |
| Concurrency and stale state | Exclusive create; HEAD check before retain; upstream tree-change check S5 S:8537; Q23 | No double ordinal; no stale review | None |
| Idempotency and retries | Retain retry hits exclusive create; resume reuses Lens Results; Q22, Q23 | No duplicate pass | None |
| Partial failure and recovery | FLOW-002 fallback; incomplete + blocker; Q10, Q22 | No open-ended wait | None |
| Execution lifetime and durability | Background run; harness notification; status resume; FLOW-003 | Restart costs at most one axis | None |
| Lifecycle and dependency transitions | Legacy reports ignored; consumer STEP-011 removal; Q24, Q38 | Consumers converge | None |
| Completion observability | One JSON line per call; Pass Report attempts and usage; Q30, Q32, Q34 | Operator sees engines, causes, cost | None |
Parked Work and Non-material Unknowns
| Question / source | Disposition and scope consequence | Owner / resume trigger | Why current guarantees remain closed |
|---|---|---|---|
| Out of scope branch (S1) | Parked at L1: PR bots and CI, Claude-engine usage, subagent start-context inflation | Maintainer; a later grill | No 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-23 | Implementation verifies with a live Codex host | HI_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 commitd4dfce1a4. - 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.