Skip to content

docs(MEMORY-001): ADR-014 cross-agent session-memory bridge + spec scaffold#187

Merged
mlorentedev merged 1 commit into
mainfrom
docs/adr-014-session-memory-bridge
May 31, 2026
Merged

docs(MEMORY-001): ADR-014 cross-agent session-memory bridge + spec scaffold#187
mlorentedev merged 1 commit into
mainfrom
docs/adr-014-session-memory-bridge

Conversation

@mlorentedev
Copy link
Copy Markdown
Owner

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-001 made the handoff a cross-agent /handoff skill, but it only overwrites MEMORY.md (latest-only) and fires manually. ADR-014 closes the gap with a three-part bridge:

  1. Append-only session store vault/00_meta/sessions/<date>-<project>-<agent>.md (the /handoff schema) — durable history, complementing MEMORY.md's latest snapshot.
  2. Trigger = native session-end hook where reliable, manual /handoff otherwise. Claude's SessionEnd hook is confirmed (fires once at session end, stdin JSON with session_id + transcript_path) → an automatic capture is viable. OpenCode/agy/Copilot session-end surfaces are unconfirmed → manual fallback, validated downstream.
  3. Bridge scripts/session-handoff.sh parses 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

  • ADR-014 follows the repo docs/adr/ format (Context / Drivers / Options / Decision / Consequences / References); user-ratified.
  • Spec specs/MEMORY-001-cross-agent-session-bridge/ scaffolded (proposal + tasks plan), gated on the existing MEMORY-001-mirror backlog entry.

Follow-up (the implementation, per the spec tasks)

session-handoff.sh + the Claude SessionEnd hook + bats fixture tests (Linux/Claude core first); then per-agent hooks (OpenCode/agy/Copilot, some Windows-empirical).

…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.
@mlorentedev mlorentedev merged commit 170539a into main May 31, 2026
6 checks passed
@mlorentedev mlorentedev deleted the docs/adr-014-session-memory-bridge branch May 31, 2026 03:17
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