Tell agents how retrieved knowledge may be used

Abierto
#1,230 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@krishnadobhal ya está trabajando en esto.

Desde el 26/11/2026.

  • #1510 de @krishnadobhal — abierto

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
15/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
python
Área
api, backend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.
Lenguaje dominante
Python
Estrellas
263
Forks
47
Merge medio
14 h 21 min
PR fusionados (30 d)
873

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ClickHouse/loom

Todos los issues de ClickHouse/loom

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.