Expand description
Taking Drone runs up again when AgentMux starts (docs/specs/SPEC_DRONE_GENERAL_AUTOMATION_2026_11_11.md §3.3, “Resume”).
A run left running by the old process is no longer marked interrupted and
forgotten when it has checkpoints: its newest one is loaded, the graph it was
written on is found (the saved version, or the current definition when that is
still the same graph), and the engine carries on from there. A run with no
checkpoint, or none it can go on from, is left for the restart to interrupt,
as before; the reason is in the log.
Functions§
- checkpoint_
and_ 🔒graph - The newest checkpoint of
runand the graph it was written on;Nonewhen the run kept no checkpoint. - graph_
of 🔒 - The graph a run started on: the saved version it names when that is the same graph (by hash), else the drone’s current graph when that is. A graph that was edited since, with no saved version to go back to, is no graph the run’s checkpoints fit.
- resume_
runs 🔒 - Take up again every run the old process left running that can be. Returns
their ids: the restart leaves those rows open (
recover_after_restart_except). Call before the ledger recovers, from the state that has the stores.ledgercloses the run’s job row when it ends; none for a state without one.