verifying: it is the only way to done.Diagram as text
proposed, thenassigned,in_progress,submittedandverifying(the gates are running).- Every required gate passed: the task is
done. - A required gate failed and attempts remain: back to
in_progress, with the failure as feedback. - No attempts left:
needs_human. - A task can also be
blocked(a budget hard stop or a policy denial) orcancelled(a human rejected it, or the run was stopped).
A run has one goal. The Chief of Staff agent turns the goal into tasks and assigns each one to an agent below it in the organization. A task has a title, instructions, an assignee, a number of allowed attempts and a definition of done.
A task moves through these states:
| State | Meaning |
|---|---|
proposed |
Created, not yet assigned |
assigned |
A policy allowed it, the agent is eligible and budget is reserved |
in_progress |
The worker is doing the work |
submitted |
The worker returned an output |
verifying |
The gates are running |
done |
Every required gate passed |
needs_human |
A decision or an approval is needed |
blocked |
A budget hard stop or a policy denial |
cancelled |
A human rejected it, or the run was stopped |
The rule that matters: a task becomes done only through passed required gates. No code path
marks a task done without recorded gate results. The whole run is drawn in How it works.
The definition of done
Section titled “The definition of done”A definition of done is a list of criteria (plain statements) and gates that check them. At least one gate must be required. The gate kinds are:
| Kind | What it does |
|---|---|
rule |
A deterministic check on the output (contains, does not contain, matches, length, path checks) |
schema |
The output must match a schema |
test_command |
Run the project’s tests in a sandbox |
verifier |
An independent verifier agent judges the output |
human |
A person approves |
custom |
A gate written with the SDK |
Order, evidence and attempts
Section titled “Order, evidence and attempts”- Cheap gates first. Deterministic gates run before verifier agents, which are slower and cost money. If a cheap required gate fails, the verifier is not paid for.
- Evidence. A gate result names which criteria it checked and the verdict for each (
metornot_met). “Looks good” without evidence fails. - Attempts. If a required gate fails and attempts remain, the task goes back to
in_progresswith the failure as feedback. With no attempts left it goes toneeds_human. - Everything is recorded. Each gate result is a ledger entry with a hash of the full result and
who checked it (
gate:rule,gate:test_command,agent:<verifier>orhuman:<id>).
Related pages
Section titled “Related pages”- How it works: a verified run from start to end.
- Independent verifiers.
- Autonomy policies.
- Audit a task.
Was this page helpful?