Repository navigation
Description
Child of #596. The close child (relay).
User story
As the owner, I want the session-history epic merged to relay's main only after its checks pass on both heads together, so that main never holds half of it.
Acceptance criteria
- Session history: Claude reader, discovered records, history list #598, Session history: keep and resume a terminal Claude launched from a project #599 and Session history: purge a record whose transcript is gone #600 are merged to
epic/596-session-historywith their review and evidence lines. - A sync PR from
sync/596-mainmergesmaininto the epic branch and saysCloses #601. - The repo suite and the
--stackrun pass once on the frozen epic head, on a stack built with eve's frozen epic head. - The devbox pass shows each step of the verification task below.
- A
Verified:line on this issue names the final epic head. merge-checkpasses on the epic PR tomain, and relay merges before eve.
What I'd notice
Nothing new. The change appears on main in one step.
Close lines (relay)
- The verification task runs once, on the epic head frozen by line 4: the repo suite, then
stack-upon that head and the--stackrun, thenstack-down. Relay: one run. This issue gets theVerified:line. - A push after line 1 means line 1 runs again on the new head. Nothing is planned to push after line 4.
- Every child is merged to the epic branch, with review and evidence lines in place.
mainis merged into the epic branch by a sync PR whose head issync/596-mainand whose body saysCloses #601. Conflicts are resolved on it; the parent's overlap table lists the expected ones. The epic head is now frozen.- Close Session history: Claude reader, discovered records, history list #598, Session history: keep and resume a terminal Claude launched from a project #599 and Session history: purge a record whose transcript is gone #600, each with a comment naming its PR.
merge-checkpasses on the epic PR tomain.- Merge under the joint close task on Session history from transcripts: discovered records, real titles, auto-purge #596 (step c). Confirm
maingreen, close the parent (step d), delete the epic branch. - The run report's final body (
run-report finish, by the coordinator).
Verification task
On the devbox, once, on the frozen epic head after line 4, as step b of the joint close task.
-
Unlock the devid keychain and run
npm ciin the eve checkout first. -
No devlock.
-
Never kill or replace the devbox's default tmux server. End only the tmux sessions this pass created, by name.
-
repo-suite:(cd e2e && go test -race -timeout 30m ./features/). -
devboxverify:stack-up r601 --relay <relay checkout at the epic head> --eve <eve checkout at its epic head>, thengo run ./cmd/devboxverify --stack <stack.json> --phase api, thenstack-down r601(also on a failure). -
real-appon the stack, in a project on the console, in scratch folders inside that project only:- Launcher > New > the Claude terminal. Send one prompt, then
/rename History check. Close the tab. relay session history --project <id>lists the row asdormant, titled "History check", withresume: history.- Restart the stack's relay. The row is still listed with its title, and Launcher > Resume shows it.
- Resume it. The terminal opens on the same conversation, and the old row is gone.
- In the project folder, run an outside Claude in a named tmux session, send one prompt, and exit. After the next scan, a row with
record: discoveredlists it, and Resume opens it in the project. - Move that discovered transcript out of its folder (keep it, to restore). After the next scan the row reads
transcript: absentand stays: the grace period holds it. The purge itself is proven byTestHistoryPurgeAfterGrace. Move the file back; after the next scan the row readspresent. - With the loopback host's ssh refused, the host's rows stay, and no purge row appears.
- Launcher > New > the Claude terminal. Send one prompt, then
-
Post
Verified: <head sha> · repo-suite: <result> · devboxverify: <result> · real-app: <result> · log: <link or path>here.
Tasks
- Open relay's draft epic PR (
epic/596-session-historytomain, bodyCloses #601) when Session history: Claude reader, discovered records, history list #598 merges. - Lines 3 and 4, then report them on Session history from transcripts: discovered records, real titles, auto-purge #596 (joint close step a).
- Line 1 under joint close step b.
- Lines 5 to 8 under joint close steps c and d. Merges happen on the devbox, never on the Mac.
Contract
This child adds no code. Its PRs are the sync PR and relay's epic PR to main (Closes #601). merge-check judges both on the files that differ from main, so the list below is every file of relay#598, relay#599, relay#600 and relay#614, written out. Conflict resolution stays inside it.
File ownership
internal/sessions/ledger/ledger.gointernal/sessionhistory/history.gointernal/sessionhistory/claude.gointernal/sessionhistory/purge.gointernal/outsidesessions/ended.gointernal/outsidesessions/inventory.gointernal/outsidesessions/probe.gointernal/config/session_history.gointernal/config/settings.gointernal/config/clone.gointernal/audit/audit.gocmd/relay/session_history_ops.gocmd/relay/session_history_routes.gocmd/relay/session_history_verbs.gocmd/relay/frontend_server.gocmd/relay/admin_ops.gocmd/relay/cli_verbs.gocmd/relay/session_launch.gocmd/relay/outside_session_ops.gocmd/relay/router.gocmd/relay/router_sessions.gocmd/relay/server_core.gocmd/relay/session_routes.gofakerelay/internal/api/history.gofakerelay/internal/api/register.gofakerelay/internal/world/history.gofakerelay/internal/world/types.gofakerelay/internal/sessions/history.gofakerelay/internal/sessions/register.gofakerelay/internal/sessions/session.godocs/session-history.mddocs/session-host.mddocs/outside-sessions.mddocs/routes.mddocs/cli.mddocs/events.mddocs/audit-log.mddocs/FEATURES.mddocs/THREAT-MODEL.mddocs/fakerelay.mdCLAUDE.mde2e/features/g1_session_history_test.goe2e/features/g1_session_history_terminal_test.goe2e/features/g1_session_history_purge_test.gofakerelay/prooftest/history_test.gocmd/devboxverify/journey_session_history.gocmd/devboxverify/journeys.gocmd/devboxverify/README.md
Test surface
The whole repo suite and the --stack api run (every journey, not a selection), plus the real-app pass above, once on the frozen head. Nothing new is written here.
Waits:
- Merges and child state:
merge-checkexit codes andghissue and PR state. stack-up: its process exit and a validstack.json.stack-down: its process exit.- Suite and harness: their process exits.
real-app: each step waits on what the screen shows (the row, its title, the opened terminal), on a CLI's exit, or on thesession.history.scanandsession.history.purgeevent lines (relay logs --follow). Claude's replies are model output with no signal: a bounded wait, and the log says so.
Budget
0 lines of new code. Conflict resolution only inside the files above; anything else stops and asks.
Amendment 1 (2026-10-22): The ownership list adds the files the children's amendments added: cmd/relay/router.go and cmd/relay/server_core.go (relay#598, Amendment 7), cmd/relay/session_routes.go and cmd/relay/router_sessions.go (relay#599, Amendments 3 and 11), fakerelay/internal/sessions/history.go and fakerelay/internal/sessions/register.go (relay#599, Amendment 6), and fakerelay/internal/sessions/session.go (relay#614). It now matches git diff origin/main...origin/epic/596-session-history --name-only (48 files).
Activity
barelyworkingcode commentedon Oct 23, 2026
Coordinator approval: inherits the approved epic's listed batches, 2026-10-22
barelyworkingcode commentedon Oct 23, 2026
Verified: 840327b · repo-suite: ok relaye2e/features 1070.430s · devboxverify: pass=13 fail=0 blocked=0 notrun=2 (stack r601 with eve d03b539) · real-app: 7/7 PASS (step 3 restarted the stack's relay by hand, since a stack has no restart command; step 7 used a loopback host added for the pass, refused with port 1) · log: devbox:/tmp/r601-suite-840327b.log, /tmp/r601-dbv.log, /tmp/r601-realapp/