region-ha-g2-fixes
Region HA G2 drill-4 fixes (F-B, F-A, F-D code). Analysis: G2-FINDINGS (agent manager 8a3d302). Plan: docs/superpowers/plans/2026-11-06-region-ha-g2-fixes.md.
F-B, pool tenancy boundary (Critical). One membership rule (PoolEvidence.Serves) enforced at lease acquire, adoption, takeover, wake, local serve, existing awake entries, duties, placement and the peer filter. A box outside a host's pool never acquires, wakes, serves or takes duties for it. It still forwards: an in-memory ingress projection (primaries, aliases, regional names) built from the record scan lets an ineligible box (the US old box in G3) forward pooled hosts with no local row; it is built at agent start, and one tenant's bad object can no longer 503 the region. A box that leaves a pool drops its old rows only after a proven stop and a clean release (own clean marker, successor present, or never held here); rows with duties or special ownership stay fenced and logged. Pending withdrawals back off 5 min on terminal causes. EC2 "still running" now has its own diagnostic (ha_owner_not_terminated). Spec §3, §6.1 and I1 state the pool rule.
F-A, silent hang (High). A lost or relinquished lease answers 503, Retry-After 10, X-Carlos-Holder none at once (direct, forwarded, queued waiters); recovery is demand-driven and needs a fresh acquisition. Each renewal attempt is bounded by min(30 s, TTL/3, SafeUntil). Peers: a client hang-up never confirms a holder; 3 s without response headers triggers one bounded lock re-read per window and never refuses a same-holder unexpired lease or replays a request.
F-D (code). The suspect-holder clock starts at the lease's ExpiresAt; departure page failures log their cause; the region-host module grants sns:Publish on configured alert topics (alert_publish). Live IAM for dev is pinfra PR #72 (not merged, not applied); the US grant is a G3-card item.
Verification. Opus reviews: F-B group (READY at R3), F-A group (READY at R2), whole branch (READY at R2; R3 P2 fixed). Census approved by Opus (cross-model). Production-wired witnesses on throwaway dev runners: TestRootG2PoolIngress PASS (22 cases, guard-removed build fails) and TestRootG2LostLeaseResponses. CI green on the tip.
Out of scope (follow-ups in docs/superpowers/notes/2026-11-06-region-ha-g2-follow-ups.md). F-C write fence, S3 cancel-and-join on stop (G5), F-E harness, T1 terminate drill. No release, apply or drill.
Discussions
- No discussions on this branch yet.
Tasks
- No tasks yet.
Activity
- paul@keymail.dev pushed 29a1d920f Merge origin/main into region-ha-g2-fixes
- paul@keymail.dev pushed f70f36069 test: stop comparing clocks across witness machines
- paul@keymail.dev pushed b2007cf9e test: count only lease recovery calls in the no-demand window
- paul@keymail.dev pushed e40a828fe test: wait for the re-minted row before the new-holder request
- paul@keymail.dev pushed 232f1f475 test: accept an unclean release marker after the pause loss
- paul@keymail.dev pushed 5372bc056 test: make A the new holder while B is unreachable
- paul@keymail.dev pushed 593d412b3 test: assert LB health is unchanged by lease loss
- paul@keymail.dev pushed 2d815ee9a Merge origin/main into region-ha-g2-fixes
- paul@keymail.dev pushed 5a651b31b fix: report failed pool withdrawal proofs to the next pass
- paul@keymail.dev pushed 3b4701ea4 test: allow observation slack on the witness renewal budget
- paul@keymail.dev pushed 2e6e5cd53 fix: back off pool withdrawal only on terminal pending causes
- paul@keymail.dev pushed a94d77c4c docs: add final review follow-ups to the G2 note
- paul@keymail.dev pushed 481942f00 test: measure slow witness delay on the tenant clock
- paul@keymail.dev pushed 44e6be092 test: refresh HA fix witnesses and census proposal
- paul@keymail.dev pushed b3de6455c docs: anonymize HA deployment notes and retain startup follow-up
- paul@keymail.dev pushed 86b367146 fix: scope retired ingress projections to relevant upstreams
- paul@keymail.dev pushed 25cfd94d2 fix: back off pending pool withdrawal before fresh reads
- paul@keymail.dev pushed 596127da3 fix: retire completed pool withdrawal fences
- paul@keymail.dev pushed fc79ad34c fix: preserve explicit placement outside managed pool gates
- paul@keymail.dev pushed b0093ac74 fix: forward outside the pool after startup release obligations
- paul@keymail.dev pushed c4b2fefbd test: bind the witness edge http listener like production
- paul@keymail.dev pushed 0fff657bd test: give the pool witness re-mint wait production slack
- paul@keymail.dev pushed cecbac361 test: probe LB health like the load balancer in the loss witness
- paul@keymail.dev pushed 534ff3c28 test: measure suspect holders from lease expiry
- paul@keymail.dev pushed e96fe63f2 ha: inventory ingress alias name producers
- paul@keymail.dev pushed c40ecadb0 ha: inventory G2 record scan and withdrawal writes
- paul@keymail.dev pushed d2d929997 ha: record G2 fixes census proposal
- paul@keymail.dev pushed e598c19f7 ha: let pool withdrawal run on a live activator
- paul@keymail.dev pushed 557700e43 test: witness prompt HA refusals and bounded holder revalidation
- paul@keymail.dev pushed 94b106b30 ha: require the lock to be our own release marker