Let agents report incorrect, outdated or missing knowledge

Abierto
#1,147 1 comentario 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

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

Línea de trabajo

Read docs/architecture/knowledge-gaps.md and docs/features/runs.md first to see how the existing gap and outcome contracts model scope, consent and evidence. Then trace the server-side memory claim and document passage records plus the knowledge.gaps.list/knowledge.gaps.draft handlers to find where a report record and its state machine would attach. This is a design-heavy, cross-cutting feature (HTTP, CLI, SDKs, MCP, dashboard), so expect a written proposal before any code; done means the acceptance criteria are agreed and a persistence and authorization plan exists.

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

Descripción

enhancement help wanted up-for-grabs
Component

Knowledge (documents)

Use case

An agent retrieves deployment instructions, discovers that the documented configuration field has been renamed, and finishes its task using the current reference. It needs to report the bad instruction so the next agent does not repeat the investigation.

A search miss does not capture this case: retrieval succeeded, but the answer was wrong. A negative run outcome is also too broad to say which passage needs correction. Loom needs a report that can be investigated and resolved without treating the reporter's proposed correction as established knowledge.

Describe the solution you'd like

Add a supported workflow for reporting missing, incorrect or outdated knowledge. Start with memory claims and document passages; allow a missing-knowledge report without an existing target.

A report returns a stable ID and records the problem, optional suggested correction, reporter, relevant run, and evidence references. When a target exists, bind the report to its identity and revision or content hash. Keep the report separate from ordinary recall and from the affected claim's truth or review state.

Acceptance criteria:

  • Agents and people can submit a report, retrieve it and follow its disposition. Retries with the same request key do not create another report. Related reports can be linked without merging away their evidence or attribution.
  • Authorized maintainers can filter the queue, take responsibility, request evidence and record a resolution. Dismissal needs a reason. A resolution that claims a correction links the actual published revision; a recommendation or approved draft alone is not a completed fix.
  • Reports can link existing knowledge gaps, reflections and graded runs. Search-gap detection retains its existing consent, scope and privacy rules; submitting a report does not turn on query logging.
  • The server checks access to referenced content on submission and every read. Source text and corrections cannot be disclosed through a report's title, counts or a less restricted destination. Reports and copied evidence participate in user, namespace and source erasure.
  • Reporting a problem neither changes the target nor gives the reporter permission to correct it. A changed or deleted target is shown explicitly when someone reviews the report.
  • Provide the same workflow through HTTP, CLI, both supported SDKs, appropriate MCP tools and a discoverable dashboard queue. Keep authorization and state transitions on the server.

Reuse an existing record or review mechanism where it satisfies this contract. This is a knowledge-maintenance inbox, not a replacement project tracker or a new incident-management product.

Describe alternatives you've considered

knowledge.gaps.list groups eligible search misses, and knowledge.gaps.draft drafts definitions. Neither describes a successful retrieval that an agent later disproves. memory.outcome and run grades supply outcome evidence but do not provide a correction report with an owner and resolution. Writing a free-text memory would put an unreviewed complaint into the same retrieval pool as accepted knowledge.

Where the need comes from

The need is mine, an AI tool helped shape the proposal

Additional context

Feature proposal based on source and API review at 985c92cf988cfa9668cdcaa6aa5bcb219647563f. The example is an acceptance scenario, not a reproduced runtime failure.

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.