PromptReports

Plan: A promise to a customer, from recorded to told

Partly builtopenspec/changes/wf-promise-to-delivery

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-promise-to-delivery/proposal.md

Why

A promise recorded in CommitOps starts nothing. A person links it to work by hand, and a coding session does not know which promise its work keeps. The promise, the work and the notice stay on one run record. No code starts and no customer is told without a person.

What Changes

  • Add the promise-to-delivery workflow to the PromptReports workflow library, run by the workflow runner as an agent acting for a person.
  • CommitOps: Read the promise, and go on only for an open promise of ours that a person kept (get_assertion) (today: Built).
  • CommitOps: Ask whether the date can be kept from the work in flight; the run goes on whatever the answer and writes it on the task (can_we_promise) (today: Built).
  • RepoOps: Open one task that names the promise and waits unassigned, so no agent session starts until a person assigns it (open_task) (today: Planned).
  • CommitOps: Read the delivery evidence every two days, for at most 90 days, until the work shipped (get_delivery_evidence) (today: Built).
  • PromptCompute: A person approves CommitOps drafting the customer notice (tell_accounts) (today: Built).
  • CommitOps: CommitOps asks a person again before the notice goes out, and marks the promise told only after it is sent (today: Built).
  • CommitOps: Read once a day, for at most 14 days, whether the customer was told (shipped_not_told) (today: Built).
  • PromptReports: Record where the promise stands: whether it shipped, and whether it still waits to be told (today: Built).
  • Gate commitops.accounts.tell, commitops.customer.notify through PromptCompute approvals; each gated step runs only after verifyResume passes, with final_args.
  • Write a signed record at the end of each run and count one workflow request.

Impact

  • Products: CommitOps, RepoOps, PromptCompute, PromptReports.
  • Outside the family: None beyond the family.
  • State: Partly built. The promise-to-delivery 0.1.0 manifest is merged (promptcompute.ai #943) and off. It cannot run today: the runner will register it only once the promise family is switched on and RepoOps has the tool that opens a task, and RepoOps does not have that tool yet. The customer notice takes two approvals, one for the draft in the run and one CommitOps asks for before it sends. A run makes at most 64 calls, under the step cap of 100, and changes no date.
  • Plan row: none yet (Proposed).
openspec/changes/wf-promise-to-delivery/tasks.md

1. Connect and authorize

  • 1.1 Confirm the org has a connection for each of: CommitOps, RepoOps, PromptCompute, PromptReports. 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 Register policy for commitops.accounts.tell, commitops.customer.notify with require_approval as the default.

2. Build the steps

  • 2.1 CommitOps: Read the promise, and go on only for an open promise of ours that a person kept (get_assertion).
  • 2.2 CommitOps: Ask whether the date can be kept from the work in flight; the run goes on whatever the answer and writes it on the task (can_we_promise).
  • 2.3 RepoOps: Open one task that names the promise and waits unassigned, so no agent session starts until a person assigns it (open_task). Blocked: this part is Planned; until it ships, record the step's evidence as missing and continue.
  • 2.4 CommitOps: Read the delivery evidence every two days, for at most 90 days, until the work shipped (get_delivery_evidence).
  • 2.5 PromptCompute: A person approves CommitOps drafting the customer notice (tell_accounts).
  • 2.6 CommitOps: CommitOps asks a person again before the notice goes out, and marks the promise told only after it is sent.
  • 2.7 CommitOps: Read once a day, for at most 14 days, whether the customer was told (shipped_not_told).
  • 2.8 PromptReports: Record where the promise stands: whether it shipped, and whether it still waits to be told.

3. Verify and record

  • 3.1 Run a dry run with the user's inputs: Promise id = prm_00000000-0000-4000-8000-000000000000; Promise ref = C-142; Due at = 2026-12-15.
  • 3.2 Run it once for real; approve each gate as the user.
  • 3.3 Measure the outcomes: Promises that opened one task; Promises that read told after an approved notice.
  • 3.4 Confirm the run left a signed record with a task id and one workflow request counted.
openspec/changes/wf-promise-to-delivery/specs/workflow-promise-to-delivery/spec.md

ADDED Requirements

Requirement: A promise opens its work once

A promise a person kept in CommitOps SHALL open one RepoOps task that names the promise, and a repeated event SHALL NOT open a second task.

Scenario: A promise opens its work once

  • WHEN commitops.promise.recorded arrives twice for one promise
  • THEN one task exists and the second delivery is recorded as a duplicate

Requirement: No code starts without a person

The workflow SHALL wait for a person to assign the task before any agent session starts from it.

Scenario: No code starts without a person

  • WHEN the workflow opens a task for a new promise
  • THEN the task waits unassigned, and no session starts until a person assigns it

Requirement: A person approves what the customer is told

The customer notice SHALL wait for a person's approval, and the promise SHALL read told only after the approved notice is sent.

Scenario: A person approves what the customer is told

  • WHEN the approver declines the notice
  • THEN nothing is sent, and the promise reads shipped and not told

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: One run is one workflow request

The runner SHALL count one workflow request at the run's first connector action, and SHALL NOT count retries, resumes, dry runs or a run a filter stops first.

Scenario: A gated step resumes after two days

  • WHEN a person approves a step and the run resumes
  • THEN the org's usage does not change