Skip to content

Require regression evidence before publishing selected knowledge changes #1177

Open

Description

@zlareb1

Component

Knowledge (documents)

Use case

A correction to a shared revenue definition fixes one agent's report but changes how another report treats refunds. The correction has a citation and a reviewer, yet nobody checks the other cases that depend on the definition before publishing it.

Teams need repeatable checks for important knowledge changes, alongside source review and later outcome measurement.

Describe the solution you'd like

Let maintainers attach a small regression suite to selected knowledge and require passing evidence before publishing a new revision.

Start with maintained memory claims and documents. A suite records representative questions or tasks, expected behavior and cases where the agent should decline to answer. An existing external evaluation runner executes it; Loom stores the suite, results and publication decision.

Acceptance criteria:

  • A maintainer can version a suite and associate it with selected knowledge. Each case has a clear expectation or rubric. The suite and its expected answers have their own access controls.
  • Evaluation evidence identifies the exact candidate content, suite revision, runner and relevant model/configuration. Results include per-case failures and unavailable checks. Evidence for different content or an older suite cannot satisfy the current requirement.
  • Where an owner enables a publication requirement, failed, missing or outdated evidence leaves the candidate unpublished. Apply the requirement across the supported publication paths for that artifact so another write route cannot silently skip it. Disabling the requirement is an explicit, audited policy change.
  • Passing checks never grants approval. Existing permissions, independent human review, pins, locks and conflict rules still apply.
  • Reviewers can compare the candidate with the published revision on the same cases, inspect regressions and see what the suite does not cover. A passing suite is not displayed as proof of general correctness.
  • The first delivery accepts results from an authorized external runner. It does not start paid evaluations, replay production actions or require a new execution service. Drafting and ordinary recall incur no evaluation calls.
  • Applying a reviewed candidate rechecks its content, suite and policy revisions. Concurrent changes require fresh evidence. The dashboard, API and SDKs show the same decision and retain authorized audit history.

The first acceptance scenario should contain a candidate that fixes one case and breaks another. Publication remains blocked until both pass on the same candidate revision and the required reviewer approves it.

Describe alternatives you've considered

Human review can judge sources and intent but is difficult to repeat consistently across every affected case.

Procedure revision gates already compare graded runs and costs. Reuse their evidence conventions where appropriate; a procedure graph and a document revision need different checks.

Measuring later outcomes is still necessary. It cannot prevent a known regression from being published.

Where the need comes from

An AI tool suggested this feature

Additional context

Feature proposal based on source and issue review. No evaluation was run and no publication failure was reproduced.

Activity

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

    @zlareb1
    MemberAuthor

    Three rules for the case record this issue builds and one for its use in #1459, all proposed. They add no operation of their own.

    1. A case can store an origin (proposed name): the namespace and run_id of each run it was drafted from and, after Agents report wrong, outdated or missing knowledge with knowledge.reports.* #1947 merges, the id of the report (Let agents report incorrect, outdated or missing knowledge #1147). An id is served only to a caller who can read what it names: a run when run.get would return it to that caller, a report when its own read would. An id the caller cannot read is left out, and the answer does not say that one was. After a run is erased its id is no longer served and the case still loads. The server copies no text of a run into a case, such as its goal, user_request or final_response. What the drafter writes is the case's own content: the suite's access controls decide who reads it, and an erasure that reaches the case deletes it.
    2. A caller with writer on the suite's namespace can add a draft case without being a maintainer of the suite, and cannot publish a suite revision. A draft is in no published suite revision, and adding one gives no read of the suite's cases. Who maintains a suite stays with this issue's access controls.
    3. A case keeps one id in every suite revision that holds it, and a result names its case by that id.
    4. A case that stores an origin is never one of Measure knowledge-factory outcomes on held-out tasks #1459's held-out cases; where that evaluation uses it, it is a development case. That selection is made outside the server, by a caller who can read the origin. Its check: no held-out case in the frozen list stores an origin.

    First delivery. Rules 1 to 3 ship in the pull request that adds the case record, and nothing ships before it. The second half of rule 3 ships with the result record. Rule 4 applies when #1459 freezes its cases.

    Surfaces. origin is a field of the case record on the operations, SDK calls and dashboard this issue delivers, and through loom call, which calls any operation. The dashboard's case view names the runs and the report for a caller who can read them.

    Acceptance test.

    • A caller who reads the suite and has no role on the run's namespace loads the case with no run id.
    • After a user erasure deletes the run, an admin of the run's namespace loads the case with no run id.
    • A writer token of a caller who is not a maintainer of the suite adds a draft case. Its publish of the suite revision is refused, and no published suite revision holds the draft.
    • A case held by two suite revisions has one id, and a result under each names it.

    The agent host keeps: drafting the case, running it and grading it.

    Not in it: a server operation that drafts a case with a model, a runner or replay in Loom, reopening a report when a case fails.

    Roadmap: #1232.

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

Metadata

Metadata

Assignees

No one assigned

    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