feat(MEMORY-001): wire Claude SessionEnd hook -> session-handoff (cross-OS, AC3/AC4)#191
Merged
Merged
Conversation
…ss-OS, AC3/AC4)
settings.json gains a hooks.SessionEnd entry (__SESSION_END_COMMAND__ placeholder); setup-{linux,windows} substitute it to the deployed session-handoff.{sh,ps1} path and merge .hooks.SessionEnd (template wins), mirroring the SessionStart wiring. Adds scripts/session-handoff.ps1 (ASCII-only functional Windows mirror) + its deploy. claude-settings-template.bats asserts the placeholder + both setups' merge. This is what makes the MEMORY-001 bridge actually fire at session end. Windows runtime validation remains empirical.
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.
Completes MEMORY-001: wires the Claude
SessionEndhook to thesession-handoffbridge so it actually fires at session end (ADR-014).What
ai/claude/settings.json: newhooks.SessionEndwith__SESSION_END_COMMAND__placeholder.setup-linux.sh+setup-windows.ps1: substitute the placeholder to the deployedsession-handoff.{sh,ps1}path and merge.hooks.SessionEnd(template wins) — mirrors the existing SessionStart wiring.scripts/session-handoff.ps1: ASCII-only functional Windows mirror of the bash bridge, deployed by setup-windows.claude-settings-template.bats: asserts the placeholder + both setups merge SessionEnd.Verification
bats tests/claude-settings-template.bats+tests/session-handoff.batsgreen; settings.json valid;setup-linux.shshellcheck clean (no new warnings);.ps1ASCII-only.SessionEndcommand resolves to the script path.Completes AC3/AC4 of
specs/MEMORY-001-cross-agent-session-bridge/.