Repository navigation
Reject non-string saved task IDs (T58) - #226
Merged
Merged
Conversation
erickb336
marked this pull request as ready for review
October 14, 2026 09:44
This was referenced Oct 14, 2026
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 #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,pgrepandkillfirst on PATH, withNODE_TEST_CONTEXTunset.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.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=1reports 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.