Expand description
The step scheduler: runs a graph one block at a time, in the order its edges allow, and takes a loop round again when its guard says so (docs/specs/SPEC_DRONE_GENERAL_AUTOMATION_2026_11_11.md ยง3.1).
A block is ready when every edge into it, back-edges apart, has been decided (its source ran and the edge carries the run on, or its source was skipped, or a Condition took the other branch). It runs when it has no such edge or at least one of them carries the run on; otherwise it is skipped, and so are the blocks that only it led to.
A back-edge that carries the run on starts the loopโs next iteration: the blocks of the cycle are cleared and its head is ready again. Where a block leaves a loop by an edge that is not taken, the decision is held until nothing else can run, because a later iteration may still take it.
Modulesยง
- attention ๐
- A run that needs attention: a step with effects was running when AgentMux stopped, so it may already have done its work (docs/specs/SPEC_DRONE_GENERAL_AUTOMATION_2026_11_11.md ยง3.3).
- call ๐
- A Drone block: a step that is another drone (docs/specs/SPEC_DRONE_GENERAL_AUTOMATION_2026_11_11.md ยง3.5).
- checkpoint ๐
- The schedulerโs side of checkpoints: what it writes after a block
(
snapshot,checkpoint) and how it takes a run up again from one (restore) (docs/specs/SPEC_DRONE_GENERAL_AUTOMATION_2026_11_11.md ยง3.3). - foreach ๐
- The for-each block: runs its body block once per item of a list (docs/specs/SPEC_DRONE_GENERAL_AUTOMATION_2026_11_11.md ยง3.1).
- join ๐
- A Join block: where branches that split come together (docs/specs/SPEC_DRONE_GENERAL_AUTOMATION_2026_11_11.md ยง3.7).
- parallel ๐
- Branches that run at the same time (docs/specs/SPEC_DRONE_GENERAL_AUTOMATION_2026_11_11.md ยง3.7).
- replay ๐
- The part of a replay that the scheduler decides: which blocks are stubbed
(docs/specs/SPEC_DRONE_GENERAL_AUTOMATION_2026_11_11.md ยง3.3,
drone::replay). - wait ๐
- A Wait block: the run stops for a time or for an event (docs/specs/SPEC_DRONE_GENERAL_AUTOMATION_2026_11_11.md ยง3.3, โWaitingโ).
Structsยง
- Limits ๐
- What a run is given besides its graph: its dollar cap, the way to cancel it, and where to keep its checkpoints (none for a run that is not kept).
- Scheduler ๐
Constantsยง
- HISTORY_
LEN ๐ - How many earlier outputs of a block a later iteration can read as
{{block.history}}.
Functionsยง
- carries_
on ๐ - Whether
edgecarries the run on once its source has run: a Conditionโs edge only when its handle matches the result. - default_
timeout ๐ - How long a block may run when its graph does not say (
timeout_seconds): an Agent block 15 minutes, a block that reaches outside the run 5. An API block has its own request timeout, and the rest do no waiting. - dispatch_
scoped ๐ - The code of a block that reads and writes only the runโs scope.
- execute ๐
- execute_
costed ๐ execute, and with it what the run spent, which a caller counts against its own budget.- finish ๐
- Run what is left of a run that is set up, and say how it ended.
startedis how setting it up went: a run that could not even keep its first checkpoint ends before its first block. - kind_of ๐
- over_
run_ ๐cap - Why the run must not start another block: what its Agent blocks have spent
has reached its cap (
caps::reached: a run that spent nothing has not reached any cap). - plain_
duration ๐ - replay ๐
- Run a replay from
first, the new runโs first checkpoint (replay::fork_checkpoint), to its end.graphmust be the graph the replayed run was on. Its own checkpoints begin at step 0. - resume ๐
- Take up a run from its newest checkpoint,
c, and run it to its end: the blocks that were finished stay finished and what they said is what the rest read.graphmust be the graph the checkpoint was written on. - within ๐
work, or its failure when it takes longer thanlimit.
Type Aliasesยง
- States ๐