Skip to content

Read a saved fact beside a selected document passage - #955

Merged
zlareb1 merged 3 commits into
mainfrom
examples/fact-document-evidence
Nov 19, 2026
Merged

zlareb1 merged 3 commits into
mainfrom
examples/fact-document-evidence

Conversation

@zlareb1

@zlareb1 zlareb1 commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

Changelog category

  • Documentation

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.get and a named document section with knowledge.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

  • Wire: existing SDK and operation interfaces; no fields, operations or defaults change.
  • Operator steps: supply existing records and a credential allowed to read them. The deployment must serve the experimental knowledge.outline operation. Current and released-tag source contracts were checked; an installed release wheel and live deployment were not exercised.
  • Rollback: remove the example and its documentation links; no data cleanup is needed.

Tests

  • Ruff check and format, syntax parsing, Prettier 3.9.9, prose and whitespace checks pass for the changed sources.
  • Sixteen offline HTTP-double cases cover the exact two-read contract, caller-selected pairing, missing facts/documents/sections/optional fields, invalid selection, missing or mismatched returned identities, anonymous agent refusal and CLI error-body suppression. The six GitHub CI unit shards pass on this head; no local execution of these cases is claimed.
  • This example was not run against a live deployment or with an installed release wheel. No paid provider/model evaluation or broad local suite ran. Full repository checks must pass in GitHub CI before merge.

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

  • Full format, lint, typecheck and unit checks pass in GitHub CI.
  • Existing API and identity contracts are preserved.
  • No application writes, migration, generated API or frontend change.
  • Public text passes prose checks.
  • Commits are signed off.

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]>
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]>
@zlareb1
zlareb1 merged commit 01a6e55 into main Nov 19, 2026
49 checks passed
@zlareb1 zlareb1 mentioned this pull request Nov 19, 2026
6 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant