Repository navigation
Read a saved fact beside a selected document passage - #955
Merged
Merged
Conversation
Keep provenance fields and section text available to authorized Python callers while leaving support unevaluated. Keep claim and passage bodies out of CLI output. Signed-off-by: zlareb1 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
Point lookup can return an authorized namesake from another agent. Reject missing or mismatched returned identities and anonymous selections before pairing records. 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
Changelog entry
Add a read-only Python walkthrough for inspecting a saved fact beside a caller-selected document passage.
Why
An agent's saved source pointer does not establish that a document supports its claim. Readers need an example that exposes the returned fact, provenance and original passage while keeping that judgment explicit.
Scope and risk
The example reads an existing fact with
memory.getand a named document section withknowledge.outline. Both are in the selected namespace. It rejects anonymous agent selections and refuses a fact with missing or mismatched returned agent, user or session before reading the document. It preserves the returned fields for an authorized Python caller and marks the relationship as caller-selected and support as unevaluated. It does not resolve source pointers, infer support or promise a revision-pinned snapshot.CLI output contains presence and field names only. It prints no fact, passage, source locator, provenance value, credential or server error body. Automatic runs, startup briefs, retries and rate-limit pacing are disabled. No application data is written, and the example makes no search, embedding or model call.
Compatibility, rollout and rollback
knowledge.outlineoperation. Current and released-tag source contracts were checked; an installed release wheel and live deployment were not exercised.Tests
AI assistance in the code
AI-generated: Codex wrote the example and tests and checked the existing SDK contracts.
I can explain every line of this diff and how it interacts with the rest of Loom.
Checklist