Skip to content

land #48 on main (merged into #47's branch before retarget) - #53

Merged
githubscum merged 2 commits into
mainfrom
lotor-lane/subagent-receipts
Sep 7, 2026
Merged

githubscum merged 2 commits into
mainfrom
lotor-lane/subagent-receipts

Conversation

@githubscum

Copy link
Copy Markdown
Owner

PR #48 (the fail-first hook test for WO-TRACE-BRIDGE-01's last mile) merged into lotor-lane/subagent-receipts before GitHub retargeted it. This carries that one test file onto main. No new content.

🤖 Generated with Claude Code

githubscum and others added 2 commits September 4, 2026 00:42
ingestSession already reads opts.transcriptPath and binds a subagents
summary onto the receipt when a sibling <basename>/subagents/ directory
exists (test/subagent-ingest-wiring.test.js, PR #47). The session-end
hook -- the only caller that matters in production -- does not pass
transcriptPath through, so the reader never fires outside a test.

This adds one fail-first test that runs the real hook binary against a
real transcript with a real subagents sidecar and asserts today's dark
result: no `subagents` field on the receipt. It is meant to flip, not
pass forever.

The core file (bin/hook-session-end.js) is gated and this lane cannot
land the one-line fix unsigned (self-mod denial on attempt). The fix,
for the signing sitting:

  bin/hook-session-end.js, ~line 127
    - const result = ingestSession(text, { transcriptBytes: bytes });
    + const result = ingestSession(text, { transcriptBytes: bytes, transcriptPath });

Suite: 953/953 (952 baseline on this branch + 1 new).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…tpath

CORE (signing sitting): wire transcriptPath into the session-end hook (WO-TRACE-BRIDGE-01 last mile)
@githubscum
githubscum merged commit c6e0e59 into main Sep 7, 2026
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.

1 participant