carlos / platform Public

ha-1192-close-lost-edges

Fixes #1192.

Cause (dev IE, 2026-11-17). App bab/g6x was trashed on 11-14, but its instance record and its released lock, naming member g-03152630, stayed. The reconcile feeds every instance record to the departure inventory before it checks the trash, so when g-03152630 was terminated at 08:31 its departure matched g6x.bab and every box's adopt deferred it forever (a trashed app has no route). The edges record is the departure's last step, so it stayed published, admitted and draining, and the next drain in the group timed out waiting for the dead box to acknowledge. close-lost was a bystander.

Changes.

  1. One rule for "a trashed app's records never hold HA or fleet work": release.TrashRetired (marker positively read, production flag positively clear), used by the fleet drain (#1008 T9) and the departure scan.
  2. Departure scan: a matched host whose app is TrashRetired, with a released or expired lock, is discharged without import (like DR-5 unserved) and rechecked by the finalization gate before the edges delete.
  3. Drain ack: a peer that is a group ref whose departure this box has enrolled (termination proven) is not waited on; the report names it.
  4. close-lost: if the departed member's edges record is still published, it says so and names it. No delete: the departure owns retirement (agreed with the agent manager).
  5. Deterministic witness of the 11-17 sequence.

Inert until a release. No live changes.

Human

Region HA #1192: a departure stuck on a trashed app's host never retires the dead member's edges record, and every later drain waits on it.

Commits 9
Discussions 0 0 open
Tasks 7/7 done

Activity