Expand description
The rule for blocks that can run at the same time and write the same
variable (docs/specs/SPEC_DRONE_GENERAL_AUTOMATION_2026_11_11.md ยง3.2):
two blocks that can run at the same time may both write a variable only if
its reducer is not replace, so there is no silent race. The graph is
refused at start, naming both blocks and the variable.
Two blocks can run at the same time when neither leads to the other and
they are not the two sides of one Condition (a block only the true branch
reaches, and one only the false branch reaches, never both run). The
scheduler runs one block at a time today, so nothing races yet; this keeps a
graph that would race once branches run in parallel from being written.
Functionsยง
- check ๐
- check_
declarations ๐ - A variableโs reducer cannot change once it has a value, so the blocks that write it must agree on one, and a block that names none must come after a block that does: otherwise it depends on which ran first whether the declaring block fails at run time.
- is_kind ๐
- sides ๐
- For each Condition, which side of it a block is on:
Some(true)when only thetruebranch leads to it,Some(false)for onlyfalse, elseNone. A block reachable from the start without passing the Condition is on neither. - writes_
of ๐ - The variables a Variables block writes, each with the reducer it declares.