Skip to content

Save verified Codex child report receipts (T24) - #164

Merged
erickb336 merged 2 commits into
mainfrom
codex/t24-report-receipts
Oct 13, 2026
Merged

erickb336 merged 2 commits into
mainfrom
codex/t24-report-receipts

Conversation

@erickb336

@erickb336 erickb336 commented Oct 13, 2026 •

Copy link
Copy Markdown
Owner

Closes #163
Sage task T24

A Codex parent can now save the exact report it inspected and read it after the native transcript is unavailable. sage_record_report requires the child's name and the inspected text hash. Exact retries return the original receipt; conflicting evidence fails.

The journal verifies the completed binding, current owner, task, run, required fields, and report hash. A separate recovery proof binds that receipt to native provenance before storage. A proof without a receipt grants no report authority. Recording a report does not accept findings, finish a run, create a verdict, or mark task success. Automatic Sage remains incomplete; see #88.

Changes

  • Add provider-neutral report receipts to admission storage and expose the Codex recording tool.
  • Preserve assignment-scoped reconciliation and authenticated parent ownership.
  • Retain reports after transcript loss only with exact durable recovery proof.
  • Add tests for exact replay, concurrent receipt writes, invalid evidence, reconnects, partial writes, and missing or conflicting proof.
  • Extend the isolated native probe with --sage-receipt.
  • Edit packages/ sources and regenerate plugins/ output. Claude's active hook and state tool are unchanged.

Validation

All tests and probes put fake ps, pgrep, and kill first on PATH.

  • npm run build: built 274 files.
  • npm run check: all checks pass.
  • git diff --check: pass.
  • Focused receipt tests across scripts/providers.test.mjs and scripts/codex-server.test.mjs: 7 tests, 7 pass, 0 fail.
  • The same seven new tests fail on detached main 9b6c4ba. Main lacks the receipt APIs and recording tool. These prove missing prerequisites; they are not a claim about a prior behavioral regression.
  • node scripts/probe-codex-lifecycle.mjs --sage-receipt: CLI 0.160.0 exits zero; 12 simulated responses include nine parent requests and two child requests. One exact receipt survives child-transcript removal; inspection and retry leave the journal unchanged. The temporary profile is removed.
  • node scripts/probe-codex-lifecycle.mjs --sage-report: existing inspection route passes, preserves admission state, and cleans up.
  • npm test on final head 232eab7: 1,074 tests, 1,074 pass, 0 fail, 0 cancelled, 0 skipped.
  • Exact-head CI 38397706340: passed on 232eab7.

Reviews

Code, security, and QA completed two clean review cycles on unchanged commit 232eab7.

Not verified

Installed automatic Sage, real-model behavior, full policy composition, later assignments, run completion, and review acceptance. Native probes use a temporary profile and simulated responses.

@erickb336
erickb336 marked this pull request as ready for review October 13, 2026 12:34
@erickb336
erickb336 merged commit 6d07519 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.

Save verified Codex child report receipts (T24)

1 participant