region-ha-p3-group
Region HA P3a: dev NLB ingress module, JSON plan gate, desired box roles and fixed-box opt-in admission
What changes
- infra/modules/region-host/ingress: a regional NLB child module (TCP 80/443 passthrough, health /.carlos/lb-health, protected zone EIPs, NLB security group) with per-target-group health alarms, plus a fixture root showing literal fixed target attachments. The fixed region-host module is unchanged.
- scripts/check-region-group-plan.py: read-only JSON plan gate. It refuses any planned change that references a fixed box identity (instance, ENI, EIP, host SG, host IAM), except creating or deleting target-group attachments. It also refuses protected ingress EIP deletion or replacement, ASG decreases, and unknown values on guarded resources. A reviewed allow-list is the only exception.
- internal/boxroles plus the change-index scope control/box-roles: an opted-in box reads its desired role (own, then regional default; absent both = serve; unreadable = closed) with two point GETs on the existing ReadGate (30 min backstop, jittered).
- Opt-in admission (CARLOSGROUPADMISSION=1, requires CARLOSREGIONHA): the box starts closed and admits itself only after host.env loads, the first full reconcile, an acknowledged role publication and the termination consumer's Started. Until then every tenant path refuses with 503 + Retry-After and no holder identity, LB health answers 503, and peers exclude it from home election and cold-wake choice. Platform, dev-console and unit-backed routes are exempt on fixed boxes. Group-configured boxes are refused up front.
- Opted-in boxes add clock (chronyc) and admission datums on the existing metrics cadence. Switch-off boxes are byte-identical (edges files, PutMetricData input, no chronyc).
Not in P3a (P3b): group ASG, launch template, group IAM, boot, hairpin, lifecycle completion, receipt, maintenance guard. Namespace withdrawal for closed boxes was cut under stopping rule 2 (#421, 2026-11-04). A closed box keeps its names, and a held exact entry never falls through to another account's wildcard.
Review: Astra implemented; Opus reviewed T1-T3 (one fix round each, T2 cut under rule 2) and the whole branch (R1 READY, 0 P1/0 P2, 3 P3 follow-ups in docs/superpowers/reviews/REVIEW-REGION-HA-P3A-BRANCH-R1.md). Census approved by Opus on #280 at 2c67ce56. Copy approved by delegation (Luna).
Before any dev use (needs Paul's go, Task 6 card): the region-host-store-deny merge, sophie's console row marked Unit=console.service, chronyc verified under the edge sandbox, and every dev box on this build before either box opts in.
Follow-ups (P3): boxroles reaches the S3 SDK through internal/release; the plan gate allows unknown-id creates in other modules; no refusal log when there is no activator config; a boot pass while draining leaves always-on workers down after a later return to serve; P3 lists in the task reviews.
Region HA P3: group infrastructure. P3a (executable, plan final): a dev NLB in front of the fixed IE pair (sophie and leo), opt-in admission (CARLOSGROUPADMISSION, which requires CARLOSREGIONHA), the serving latch, roles, the role re-read gate, IAM with exact SSM paths and #478 wildcards narrowed, alarms, and a safe dev apply (store-Deny fix first, whole-root read-plan, a JSON gate that refuses fixed-resource changes). Rollback is switch-off. Hairpin moves to P3b. P3b (outline): replacement groups, the G2 drills and hairpin. N-HA14: group boxes roll only through operator-run ASG Standby, never self-update. Cost about $24-27 per region per month. Plan rev 3 is final (Opus R1 NOT READY, R2 READY AFTER FIXES, review closed). Next: build AFTER P1b-3a merges, since both touch edgesfile and forwardha.
Discussions
- No discussions on this branch yet.
Tasks 5/5 done
- P3a T1: dev ingress module and JSON plan gate Done
- P3a T2: box roles, change-index scope, serving projection Done
- P3a T3: admission latch and start gate (fixed opt-in) Done
- P3a T4: NLB alarms and opted-in metrics Done
- P3a: copy, census, branch review, CI Done
Activity
- task updated: P3a: copy, census, branch review, CI
- claude agent, operated by paul@keymail.dev pushed 7d2c3832c region HA P3a: whole-branch review R1 READY, census approved
- claude agent, operated by paul@keymail.dev pushed c9eb235a1 region HA P3a: whole-branch review brief, round 1
- claude agent, operated by paul@keymail.dev pushed 2c67ce564 Refresh region HA P3a census after main merge
- claude agent, operated by paul@keymail.dev pushed 2918e84ef Merge remote-tracking branch 'origin/main' into region-ha-p3-group
- task updated: P3a T2: box roles, change-index scope, serving projection
- claude agent, operated by paul@keymail.dev pushed d5f7a97af Stop closed exact homes from falling through to peer wildcards
- claude agent, operated by paul@keymail.dev pushed 59cb5c7a6 Cut namespace withdrawal from region HA P3a
- claude agent, operated by paul@keymail.dev pushed eb3098a1c fix(edge): hold every closed box name without route authority
- claude agent, operated by paul@keymail.dev pushed 53a53e46c Apply P3a copy sweep 1
- task updated: P3a T3: admission latch and start gate (fixed opt-in)
- claude agent, operated by paul@keymail.dev pushed 0b555191e Resume fixed-box work after admission and witness agent wiring
- task updated: P3a T4: NLB alarms and opted-in metrics
- claude agent, operated by paul@keymail.dev pushed 9f402df43 Add P3a ingress alarms and opted-in clock and admission metrics
- claude agent, operated by paul@keymail.dev pushed 7474bd98a Gate fixed-box tenant admission on local startup acknowledgments
- claude agent, operated by paul@keymail.dev pushed 3dd6772f5 Fix role withdrawal reservations and publication acknowledgments
- task updated: P3a T1: dev ingress module and JSON plan gate
- claude agent, operated by paul@keymail.dev pushed 5a4201610 Guard fixed identities across all region plan resource changes
- claude agent, operated by paul@keymail.dev pushed 9007043b8 Add cached box roles and admission-aware serving projections
- claude agent, operated by paul@keymail.dev pushed fc89adf69 Add isolated region ingress and fixed-resource plan gate
- claude agent, operated by paul@keymail.dev added task P3a: copy, census, branch review, CI
- claude agent, operated by paul@keymail.dev added task P3a T4: NLB alarms and opted-in metrics
- claude agent, operated by paul@keymail.dev added task P3a T3: admission latch and start gate (fixed opt-in)
- claude agent, operated by paul@keymail.dev added task P3a T2: box roles, change-index scope, serving projection
- claude agent, operated by paul@keymail.dev added task P3a T1: dev ingress module and JSON plan gate
- claude agent, operated by paul@keymail.dev pushed f7ca1a436 Merge remote-tracking branch 'origin/main' into region-ha-p3-group
- claude agent, operated by paul@keymail.dev pushed 0c304d16f plans: P3a plan rev 3, final (N-HA14)
- claude agent, operated by paul@keymail.dev pushed 8f99bfffe plans: P3a Opus review round 2 (READY AFTER FIXES, 6 P2)
- claude agent, operated by paul@keymail.dev pushed 3d2f50130 plans: P3a review brief, round 2
- claude agent, operated by paul@keymail.dev pushed 830eb8f1f plans: P3a plan rev 2 (answers Opus round 1)