Protocol and deployment notes · Architecture
Automatic data-authority fencing contract
The PF90 automatic authority controller is a one-run qualification controller, not the production HA controller. It establishes the behavior that a selected production controller must demonstrate through the same stable Atlas endpoint contract.
The safety sequence is fixed:
- probe from the stable router's network view;
- require consecutive failures rather than one transient error;
- observe at least two eligible replicas and elect the greatest durable PostgreSQL replay LSN or Redis replication offset;
- break equal-position ties deterministically by member identity;
- fence the old leader and verify its process is exited;
- only then begin promotion;
- verify the promoted role before moving the stable endpoint;
- reattach a remaining member and verify redundancy is restored.
Every step is appended to a sequence-numbered JSONL event stream. A passing
receipt must prove fence_confirmed precedes promotion_started; the runner is
not allowed to infer fencing from endpoint unreachability. The isolated leader
is treated as potentially writable until its process is confirmed stopped.
The controller owns no Atlas session, federation, Vault, signing, or directory credential. It receives only fixture topology, database role/name, and router configuration paths. Production implementations must replace Docker-process fencing with a target-owned fencing mechanism and repeat the drill on independent failure domains.