Skip to content

Prepare reviewed knowledge revisions from reports and run evidence #1148

Todo

Description

@zlareb1

Component

Knowledge (documents)

Use case

A team has repeated knowledge gaps, reports of outdated instructions, and run reflections that point to the same underlying mistake. Someone still has to investigate the sources, decide which maintained knowledge needs changing, and prepare a reviewable correction.

Loom already produces reflections and definition drafts. The missing workflow is a bounded curation pass that joins the relevant evidence and prepares a concrete revision, with a visible link back to the problem it is meant to resolve.

Describe the solution you'd like

Support a curator running in an existing agent runtime. Loom supplies authorized inputs, a durable record of the pass and a reviewed change plan. The first delivery should work when invoked on demand or by an external scheduler; it does not require another general-purpose agent runtime inside Loom.

Start with one report or knowledge gap and a small selected set of related reflections or runs. The curator inspects authorized source revisions and returns either an evidence request, a reason no change is warranted, or a proposed correction to maintained knowledge or a procedure.

Acceptance criteria:

  • Each pass records its input IDs, execution identity, target scope, evidence revisions, limits and result. Resume and retry do not publish duplicate changes. Interrupted work remains visible and can be cancelled.
  • Record each stage's outcome and reason, the input revisions it inspected, output references and measured cost. Distinguish no correction needed, unavailable evidence, exhausted budget and a proposal awaiting review. Checkpoint the completed inputs so a retry can resume and a later pass can see edits made after the stage read its inputs.
  • Evidence comes through ordinary authorized Loom operations or an explicitly configured connector under its own credentials. A source available in a chat client is not assumed to be available to a server worker. Missing access or an unavailable source leaves an explicit gap in the result.
  • A change plan shows the existing and proposed content, source citations, conflicting evidence, intended readers and affected artifact revisions. A run failure or model-generated reflection is a hypothesis to investigate, not independent proof that a fact is wrong.
  • A correction expressed by a person in a selected interaction can support a draft. A one-off instruction is not automatically generalized into a team rule. Keep evidence references and provenance through the draft and publication.
  • Reuse existing definition, learning, memory-proposal and procedure-revision paths where they fit. Apply their actual permissions and review contracts. A curator cannot accept a memory proposal that requires an independent human, or bypass that restriction by rewriting or copying it.
  • Recheck source access, target revision and applicable policy at apply time. A stale plan needs another review. A report is resolved only when the corresponding correction is published; partial application is reported per item.
  • Model-backed investigation is opt-in with bounded work and spend. It adds no model call to ordinary writes or recall. Relevant run evidence is optional; collecting every prompt or replacing an observability system is outside scope.
  • Expose pass status, evidence, plans and permitted review actions through HTTP, CLI, both supported SDKs, appropriate MCP tools and the dashboard. Keep the workflow usable on ClickHouse-only installations.

The first acceptance scenario should show an outdated instruction being reported, investigated against an authorized source, corrected through its required review path, and retrieved as the corrected revision by a later agent.

Describe alternatives you've considered

reflection_distill produces lessons from contrasting sessions, but leaves them as reflections outside ordinary recall. knowledge.gaps.draft prepares definition candidates. procedure.evolve uses recorded runs to refine an existing procedure. These are useful inputs and apply paths, not an investigation workflow across reported problems and their sources.

Where the need comes from

The need is mine, an AI tool helped shape the proposal

Additional context

Feature proposal based on source review at 985c92cf988cfa9668cdcaa6aa5bcb219647563f. No curator was run and no live knowledge was changed.

Depends on #1147 for explicit problem reports; an existing knowledge gap can supply the first input independently.

Activity

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

    @VanshajPoonia
    Contributor

    I'd like to take this one, as step 2 of #1232. It builds on the report contract in #1947 for #1147, and an existing knowledge gap can be the first input before that merges.

    • A pass is its own record. It holds the input ids (one report or gap and a few selected reflections or runs), the curator's identity, the target scope, the revisions it read, its limits and its result. A retry resumes from the last finished stage and never proposes the same change twice. An interrupted pass stays visible and can be cancelled.
    • Each stage records its outcome and reason, the revisions it read, what it produced and its measured cost. A pass ends in an evidence request, no change needed with a reason, unavailable evidence, an exhausted budget or a proposal awaiting review.
    • The curator runs in the caller's own agent runtime. Loom serves its inputs through ordinary authorized reads, so missing access shows up as a gap in the result.
    • A change plan shows the current and proposed content, the citations, conflicting evidence, the intended readers and the affected revisions. A reflection or a failed run counts as a hypothesis and not as proof.
    • A plan is applied through the paths that exist today: a memory proposal, a definition draft from knowledge.gaps.draft or a procedure revision. Each keeps its own permissions, which means a curator cannot accept a proposal that needs an independent reviewer. Apply rechecks access, the target revision and policy. A stale plan goes back to review, and a report is resolved only once its correction is published.
    • Ordinary writes and recall make no new model call. Model-backed investigation stays opt-in and bounded.

    I'd open it in parts. The first PR would hold the pass record, the stage outcomes and the change plan, with the ops in the registry so HTTP, CLI, MCP and the SDKs follow. Applying a plan and resolving its report would come second, then the dashboard view. The citation check proposed in #1762 fits the plan's citations, and I'd leave it to that issue.

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