Skip to content

Record native Codex run requests once (T57) - #228

Merged
erickb336 merged 3 commits into
mainfrom
codex/t57-native-run-create
Oct 14, 2026
Merged

erickb336 merged 3 commits into
mainfrom
codex/t57-native-run-create

Conversation

@erickb336

@erickb336 erickb336 commented Oct 14, 2026 •

Copy link
Copy Markdown
Owner

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 main a4ddfcc and 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:

  • Detached latest main a4ddfcc: 25 failures because the run-creation module is absent. These establish missing functionality, not 25 prior behavioral defects.
  • Pinned integration 548ad4a: the held-task regression fails because a new native run is incorrectly permitted.
  • Prior head 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.
  • Scratch mutations demonstrate that the tests detect both a hard-coded round zero and a recomputed retry timestamp. The fixture uses a valid nonzero repair round and a controlled clock.

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.

@erickb336
erickb336 marked this pull request as ready for review October 14, 2026 09:56
@erickb336
erickb336 merged commit 9aad05d 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.

Create recorded runs through the Codex chief tool (T57)

1 participant