---
title: "Orchestration Extensions"
description: "Standard v1.1 added optional, versioned extensions for what orchestrators need beyond a sequence of steps: starting runs on a schedule or an event, escalating when recovery runs out, waiting for..."
canonical: "https://acs.synapti.ai/guides/orchestration-extensions/"
last_updated: "2026-11-16T16:31:55Z"
---

# Orchestration Extensions

Source: [docs/guides/ORCHESTRATION_EXTENSIONS.md](https://github.com/synaptiai/agent-capability-standard/blob/main/docs/guides/ORCHESTRATION_EXTENSIONS.md), commit 18c38b74ac21.

Standard v1.1 added optional, versioned **extensions** for what
orchestrators need beyond a sequence of steps: starting runs on a schedule
or an event, escalating when recovery runs out, waiting for an event,
structured approval, delegation hints, review quorums, and checks on who
sent an item; v1.2 adds grounding. This guide shows how to use them. The
normative text is
[STANDARD-v1.2.0 §5.9–§5.17 and §5.20](https://acs.synapti.ai/spec/1.2.0/index.md#59-workflow-extensions);
the rationale is in [RFC-0003](https://acs.synapti.ai/rfcs/0003/index.md),
for sender identity [RFC-0004](https://acs.synapti.ai/rfcs/0004/index.md), and
for what 1.2 changed RFC-0006 to RFC-0008.

| Extension | What it adds | Validated today |
|-----------|--------------|-----------------|
| `triggers@1` | How runs start | Yes |
| `recovery@1` | Escalation to handler steps | Yes |
| `wait@1` | Waiting for an event | Yes |
| `approval@1` | Structured, bound approval | Yes |
| `delegation@1` | Delegation hints and sender filtering | Yes |
| `quorum@1` | Independent review quorums | Yes |
| `identity@1` | Sender identity, trust classes, "always ask" | Yes |
| `grounding@1` | A grounding policy: the executor checks host outputs (Standard v1.2) | Yes |

The reference validator checks all eight. A workflow that declares any other
extension (or another major version) is refused (V106).

## Declaring the extensions you use

```yaml
# Standard version: 1.1.0
nightly_report:
  goal: Summarise the day's deployments.
  risk: low
  workflow_extensions:
    requires: [triggers@1]
  triggers:
    - kind: schedule
      schedule: {cron: "30 23 * * MON-FRI", timezone: Europe/Lisbon}
  steps: ...
```

Extensions are **must-understand**: a workflow that uses an extension's
fields without listing it in `workflow_extensions.requires` is rejected
(V106), and so is a workflow that lists an extension the validator does not
know. That is deliberate. A consumer built for 1.0 would otherwise run the
workflow and silently ignore, for example, a wait or an approval.

```mermaid
---
title: Extensions are must-understand
---
flowchart TB
  accDescr: A workflow that uses an extension's fields without listing it in workflow_extensions.requires is rejected with V106, and so is one that lists an extension the validator does not know.
  q1{"Uses an extension's fields without listing it?"} -->|yes| v1[V106: rejected]
  q1 -->|no| q2{"Lists an extension the validator does not know?"}
  q2 -->|yes| v2[V106: rejected]
```

**Figure: Extensions are must-understand.** A workflow that uses an extension's fields without listing it in workflow_extensions.requires is rejected with V106, and so is one that lists an extension the validator does not know.

- Uses an extension's fields without listing it? → V106: rejected: yes
- Uses an extension's fields without listing it? → Lists an extension the validator does not know?: no
- Lists an extension the validator does not know? → V106: rejected: yes

## Triggers (`triggers@1`)

`triggers` lists the ways a run can start. Each trigger has a `kind`:

| Kind | Starts a run | Extra fields | Default attendance |
|------|--------------|--------------|--------------------|
| `schedule` | On a cron schedule or an interval | `schedule` | unattended |
| `event` | When a matching event arrives | `event` | unattended |
| `manual` | When a person starts it | — | attended |
| `invoke` | When another workflow invokes it | — | always the invoker's |

`attendance: attended | unattended` overrides the default, except on an
`invoke` trigger: a run another workflow invokes always has its invoker's
attendance. It matters for approval steps: an unattended run cannot wait for
a person in the session.

The host evaluates triggers, not the executor
([STANDARD v1.2 §5.10.2](https://acs.synapti.ai/spec/1.2.0/index.md#5102-evaluating-triggers)):
it starts each run with the trigger's attendance, a schedule's runs at its
fire times as `overlap` allows, and one run per event it accepts. The Python
runner does this with `WorkflowRunner.start(workflow, trigger=i, event=...)`
and the helpers of `grounded_agency.workflows.triggers` (`next_fire`,
`OverlapGate`, `EventGate`); see
[Running Workflows](https://acs.synapti.ai/guides/running-workflows/index.md#triggers).

### Schedules

```yaml
- kind: schedule
  schedule:
    cron: "*/15 9-17 * * MON-FRI"   # or: every: PT15M
    timezone: America/New_York     # IANA name; default UTC
    overlap: skip                  # skip | buffer_one | allow_all
```

- `cron` has five fields: minute, hour, day of month, month (1–12 or
  JAN–DEC), day of week (0–7 or SUN–SAT; 0 and 7 are Sunday). Use `*`,
  lists (`1,15`), ranges (`9-17`) and steps (`*/15`, `5/20`). When both day
  fields are restricted, a day matching either fires (as in Vixie cron).
- Put the time zone in `timezone`, not as a `CRON_TZ=` prefix.
- `every` is an interval instead of a cron expression; give one or the
  other.
- `overlap` says what happens when a run this trigger started is still in
  progress at the next fire time: `skip` it (the default), keep at most one
  waiting run that starts as soon as none is in progress (`buffer_one`), or
  start runs beside it (`allow_all`). A run that ended `deferred` and is
  resumed is in progress again. Fire times that passed while the host was
  stopped count, together, as one fire time when it resumes.
- Fire times are local times of `timezone`, at second 0. Where a clock
  change repeats a local time, it fires once, at the first occurrence; where
  a change skips one, it fires at that time read with the offset before the
  change (RFC 5545 §3.3.5). So `30 2 * * *` in `America/New_York` fires at
  07:30 UTC on the day clocks go forward (02:30 does not occur), and `30 1 *
  * *` fires once on the day they go back.
- `every` counts from the Unix epoch, in whole milliseconds (rounded up), not
  from when the trigger was set up: `every: 7m` fires at 00:07, 00:14, ...
  UTC from midnight of 1 January 1970, whatever the `timezone`. For a
  local-time grid, use `cron`. `next_fire(schedule, after_ms)` computes both.


```mermaid
---
title: A fire time while a run is still going
---
flowchart LR
  accDescr: When a run is still going at the next fire time, overlap skip skips the new run, buffer_one keeps at most one queued run, and allow_all starts the runs concurrently.
  fire[Next fire time, a run still going] -->|skip| s1[The new run is skipped]
  fire -->|buffer_one| s2[At most one run queued]
  fire -->|allow_all| s3[Runs start concurrently]
```

**Figure: A fire time while a run is still going.** When a run is still going at the next fire time, overlap skip skips the new run, buffer_one keeps at most one queued run, and allow_all starts the runs concurrently.

- Next fire time, a run still going → The new run is skipped: skip
- Next fire time, a run still going → At most one run queued: buffer_one
- Next fire time, a run still going → Runs start concurrently: allow_all

With `allow_all`, runs of one workflow can overlap, and `conflicts_with`
does not reach across runs (STANDARD v1.2 §4.3): it keeps conflicting steps
out of one `parallel_group`, nothing more. The validator warns (W623) when
an `allow_all` trigger is on a workflow that, with the workflows it invokes,
exercises both capabilities of a conflicting pair, such as `persist` and
`rollback` (a gate's or failure mode's `action: rollback` counts). Use
`skip` or `buffer_one`, or have your host serialise each `rollback` with the
`mutate` and `persist` steps on the state it restores. Event triggers have
no `overlap`: whether their runs overlap is your host's choice.

### Events

```yaml
triggers:
  - kind: event
    event:
      event_type: deploy.finished
      source_kind: agent         # log | api | sensor | message_bus | human | agent
      delivers_to: deploy_event
inputs:
  deploy_event:
    type: object
    ref: schemas/event_schema.yaml#/event
```

The triggering event is delivered into the workflow input named by
`delivers_to`, which must hold a canonical event (its `ref` ends in
`event_schema.yaml#/event`); anything else is V107.

A host starts one run for each event it accepts: its `event_type` equals the
trigger's, its `source.kind` the trigger's `source_kind` when there is one,
and its sender passes the host's sender policy (where the workflow declares
`identity@1`, a sender authenticated as [§5.17](#sender-identity-identity1)
says). It may drop an event its policy does not admit, and should record the
drop. At most one run starts per `event_id`: an event delivered again starts
nothing new (`EventGate` keeps the ids; give it a store that survives a
restart).

## Recovery and escalation (`recovery@1`)

Failure modes have been in the standard since 1.0. In 1.1 a failure mode
fires on something checkable: a runtime code (`on_error`) or an expression
evaluated after the step (`when`). Its `recovery` can loop back to an
earlier step and, with `recovery@1`, escalate to a **handler step** when the
loop runs out or the failure cannot be recovered.

```yaml
deploy_with_escalation:
  workflow_extensions:
    requires: [recovery@1]
  steps:
    - capability: plan
      store_as: plan_out
      input_bindings:
        goal: Deploy the release to production
        constraints: ["${_recovery.failure_evidence: array<object>}"]
    # ... constrain, checkpoint ...
    - capability: execute
      store_as: deploy_out
      input_bindings:
        code: ./scripts/deploy.sh
      failure_modes:
        - condition: The deployment command failed or timed out.
          on_error: [R401, R402]
          action: escalate
          recovery: {goto_step: page_oncall_out}
    - capability: verify
      store_as: verify_out
      input_bindings:
        conditions: [health_checks_pass, error_rate_below_slo]
      failure_modes:
        - condition: Verification failed.
          when: ${verify_out.passed} == false
          action: rollback
          recovery:
            goto_step: plan_out           # loop back (a store_as)
            inject_context:
              failure_evidence: ${verify_out.violations}
            max_loops: 2
            on_exhausted: {goto_step: page_oncall_out}
    - capability: invoke
      store_as: page_oncall_out
      handler: true                     # runs only when escalated to
      workflow_id: page_oncall
```

- **Firing.** `on_error` takes one code or a list of the codes a step can
  fail with (R401 timeout, R402 failure, R403 gate, R406 lost liveness,
  F501 checkpoint, F502
  approval, F504 quorum or constraint). Expression errors (R405) never fail
  a step: they are fail-safe where they occur. `when` is an
  expression that can read the step's own output. A structured recovery
  with neither never fires (W609).
- **Loops.** `goto_step` names the `store_as` of the current step or an
  earlier one. `max_loops` is at most 1000. Naming a capability still works when exactly one step uses
  it, but is deprecated (W603). `max_loops` defaults to 1.
- **Injected context.** Values in `inject_context` are readable as
  `${_recovery.<key>}` from the loop target onward. They are absent before
  the first loop and untyped, so guard them (`${_recovery.x} != null`) and
  annotate them where a type matters.
- **Escalation.** `action: escalate` runs a handler once and ends the run,
  so it takes no `max_loops`, `on_exhausted` or `inject_context`; the
  handler binds what it needs from the failed step's output.
- **Handlers.** A handler is an `invoke` step with `handler: true`. It is
  skipped in normal flow, runs only as the target of `action: escalate` or
  `on_exhausted`, and ends the run with outcome `escalated`, so its own
  failure modes cannot loop or escalate. It is checked in the scope of the
  earliest step that escalates to it, where that step's own output (and
  that of steps running alongside it in its `parallel_group`) may be
  missing; guard such references with `!= null`. A checkpoint it needs must
  run before that step. A handler nothing escalates to is W613.
- **Invocations.** An `invoke` target outside the catalog is W607; workflows
  that invoke each other are V105. A literal `input_bindings.input` must
  give the target's required inputs (S304) and nothing it does not declare
  (S303); a `${...}` reference is checked when the step runs (R402).

```mermaid
---
title: From a failure to a handler
---
flowchart TB
  accDescr: A failure mode fires on a runtime code or an expression; its recovery loops back to the goto_step up to max_loops, and when the loop runs out, or with action escalate, a handler step runs once and ends the run as escalated.
  fail["Failure mode fires: on_error code or when expression"] --> loop["Recovery loops back to goto_step, inject_context readable as _recovery"]
  loop -->|"up to max_loops"| fail
  loop -->|"loops run out: on_exhausted"| handler["Handler: an invoke step with handler: true, run once"]
  fail -->|"action: escalate"| handler
  handler --> ended["Run ends with outcome escalated"]
```

**Figure: From a failure to a handler.** A failure mode fires on a runtime code or an expression; its recovery loops back to the goto_step up to max_loops, and when the loop runs out, or with action escalate, a handler step runs once and ends the run as escalated.

- Failure mode fires: on_error code or when expression → Recovery loops back to goto_step, inject_context readable as _recovery
- Recovery loops back to goto_step, inject_context readable as _recovery → Failure mode fires: on_error code or when expression: up to max_loops
- Recovery loops back to goto_step, inject_context readable as _recovery → Handler: an invoke step with handler: true, run once: loops run out: on_exhausted
- Failure mode fires: on_error code or when expression → Handler: an invoke step with handler: true, run once: action: escalate
- Handler: an invoke step with handler: true, run once → Run ends with outcome escalated

## Waiting for an event (`wait@1`)

A `receive` step with `wait` pauses the run until a matching event arrives
or the step's `timeout` lapses (R401), or its source stops answering
(R406, with `liveness`); the event arrives in the step's
output (`data`). A `synchronize` step can wait too, when its `agents` input
is a literal list of at least two agents, and so can a `delegate` step: it
delegates, then waits for that delegate's result (see
[Review quorums](#review-quorums-quorum1)).

```yaml
- capability: receive
  purpose: Wait for the change window to open.
  store_as: window_out
  timeout: 2h                        # required, and must be a duration
  wait:
    event_type: change.window_opened # required
    source_kind: api                 # optional: log | api | sensor | message_bus | human | agent
    correlate:                       # each value must be a ${...} reference
      request: ${request_out.data}   # the event must carry this value
    liveness: {mode: probe, interval: 10m, failure_threshold: 3}
```

- `liveness` gives up early when the source goes quiet: after
  `failure_threshold` missed heartbeats (`push`) or failed probes (`probe`)
  one `interval` apart. That window must be shorter than the timeout, or
  it would never fire first. Lost liveness is R406, not the timeout's R401,
  so you can re-check a silent source and escalate only an expired wait:

  ```yaml
  failure_modes:
    - condition: The source stopped answering probes.
      on_error: R406
      action: request_more_context
      recovery:
        goto_step: window_out          # the wait itself: wait again
        max_loops: 1
        on_exhausted: {goto_step: page_oncall_out}
    - condition: The change window never opened.
      on_error: R401
      action: escalate
      recovery: {goto_step: page_oncall_out}
  ```

  A `retry` on the step covers R406 too, before any failure mode. Each
  re-check or retry waits a full `timeout` again. Lost liveness reported
  after the deadline is R401: the wait had already lapsed.
- A wait can last hours, and the run may resume in another process, so a
  checkpoint taken before the wait no longer covers a later `mutate`,
  `send` or other step that requires a checkpoint (W608). Take the
  checkpoint after the wait, not alongside it in a parallel group. An
  `invoke` of a workflow that waits counts as a wait.
- A `correlate` value that resolves to null, or an `accept_from` that
  resolves to anything but a non-empty list of strings (`[null]`, say, from
  a delegation that returned no `task_id`), fails the step (R402) at once:
  a null key would match every event that lacks it, and such a filter
  would drop every sender.

```mermaid
---
title: How a wait ends
---
flowchart TB
  accDescr: A waiting step goes on when a matching event arrives, fails with R401 when its timeout lapses, and fails with R406 when liveness is lost; a checkpoint taken before the wait no longer covers a later step that requires one.
  wait["receive, synchronize or delegate step with wait"] -->|matching event| data["Event in the step's output, run goes on"]
  wait -->|timeout lapses| r401[R401]
  wait -->|liveness lost| r406[R406]
  data --> cp["Take the checkpoint after the wait (W608)"]
```

**Figure: How a wait ends.** A waiting step goes on when a matching event arrives, fails with R401 when its timeout lapses, and fails with R406 when liveness is lost; a checkpoint taken before the wait no longer covers a later step that requires one.

- receive, synchronize or delegate step with wait → Event in the step's output, run goes on: matching event
- receive, synchronize or delegate step with wait → R401: timeout lapses
- receive, synchronize or delegate step with wait → R406: liveness lost
- Event in the step's output, run goes on → Take the checkpoint after the wait (W608)

To pause without an event, give the step a `delay` (`wait@1` too): it
waits that long after its condition and gates, then goes on. Sampling
twice, a minute apart:

```yaml
- capability: observe
  store_as: sample_b_out
  delay: 1m
  input_bindings: {target: queue}
```

A delay ends like a wait: checkpoints taken before it no longer count.

### Answers to an inquiry

`inquire` gives its output an `inquiry_id` and each question an `id` and an
`answer_type` (`text`, `choice`, `boolean`, `number`; STANDARD v1.2
§5.13.1). The answers come back through `receive`, keyed by question id and
typed, so a wait can correlate on the inquiry:

```yaml
- capability: inquire
  purpose: Ask the owner what to do.
  store_as: questions_out
  input_bindings: {ambiguous_input: "${request}"}
- capability: receive
  purpose: Wait for the owner's answers.
  store_as: answers_out
  timeout: 2h
  wait:
    event_type: inquiry.answered
    correlate: {inquiry_id: "${questions_out.inquiry_id}"}
```

A host never delivers an answer to a question the inquiry did not ask, of
the wrong type, or twice; `grounded_agency.coordination.inquiry.match_answers`
is that check, held to `tests/conformance/inquiry/answers.json`.

## Approval (`approval@1`)

A step that requires approval (`mutate`, `send` and `execute` do, and any
step can raise `requires_approval`) can say who approves, what they see,
and what the decision binds to:

```yaml
- capability: mutate
  # purpose, store_as ...
  input_bindings:
    target: deploy/release.yaml
    operation:
      apply: "${plan_out.steps: array<object>}"
  approval:
    approver: {kind: human, role: release-manager, min_approvers: 2}
    mode: out_of_band                # a separate channel; in_session (the default): whoever attends the run
    shows: ["${plan_out.steps}"]     # references; quote them inside [ ] and { }
    binds_to: digest
    recheck: {source: "${plan_out}", compare: digest, on_change: reask}
    expires: 24h
    when_unattended: defer_to_queue  # or skip, or fail (the default)
```

- `mode` says where the approvers are asked: `in_session` asks whoever
  attends the run, in its session (the host's permission prompt, the
  conversation); `out_of_band` asks through a separate channel (a ticket, a
  message to an approver group), whose approvers need not attend the run,
  and whose decision may arrive after the session ends. Neither changes
  what is shown or which decisions are valid, and a `human` approver is
  never asked in an unattended run, in either mode.
- With no `approval` field, a step that requires approval is asked of a
  person (`{kind: human}`), in session, shown its resolved inputs, with no
  expiry and no recheck, and fails unattended. A partial field takes the
  default of each member it leaves out; `expires` runs from the request.
- The decision is bound to the SHA-256 digest of the shown values: if they
  change before the step runs, the approval no longer applies. `recheck`
  re-reads a source just before acting and asks again (`reask`), replans or
  stops when it changed.
- What the digest covers: the shown values are an array, one element per
  `shows` reference in order (null when it resolves to nothing), or
  `[inputs]`, the step's resolved inputs, without `shows`; asked again
  after a recheck, the array gains `{"recheck": {"previous", "current"}}`.
  The digest is the SHA-256 of its RFC 8785 text, in lowercase hexadecimal.
  An integer in the shown values, a number written without a fraction or
  an exponent, may not exceed 2^53 in magnitude.


  ```mermaid
  ---
  title: What an approval is bound to
  ---
  flowchart TB
    accDescr: The decision is bound to the SHA-256 digest of the values shown; if they change before the step runs the approval no longer applies, and recheck re-reads a source just before acting and asks again, replans or stops when it changed.
    shown[Values shown to the approver] -->|SHA-256| dg[Digest]
    dg --> dec[Decision bound to the digest]
    dec --> rc{"recheck: source changed just before acting?"}
    rc -->|no| run[The step runs]
    rc -->|yes| act["reask, replan or stop"]
  ```

  **Figure: What an approval is bound to.** The decision is bound to the SHA-256 digest of the values shown; if they change before the step runs the approval no longer applies, and recheck re-reads a source just before acting and asks again, replans or stops when it changed.

  - Values shown to the approver → Digest: SHA-256
  - Digest → Decision bound to the digest
  - Decision bound to the digest → recheck: source changed just before acting?
  - recheck: source changed just before acting? → The step runs: no
  - recheck: source changed just before acting? → reask, replan or stop: yes
- A `standing_mandate` approver names its mandate in `mandate_ref`, for
  pre-approved routine actions. It needs no one present, so it is asked
  even in an unattended run; your host answers `approved`, or
  `unavailable` when no mandate covers the action.
- `approval` on a step that does not require approval is an error (S303);
  raise `requires_approval: true` if you mean it.
- If a schedule or event trigger can start the run unattended (or a
  trigger says `attendance: unattended`), say what to do when nobody is
  there to approve: without `when_unattended` or a standing mandate the
  step warns (W606) and an unattended run fails there.
- `defer_to_queue` queues the action (a `planned` record) and defers the
  step. Later steps that depend on it wait too: those that read its output
  (or a step that does), those that may act on or wait on the world (a
  checkpoint or approval requirement, a wait, an `invoke`, `delegate`,
  `synchronize` or `rollback`), and those the ontology orders after a
  deferred capability (`verify` after `mutate`, transitively). Steps that
  read, reason or record and depend on none of them run, and the run ends
  `deferred`, listing every deferral. A nightly sweep can thus finish its
  other work and leave one send for a person to approve:

  ```yaml
  - capability: send
    store_as: notify_out
    input_bindings:
      destination: ops-channel
      payload: Nightly sweep finished.
    approval:
      approver: {kind: standing_mandate, mandate_ref: mandates/nightly-notify}
      when_unattended: defer_to_queue   # if no mandate covers this send
  - capability: retrieve                # read-only, independent: runs
    store_as: status_out
    input_bindings:
      target: reports/nightly-status.json
  - capability: mutate                  # acts on the world: waits
    store_as: cleanup_out
    input_bindings:
      target: build/cache
      operation: {delete: stale_entries}
    approval:
      approver: {kind: human, role: build-owner}
      when_unattended: defer_to_queue   # queued too when the send ran
  ```

  The `mutate` needs its own `when_unattended`: when the mandate covers
  the send, nothing is deferred, and an unattended run reaches the
  `mutate` with no one to approve it. In the morning, the host resumes the
  run (`runner.resume`, attended): the queued send and `mutate` are asked
  of a person, and each `planned` record closes under its `action_id`.


  ```mermaid
  ---
  title: The nightly sweep with no mandate for the send
  ---
  flowchart TB
    accDescr: When no mandate covers the send, it is deferred to the queue; the mutate, a later step that acts on the world, waits too and is queued; the read-only retrieve depends on neither and runs; the run ends deferred, listing every deferral.
    send["send: deferred to the queue"] -->|"a later step that acts on the world waits too"| mutate["mutate: queued too"]
    retrieve["retrieve: read-only and independent, runs"] --> end1["Run ends deferred, listing every deferral"]
    mutate --> end1
  ```

  **Figure: The nightly sweep with no mandate for the send.** When no mandate covers the send, it is deferred to the queue; the mutate, a later step that acts on the world, waits too and is queued; the read-only retrieve depends on neither and runs; the run ends deferred, listing every deferral.

  - send: deferred to the queue → mutate: queued too: a later step that acts on the world waits too
  - retrieve: read-only and independent, runs → Run ends deferred, listing every deferral
  - mutate: queued too → Run ends deferred, listing every deferral
- A step that must run whether or not an earlier action was deferred,
  such as an escalation to a person, can say so with
  `after_deferral: run`. It is then deferred only if it reads a deferred
  step's output. Use it only where running ahead of the queued action is
  safe:

  ```yaml
  - capability: invoke
    store_as: escalate_out
    after_deferral: run                 # ask the owner even if the reminder waits
    input_bindings:
      workflow: owner_decision
      input: {question: "${rows_out}"}
  ```
- A run that fails or escalates after a deferral still lists its
  deferrals; a recovery loop that runs a deferred step again supersedes
  its earlier `planned` record.
- **Carrying out a queued action.** Resume the run (`runner.resume`,
  [STANDARD §5.14.1](https://acs.synapti.ai/spec/1.2.0/index.md#5141-resuming-a-deferred-run)):
  the deferred steps run again, each asked afresh (of a person when someone
  attends, even if its approver is a mandate), and its `planned` record
  becomes `executed`, `rejected` or `expired` under the same `action_id`.
  Steps that ran ahead of the deferral and that those steps read run again
  first, in step order, so a `verify` after the `mutate` reads the world
  after it; a `checkpoint` step whose id the `mutate` binds runs again too.
  A run that ended any other way cannot be resumed; a new run of the
  workflow does not touch the old run's queue.
- Decisions are recorded on the world state's action record
  (`world_state_schema.yaml` 1.2.0): status `approved`, `rejected`,
  `expired` or `planned`, with an `approval` entry holding the digest,
  the decision (`approved`, `rejected`, `expired` or `unavailable`), the
  approvers that counted and, with `identity@1`, their identities.

## Delegation hints (`delegation@1`)

`delegate` can ask for the conditions a delegate runs under, and the host
reports what it actually used as `effective`:

```yaml
- capability: delegate
  purpose: Review the change independently.
  store_as: review_a
  input_bindings:
    task:
      review: "${diff_out.data: object}"
    agent: reviewer-a
    fresh_context: true      # start without this agent's context
    model_family: claude     # run on this model family
    role: reviewer
    read_only: true          # may read, must not change anything
```

How a host keeps a delegate read-only is up to it (a read-only token, a
sandbox); `effective.read_only` says whether it did.

**Checkpoints across a delegation**
([§5.15.4](https://acs.synapti.ai/spec/1.2.0/index.md#5154-checkpoints-across-a-delegation)).
A delegate is another party: your run's checkpoints never authorise what it
changes, and before each change it needs a checkpoint of its own, valid
where that change is checked (in a safety layer that orders its calls with
yours, one taken in that shared scope that no other change has used). Your
host can attest that as `effective.checkpointed`. A rollback to your
checkpoint restores what it captured, whoever changed it (a subagent in the
same working tree included), and nothing else: a delegate's change
elsewhere is reported as `not_covered`, `delegated`. To leave no change a
rollback cannot reach, bind `read_only: true`, or undo the delegate's
changes in a step of their own.

`receive` and `synchronize` take `accept_from`, a list of principals:
items from anyone else are dropped (and counted), and each kept item
carries the host-authenticated `sender`.

```yaml
- capability: receive
  purpose: Collect the reviewers' verdicts.
  store_as: verdicts_out
  input_bindings:
    accept_from: [reviewer-a, reviewer-b]
```

A principal is an opaque string, matched exactly. Your host decides how its
identities (accounts, keys, agent sessions) map to principals, and reports
as an item's principal whoever authenticated delivering it, not a sender
named in the item. So when a peer relays the owner's answer, the principal
is the peer, and `accept_from: [owner]` drops it.

```mermaid
---
title: Who counts as the sender
---
flowchart TB
  accDescr: The principal is whoever authenticated delivering an item, so when a peer relays the owner's answer the principal is the peer, and a step with accept_from owner drops it.
  owner[Owner's answer] -->|relayed by| peer[Peer agent]
  peer -->|"delivers, principal: peer"| step["receive with accept_from: [owner]"]
  step --> dropped["Dropped and counted"]
```

**Figure: Who counts as the sender.** The principal is whoever authenticated delivering an item, so when a peer relays the owner's answer the principal is the peer, and a step with accept_from owner drops it.

- Owner's answer → Peer agent: relayed by
- Peer agent → receive with accept_from: \[owner\]: delivers, principal: peer
- receive with accept_from: \[owner\] → Dropped and counted

### Model families

A model family is the lowercase name of a provider's line of models, with no
version, size, date or variant, and families compare exactly (STANDARD v1.2
§5.15): `Acme` does not cover `acme`, and a literal outside
`[a-z][a-z0-9_-]*` is W620. A host that attests a family derives it from the
identifier of the model the delegate ran on:

1. keep the part after the identifier's last `/`;
2. of that, keep the part after the last `.` or `:` that is followed by a
   letter and comes before its first digit or `-`; if it has neither, after
   the last `.` followed by a letter (a `:` there starts a tag);
3. the family is the leading run of ASCII letters, lowercased.

| Model identifier (fictional) | Family |
|---|---|
| `acme-large-2` | `acme` |
| `us.acme.acme-large-2-20260101-v1:0` (a platform prefix) | `acme` |
| `ft:acme-mini-1:org::abc` (a fine-tune) | `acme` |
| `acme:latest`, `acme:7b` (a tag) | `acme` |
| `Zephyr/Zephyr-3.1-8B-Instruct` (an organisation path) | `zephyr` |
| `z3-mini` (a one-letter line) | `z` |
| `3d-model` | none |

The rule needs no list of model lines, so two hosts that know one model id
attest one family. `tests/conformance/families/derive.json` pins it, and
`grounded_agency.coordination.families.model_family` and the TypeScript
package's `modelFamily` implement it. A host may attest the exact model as
`effective.model_id` too; in a workflow that targets 1.2 an attested
identity's `model_id` must then match (R402). A 1.1 workflow's runs read no
`model_id`, as before.

### Declaring the agents you delegate to (1.2)

A workflow that declares `spec_version: "1.2"` may list the agents its
`delegate` steps may delegate to (§5.15.2). The 1.2 declaration is what makes
an older consumer refuse the workflow instead of ignoring the list. In a
workflow that targets 1.1, `agents` has no effect, for this executor as for
a 1.1 one, and the validator reports W616:

```yaml
# Standard version: 1.2.0
update_orders:
  goal: Have the writer update the orders table.
  risk: high
  agents: [db-writer]
  steps:
  - capability: checkpoint
    purpose: Save the state the writer may change.
    store_as: cp
    input_bindings: {scope: orders}
  - capability: delegate
    purpose: Update the table.
    store_as: write_out
    input_bindings:
      agent: db-writer
      task: {table: orders}
```

The host describes each agent with an agent manifest
(`schemas/agent_manifest_schema.yaml`), which the validator and the executor
are given beside the catalog:

```yaml
agent: db-writer
standard: "1.2"
ontology: "2.2"
capabilities: [retrieve, checkpoint, mutate]
task:
  table: {type: string, required: true}
```

What declaring `agents` changes:

- a literal `agent` the list leaves out is V107; a computed one is refused
  at run time (R402);
- the step takes its target's maxima: an agent that may `mutate` needs a
  checkpoint before the delegation (F501) and an approval, and a declaration
  weaker than the manifest is W602. An `approval` block is allowed on any
  of the workflow's delegate steps;
- without the target's manifest, the executor does not delegate (R402), and
  the validator warns (W621);
- a literal task is checked against the manifest's `task` (S303 for an
  undeclared name, S304 for a missing required input), and any task is
  checked again before delegating (R402).

In a 1.2 workflow without `agents`, a delegation that may act on the world
unchecked is W621 (bind `read_only: true`, require approval, or declare
`agents`), and a computed `agent` is W622. Validate with the manifests:
`python tools/validate_workflows.py --catalog c.yaml --agents agents/`.

### Read-only delegations

A host that cannot keep a delegate read-only refuses the delegation instead
of running it. In a 1.2 workflow, an accepted delegation with `read_only:
true` whose host does not attest `effective.read_only: true` fails the step,
and `retry` does not repeat it: the delegate has already run.

### Continuing a delegation (1.2)

`continues` names the `task_id` of an earlier delegation whose delegate the
host continues instead of starting a new one (§5.15.3):

```yaml
  - capability: delegate
    purpose: Ask the same reviewer to check the fix.
    store_as: review_b
    input_bindings:
      agent: reviewer-a
      task: {review: "${fix_out.data: object}"}
      continues: "${review_a.task_id}"
```

A continued delegate keeps what it did before, so `continues` with a literal
`fresh_context: true` is S303, and a host that attests a fresh context for a
continuation fails the step (R402). `continues` that resolves to null
delegates anew, which is Standard Agents' create-or-continue. Every call
returns a `task_id` of its own, never the one it continues, so a waiting
delegate matches only its own result and `replaces` names one call. These
rules apply in a workflow that targets 1.2; in a 1.1 workflow, `continues` is
W616 and the executor passes it on to the host without checking it, as 1.1
did.

## Sender identity (`identity@1`)

A principal says *who* delivered an item; an **identity** also says how the
host authenticated them and what standing they have. Your host reports one
with each event a step waits for (`schemas/agent_identity_schema.yaml`):

```json
{"principal": "dana", "kind": "human",
 "authenticated_by": "session_id", "trust_class": "owner"}
```

`receive` and `synchronize` then take three more inputs:

```yaml
- capability: receive
  purpose: Wait for the owner's answer.
  store_as: answer
  timeout: 2h
  input_bindings:
    sender_check: [session_id, x-acme.sso]          # how they were authenticated
    accept_trust_classes: [owner, decision_person, colleague]  # who may answer
    always_ask_trust_classes: [colleague]  # whose answer needs a person in the loop
  wait:
    event_type: answer.given
```

- With `sender_check` or `accept_trust_classes` bound, an item whose sender
  has no identity, was authenticated some other way, or is of another trust
  class is dropped and counted, like `accept_from`. A kept item carries
  `sender` and `sender_identity`. A bound value must be a non-empty list of
  known values: a reference that resolves to anything else, including an
  optional input that was left out, fails the step (R402) rather than
  turning the check off.


  ```mermaid
  ---
  title: Which items a sender check keeps
  ---
  flowchart TB
    accDescr: With sender_check or accept_trust_classes bound, an item whose sender has an identity authenticated the accepted way and of an accepted trust class is kept with sender and sender_identity; any other item is dropped and counted.
    item[An item arrives] --> q{"Sender has an identity, authenticated the accepted way, of an accepted trust class?"}
    q -->|yes| keep["Kept, with sender and sender_identity"]
    q -->|no| drop[Dropped and counted]
  ```

  **Figure: Which items a sender check keeps.** With sender_check or accept_trust_classes bound, an item whose sender has an identity authenticated the accepted way and of an accepted trust class is kept with sender and sender_identity; any other item is dropped and counted.

  - An item arrives → Sender has an identity, authenticated the accepted way, of an accepted trust class?
  - Sender has an identity, authenticated the accepted way, of an accepted trust class? → Kept, with sender and sender_identity: yes
  - Sender has an identity, authenticated the accepted way, of an accepted trust class? → Dropped and counted: no
- `authenticated_by` is one of `session_id`, `chat_user_id`,
  `code_host_login`, `directory_id`, `api_key`, `signed_token`, or your own
  `x-` value. Trust classes are `owner`, `decision_person`,
  `system_of_record`, `own_subagent_report`, `peer_agent`, `colleague` and
  `external`; `authority_trust_model.yaml` gives each a default evidence
  weight that a profile's `trust_weights` can override.
- **Always ask.** An item from a listed class, or one with no identity or
  no trust class, marks what is computed from it: a step that reads it,
  directly or through other steps (a `generate` that summarises it, context
  a recovery loop injects, an `invoke` that passes it on or runs because of
  it), is asked of a person if it needs approval, even when its `approval`
  names a standing mandate, and its action records say `always_ask: true`.
  An unattended run follows the step's `when_unattended` instead; the
  validator warns (W606) when that would leave only a mandate. The mark
  follows references: if your host carries an item's content into a later
  step by other means, the executor cannot see it.


  ```mermaid
  ---
  title: How the always-ask mark spreads
  ---
  flowchart TB
    accDescr: An item from a listed trust class, or with no identity or trust class, marks every step that reads it directly or through other steps; a marked step that needs approval is asked of a person even when its approval names a standing mandate, or follows when_unattended in an unattended run.
    item["Item from a listed class, or with no identity or trust class"] -->|read by| s1[A step]
    s1 -->|read by| s2["A later step: a summary, injected context, an invoke"]
    s2 --> q{Needs approval?}
    q -->|yes| att{Attended run?}
    att -->|yes| person["Asked of a person, even with a standing mandate"]
    att -->|no| wu[Follows when_unattended]
  ```

  **Figure: How the always-ask mark spreads.** An item from a listed trust class, or with no identity or trust class, marks every step that reads it directly or through other steps; a marked step that needs approval is asked of a person even when its approval names a standing mandate, or follows when_unattended in an unattended run.

  - Item from a listed class, or with no identity or trust class → A step: read by
  - A step → A later step: a summary, injected context, an invoke: read by
  - A later step: a summary, injected context, an invoke → Needs approval?
  - Needs approval? → Attended run?: yes
  - Attended run? → Asked of a person, even with a standing mandate: yes
  - Attended run? → Follows when_unattended: no
- On a step that does not wait, your host receives the inputs, applies
  them to what it returns, and must put the `sender_identity` it applied
  them to on each item it returns: the executor marks from it.
- **Who took a delegation.** Your host may report it as
  `effective.identity` (an `agent_identity`) when it delegates. A waiting
  delegate then keeps only results from that principal: anything else is
  dropped and counted (`delegate_identity`), and the `AwaitEvent` names
  the principal as `delegate_principal`. A malformed identity, or one
  whose `model_family` or `role` contradicts `effective`'s, fails the step
  (R402). It is your host's attestation, not a credential: it catches a
  task routed to the wrong party or a peer answering in its place, not a
  host that lies.

- **Who approved.** Your host may attest who decided an approval: the
  decision's `approver_identities`, one `agent_identity` per principal.
  Approvers are then counted by principal, and an identity counts only if
  it meets the request: kind `human` for a human approver, and the
  requested `role`. A workflow that targets 1.2 can require authenticated
  approvers of given trust classes:

  ```yaml
  spec_version: "1.2"            # the approver fields need a 1.2 target
  workflow_extensions:
    requires: [approval@1, identity@1]
  # ...
  approval:
    approver:
      kind: human
      role: release-manager
      min_approvers: 2
      sender_check: [directory_id]
      accept_trust_classes: [decision_person]
  ```

  Each field is a non-empty list from the vocabularies above. With either,
  a decision without attested identities counts no one, and an identity
  authenticated another way, or of another class, does not count. The check
  proves what your host attests, not that an approver is a person. The
  target matters: in a 1.1 workflow the two fields are unknown (W604, and
  W616) and nothing applies them, and a 1.1 consumer would ignore them;
  declared 1.2, the workflow is refused by a 1.1 consumer (V109) instead.

To record who ran a workflow, start the run with an actor identity
(`WorkflowRunner.run(..., actor_identity=agent.identity())`); every action
record then carries it. A run keeps that actor: restoring it for another
principal is refused, and at a handoff to another agent the run is
cancelled, or, if it ended `deferred`, resumed under the new agent. See
[Running workflows](https://acs.synapti.ai/guides/running-workflows/index.md).

## Review quorums (`quorum@1`)

A blocking `constrain` step can require a quorum of independent reviews
before the run goes on:

```yaml
- capability: constrain
  purpose: Require two approvals and no request for changes.
  store_as: quorum_out
  input_bindings:
    target: ${verdicts_out.data}
    constraints: [two_independent_approvals]
    action_on_violation: block   # required: a failed quorum stops the run
  quorum:
    verdicts: ${verdicts_out.data}        # review_verdict items
    reviewers: [review_a, review_b]       # earlier delegate steps
    vocabulary: [approve, request_changes, abstain]
    pass_values: [approve]
    blocking_values: [request_changes]    # any one vetoes
    min_pass: 2
    pinned_to: ${change_ref}              # what every verdict must be about
    forbidden_inputs: [author_notes]      # reviewers must not see these
    require_fresh_context: true
    require_model_families: [claude, gpt]
```

- A verdict ([`review_verdict_schema.yaml`](https://github.com/synaptiai/agent-capability-standard/blob/main/schemas/review_verdict_schema.yaml))
  has `reviewer_id`, `value` and `pinned`. It counts once per reviewer, and
  only if it is about the resolved `pinned_to` and uses the vocabulary. Its
  optional `scope` says whether it swept the whole change (`full`) or only
  what changed since an earlier round (`delta`, the default, also for any
  other value).
- Reviewers must be `delegate` steps that run before the quorum, to
  distinct agents (V107, F504).
- Independence is checked statically where the bindings are literal: a
  reviewer that reads a forbidden input, directly, through other steps or
  through context a recovery loop injects,
  one without `fresh_context: true` when it is required, or literal model
  families that cannot cover `require_model_families` are F504. Families
  compare exactly (`Acme` does not cover `acme`), and a reviewer that binds
  `continues` cannot satisfy `require_fresh_context`: it is not fresh.
- At run time the step is compliant when no counted verdict blocks, at
  least `min_pass` pass, and at least `min_full` of the passes have scope
  `full`; its output gains a `tally` (with `full_passes`).

```mermaid
---
title: A review quorum
---
flowchart LR
  accDescr: Reviewers are delegate steps that run before the quorum; their verdicts go to a blocking constrain step, which lets the run go on only when the quorum is met.
  ra[Reviewer A: delegate step] -->|verdict| q["Blocking constrain step with quorum"]
  rb[Reviewer B: delegate step] -->|verdict| q
  q -->|quorum met| next[Run goes on]
```

**Figure: A review quorum.** Reviewers are delegate steps that run before the quorum; their verdicts go to a blocking constrain step, which lets the run go on only when the quorum is met.

- Reviewer A: delegate step → Blocking constrain step with quorum: verdict
- Reviewer B: delegate step → Blocking constrain step with quorum: verdict
- Blocking constrain step with quorum → Run goes on: quorum met

Reviewers can have different rules. Give `forbidden_inputs` a mapping to
keep one reviewer away from what another may read, for example a verifier
that sees the earlier rounds and a fresh reviewer that must not:

```yaml
  quorum:
    # ...
    reviewers: [verify_fixes, fresh_review]
    forbidden_inputs:
      verify_fixes: [author_notes]
      fresh_review: [author_notes, prior_rounds]
    min_full: 1                           # one pass must be a full sweep
```

To make sure reviewers only read, bind `read_only: true` on each reviewer
and set `require_read_only: true`: a reviewer that does not bind it is
F504, and a verdict from a reviewer the host did not attest read-only is
not counted.

**Replacing a reviewer that hangs.** Make each reviewer a `delegate` step
that waits for its own result, with a `retry`. If reviewer B goes silent
(R406) or runs out of time (R401), its step delegates again; reviewer A is
not asked again. Collect the results with a list of references:

```yaml
- capability: delegate
  purpose: Ask reviewer B for a review and wait for it.
  store_as: review_b
  timeout: 2h
  retry: {max: 1, backoff: none}     # a silent reviewer is replaced once
  input_bindings:
    task: {review: "${change}"}
    agent: reviewer-b
    read_only: true
  wait:
    event_type: review.done          # matched by the delegation's task_id
    liveness: {mode: push, interval: 10m, failure_threshold: 3}
# ... review_a alike, then:
- capability: constrain
  # ...
  quorum:
    verdicts: ["${review_a.result: object}", "${review_b.result: object}"]
    reviewers: [review_a, review_b]
    require_read_only: true
    # ...
```

The delegation must return a `task_id`: it is how the result is matched to
it, and a retry tells your host which delegation it replaces (`replaces` on
the new call) so you can cancel it. One `timeout` covers delegating and
waiting. A waiting delegate can also bind `accept_from` and, with
`identity@1`, the sender inputs, which apply to its result. A verdict in a
reviewer step's `result` counts only for that reviewer. With `identity@1`,
`require_distinct_identities: true` counts a verdict only if it comes from
its reviewer's own `result` and that reviewer's host attested an identity
whose principal no other counted reviewer has: two agent names your host
maps to one party count once. Each reviewer must then be a waiting
delegate, and `verdicts` must reference only their results. A
model family counts toward `require_model_families` only when the host
attests it.

```mermaid
---
title: Replacing a reviewer that hangs
---
flowchart TB
  accDescr: When reviewer B goes silent with R406 or runs out of time with R401, its step's retry delegates again, with replaces naming the old delegation; reviewer A is not asked again.
  b["Reviewer B's waiting delegate step"] -->|"R406 silent or R401 timed out"| retry["retry: delegate again, replaces the old task_id"]
  retry --> b2[New result for reviewer B]
  a["Reviewer A's result"] --> verdicts["verdicts list for the constrain step"]
  b2 --> verdicts
```

**Figure: Replacing a reviewer that hangs.** When reviewer B goes silent with R406 or runs out of time with R401, its step's retry delegates again, with replaces naming the old delegation; reviewer A is not asked again.

- Reviewer B's waiting delegate step → retry: delegate again, replaces the old task_id: R406 silent or R401 timed out
- retry: delegate again, replaces the old task_id → New result for reviewer B
- Reviewer A's result → verdicts list for the constrain step
- New result for reviewer B → verdicts list for the constrain step

Placing a delegated step on a particular host or device is not part of
the standard; RFC-0003 records it as an open question.

## Grounding (`grounding@1`)

Standard v1.2 says what a grounded output is
([STANDARD-v1.2.0 §3.1](https://acs.synapti.ai/spec/1.2.0/index.md#31-grounded-claims)):
its `evidence_anchors` hold an evidence anchor (`{ref, kind}`, §6.5) to
evidence its producer had; otherwise it is **marked inferred**, with an
`inference_method` and a `confidence`. `grounding@1` lets a workflow ask the
executor to check that, for the capabilities it names
([§5.20](https://acs.synapti.ai/spec/1.2.0/index.md#520-grounding)):

```yaml
# Standard version: 1.2.0
triage:
  goal: Classify a lab report.
  risk: low
  workflow_extensions:
    requires: [grounding@1]
  grounding:
    require: [retrieve, classify]   # the capabilities whose outputs are checked
    kinds: [file, record]           # optional: only anchors of these kinds count
    attested: true                  # optional: only anchors the host attests count
  steps:
  - capability: retrieve
    purpose: Read the report.
    store_as: report
    input_bindings: {target: reports/latest}
  - capability: classify
    purpose: Classify it.
    store_as: labels
    input_bindings: {item: "${report.data: object}"}
    failure_modes:
    - condition: The classification is not grounded.
      on_error: F505
      action: stop
```

When the host answers a checked step with an `Output`, the executor reads
its `evidence_anchors` after the fields the contract requires (R402) and
before the after-gates:

```mermaid
---
title: The grounding check of one output
---
flowchart TB
  accDescr: An acs citation outside the step's bindings, or an anchor the host's evidence_seen does not list, fails the step with F505. Otherwise the output passes when an anchor counts, or when it is marked inferred; else F505.
  o[Output] --> c{"Cites an unbound value or unseen evidence?"}
  c -->|yes| f[F505]
  c -->|no| a{"An anchor counts?"}
  a -->|yes| g[Grounded]
  a -->|no| i{"Marked inferred?"}
  i -->|yes| inf[Inferred]
  i -->|no| f
```

**Figure: The grounding check of one output.** An acs citation outside the step's bindings, or an anchor the host's evidence_seen does not list, fails the step with F505. Otherwise the output passes when an anchor counts, or when it is marked inferred; else F505.

- Output → Cites an unbound value or unseen evidence?
- Cites an unbound value or unseen evidence? → F505: yes
- Cites an unbound value or unseen evidence? → An anchor counts?: no
- An anchor counts? → Grounded: yes
- An anchor counts? → Marked inferred?: no
- Marked inferred? → Inferred: yes
- Marked inferred? → F505: no

- **Citing a workflow value.** An anchor whose `ref` is `acs:` and a
  reference body (`acs:report.data`) names a workflow value. Its kind must
  be `record`, and one of the references the step's `input_bindings` make
  must **cover** it: the same root, the bound path a prefix of the cited
  one, an index within a bound slice counting. A step that binds
  `${search_out.results[0:3]}` may cite `acs:search_out.results[1].url`, not
  `acs:search_out.results[7]`, `acs:search_out.total` or `acs:search_out`.
- **`evidence_seen`.** The host may attest, on the `Output` response, the
  refs of the evidence the output's producer had for this answer: what it
  put in the model's request, the anchors inside the step's inputs, what
  the step's tool calls returned. Never a stored history: a ref there was
  seen by an earlier request. When it is present, every other anchor must
  be listed. Absent, it attests nothing; an empty list attests that the
  producer saw nothing.
- **`attested: true`** counts only anchors whose availability is
  established (an `acs:` citation, or one `evidence_seen` lists); an output
  whose anchors are all unattested then stands only if it is marked
  inferred.
- **Legacy items.** A bare string, or an object that is not an evidence
  anchor (no `kind`, a kind such as `tool_output`), does not count and is
  not itself a failure: the deprecated forms of 1.1 producers.
- **Marked inferred** means an `inference_method` of the vocabulary
  (`model_knowledge`, `deduction`, `induction`, `abduction`, `analogy`,
  `statistical`, `simulation`, `assumption`, or `x-...`) and a `confidence`
  from 0 to 1.
- **Actions** are claims too: a `checkpoint`, `audit` or `send` output is
  grounded by an anchor to the record of what it did
  (`{ref: "checkpoint:cp-1", kind: record}`).
- **Not checked:** outputs the executor builds itself, a quorum's, a
  wait's, an `invoke` step's, and a `delegate` step that waits (its
  `Output` is the acceptance; its result is composed). With `grounding@1`
  an `invoke` step's `evidence_anchors` are its nested run's anchors.
- F505 is not retried; a failure mode can fire on it.

A workflow's policy covers its own steps. A host can also apply policies to
a run, a list given when the run starts
(`WorkflowRunner.run(..., grounding=[GroundingPolicy(...)])`), which also
cover the steps of nested runs; each policy is checked against the
ontology, so a misspelt capability is refused (V101) rather than turning a
check off. A domain profile's `evidence_policy` is such a policy:
`require_grounding` is its `require` and `required_anchor_types` its
`kinds`.

In a workflow that targets 1.2, `grounding` without the declaration is
V106. In a 1.0 or 1.1 workflow it is an unknown field (W604), as it was.

## Durations

Durations appear in schedules (`every`), waits (`timeout`, liveness
`interval`) and approvals (`expires`), and in an `audit` step's
`retention` (Standard v1.2 §6.3). Write
`250ms`, `30s`, `5m`, `2h`, `1d`, or an ISO-8601 day-time duration such as
`PT1H30M`, `P1DT12H` or `PT0.5S`. Years, months and weeks are not allowed,
because their length varies. A step's `timeout` should use the same
grammar; free text such as `five minutes` is still accepted but cannot be
enforced, and is reported as W614.

## Checking your workflow

```bash
python tools/validate_workflows.py --catalog my_catalog.yaml
python tools/validate_workflows.py --catalog my_catalog.yaml --strict  # warnings fail too
python tools/validate_workflows.py --catalog my_catalog.yaml \
  --with-catalog library.yaml --agents agents/   # a catalog set and agent manifests
```

`--with-catalog` gives another catalog of the catalog set, whose exported
workflows `invoke` can name by qualified id (`acme.lib/check`, STANDARD v1.2
§5.1.1); `--agents` gives agent manifests, a file or a directory of
`*.agent.yaml` files (§5.15.1). Both repeat. A finding in another catalog of
the set is shown as `[<catalog id>:<workflow>]`.
