Let agents report incorrect, outdated or missing knowledge

Aperta
#1,147 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

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

Direzione di ricerca

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.

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

Descrizione

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.

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.