review-phase is one 6-step procedure over scripts/review.mjs (prepare, run, retain, status) and the pure scripts/review-contract.mjs; two Axis Runs call the vendored upstream autoreview v0.6.0 with host-engine default and Engine Fallback; one foreground Adjudicator; temporary Pass Report in .devpunks/delivery/<goal>/reviews/.
autoreview and review skills removed; delivery-phase consumes pass_report + review_run_id and derives the pass count.
Skills maincb9db64..44489ad (pushed); HI branch spec/review-phase-token-rebuild through d94709974 plus this record (pushed).
Measured cost: median 717,084 tokens and 9 turns per pass (previous design 25–30M tokens, about 90 gate-subagent turns).
Skills pin moved from e8ec5ce to a4ab324 (peer session's requirements-grill/show-me commit on top of ours) so this branch does not revert it; the peer releases that change separately from cherry-pick dc39c4a.
Pre-existing failure outside scope: apps/cli/src/features/typescript-semantic-reads/discovery.test.ts misses packages/lints/tsconfig.json (introduced by #275 on main), unrelated to this diff.
T5 also removed review_lineage_id, repair_count, report_retention_pending and renamed secondary_architecture_follow_up → secondary_debt in delivery state (nothing produces them now); repair opening is idempotent on review_run_id. Residual wording: implement-spec/references/lifecycle.md:64 "historical review lineage" (harmless; left).
T3 reviews a deterministic synthetic commit (git commit-tree, parent = base, tree = head with .devpunks/delivery/**/reviews/ reset to base) through upstream --mode commit, because upstream branch mode cannot exclude paths and always diffs live HEAD (AC-007 wording --mode branch; AC-019 met).
T3 exclusive create uses temp file + fs.linkSync (EEXIST-exclusive, crash-safe) instead of openSync('wx').
T3 adds prepare flags --spec, --accepted-risk, --human-direction and env HI_REVIEW_PROMPT_DIR, HI_REVIEW_ENGINE_TIMEOUT_SECONDS (900), HI_REVIEW_MAX_ENGINE_PASSES (3, upstream --max-review-passes, the oversize limit). Standalone Pass Reports: .devpunks/delivery/standalone/reviews/<base12>-<head12>-<run_id>.json, ordinal: null.
T4 fixes run-dir names (packet.json, standards.json, spec.json, adjudication.json), candidate_ref as JSON path, and root-agent-written subagent_tokens; T3 aligned by parent message.
Upstream accepts --prompt-file only inside the reviewed repo (S:3633-3641); review.mjs passes axis guidance as --prompt text (deviation from AC-007 wording, same content).
With --max-priority P2, P3 smell observations are mostly omitted by the engine or land in priority_filtered_findings (consistent with Q8/AC-009).
T2 validatePassReport uses severity critical | high | medium | low (existing vocabulary), requires lens_resultclean | findings (incomplete never counts) and maps secondary_architecture_follow_up to route.secondary_debt.
T1 also ships upstream scripts/vendor/LICENSE (MIT notice must travel with the copy); parent-approved scope extension.
Plan and SPEC name aa2f8f7a… as the upstream commit; it is the annotated tag object. The tag points to commit 6b38162c6f27792871f9a3c5df4e041eb7c5f15f. vendor/UPSTREAM.md records both.
Median tokens 0.94M (1.33M with full Adjudicator transcripts): AC-002 token part passes (previous design: 25–30M).
Median turns 16: AC-002 turn part fails. Detour-free floor was 13: status, prepare, run, end turn, read run output, start Adjudicator, write subagent_tokens, retain, 2 report reads, load $show-me, read findings, return.
AC-001 passes with caveats: Claude usage is always null (upstream records Codex usage only); model records the requested alias; harness subagent_tokens equals the Adjudicator's final-turn context, not its total.
AC-003 passes. Background notification resumed every pass-runner. Engine Fallback not exercised (Claude served every attempt).
Repair 1 (skills fa8ab42, HI 93b6c5415): retain --subagent-tokens and a compact findings summary in retain output; SKILL.md presents that summary directly (no $show-me load, no report reads). Then re-measure.
Median tokens 0.85M (1.10M full Adjudicator): pass. Median turns 11: fail by one.
Defect: SKILL step 4 does not require a foreground Adjudicator; pass B backgrounded it and its nested completion notification never reached the pass-runner (8 min stall).
Repair 2 (skills f0698a1, HI 6c0ad31c3, pushed): step 4 starts the Adjudicator in the foreground; the procedure states that the listed steps are the whole pass (no reference pre-reads, no extra tool loads, no post-retain checks).
Operational incident: another session ran git reset to origin on this branch in the main checkout and switched it to main; the 5 unpushed commits were restored from the reflog to 46f80a4fa, pushed, and work continues in worktree ~/.t3/worktrees/harness-intelligence/review-phase-token-rebuild.
Review finding f003 (Pass Report 1): pass C was standalone and does not measure from status. Delivery-mode passes A, B, D: tokens 1,200,057 / 717,084 / 653,510, turns 12 / 9 / 8.
AC-002 pass: median 717,084 tokens (1,255,482 with full Adjudicator), median 9 turns over delivery-mode passes.
Subject substitutions: #270 blocked by the --dry-run size check (spec axis 14 planned passes, 6.9 MB; AC-003 size limit working); #271 blocked by a defect (symlinked .codex/AGENTS.md in Standards source context, refused by upstream) — repaired in skills, see Code Review section.
AC-001 pass with caveats: Claude usage null (upstream records Codex only); model records the requested alias; subagent_tokens is the harness figure (Adjudicator final-turn context).
AC-003 pass: no pass stopped. Engine Fallback exercised only in CLI tests (Claude served every live attempt).
tests/review-phase-cli.test.mjs (13), tests/review-contract.test.mjs (8); live passes in Measurement 3. AC-007 met with documented deviations (--mode commit on a synthetic commit; --prompt text)
AC-009, AC-013, AC-015, AC-025, AC-026
pass
tests/workflow-boundaries.contract.test.mjs layout and text pins; skills f0698a1
AC-024
pass
vendor/UPSTREAM.md, blob a1d8e5e1 equals upstream
AC-027
pass
T5 contract test; skills e8ec5ce
AC-028
pass
HI publisher/catalog tests; registry build (184 items, no skill-autoreview/skill-review)
Real defect seen by measurement passes on main: apps/cli/src/data/lint/frontend-layers/index.mjs:109 gives one-segment layer targets (@/features, @/composition) layer: null (pass A of measurement 1).
apps/wiki/content/docs/project/runbooks/hi-cli-scaffolding.md:589-593 still describes the old .githooks/pre-commit selector (found in all three #274 passes).
f001 standards medium review.mjs:47 shared run root trust; f002 spec low docs simplify claim; f003 spec medium standalone measurement pass; 11 rejected (9 mechanical false positives from en-dash AC ranges, 2 manifest claims)
f001 fixed skills fefe8c6 (HI f3dca2fde); f002 fixed HI 57bee6bfb; f003 fixed by delivery-mode pass D
Pass 1 ran on this delivery's own diff (88e393523..8d8185774) with HI_REVIEW_MAX_ENGINE_PASSES=5 (planned passes standards 3, spec 4). Cost: Adjudicator 83,686 tokens; engines Claude, one attempt per axis.
Focused Repair Validation: skills tests/review-phase-cli.test.mjs 17/17; HI publisher/prompts/pipeline 80/80; apps/cli check pass; wiki health 10 (baseline); synced review.mjs identical to skills fefe8c6. No accepted-risk second pass requested: the repairs harden run-dir trust inside the reviewed script without changing architecture, public contract or scope.
Machine note: /tmp/hi-review (created earlier by the old code as 0775) was set to 1777 by the parent.
Additional defect found during measurement (symlinked AGENTS.md in source context, upstream refuses symlinked evidence) repaired in skills 44489ad (HI d94709974); proof: CLI test 18/18, skills npm test 358/358, prepare --standalone 6cb35f8cd^..6cb35f8cd (#271) returns blocker: null.
Observation outside scope: pass D (#250/#251) reported delivery-phase/phases/closeout.md:18 "run the one local broad run instead" can read as permission to skip CI; left as follow-up.