Skip to main content

Module drone_wait

Module drone_wait 

Source
Expand description

The event a Drone run’s Wait block (on) waits for (docs/specs/SPEC_DRONE_GENERAL_AUTOMATION_2026_11_11.md §3.3, “Waiting”).

The wait is a random key made when it starts, not derived from anything an outsider can see. Whoever holds the key can end the wait, once, and what they send with it is outside text: the run reads it as tainted. The key goes out in the run’s Waiting event and is kept in the run’s checkpoint, so a restart takes the same wait up again; an event that arrives while AgentMux is stopped is not kept, its source sends it again. It lives in the core so the RPC handler can answer without reaching up into drone/; the executor is the one that waits.

Functions§

close
The wait on key is over (it was answered, or its run ended).
new_key
A new key: 256 random bits as hex, so it cannot be guessed.
open
A wait on key is open: the receiver gets what the event brings.
signal
End the wait on key with payload. Err when none is open: the key is wrong, the wait was answered already, or its run ended.