Skip to main content

Module drone_replay

Module drone_replay 

Source
Expand description

replaydronerun: start a new run from a step of a finished one (docs/specs/SPEC_DRONE_GENERAL_AUTOMATION_2026_11_11.md §3.3, “Replay and time travel”).

The new run has its own id and its own checkpoints, starts from the state the earlier run had at that step, and is on the graph version the earlier run started on. A block that would send, file, start or write says what it said in the earlier run instead of doing it again, unless the caller asks for it do_it_for_real. A replay that is taken up again after a restart (resume_runs) is still a replay: its checkpoints name the run it came from.

Structs§

ReplayRunReq
What replaydronerun is asked to do.
ReplayRunResp

Functions§

ended 🔒
A run can be replayed once it is over: not while it runs, waits or needs an answer.
replay_drone_run_as 🔒
replaydronerun. by is who the new run’s ledger row says started it, None for the person’s window (the operator); the registered handler takes it from the connection, so an agent’s replay is shown as that agent’s.
replay_for 🔒
What a replaying run needs besides its checkpoint: the run it came from said what, for the blocks it stubs. None for a checkpoint of a run that is not a replay. A replay whose source run’s checkpoints are gone cannot be taken up again (what its stubs said is not kept anywhere else).