Repository navigation
fix: ToolObservationMemory retriever preserves metadata and rejects false positives - #100
Merged
RecursiveIntell merged 1 commit intoNov 26, 2026
Conversation
…alse positives - find_similar_tool_observations now re-reads each candidate by fact_id, requires source="llm-tool-runtime" + kind="tool_observation_v1", and reconstructs record metadata from the canonical fact. - Returns typed error for recognized records with missing/malformed metadata. - Skips stale index candidates (concurrent delete), non-fact sources, wrong-scope, other-source, and wrong-kind candidates. - Documents that search truncates before metadata filtering; may return fewer than `limit` observations. - Adds test `ordinary_facts_in_the_same_scope_are_not_tool_observations` proving non-observation facts (even with same source) are excluded. - All 69 llm-tool-runtime tests pass; knowledge-runtime + bitemporal-runtime + claim-ledger full suites pass.
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
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.
Corrects the merged Lane B retriever:
find_similar_tool_observationsnow re-reads each candidate byfact_id,requires
source="llm-tool-runtime"+kind="tool_observation_v1", andreconstructs record metadata from the canonical fact.
wrong-scope, other-source, and wrong-kind candidates.
fewer than
limitobservations.ordinary_facts_in_the_same_scope_are_not_tool_observationsproving non-observation facts (even with same source) are excluded.
All 69
llm-tool-runtimetests pass;knowledge-runtime+bitemporal-runtime+claim-ledgerfull suites pass locally. CI will verify. No new dependencies; no cycle introduced (cargo tree -p semantic-memory --depth 3 | grep -c llm-tool-runtime= 0).Follow-up to merged commit
cc660a7e(PR #98).