Skip to content

Reject non-string saved task IDs (T58) - #226

Merged
erickb336 merged 1 commit into
mainfrom
codex/t58-task-receipt-id
Oct 14, 2026
Merged

erickb336 merged 1 commit into
mainfrom
codex/t58-task-receipt-id

Conversation

@erickb336

@erickb336 erickb336 commented Oct 14, 2026 •

Copy link
Copy Markdown
Owner

Closes #225
Sage task T58

A malformed saved task ID can no longer cause recovery to publish task data before refusing the request. The validator now requires a string before it checks the ID format. Normal creation and exact retries keep their behavior.

The regression uses a checksum-valid array ID in a completed receipt and an interrupted publication. It checks all table bytes, pending intent and receipt bytes. The completed-receipt case already refused on main and remains a control. The interrupted-publication case fails behaviorally on detached main 17bf2e2: main adds the task and decision before throwing.

Verification

Final local head: 2041545a6fffd975930a4edf2fb65f6ab7494d44. Two independent code/security/QA cycles are clean on that head.

All test commands use fake ps, pgrep and kill first on PATH, with NODE_TEST_CONTEXT unset.

  • npm run build: passed; generated copies committed.
  • npm run check: all checks pass.
  • node --test --test-name-pattern='native task creation|T56:|T58:' scripts/codex-server.test.mjs: 32 pass, 0 fail.
  • Detached-main comparison: copy only the final test file into detached main, link dependencies, and run node --test --test-name-pattern='T58:' scripts/codex-server.test.mjs. The new test fails at the pending-intent table comparison. No production code is copied.

The exact-commit native task-creation probe passes: one task, one decision, exact retry, zero runs/reservations/children, exit zero and temporary-profile cleanup. It uses the real CLI with simulated responses.

Full local validation: npm test -- --test-concurrency=1 reports 1,268 pass, 0 fail, 0 cancelled and 0 skipped.

Exact-head CI run 38543196578 passes all 1,268 tests. All required checks and both review cycles are complete. No real-model or installed automatic Sage behavior is claimed. The defect concerns the saved-record integrity contract, not a hostile writer with direct filesystem access.

The native process finished and removed its temporary profile. Temporary proof checkouts were removed. The full local suite finished with exit zero. All owned local processes are terminal.

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

Require string task IDs in saved creation records (T58)

1 participant