Expand description
The approvals a Drone run is waiting for (SPEC_DRONE_REAL_WORLD_JOBS_2026_11_11.md §4.2 and §6.4).
An Approval block stops its run and shows a person the proposed action and the inputs it was made from, the
ones that came from outside text marked as such. Each open approval is kept here, with the key of the wait the
run holds. The key never leaves AgentMux: an answer names the run and the block, and this finds the key. That
is what keeps an agent, which can read a run’s events, from answering for the person: the answering route
accepts only the person’s own client (server::drone_approval_handlers).
It lives in the core, beside drone_wait, so the handlers can answer without reaching up into drone/.
Structs§
- Approval
Item - One thing the card shows: a label, the text, and whether it came from outside text.
- Drone
Approval - An approval a run waits on.
Functions§
- answer
- Answer the approval of
block_idinrun_id: yes or no, byby(who the record says answered).Errwhen none is open (it was answered, it timed out, or the run ended). - forget
- The approval is over, however it ended.
- list
- The approvals open now, of
drone_idwhen it is named, newest deadline last. - register
- The run holds this approval, waiting on
key. A block run again (a restart took the wait up) replaces its entry.