region-ha spec: N-HA3 timing and the clock-skew note follow N-HA9
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
1 file changed,
+2
−2
docs/superpowers/specs/2026-10-26-region-ha-without-claims-design.md+2 −2
diff --git a/docs/superpowers/specs/2026-10-26-region-ha-without-claims-design.md b/docs/superpowers/specs/2026-10-26-region-ha-without-claims-design.md| index 295884901..7a4e33a31 100644 |
| --- a/docs/superpowers/specs/2026-10-26-region-ha-without-claims-design.md |
| +++ b/docs/superpowers/specs/2026-10-26-region-ha-without-claims-design.md |
| @@ -75,7 +75,7 @@ These stand from spec 1 and spec 2. |
| | Roll order | Dev boxes, dev console, check, flagship boxes, flagship console. | |
| | N-HA1 | HA is built **without claims**. The Litestream S3 lease is the only single-writer guard. | |
| | N-HA2 | Replaces H25. Once every instance's DB and files are in S3, the old box joins the load balancer as an ordinary member. Its instances are slept one at a time and wake on the group boxes. The old box is removed once empty. IE's platform box stays outside the group. | |
| -| N-HA3 | Failover is "a few minutes, lower is better", met **without shortening every lease**. Once EC2 confirms a box is terminated, a survivor takes over its leases at once. | |
| +| N-HA3 | Failover is "a few minutes, lower is better", met **without shortening every lease**. Once EC2 confirms a box is terminated, a survivor takes over its leases at once. Superseded on timing by N-HA9: the takeover waits for the lease to expire until storage fencing exists. | |
| | N-HA4 | N-box offline moves and seed import join this plan series. Dev and the first test region may go HA with both refused. No carloku.com region retires its old box until both work in N-box regions. | |
| | N-HA5 | App files on the continuous (top-plan) class sync every 10 s. `instance.key`, `report.token` and `<host>.env` sync at about 1 s. | |
| | N-HA6 | Confirms A16 (2026-10-26): the cheaper replication classes stay available in HA regions and lose up to their interval on a failover, stated plainly. H3's ~1 s applies to the stream class. | |
| @@ -433,7 +433,7 @@ After an agent crash, a box may re-take its own expired lease only once it has p |
| ### 9.7 Clock skew |
| -Expiry now matters only for a box re-taking its own lease, which uses one clock. The margin is still bounded: |
| +Expiry matters for a box re-taking its own lease and for a survivor taking over a terminated box's lock (N-HA9); each decision reads expiry on one clock, the deciding box's own. The margin is still bounded: |
| - chrony (Amazon Time Sync) is required on every box; |
| - the safety margin (5 s, `health.go:19`) must exceed twice the maximum offset, so the maximum allowed offset is 2 s; |
| - each box publishes its chrony offset, and an alarm fires above 1 s (§20). |