Open
Conversation
ff69c1e to
cfac4be
Compare
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.
Summary
session_search()is the canonical recall API and injected XML is only a bounded hint surface.Design
Authority Model
opencode db/ SQLite is the exact chronological source of truth for user turns, assistant turns, and tool calls.Canonical Recall Path
session_search()becomes the default memory read API.queryplus optionalwhen, searches normalized exact/history, notes, and summaries, and returns exact-style results before summaries.when.type: "entry" | "note" | "summary",ref,snippet,score,created_at, and optional metadata.Injection Contract
<memory version="2">wrapper.<persistent_memory>is nested inside<memory>instead of being a separate top-level block.session_search().<session_memory>expectations were updated in tests to the normalized<memory>envelope.Durable Session Notes
last_read_aton successfulsession_notes_read(id)calls.session_searchnote hits exposecreated_atandupdated_at, but notlast_read_at.Dream Summary Layer
Graphiti Role
session_search().Retention Model
Implementation Notes
session_searchschemas and runtime wiring for normalizedref/refsresponses and optionalwhen.<memory version="2">wrapper.Test Plan
deno test -Adeno task checkdeno task lintdeno task fmt --checkLatest full-suite verification before commit:
66 passed (692 steps), 0 failed.