Skip to content

Let agents report incorrect, outdated or missing knowledge #1147

Todo

Description

@zlareb1

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.

Activity

  1. added
    enhancement
    help wanted
    up-for-grabs
    on Nov 22, 2026
  2. VanshajPoonia commented on Dec 1, 2026

    @VanshajPoonia
    Contributor

    I'd like to take this one, as step 1A of #1232.

    • A report records the problem (missing, incorrect or outdated), an optional suggested correction, the reporter from the token, the relevant run and evidence references. A report about a memory claim binds its key and version, and one about a document passage binds the document and its revision or content hash. A missing-knowledge report has no target.
    • Submit goes through the existing idempotency cache, so a retry with the same key returns the same report id. Related reports link to each other and keep their own evidence and reporter.
    • The server checks read access to the target on submit and on every read. Titles, counts and lists never carry source text or the correction.
    • Maintainers filter the queue, take a report, request evidence, resolve it or dismiss it with a reason. A resolution that claims a correction links the published revision. A changed or deleted target shows as such. A report never edits its target.
    • Reports can link knowledge gaps, reflections and graded runs. Submitting a report turns on no query logging.

    I'd check first whether the memory proposal review path can hold this before adding a table. The ops would go in the op registry so HTTP, CLI, MCP and both SDKs follow. I'd open the server, API and SDK part first, with retry, refused access and changed target cases as tests. The dashboard queue would follow in a second PR.

  3. zlareb1 commented on Dec 6, 2026

    @zlareb1
    MemberAuthor

    A follow-up to #1947, which added the report operations. It takes over nothing here: the report queue page stays with this issue, where it is planned. It can be its own issue, as #1766 is, or part of this issue if the assignee prefers. Ops, fields and roles under knowledge.reports.* are named as #1947 merged them.

    Proposed.

    • The dashboard gets one dialog, "Report a problem…", on a memory and a document passage. The person picks incorrect or outdated and writes the problem. The dialog calls knowledge.reports.submit with the revision on screen. For a memory it sends the version_text of memory.get as target_version, which takes a decimal string, because a JavaScript number rounds a memory version. For a document passage it also sends the doc_id knowledge.get returns as target_doc_id, which a document report requires; a knowledge.search passage carries the revision but no doc_id.
    • knowledge.reports.list takes group_by: ["target"] (proposed), a list as on cost.summary. The answer then holds targets (proposed) and an empty reports. A row of targets is one target revision: target_kind, target_key, target_version and target_version_text as a list row holds them, then the counts reports, reporters and runs, and last_reported_at (all proposed). Reports on two copies of a document at one address fold apart (proposed): a report is bound to the copy it was read in, and each copy counts its revisions from 1. A report with no target is left out of the fold: only a missing report can have none, and kinds: ["missing"] without group_by lists those. A namespace admin reads the fold, as the list.
    • The agent guidance and the loom-memory skill of both plugins say when an agent files a report: a person says that a shared item the agent was served is wrong. For a memory the agent reads the item with memory.get and sends its version_text and content_sha256 as target_version and target_sha256; a loom_search memory hit carries no version. For a document passage the agent sends the hit's source_uri and revision as target_key and target_version, and reads the document with knowledge.get for the doc_id it sends as target_doc_id: a document report requires it, and a loom_search document hit carries the source_uri and revision but no doc_id. The agent adds run_id when its run is filed in the namespace that holds the item, and still saves the person's own fact with loom_memory_set. A personal preference files no report.

    Later: the list of what a run read (run.reliance, "What this run read" on a run in the dashboard, #1760) gets the same control. Which revision it sends is open, because a read receipt of a search hit (#2137) holds the version of the search document or of the shared copy, and a report compares the memory row's version; a document receipt holds no doc_id.

    Surfaces. The fold over HTTP and MCP by name, the generated call in the SDKs, loom call knowledge.reports.list group_by:='["target"]', the dialog in the dashboard, and the guidance in docs/features/integrations/agent-instructions.md and in the loom-memory skill of both plugins.

    Why. On a memory the dashboard has "This misled", which records an outcome (memory.outcome), and "Mark as wrong…", which marks the row rejected (memory.reject). Neither files the problem with the revision for a maintainer, and a document passage has no such control. When agents file reports too, one wrong item yields many reports, and a maintainer needs one row per item.

    Acceptance test.

    • A report sent from a memory reads back from knowledge.reports.get with the memory's key, a target_version_text equal to the version_text memory.get served, and target_changed false; after the memory's content changes it reads target_changed true. One sent from a passage carries the doc_id knowledge.get returned as target_doc_id, and reads back with the document's source_uri as target_key and its revision as target_version.
    • A caller without writer on the item's namespace sees the control disabled, with the reason.
    • Three reports by two reporters under two runs on one revision, and one report on a later revision, fold to two rows with counts 3, 2, 2 and 1, 1, 1 (a reporter's second report on an item has its own problem text, at any revision: the same reporter, kind, item and text returns the first report). A report with no target adds no row.
    • A report about a document the admin may not know of adds no fold row and no count; its list row carries no address or revision.
    • The fold returns the same rows over HTTP, MCP by name, loom call and the SDKs.
    • Sending the dialog calls knowledge.reports.submit only: the memory's status and its harm_count (memory.search with include_usage) are unchanged.
    • The Ship a runnable knowledge-factory workflow and acceptance suite #1185 example checks the agent path with a scripted correction, as proposed there. How often a real agent files is measured apart, on labeled conversations; no bar is set here.

    Limits. knowledge.reports.submit needs writer on the namespace that holds the item, so an agent that only reads a team namespace cannot file. A token narrowed below the namespace cannot call knowledge.reports.*. A run filed in another namespace cannot be cited as run_id. A document report without target_doc_id is refused, so an agent that holds only a search hit calls knowledge.get before it files. A first filing is refused (409) when the document found now is not that doc_id, or holds another revision or hash than the report names: every write of a document's text gets a new doc_id. The agent then reads the document again with knowledge.get. Whether a host files for an agent that only reads is this issue's decision.

    The agent host keeps: its agent's prompt, and with it whether the guidance is followed.

    Not in it. A detector, a stored group of reports, a threshold that turns a fold row into work, a correction draft (#1148), any automatic state change, a queue page.

    Roadmap: #1232.

  4. zlareb1 commented on Dec 6, 2026

    @zlareb1
    MemberAuthor

    The report operations are on main (#1947). What is left of this issue is the dashboard's report queue page, a resolution bound to a published revision, and guidance that tells an agent the operation exists.

    This replaces my note above that the queue page stays with the assignee: I am taking the rest over to finish it for #1232 and have assigned the issue to myself.

    @VanshajPoonia, if you have started the queue page, push the branch or link it here and I will build on it with your commits kept. Reviews of the pull requests are welcome.

  5. removed
    help wanted
    up-for-grabs
    on Dec 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions