Expand description
The Approval block: the run stops and a person says yes or no (docs/specs/SPEC_DRONE_REAL_WORLD_JOBS_2026_11_11.md §4.2 and §6.4).
{ "kind": "approval", "title": "Merge the pull request", "show": [{ "label": "Pull request", "value": "{{pr.title}}" }] }.
The card shows the title and each item, and marks the items that came from outside text. The title is the graph’s
own words: it may not read outside text, so a crafted pull request cannot dress itself up as the proposed action.
timeout_seconds says how long the person has (a day when it is left out); silence rejects.
The run waits as a Wait block does (scheduler/wait.rs), on a key that stays inside AgentMux. Only the person’s own
client can answer (server::drone_approval_handlers). A yes ends the block with approved: true and who answered;
a no, and silence, fail it as approval_rejected and approval_timeout, so an error edge takes them.
Structs§
- Card
- What the card shows.
Constants§
- DEFAULT_
TIMEOUT_ S - How long the person has when the block does not say: a day.
- MAX_
ITEMS 🔒 - The most items a card shows, and the longest text of one.
- MAX_
TEXT 🔒