Repository navigation
Description
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.
- Existing knowledge-gap contract
- Run evidence and grades
- Related: Triage memory proposals with the assistant and prepare batch decisions #1144 covers reviewing memory proposals. A report can exist before anyone has drafted a replacement claim.
Activity
VanshajPoonia commentedon Dec 1, 2026
I'd like to take this one, as step 1A of #1232.
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.
zlareb1 commentedon Dec 6, 2026
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.
incorrectoroutdatedand writes the problem. The dialog callsknowledge.reports.submitwith the revision on screen. For a memory it sends theversion_textofmemory.getastarget_version, which takes a decimal string, because a JavaScript number rounds a memory version. For a document passage it also sends thedoc_idknowledge.getreturns astarget_doc_id, which a document report requires; aknowledge.searchpassage carries therevisionbut nodoc_id.knowledge.reports.listtakesgroup_by: ["target"](proposed), a list as oncost.summary. The answer then holdstargets(proposed) and an emptyreports. A row oftargetsis one target revision:target_kind,target_key,target_versionandtarget_version_textas a list row holds them, then the countsreports,reportersandruns, andlast_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 amissingreport can have none, andkinds: ["missing"]withoutgroup_bylists those. A namespace admin reads the fold, as the list.loom-memoryskill 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 withmemory.getand sends itsversion_textandcontent_sha256astarget_versionandtarget_sha256; aloom_searchmemory hit carries noversion. For a document passage the agent sends the hit'ssource_uriandrevisionastarget_keyandtarget_version, and reads the document withknowledge.getfor thedoc_idit sends astarget_doc_id: a document report requires it, and aloom_searchdocument hit carries thesource_uriandrevisionbut nodoc_id. The agent addsrun_idwhen its run is filed in the namespace that holds the item, and still saves the person's own fact withloom_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 nodoc_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 indocs/features/integrations/agent-instructions.mdand in theloom-memoryskill 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.
knowledge.reports.getwith the memory's key, atarget_version_textequal to theversion_textmemory.getserved, andtarget_changedfalse; after the memory's content changes it readstarget_changedtrue. One sent from a passage carries thedoc_idknowledge.getreturned astarget_doc_id, and reads back with the document'ssource_uriastarget_keyand itsrevisionastarget_version.writeron the item's namespace sees the control disabled, with the reason.loom calland the SDKs.knowledge.reports.submitonly: the memory'sstatusand itsharm_count(memory.searchwithinclude_usage) are unchanged.Limits.
knowledge.reports.submitneedswriteron the namespace that holds the item, so an agent that only reads a team namespace cannot file. A token narrowed below the namespace cannot callknowledge.reports.*. A run filed in another namespace cannot be cited asrun_id. A document report withouttarget_doc_idis refused, so an agent that holds only a search hit callsknowledge.getbefore it files. A first filing is refused (409) when the document found now is not thatdoc_id, or holds another revision or hash than the report names: every write of a document's text gets a newdoc_id. The agent then reads the document again withknowledge.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.
zlareb1 commentedon Dec 6, 2026
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.