Skip to content

Read authenticated task snapshots in Codex (T61) - #234

Merged
erickb336 merged 3 commits into
mainfrom
codex/t61-task-reader
Oct 15, 2026
Merged

erickb336 merged 3 commits into
mainfrom
codex/t61-task-reader

Conversation

@erickb336

@erickb336 erickb336 commented Oct 15, 2026 •

Copy link
Copy Markdown
Owner

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 main 03c616d.

  • 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.
  • All seven new tests fail detached main 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.
  • Authentication and pending-guard mutations fail their intended refusal assertions.
  • Review found that malformed pending fixtures could not detect accidental recovery. The repaired tests use real task, run and review writers to create valid recoverable intents. Refused reads preserve tables, pending bytes, receipt trees and admission; the original writers then recover successfully. A recovery-then-throw mutation fails all three unchanged-state assertions.
  • node scripts/probe-codex-lifecycle.mjs --sage-read-task passes 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.
  • Two independent code/security/QA review cycles are clean on this unchanged head. npm test -- --test-concurrency=1 passed: 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.

@erickb336
erickb336 marked this pull request as ready for review October 15, 2026 16:42
@erickb336
erickb336 merged commit 04f60cc into main Oct 15, 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.

Read authenticated Codex task snapshots (T61)

1 participant