ADR 0020: Safe posture after a decision

  • Status: Accepted.
  • Date: 2026-11-14
  • SDD: 7.3, 9.1, 9.2, 9.4 (INV-GOV-3, INV-GOV-6, new INV-GOV-7 and INV-GOV-8); ADR 0016

Context

In the multi-seed evaluation of 2026-11-14, every harmful execution under remora_governed came from one scenario, AD-03 (false sensor data), and one contract, chw.set_supply_setpoint.v1. Each was a raise of half a kelvin that added 0.5 to 1.3 pod-minutes above 27 °C; none reached 32 °C. The decision record of seed 1, careful agent, shows the sequence:

Scenario time Proposal Decision Why
300 s 18.0 → 18.5 °C allowed, applied every premise held; no fault yet
600 s 18.5 → 19.0 °C allowed, applied the zone sensors of three PODs go 4 K low at this instant; the inconsistency alarm is not up yet
900 s to 3 900 s back to 18.5 °C, eleven times denied, remora:limit_exceeded the two raises spent the contract's two calls per hour
3 900 s back to 18.5 °C allowed the hour has passed

Without a gate the step back went through at 900 s, and the run had less overheating than under REMORA. Three gaps let this happen:

  1. Premises were checked once, at the decision. A step allowed on premises that later stopped holding stayed in place. The supervisory layer flagged the biased readings within seconds (supply_air_inconsistent, priority high), and that made the contract's alarm premise false, but nothing watched it after the decision.
  2. A step back toward safety was charged against the same rate and cumulative limits as a step away from it. The limit meant to bound the agent's optimisation held back the recovery.
  3. The rollback trigger only fired when it held as True. A trigger that could not be read, because its points were stale or of bad quality, never fired. A rollback was also reported as done whether or not the command service accepted the writes, and it went back only to the value before the latest step, not to the value before the agent's first step on that point.

Decisions

  1. An applied reversible step is watched on its premises (INV-GOV-7). For a contract with a rollback, under the profiles in which rollbacks are watched (GOVERNED, DECISION_ONLY, SHADOW), the control path keeps the premises the step was allowed on, filled in, with their freshness limits. It reads them every second. If one does not hold, or cannot be established, for PREMISE_LOSS_HOLD_S (10 s) without a break, the step is undone. The hold keeps a single noisy read from undoing a step. It is short against the plant's thermal time constants.

  2. Undoing fails safe. A rollback trigger that cannot be read counts as fired once its hold has passed. Once an undo is decided it is kept, and it is tried every second until the command service accepts every write; only then is the proposal recorded as ROLLED_BACK. The undo goes back to the value the point had before the agent's first write that is still standing on it. A newer step on the same point takes over the older step's origin and, if the newer step only goes back toward safety, the older step's premises too. A step that goes only in the safe direction is never undone for a lost premise, since undoing it would move the plant away from safety. The undo is written by the rollback monitor, an operator-role actor, so no limit of the agent's applies to it.

  3. A step back is never held by a limit (INV-GOV-8). A contract has a safe direction when it has a rollback, its premises guard exactly one direction of movement, and every write is bounded. The safe direction is the other one. A proposal is a restore when every write moves its point in the safe direction and no further than the origin of decision 2. The binding works this out from the plant and the path's own watches; nothing in it comes from the agent. A restore is not charged against rate or cumulative limits. Bounds, step size, premises that apply in that direction, decision references and the command service's own checks still apply.

  4. REMORA assesses a restore under its own tool. For each contract with a safe direction the compiler adds a ToolSpec, <contract>.restore.v<n>, with the contract's argument schema, bounds and risk tier. Its calls are metered and declared under a limit with no ceiling, because REMORA refuses an undeclared meter (limit_undeclared). The governed gate puts a proposal to REMORA under this tool only when the control path has marked it a restore. REMORA still decides, signs, releases and audits it like any other call. The manifest lists the restore tools under restore_tools.

Consequences

  • An optimisation step can be undone that, judged in hindsight, did no harm. That is the posture asked for: in a plant that runs critical load, an unknown or lost premise means going back to the state the plant had before the agent acted, not waiting to see.
  • A transient premise loss of more than 10 s costs the saving of the steps it undoes. The energy scenario is run again to measure this.
  • The agent cannot use the restore lane to gain movement. A restore stops at the origin, and the origin is the value before the agent's own standing writes.
  • ADC-GOV-001 now covers INV-GOV-1 to -8.
  • The ToolSpec bundle, the limit policy and the manifest change, so their digests change. Earlier evidence bundles stay valid for the artifacts they name.