feat: follow Memory provenance to Raw evidence - #27
Closed
faj-design5260 wants to merge 1 commit into
Closed
faj-design5260 wants to merge 1 commit into
faj-design5260 wants to merge 1 commit into
Conversation
faj-design5260
marked this pull request as ready for review
September 9, 2026 16:44
Collaborator
Author
|
Superseded by #28. This is a branch-name migration only; the new branch points to the same commit and contains no code changes. |
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.
When a recalled Memory omits a detail, callers can now discover its saved provenance with
mem --json read <name>and read just the bound evidence withmem --json trace <name> --pointer 'sessions/<session>#<start>-<end>'. The selector must be a cited reference or a subrange of one. Normal Recall/Read do not expand Raw or search RawIndex.Trace retains
name/messagesand adds source groups, original session/index/role/time, per-message references, and Memory validity metadata. It supports existing archived provenance excerpts without inventing message numbers, reports missing or inconsistent evidence explicitly, and rejects path traversal and symlink redirection. Text trace now prints the actual messages. Trace reads truth files without initializing SQLite, logging access, or changing Memory, Raw, indexes, or watermarks. Read text output and the PythonStore.trace()list return type remain compatible.The generated skill explains when to stop at Memory, how to follow bound evidence, and why historical Raw instructions must remain data. Write's existing best-effort evidence-date check remains unchanged. No schema, lifecycle, Recall, RawIndex, or harness redesign.
Validation:
34d12a2f8678d5561aba27bd8ff73c5ae4b6a258; isolated branch, existing experimental work preserved.Existing boundaries and limits: