carlos / platform Public

region-ha-p3b-build

Region HA P3b-1: group mode, dormant. Group mode is off by default, and fixed boxes behave as before apart from one additive edges capability (names-2).

Plan: docs/superpowers/plans/2026-11-04-region-ha-p3b-group.md rev 3 (final). Spec: 2026-10-26-region-ha-without-claims-design.md rev 6.2, which adds the N-HA14 exception to §12.1. Rulings: N-HA14 and N-HA19 (D1-D4). Build gate (agent manager 8a3d302, under Paul's delegation): merge dormant. The switch-on is the next quiet dev window after this merge, as a dated card.

What it adds:

  • T1: admission closure changes who may serve a name, never who owns it, through one name-authority resolver. Adds the names-2 capability, the GroupReadersReady predicate, and a fixed-box systemLeg gate that refuses old-reader rollbacks while group names exist.
  • T2: OpenTofu group mode: a fixed-size ASG, an initial launch hook, least-authority group IAM, a separate group termination queue, and boot/ SSM parameters.
  • T3: claim-free group boot (IMDS denial, chrony, OS auto-update off, root marker), launch-hook completion with a durable receipt that root never reads, and closed-member departure gating. The operator states the install floor.
  • T4: one root restart guard. Every restart-capable root entry on a group box needs an operator permit in root-owned /run/carlos-group-maintenance. Restart=no is set and the automatic update paths are masked. Includes a fake N-HA14 Standby transaction protocol.
  • T5: own-region hairpin. While admitted, root puts the ingress EIPs on a dummy interface behind one nft fence, so only TCP 80/443 to the EIPs is reachable, with a group-only #367 exemption. The client identity is the verified box public IPv4. This replaces the plan's DNAT design after two blocks (stopping rule 2; ruled by the agent manager).
  • T6: group metrics and alarms, pool isolation, the region HA simulation (3,000 seeds, 0 violations), and the request budget.

Review and testing:

  • Per-task Opus reviews: T1-T5 each had their own review (T1 two rounds); each closed with no P1. The whole-branch review was three Opus area reviewers in round 1 (1 P1, 2 P2) and a round 2 rated READY.
  • Census region-ha-p3b: approved by Opus (author Astra), recorded on #280.
  • Root runner (dev, throwaway EC2): TestHairpinKernelAgentTenantSidecar passed on the real kernel, including once under the production instance-control sandbox.
  • CI: green on the tip.
  • Copy: one Luna pass, applied by delegation.

Not in this merge: P3b-2 (operator Standby roll, private repo), P3b-3 (G2 drills), any infra apply, release or live experiment. The dated card must cover:

  • CARLOS_HOST_METRICS=cloudwatch in the group SSM;
  • the firstNames2Release pin, because group edges files block fixed-box updates until it is set;
  • the floor field in the boot object;
  • the readers inventory;
  • the console version check;
  • CI running the tofu and plan-gate tests;
  • runbook items: no manual nftables restart; recovery always rolls back.
Commits 41
Discussions 0 0 open
Tasks 10/10 done

Discussions

  • No discussions on this branch yet.

Tasks 10/10 done

  • T1 retain every name while admission is closed (names-2, systemLeg gate) Done
  • T2 fixed-size group and least-authority IAM Done
  • T3 claim-free boot, hook and receipt Done
  • T4 one root restart guard Done
  • T5 own-region hairpin with a verified public source Done

Activity