docs(MEMORY-001): ADR-014 cross-agent session-memory bridge + spec scaffold#187
Merged
Merged
Conversation
…affold ADR-014 ratifies the cross-agent session-memory design: append-only session store (00_meta/sessions/) using the /handoff schema; trigger via native session-end hook where reliable (Claude SessionEnd confirmed) with manual /handoff fallback; bridge script scripts/session-handoff.sh. Scaffolds the MEMORY-001 spec (design only; implementation is a tracked follow-up). Builds on HANDOFF-001 + ADR-013.
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.
What
Ships ADR-014 (cross-agent session-memory bridge) — the ratified design for MEMORY-001 — plus the MEMORY-001 spec scaffold. This PR is design-only; the implementation (the bridge script + hook + tests) is a tracked follow-up.
The decision (ADR-014)
HANDOFF-001made the handoff a cross-agent/handoffskill, but it only overwritesMEMORY.md(latest-only) and fires manually. ADR-014 closes the gap with a three-part bridge:vault/00_meta/sessions/<date>-<project>-<agent>.md(the/handoffschema) — durable history, complementingMEMORY.md's latest snapshot./handoffotherwise. Claude'sSessionEndhook is confirmed (fires once at session end, stdin JSON withsession_id+transcript_path) → an automatic capture is viable. OpenCode/agy/Copilot session-end surfaces are unconfirmed → manual fallback, validated downstream.scripts/session-handoff.shparses the payload, gates on non-trivial, writes the record. Fixture-testable (no vault in CI).Options rejected: manual-only (wastes the confirmed
SessionEnd), daemon/watcher (complexity, no clean boundary).Verification
docs/adr/format (Context / Drivers / Options / Decision / Consequences / References); user-ratified.specs/MEMORY-001-cross-agent-session-bridge/scaffolded (proposal + tasks plan), gated on the existingMEMORY-001-mirrorbacklog entry.Follow-up (the implementation, per the spec tasks)
session-handoff.sh+ the ClaudeSessionEndhook + bats fixture tests (Linux/Claude core first); then per-agent hooks (OpenCode/agy/Copilot, some Windows-empirical).