Skip to content

Accept saved Codex reviews with validated recovery (T59) - #230

Merged
erickb336 merged 5 commits into
mainfrom
codex/t59-recorded-review
Oct 14, 2026
Merged

erickb336 merged 5 commits into
mainfrom
codex/t59-recorded-review

Conversation

@erickb336

@erickb336 erickb336 commented Oct 14, 2026 •

Copy link
Copy Markdown
Owner

Closes #227
Sage task T59

The Codex chief can accept one authenticated saved review with sage_accept_review. Acceptance records the report's findings and verdict. An exact retry returns the saved result. It does not verify work or authorize a merge.

Recovery validates the report and the exact changes to tasks, findings, ledger and decisions before publishing any table. New acceptance refuses held tasks. Checks evidence can coexist with one review verdict. Blocking findings return verified or pr-ready work to reviewing, while low findings remain recorded.

The change adds a review receipt version to guarded snapshots. Claude's active task transitions, CLI verdict, merge-check and logbook-view bodies remain unchanged.

Verification

Final review head: a7f40d388762963070350f789463effce0d07445, based on main 9aad05d.

  • npm run build: built 302 files. npm run check and git diff --check: pass.
  • Detached main 9aad05d: the initial 47 tests and two added repair tests fail because the acceptance API is absent. This proves missing functionality, not 49 behavioral defects.
  • Pinned integration 548ad4a: both behavioral controls fail. A fresh review incorrectly succeeds on a held task, and existing checks evidence incorrectly blocks review acceptance.
  • A scratch mutation that removes only the review receipt snapshot guard fails the eligible-merge race check: the merge is incorrectly allowed.

The final focused suite passes 53 tests: all 49 new tests and four existing task/run snapshot controls. First code review found that no-build tasks could accept commit-specific verdicts. Both new regressions fail behaviorally on prior head fb9b8ba; the shared pure delta now refuses both fresh and pending publication for such tasks. Historical receipt retries remain valid.

The exact-head native probe passes: one completed run, binding, report and verdict; unchanged retry, task and admission state; transcript-loss recovery; zero unexpected, malformed or rejected events; exit zero and temporary-profile cleanup. The real CLI uses simulated responses. Earlier probe attempts failed two fixture expectations (report result and completed-tool inventory); both were repaired without weakening identity, hash or zero-unexpected-event checks.

The earlier full run on dd6de0a passed 1,341 tests and failed one unchanged T56 assertion because its refusal message changed. Final head restores compatible wording and preserves every existing assertion. Two independent code/security/QA cycles are clean on this final head. npm test -- --test-concurrency=1: 1,342 tests, 1,342 pass, 0 fail, 0 cancelled, 0 skipped. Exact-head CI run 38549213553 passes: 1,342 tests, 1,342 pass, 0 fail. All local tests use fake process commands first on PATH.

Real-model choices, installed automatic Sage, task transitions and whole-runtime correctness remain unverified. The prepared native diagnostic uses simulated model responses. Native and proof processes finished; proof checkouts were removed. All local processes finished. All required topic checks are complete.

@erickb336
erickb336 marked this pull request as ready for review October 14, 2026 10:32
@erickb336
erickb336 merged commit 5723be6 into main Oct 14, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Accept recorded Codex reviews with recoverable publication (T59)

1 participant