Skip to content

Let the Codex chief inspect saved team reports (T43) - #202

Merged
erickb336 merged 1 commit into
mainfrom
codex/t43-recorded-report-reader
Oct 13, 2026
Merged

erickb336 merged 1 commit into
mainfrom
codex/t43-recorded-report-reader

Conversation

@erickb336

@erickb336 erickb336 commented Oct 13, 2026 •

Copy link
Copy Markdown
Owner

Closes #201
Sage task T43

The Codex chief can inspect an exact report already recorded by a lead for one of its children. The new sage_read_recorded_report tool returns saved text and provenance, including a pinned review target when present. It does not take parent authority, finish a run, accept a verdict, or allow a merge.

This supports the delegated workflow in #88/#138. It uses existing version-2 configuration and durable receipts instead of the pending logbook APIs, because a read should not mutate work. Claude's #140 files remain untouched. Full run/review integration, activation, and the real-project pilot remain separate work. No owner decision is needed.

The reader requires the exact assignment and hash, native root identity, matching project and owner epoch, one saved receipt, and its recovery proof. It rechecks admission before returning. No createStateTool or logbookRoot is needed. The existing direct-child report tools retain parent-only access.

Sources: packages/sage-codex/runtime/recorded-report.mjs and preparation-server.mjs. The plugin files are generated. The existing MCP inventory assertion adds the new tool; no old behavior assertion is removed or weakened.

Validation on 09803e0:

  • npm run build: passed.
  • npm run check: all checks pass (3 timing bounds carry a timing-ok annotation).
  • node --test --test-name-pattern=T43 scripts/codex-server.test.mjs: 7 passed, 0 failed.
  • npm test -- --test-concurrency=1: 1,167 passed, 0 failed, 0 skipped.
  • Two clean code, security, and QA review cycles on this unchanged commit.
  • Detached main 7e80bad with the new tests: 0 passed, 7 failed because the new reader module is absent. This proves the feature is missing; it is not a behavioral comparison against an old reader implementation.

Tests cover direct and nested reports, unchanged admission bytes, reconnect, transcript loss, Sage off, bad identity and inputs, missing/conflicting proofs, an owner-epoch mismatch, and a concurrent admission change. Every test uses fake ps, pgrep, and kill first on PATH. The epoch fixture initially broke its journal chain; it now rebuilds a valid chain before testing the stale proof.

Exact-head CI passed: https://github.com/erickb336/sage/actions/runs/38453666076. All six review cycles are clean; the local full suite and CI passed without a code change. Packaged MCP tests use temporary fixtures; no installed activation, real-model consumption, or live task acceptance ran.

@erickb336
erickb336 marked this pull request as ready for review October 13, 2026 19:28
@erickb336
erickb336 merged commit 1b6ffcd into main Oct 13, 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.

Let the Codex chief inspect recorded team reports (T43)

1 participant