Repository navigation
Conversation
Signed-off-by: zlareb1 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…ing-state Signed-off-by: zlareb1 <[email protected]>
…rows Signed-off-by: zlareb1 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
zlareb1
marked this pull request as ready for review
November 18, 2026 21:17
Signed-off-by: zlareb1 <[email protected]>
…ntity Signed-off-by: zlareb1 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
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.
Changelog category (leave one):
Changelog entry
Memory search excludes conversation chunks whose known parent is rejected, superseded, proposed or otherwise outside the read's served states. Explicit inclusion flags and historical reads use the same status and time rules as facts.
Why
The chunk leg checked parent state only for hard tags or historical reads. An ordinary search could therefore return a retired fact's text through its conversation chunk.
Scope and risk
Candidate selection, final reads and neighbour windows share a parent-state predicate over canonical memory heads. The match includes agent, user, session and key within the org and namespace; a different writer or session cannot hide a passage. Session-only evidence remains eligible. Anonymous user and session spellings match the same parent identity. Blank-session ingests retain their independent generated session ids. Projections without a matching canonical parent remain session evidence; this change does not infer or repair those parent identities. Point-write chunks retain their existing current-value check in the pool.
The parent-state check adds a scoped metadata subquery to each chunk statement. It changes eligibility, without changing ranking weights. Populated integration cases cover live neighbours, rejected and retired parents, inclusion flags, historical reads, hard tags and identity collisions.
Compatibility, rollout and rollback
Tests
AI assistance in the code (leave one; writing this description with AI is fine):
AI-generated: Codex wrote the implementation and tests. Independent review and full CI qualify the submitted head.
I can explain every line of this diff and how it interacts with the rest of Loom.
Checklist
make format-check,make lint,make typecheckandmake test-unitpass; the integration suite passes if server behaviour changed.