Tell agents how retrieved knowledge may be used

Aperta
#1,230 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@krishnadobhal ci sta già lavorando.

Dal 26/11/2026.

  • #1510 di @krishnadobhal — aperta

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
15/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
api, backend

Direzione di ricerca

Read server/memory/domain/trust.py first to see how origin, verification, lifecycle and freshness are already modelled, then server/memory/api/models_search.py and server/memory/app/for_file.py to see how those facts reach responses. Trace the other read paths named (unified search, context assembly, file/code lessons) and the HTTP, MCP, SDK and dashboard surfaces before designing anything. Done means a documented, model-free projection of existing metadata that is identical across every read path, with unknown states explicit and no policy silently tightened; treat #745, #25 and #1149 as prior context.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement help wanted up-for-grabs
Component

Memory and search

Use case

An agent retrieves an authored instruction, an unreviewed learning and an instruction whose reviewed content has since changed. All three can be relevant to its question, but relevance alone does not tell it which guidance it can follow or which claims need checking.

Loom already records provenance, verification, lifecycle and freshness information. Give clients one documented interpretation of those facts so each integration does not invent its own trust rules.

Describe the solution you'd like

Return consistent, machine-readable use guidance alongside retrieved knowledge. Derive it from existing metadata and explicit policy. Preserve the underlying facts rather than replacing them with one unexplained score.

Acceptance criteria:

  • Keep origin, lifecycle, review evidence, source or code freshness, and unresolved disputes separately inspectable. A source-authored claim is not automatically factually correct; process verification is not human review.
  • Explain the permitted next step and its reasons. Examples include following applicable approved guidance under the caller's policy, validating an unconfirmed lead, clarifying a dispute, or rechecking a stale source. Missing evidence is unknown.
  • When the current-source dispute contract in #25 is available, attach the applicable qualifiers and authorized competing evidence to a disputed hit even if only one claim ranks in the result window. Label incomplete evidence when the response budget or source availability limits coverage. Apply access checks to the evidence and its counts.
  • Bind review evidence to the content it covers. Editing reviewed content changes the guidance until the applicable review requirement is met again. Popularity, similarity, pinning and client-reported use must not substitute for review.
  • Project the same interpretation through memory search, unified search, context assembly and file or code lessons where those paths return maintained knowledge. Carry the relevant fields through HTTP, MCP, both SDKs and the dashboard. Clients may present them differently but must not independently reinterpret the evidence.
  • Preserve existing review and publication policies. The first delivery adds a shared read contract; it does not silently require human review for every existing memory or replace procedure lifecycle rules.
  • Respect ordinary retrieval exclusions for rejected or withdrawn content. Diagnostic access remains explicit and authorized. A report alleging an error starts investigation; it does not by itself establish that a claim is false.
  • Apply source authorization before returning reasons or evidence. Cached guidance must reflect content changes, revoked access and erasure. If current evidence cannot be checked, disclose that limit rather than presenting a stronger state.
  • Compute the projection without a model call on each read. Document its rules, unknown states and how hosts should use them when answering. Loom can return and filter by these facts; external hosts remain responsible for their agents' behavior.

Acceptance should cover authored but unreviewed content, process verification, content-bound human review, an edited reviewed item, an unresolved dispute and a fresh unchanged item. The same authorized revision must carry the same interpretation across the supported read paths.

Describe alternatives you've considered

Returning separate flags leaves each integration to decide whether verified, source_class, lifecycle and freshness mean the same thing. A single confidence score hides those distinctions. Existing badges remain useful, but need a common server contract beneath them.

Where the need comes from

An AI tool suggested this feature

Additional context

Feature proposal from source review at 583b59b36366b4a0d5e59b44eea752a656f41f21. No client failure or live evaluation was reproduced.

  • Content-bound verification states.
  • Search response metadata and file-specific retrieval.
  • #745 tracks independent review policy; merged #1103 supplies independent human proposal acceptance. This request builds on those controls.
  • #25 tracks competing claims and scoped resolution, including the current-source dispute workflow. This issue defines how that state affects the guidance returned to agents.
  • #1149 records revision-specific usage and outcomes. #1181 covers audience selection; use guidance does not replace audience authorization.
Lingua principale
Python
Stelle
263
Fork
47
Merge medio
14h 21m
PR unite (30g)
873

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ClickHouse/loom

Tutte le issue di ClickHouse/loom

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.