gatelineAPI reference
NEED_PRECEDENCE: readonly ["malformed", "stuck", "ready-gate", "at-rest"] = ...

Which waiting item speaks for the run when only one can (#452). Lower is more urgent. The order is the one settled decision 8 of packages/web/DESIGN.md gives colour — health, then the one ready decision, then everything that is the machine's turn or at rest — and each step has a reason in the record:

  1. malformed — the record cannot be read. Nothing else about the run can be trusted, and the engine cannot act on it (DESIGN.md §5: consumers bounce, never guess).
  2. escalation, round-cap — the run is stopped. An unresolved escalation puts the engine at rest until a person answers (engine rule D3), and a round cap is the loop's own escalation to a human (DESIGN.md §4).
  3. a reviewable gate — the one decision ready to take; the run moves as soon as someone takes it.
  4. a gate that is bounced or superseded, paused, staged — the machine's turn, or a run at rest. A bounced packet is re-dispatched, a superseded one is about to be replaced, and a paused or staged run is standing.