Repository navigation
Let the Codex chief inspect saved team reports (T43) - #202
Merged
Merged
Conversation
erickb336
marked this pull request as ready for review
October 13, 2026 19:28
This was referenced Oct 13, 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 #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:
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.