Skip to content
GitHub (opens in a new tab)

DoneCheck

After an agent says it is finished: each agreed "done when" check, with its proof.

stableOrganismcontracts/donecheck.json

Preview

DoneCheck

Was it really done? Each agreed check, with proof. Not RunDetail. Not ChangeReview.

Master

Mark or re-check rows. When every check is met, Accept result takes over.

Update the EU price list for spring

Checked 14:02

3 of 5 met
  1. Not met

    2. Totals per category match the supplier sheet

    Agent says: Garden furniture is €412 under the supplier total. Three SKUs use last year's freight surcharge.

    compare_totals.py
    category          sheet      ours       diff
    garden-furniture  48,210.00  47,798.00  -412.00
    lighting          12,904.50  12,904.50     0.00
  2. Unverified

    3. No price drops more than 20% without a note

    Two drops over 20% have notes; the agent could not open the notes for one of them.

  3. Met

    1. Every SKU in the EU list has a 2027 price

    1,284 of 1,284 SKUs priced.

    Price sheet diff (run 482)
  4. Met

    4. Catalogue export tests pass

    npm test -- export
    ✓ 48 passed (2.1s)
  5. Met

    5. Prices show in the shopper's currency

    set by you

    No evidence attached.

Unverified checks do not count as met.
3 of 5 met. 3 of 5 checks met.

Usage

DoneCheck takes the "done when" checks from a TaskBrief, or any plain list, and shows whether each one was met, with proof. Unverified never counts as met. A person can overrule the agent on any row.

Do's

  • an agent reports a task done and the result must be checked against agreed criteria
  • each check needs proof a person can open: a note, a link or test output
  • a person may overrule the agent's verdict on a check

Don'ts

  • what a run did, step by step, with metrics — RunDetail
  • reviewing the files or records an agent changed — ChangeReview
  • onboarding steps a person ticks off — SetupGuide
<DoneCheck
  title="Update the EU price list for spring"
  checkedAt="Checked 14:02"
  criteria={[
    { id: "skus", text: "Every SKU in the EU list has a 2027 price", status: "met", evidence: { href: "/runs/482/sheet", hrefLabel: "Price sheet diff" } },
    { id: "totals", text: "Totals per category match the supplier sheet", status: "not_met", reason: "Garden furniture is €412 under…", evidence: { output: "…", outputLabel: "compare_totals.py" } },
    { id: "drops", text: "No price drops more than 20% without a note", status: "unverified" },
  ]}
  onOverride={override}
  onRecheck={recheck}
  onAccept={accept}
  onSendBack={sendBack}
/>

After an agent says it is finished: each agreed "done when" check marked met, not met, unverified or checking, with its proof. Unverified never counts as met. Accept when all are met, else send back.

When to use

  • an agent reports a task done and the result must be checked against agreed criteria
  • each check needs proof a person can open: a note, a link or test output
  • a person may overrule the agent's verdict on a check

When not to use

  • what a run did, step by step, with metrics — RunDetail
  • reviewing the files or records an agent changed — ChangeReview
  • onboarding steps a person ticks off — SetupGuide

What an agent reads

import { DoneCheck } from "agentic-ds-kit";
must
  • the Card is aria-labelledby the task title
  • checks are an ordered list; each status is a word beside its icon, never colour alone
  • evidence notes and links show inline; long output is a kit Collapsible named "<output label> for check <n>"
  • the row menu trigger is named "More actions for check <n>"
  • the met-over-total bar has an accessible name ("2 of 5 checks met")
  • verdict changes are announced in a polite live region; checking sets aria-busy
  • motion is opacity and transform, plus a stroke draw when a check turns met or not met live (a first load stays still), off under prefers-reduced-motion
defaults
Nothing extra in the contract.
stops if
  • Do not invent a local Checklist, CriteriaCard or AcceptanceList
  • Do not count unverified as met
  • Accept result is the one solid primary only when every check is met
  • Do not use raw hex
  • DoneCheck has no loading or error prop: while its data loads or fails, render kit Skeleton, LoadError or Empty in its place

From contracts/donecheck.json: must is the a11y requirements, defaults the prop defaults, stops if the doNot rules where the agent asks instead of inventing a cousin.

Props

NameTypeRequiredDefaultNotes
titlestringYes—The task, e.g. "Update the EU price list".
criteriaarrayYes—{ id, text, status: "met" | "not_met" | "unverified" | "checking", evidence?: { note?, href?, hrefLabel?, output?, outputLabel? }, reason?, setBy?: "agent" | "person" }[]. Not met sorts first and shows the agent's reason. Empty renders a kit Empty.
onOverridefunctionNo—(id, "met" | "not_met") => void. Mark met / Mark not met sit in the row's More actions menu, so each row has one visible action; set setBy "person" to show "set by you".
onRecheckfunctionNo—(id) => void. Row Re-check, ghost.
onAcceptfunctionNo—Accept result, the one solid primary, shown only when every check is met.
onSendBackfunctionNo—Send back to agent: the one solid primary until every check is met, then outline beside Accept.
checkedAtstringNo—Card description, e.g. "Checked 14:02".
  • Block
    →

    Run detail

    One agent run on one screen: clock, cost, pending approval and every step, all following the step you pick.

  • Block
    →

    Change review

    Review an agent's change file by file, then accept or reject each file, or the rest at once.

  • Component
    →

    SetupGuide

    A first-run checklist with overall progress, each task's status as an icon and a word (Done, Current, To do, Blocked, Skipped) and at most one action per task.

  • Component
    →

    Card

    Framed tile with optional header, body, and footer actions.