Repository navigation
Description
Component
Knowledge (documents)
Use case
A team evaluating Loom wants to see a mistake in one agent's work become a reviewed correction that a later agent can use. Separate memory, document, procedure and review examples do not show that complete path.
The reporting, curation and revision-evidence features already have issues. What remains is a reference implementation that connects them, explains the agent host's responsibilities and makes the result reproducible.
Describe the solution you'd like
Ship one runnable knowledge-factory example with a small synthetic reporting workflow, a setup guide and an acceptance suite.
This issue owns the integration code, fixtures and evidence that the workflow works across feature boundaries. The underlying APIs and product workflows remain in their existing issues.
Start with maintained definitions and a procedure using existing artifact types. Add packaged skill updates after #1143 supplies their version contract.
The scenario:
- An agent prepares a report using a maintained definition, a reporting procedure and current numbers read from a separate fixture source.
- It encounters an outdated instruction, completes what it can and submits a report with the relevant evidence.
- A curator running in an external host investigates the source and prepares a correction. Include a personal formatting request that must remain personal, alongside an authorized change intended for the team.
- An independent reviewer checks the exact proposed revision and publishes the permitted correction.
- A fresh run retrieves that revision and produces the expected result. Change the fixture's numbers between runs to show that the agent still reads current data rather than reusing values saved as knowledge.
- The result links the original problem, source evidence, correction, review, published revision and later run outcome.
Acceptance criteria:
- A documented command runs the deterministic acceptance path against a disposable, authenticated Loom deployment. A preflight reports missing API capabilities, grants and fixture inputs before the command writes. Setup and cleanup operate only on resources created by the example.
- All lifecycle transitions use the supported public APIs. No direct database edits, invented operations or mocked successful publication stand in for missing features. An unavailable dependency is reported as unavailable.
- The deterministic path uses fixed evidence and expected outputs without model calls. It checks the product contract and is labeled accordingly; it does not claim that an autonomous agent discovered or reasoned through the correction.
- Document an optional run using an actual external agent and curator. Any paid execution is explicit, with its models, configuration and available usage recorded. Messaging, scheduling, arbitrary code execution and business-system credentials belong to that host.
- Check the successful path plus an unauthorized reviewer, an edited candidate awaiting review, a repeated report or interrupted curation pass, and an unsupported personal-to-team generalization. None may result in an unreviewed team correction or duplicate publication.
- Stop the curator after it records a proposal, then retry the same pass and check that it refers to the same proposal. Edit a supporting source before applying the approved plan. Apply refuses the stale approval, and a fresh run cites the correction after it passes review against the updated evidence.
- Produce a compact result showing each stage, artifact revision and evidence reference. Keep returned knowledge, client-reported reliance and independently graded outcome separate. Missing evidence remains visible.
- Publish the fixture, expected results, exact reproduction steps and limitations. Cleanup preserves the documented erasure and audit behavior rather than promising to remove audit records that must remain.
Completion means another team can reproduce the supported lifecycle and inspect where every decision came from. A passing fixture establishes integration correctness; claims about task quality, cost savings or general usefulness require a separately reported evaluation. #1459 tracks the held-out evaluation.
Describe alternatives you've considered
The source-linked software-factory example checks implementation-note handoff and code freshness. The per-user support-agent example checks isolation, revision and erasure. Both are useful components, but neither connects a problem report to investigated, reviewed knowledge and subsequent task evidence.
The acceptance scenario in #1148 checks the curator feature. This issue supplies the reusable cross-feature example, fixtures and qualification artifacts that make the full workflow evaluable.
Where the need comes from
The need is mine, an AI tool helped shape the proposal
Additional context
Requested as a separate integration deliverable after reviewing Loom's current capabilities and open feature work. No full workflow or paid evaluation has been run.
Prerequisites for the first delivery
Start implementation once the public contracts below are available and their acceptance checks pass:
- Let agents report incorrect, outdated or missing knowledge #1147 — Let agents report incorrect, outdated or missing knowledge.
- Prepare reviewed knowledge revisions from reports and run evidence #1148 — Prepare reviewed knowledge revisions from reports and run evidence.
- Record knowledge revisions used by runs and compare their outcomes #1149 — Record knowledge revisions used by runs and compare their outcomes.
These three issues unblock the first report → investigated correction → independent review → publication → later-run evidence scenario. The first delivery uses existing definitions, procedures and manual review; it does not wait for every related feature.
Dependencies for extending the reference workflow
Add each part only after its feature is implemented and tested. Until then, identify it as outside the scenario's exercised coverage:
-
Browse, version and share team skills from a Skills library #1143 — Browse, version and share team skills from a Skills library. Required when the example updates or distributes packaged skills.
-
Assign knowledge stewards and track overdue reviews #1175 — Assign knowledge stewards and track overdue reviews. Required when the example routes work by ongoing knowledge ownership or review dates.
-
Check data-access guidance against its source schema and permissions #1176 — Check data-access guidance against its source schema and permissions. Required when source changes proactively trigger the example's correction workflow.
-
Require regression evidence before publishing selected knowledge changes #1177 — Require regression evidence before publishing selected knowledge changes. Required when the example demonstrates an enforced publication check.
-
Show how agents select knowledge for private and shared replies #1181 — Show how agents select knowledge for private and shared replies. Required when the example changes the intended audience of an agent's reply.
-
Feature: full bi-temporal memory and knowledge retrieval #25 — Current-source dispute workflow only. Required for detecting, reviewing and resolving conflicting sources in the example; full bi-temporal retrieval does not block this extension.
-
Tell agents how retrieved knowledge may be used #1230 — Consistent use guidance for retrieved knowledge. Required for checking the interpretation returned to consuming agents.
For the conflict extension, add two current sources with incompatible same-scope definitions and a separate pair whose team qualifiers legitimately differ. Check that unresolved disagreement is visible through the supported HTTP and MCP paths, with the same use guidance and authorized evidence. An ingestion retry or later edit must not silently select a winner. After an independent reviewer resolves the disagreement, a fresh run receives the resolved current revision; editing a supporting source invalidates the earlier resolution as specified by #25. Include an inaccessible alternative to check that summaries and counts do not disclose it.
The complete reference should eventually exercise these extensions, but they do not block the first delivery.
Cross-source evidence coverage
Extend the reporting fixture after the first delivery. Put the reviewed metric definition in one collection and the rule for when it applies in another. Each source should look relevant on its own. Use the audience scope from #1181 and the revision receipts from #1149.
- The fresh run retrieves and cites both required revisions. The fixture checks which part of the report each source supports.
- If either required source is unavailable, the result identifies the part that lacks evidence.
- A third collection readable by the requester but outside the reply's audience contributes no content, citation or source identity to the shared result.
Use this fixture as the cross-source baseline for #1447.
Related workflows that do not block implementation
- Configure namespace curation rules with previews and team sharing #1142 — Configure namespace curation rules with previews and team sharing. Reuse it if the example adds rule-driven sharing; explicit authorized sharing is sufficient initially.
- Triage memory proposals with the assistant and prepare batch decisions #1144 — Triage memory proposals with the assistant and prepare batch decisions. Reuse it for an assistant-led review variant; ordinary independent review is sufficient initially.
- Pending proposals do not surface the Review queue or its sidebar count #1141 — Pending proposals do not surface the Review queue or its sidebar count. Relevant to a dashboard walkthrough; the API-driven acceptance path can proceed independently.
Agent execution and scheduling come from the external host. This issue does not depend on adding either capability to Loom.
Existing examples: source-linked handoff, per-user memory.
Activity
zlareb1 commentedon Dec 4, 2026
Additions to the example whose first part is #2147, for after the first delivery: an MCP stage, two checks, a variant of the report stage and schedule lines in one guide section. None changes the first delivery or the server.
Added. Of these, the MCP stage is delivered first; it is the smallest.
loom_op:search.query(theloom_searchtool),run.begin,run.complete, the report submit of Let agents report incorrect, outdated or missing knowledge #1147 and the read of Report reliance as returned, reported, reported and served, or not recorded #1760, the last two once each is delivered. The submit repeats the first run's report (same reporter, target and problem text), and the stage checks that no second report is filed. The token holds the role the submit needs on the team namespace (writerin Agents report wrong, outdated or missing knowledge with knowledge.reports.* #1947). The result gains areachlist per transport (proposed): each operation called and whether it was answered. Until its pull request the stage is listed as not exercised.loom_searchread is filed under the session's run. No other field is compared: a memory hit ofloom_searchcarries noversion,status,source_classorsimilarity. The fixture's namespaces hold no mirrored source, since a request that runs a mirror leg writes no receipt.LOOM_ACL_WATERMARK_POLL_SECONDS), and the check waits for it, bounded. On both transports the second answer equals the answer of a reader who never held the grant: no content, citation, source identity or count from that collection, and the result names the part of the report that lacks evidence. No read receipt of the second run names an item of that collection. Over MCP each fresh run opens its own session, so its reads are filed under its own session run; over HTTP the example names the run in theX-Loom-Run-Idheader of each read. The audience example (sdk/python/examples/audience_scoped_retrieval.py) checks a revoked grant for one collection over HTTP; this check adds the two-source report, MCP and the read receipts.memory.getserved. The result prints beside it the revision the run's read receipt holds for the key, or "not recorded", never the item's latest revision. The personal formatting request files no report and writes nothing in the team namespace.knowledge.gaps.list,admin, empty unless the operator setsknowledge_gaps_enabled), and failed grades by revision once Record knowledge revisions used by runs and compare their outcomes #1149 has that read. Each line names the Loom read or queue it uses. The conflict and learnings queues (conflicts.list,learnings.list) are not served over MCP; open pull request MCP serves conflicts.list and conflicts.resolve, and an agent settles its own namespace #1576 covers the conflict queue.Later, each after its dependency.
memory.promotechecks theadminrole, not that its caller is a person or differs from the author.failwithrun.gradeand is listed with the revision from its read receipt. A second report on that revision is linked to the resolved report as a related report (Let agents report incorrect, outdated or missing knowledge #1147), each keeping its own evidence and reporter. The example leaves the resolved report's state as it is.Surfaces. The example's command and its result, and the guide page. No operation, SDK call, CLI command or dashboard page is added, because the additions are stages of the example and lines in a section of its guide.
Why. An agent that connects over MCP only must reach the operations its part of the loop uses, with an agent's role. This issue and #1232 place scheduling, the curator and evaluation in the host, so the guide says what the host calls for each.
Acceptance test. The checks above as written, and:
reachand fails the stage.Not in it. A second scenario or fixture, a model call in the deterministic path, a change to the first delivery gate.
Roadmap: #1232.