Skip to content

Ship a runnable knowledge-factory workflow and acceptance suite #1185

Open

Description

@zlareb1

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:

  1. An agent prepares a report using a maintained definition, a reporting procedure and current numbers read from a separate fixture source.
  2. It encounters an outdated instruction, completes what it can and submits a report with the relevant evidence.
  3. 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.
  4. An independent reviewer checks the exact proposed revision and publishes the permitted correction.
  5. 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.
  6. 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:

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:

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

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

  1. added
    enhancement
    on Nov 22, 2026
  2. self-assigned this
    on Nov 22, 2026
  3. added
    help wanted
    up-for-grabs
    on Nov 25, 2026
  4. zlareb1 commented on Dec 4, 2026

    @zlareb1
    MemberAuthor

    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.

    • MCP stage. The fresh run is repeated over MCP with the same token. The scripted agent calls by operation name through loom_op: search.query (the loom_search tool), 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 (writer in Agents report wrong, outdated or missing knowledge with knowledge.reports.* #1947). The result gains a reach list per transport (proposed): each operation called and whether it was answered. Until its pull request the stage is listed as not exercised.
    • One revision on both transports. Both runs are served one revision of the reviewed definition: the read of Report reliance as returned, reported, reported and served, or not recorded #1760 lists the same revision of it for both runs, from their read receipts (Record the version and content hash of each item a read returns #1759, in A read's answer records the revision of each item it carried #2137; a governed definition's receipt names the namespace's shared copy that was served). A run whose record holds no revision for it prints "not recorded", and the check is listed as not made. No operation serves the receipts, so the check waits for Report reliance as returned, reported, reported and served, or not recorded #1760. The run each read is filed under may differ and is printed: over MCP a loom_search read is filed under the session's run. No other field is compared: a memory hit of loom_search carries no version, status, source_class or similarity. The fixture's namespaces hold no mirrored source, since a request that runs a mirror leg writes no receipt.
    • Revoked access. In the cross-source fixture the reader's grant on one required collection is removed between two fresh runs. The second run starts once the revoke is enforced: within about one ACL poll (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 the X-Loom-Run-Id header 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.
    • A variant of the report stage. The problem text comes from a scripted person's turn that says a served definition is wrong. The scripted agent submits the report with the definition's key and the version memory.get served. 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.
    • Guide section "What the agent host runs". The guide in The knowledge factory example runs correction, review, publication and fresh retrieval on one command #2147 has the section: in this example the host runs the schedule, the sweep that finds work, the curator, the evaluator and its grades, and the display of what an answer used, and the section lists what each calls. The addition is a schedule line per sweep: the report list of Let agents report incorrect, outdated or missing knowledge #1147, unanswered questions (knowledge.gaps.list, admin, empty unless the operator sets knowledge_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.

    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:

    • Each operation of the MCP stage is answered by name with the fresh run's token. An operation the role cannot reach is named in reach and fails the stage.
    • After the MCP stage the fixture holds one report for the first run's problem.
    • Each schedule line of the guide section names a documented operation, or the issue that adds it.

    Not in it. A second scenario or fixture, a model call in the deterministic path, a change to the first delivery gate.

    Roadmap: #1232.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementhelp wantedup-for-grabs

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions