Repository navigation
Record native Codex run requests once (T57) - #228
Merged
Merged
Conversation
…create # Conflicts: # scripts/codex-server.test.mjs
This was referenced Oct 14, 2026
erickb336
marked this pull request as ready for review
October 14, 2026 09:56
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 #224
Sage task T57
The Codex chief can record one run with
sage_create_run. An exact retry returns the original saved run without reopening it or changing its model, round or timestamp. New requests obey the existing CLI writer, role, lead-capacity and held-task rules.Core shares run framing with the CLI. Run receipts participate in snapshot checks, and recovery validates the complete intended run append before publication. Task transitions and Claude's active functions remain outside this change.
Verification
Final head:
81df0b68b1af94f46ee2290c706172e013059336, including maina4ddfccand the merged #225 task-ID repair.Build produces 301 files; repository checks pass. Focused checks report 28 pass, 0 fail: 25 new checks, two existing task-snapshot controls and the task-ID repair regression. All tests use fake process commands first on PATH.
Evidence:
a4ddfcc: 25 failures because the run-creation module is absent. These establish missing functionality, not 25 prior behavioral defects.548ad4a: the held-task regression fails because a new native run is incorrectly permitted.f80f9fe: a checksum-valid saved array ID causes recovery publication before refusal. The repaired check preserves tables, pending intent and receipts. The array-timestamp case already refused and remains a control.The final-commit native lifecycle probe passes: one task, run, reservation, binding, report and completion; zero accepted verdicts; task remains framed; historical retry leaves the run finished. The real CLI uses simulated model responses and removes its temporary profile.
Two independent code/security/QA review cycles are clean on the final head.
npm test -- --test-concurrency=1: 1,293 tests, 1,293 pass, 0 fail, 0 cancelled, 0 skipped. The latest-main comparison is complete. Exact-head CI run 38544809669 passes: 1,293 tests, 1,293 pass, 0 fail.Real-model choices, installed automatic Sage, review acceptance and task transitions remain unverified. The native process finished and removed its temporary profile. All local test and native processes finished. Proof checkouts were removed.