Repository navigation
Read authenticated task snapshots in Codex (T61) - #234
Merged
Merged
Conversation
# Conflicts: # scripts/codex-server.test.mjs
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 #232
Sage task T61
Codex can read an authenticated task snapshot through
sage_read_task. It returns the exact task row and a SHA-256 token for task metadata. The token does not grant workflow or merge permission and does not cover current runs, findings, reviews or branch HEAD.The core reader holds the existing logbook lock and rejects pending publication or corrupt state. The provider adapter uses the authenticated saved owner and fixed project/logbook configuration. Saved owners can read while Sage is off; children and unknown roots cannot. Callers cannot choose paths or another owner.
Verification
Head:
aded46938f742b2cbcd2e85f4be1af879abf7446, based on main03c616d.npm run build: built 304 files.npm run check: all checks pass.node --test --test-name-pattern='T61:|T17:|native interruption fixture' scripts/codex-server.test.mjs scripts/providers.test.mjs: 12 tests, 12 pass, 0 fail.03c616d: four fail because the adapter is absent; three fail importing that absent module. These are missing-feature failures, not proof of an earlier behavioral defect.node scripts/probe-codex-lifecycle.mjs --sage-read-taskpasses on this head: two native MCP reads, exact task data, stable token, unchanged logbook/admission, zero children, exit 0 and temporary-profile cleanup. Model responses are simulated. The first probe exposed a fixture request-counter error; the repair keeps all assertions.npm test -- --test-concurrency=1passed: 1,356 tests, 1,356 pass, 0 fail, exit 0. All owned local processes finished. Exact-head CI run 38769551849 passed all 1,356 tests, with 0 failures. Local tests and native probes use fake process commands first on PATH.Not verified: real-model behavior, task updates, automatic chief workflows, installed policy or merge authorization. Claude's active #140 bodies remain unchanged. Parent tracking issue: #88. Full runtime work remains incomplete.