PromptReports

Plan: An acceptance check the building agent cannot see

Partly builtopenspec/changes/wf-held-out-acceptance

Written for an AI agent to fetch and follow: it says what to connect, which steps to build with which product, what a person must approve, and how to check the result. Steps that depend on a part that is not built say so, and tell the agent to record the gap instead of guessing.

URL pattern: /use-cases/<id>/openspec.md, all plans at /use-cases/index.json. Checkboxes on this page are for reading only.

openspec/changes/wf-held-out-acceptance/proposal.md

Why

A team that thins human review needs checks stronger than the review was. A check the building agent can read is a check it can pass without doing the work. The team gets a signed verdict that the work passed checks its builder never saw, and the signature can be checked offline.

What Changes

  • Turn on the held-out-acceptance use case for a team. The agent does it inside its own session through the product's MCP tools; there is no workflow run.
  • ContextFile: A reviewer saves a set of scenarios for a repo or a document, each a user story with what counts as satisfied. Each save is a new version with a digest (held_out_save) (today: Built).
  • ContextFile: A reviewer reads a set on a token with no write scope. A token that can write is refused, and each refusal and each read is recorded (held_out_get) (today: Built).
  • ContextFile: The judge scores a document or an https page against the set and signs a verdict: each scenario's pass or fail, the share satisfied, the org's floor and whether the verdict meets it (acceptance_run) (today: Built).
  • ContextFile: Read a verdict again by its digest, and check its signature offline (acceptance_get) (today: Built).
  • PromptCompute: A rule requires a verdict at or above the floor before a merge, a deploy or a publication. Under the floor, the action goes to a person with the failed scenarios on the card (today: Planned).
  • AI Source of Truth: File the verdict by its digest, so someone outside can check that the work passed checks its builder never saw (today: Planned).
  • Count no workflow request: it is not a workflow run.

Impact

  • Products: ContextFile, PromptCompute, AI Source of Truth.
  • Outside the family: The https page to judge, such as a build's preview.
  • State: Partly built. Merged in ContextFile (#427 and #430) and off: it will work for an org only after ContextFile's operator lists that org in HELD_OUT_ACCEPTANCE. The floor is 0.90 unless the operator sets another for the org. Only a reviewer, on a token with no write scope, gets each result's judge score and evidence. Any other caller, the builder included, gets pass or fail and the share, and may run one set 10 times per agent in 24 hours unless the operator sets another limit. Still to build: the PromptCompute rule that holds an action under the floor for a person, and the verdict record in AI Source of Truth. A verdict is evidence, not a guarantee.
  • Plan row: none yet (Proposed).
openspec/changes/wf-held-out-acceptance/tasks.md

1. Connect and authorize

  • 1.1 Confirm the org has a connection for each of: ContextFile, PromptCompute, AI Source of Truth. Stop and tell the user which is missing.
  • 1.2 Get a PromptReports ID agent token for each product the run calls (RFC 8693 exchange). Where a product does not accept ID tokens yet, use its connect key.
  • 1.3 Confirm ContextFile's operator has listed the org in HELD_OUT_ACCEPTANCE; it is off for every org by default.

2. Build the steps

  • 2.1 ContextFile: A reviewer saves a set of scenarios for a repo or a document, each a user story with what counts as satisfied. Each save is a new version with a digest (held_out_save).
  • 2.2 ContextFile: A reviewer reads a set on a token with no write scope. A token that can write is refused, and each refusal and each read is recorded (held_out_get).
  • 2.3 ContextFile: The judge scores a document or an https page against the set and signs a verdict: each scenario's pass or fail, the share satisfied, the org's floor and whether the verdict meets it (acceptance_run).
  • 2.4 ContextFile: Read a verdict again by its digest, and check its signature offline (acceptance_get).
  • 2.5 PromptCompute: A rule requires a verdict at or above the floor before a merge, a deploy or a publication. Under the floor, the action goes to a person with the failed scenarios on the card. Blocked: this part is Planned; until it ships, record the step's evidence as missing and continue.
  • 2.6 AI Source of Truth: File the verdict by its digest, so someone outside can check that the work passed checks its builder never saw. Blocked: this part is Planned; until it ships, record the step's evidence as missing and continue.

3. Verify

  • 3.1 Do it once in a real session with the user's inputs: Scenario set = the set's name; Subject = an https page such as a build's preview, or a document's text.
  • 3.2 Measure the outcomes: Requests for a scenario set from a token that can write, each refused and recorded; Builds and documents with a signed verdict before they merge or publish.
openspec/changes/wf-held-out-acceptance/specs/workflow-held-out-acceptance/spec.md

ADDED Requirements

Requirement: The builder cannot read the scenarios

A token that can write to a subject SHALL be refused that subject's held-out scenario set, and each refusal SHALL be recorded.

Scenario: The builder cannot read the scenarios

  • WHEN an agent with write access to a repo requests that repo's held-out set
  • THEN the request is refused, and the refusal is recorded

Requirement: A signed verdict per acceptance run

An acceptance run SHALL return each scenario's result and the share satisfied, signed with the scenario set's digest and the subject's digest.

Scenario: A signed verdict per acceptance run

  • WHEN a build passes eight of ten scenarios
  • THEN the verdict's share reads 0.80, and it says which two scenarios failed

Requirement: Critical classes ignore the verdict

An action in one of the six critical classes SHALL wait for a person whatever the verdict.

Scenario: Critical classes ignore the verdict

  • WHEN a deploy to production carries a verdict of 1.00
  • THEN it still waits for a person

Requirement: Evidence stays honest

Each step SHALL report what it saw as measured, inferred or missing, and SHALL never report missing as measured.

Scenario: A product part is not built

  • WHEN a step depends on a part that is Planned or Proposed
  • THEN the step records missing, names the part, and the approval card shows the gap

Requirement: Nothing is counted

The use case SHALL count no workflow request, because it is not a workflow run.

Scenario: An agent uses it ten times in one session

  • WHEN the agent calls the tools ten times
  • THEN the org's usage does not change