Repository navigation
Accept saved Codex reviews with validated recovery (T59) - #230
Merged
Merged
Conversation
This was referenced Oct 14, 2026
erickb336
marked this pull request as ready for review
October 14, 2026 10:32
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 main9aad05d.npm run build: built 302 files.npm run checkandgit diff --check: pass.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.548ad4a: both behavioral controls fail. A fresh review incorrectly succeeds on a held task, and existing checks evidence incorrectly blocks review acceptance.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
dd6de0apassed 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.