carlos / platform Public

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.

Human

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.

Commits 23
Discussions 0 0 open
Tasks 5/5 done

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