region HA P3b-1: dormant group mode, names-2, restart guard, hairpin
Group mode is off by default; fixed boxes are unchanged apart from the additive names-2 edges capability. Adds name authority held across admission closure with a fixed-box rollback gate, OpenTofu group mode (fixed ASG, launch hook, scoped IAM, group queue), claim-free group boot with launch receipt, one root restart guard with operator permits, the fenced own-region hairpin, and group metrics, alarms and simulation. Plan 2026-11-04-region-ha-p3b-group rev 3; rulings N-HA14, N-HA19; census region-ha-p3b approved (#280); Opus task and branch reviews closed; root-runner hairpin witness passed. Switch-on is a dated card. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Squashed from region-ha-p3b-build into main. Co-Authored-By: claude <claude~paul@keymail.dev>
.amadan/test-weights.tsv+5 −0docs/site/cli.md+3 −1docs/superpowers/notes/census-proposal-region-ha-p3b.md+132 −0docs/superpowers/plans/2026-11-04-region-ha-p3b-group.md+368 −0docs/superpowers/plans/REVIEW-BRIEF-REGION-HA-P3B-R1.md+117 −0docs/superpowers/plans/REVIEW-BRIEF-REGION-HA-P3B-R2.md+132 −0docs/superpowers/plans/REVIEW-REGION-HA-P3B-R1.md+143 −0docs/superpowers/plans/REVIEW-REGION-HA-P3B-R2.md+93 −0docs/superpowers/specs/2026-10-26-region-ha-without-claims-design.md+3 −2infra/modules/region-host/group-init.sh.tftpl+283 −0infra/modules/region-host/group.tf+283 −0infra/modules/region-host/group_alarms.tf+160 −0infra/modules/region-host/group_iam.tf+99 −0infra/modules/region-host/main.tf+42 −20infra/modules/region-host/outputs.tf+35 −5infra/modules/region-host/tests/fixed-and-group/main.tf+69 −0infra/modules/region-host/tests/fixed_state_unchanged.tftest.hcl+15 −13infra/modules/region-host/tests/group.tftest.hcl+428 −0infra/modules/region-host/tests/group_alarms.tftest.hcl+190 −6infra/modules/region-host/tests/group_iam.tftest.hcl+202 −0infra/modules/region-host/tests/group_isolation.tftest.hcl+96 −0infra/modules/region-host/tests/instance_metadata.tftest.hcl+3 −3infra/modules/region-host/variables.tf+111 −1internal/awsregiongroup/complete.go+52 −0internal/awsregiongroup/complete_test.go+83 −0internal/boxroles/imports_test.go+28 −0internal/boxroles/roles.go+6 −4internal/boxroles/roles_test.go+0 −3internal/console/group_names_test.go+28 −0internal/edge/boxroles_test.go+1 −1internal/edge/edge.go+53 −22internal/edge/group_admission_external_test.go+64 −1internal/edge/group_names_test.go+331 −0internal/edge/group_readers.go+37 −0internal/edge/group_readers_test.go+136 −0internal/edge/hairpin.go+134 −0internal/edge/hairpin_linux.go+5 −0internal/edge/hairpin_other.go+7 −0internal/edge/hairpin_test.go+61 −0internal/edge/homemap.go+129 −89internal/edge/testdata/edges-forward-hub.json+1 −1internal/edgesfile/fold.go+1 −1internal/edgesfile/homeelect.go+23 −18internal/edgesfile/nameauthority.go+147 −0internal/edgesfile/nameauthority_test.go+25 −0internal/edgesfile/snapshot.go+98 −0internal/hairpin/lifecycle.go+70 −0internal/hairpin/lifecycle_test.go+99 −0internal/hairpin/native_linux.go+420 −0internal/hairpin/native_linux_test.go+106 −0internal/hairpin/native_other.go+38 −0internal/hairpin/rules.go+148 −0internal/hairpin/rules_test.go+92 −0internal/hairpin/snapshot.go+76 −0internal/host/agent.go+46 −9internal/host/awsaddr.go+18 −0internal/host/bootstrap.go+56 −3internal/host/boxrecord.go+18 −1internal/host/claimstop_run.go+27 −0internal/host/edgesfile.go+11 −3internal/host/edgesfile_test.go+12 −12internal/host/edgesschedule.go+12 −1internal/host/edgesschedule_test.go+60 −0internal/host/egress_nopolicy_linux_test.go+1 −1internal/host/group_admission.go+154 −18internal/host/group_admission_fix_test.go+11 −1internal/host/group_admission_test.go+1 −1internal/host/group_boot.go+157 −0internal/host/group_boot_budget_test.go+450 −0internal/host/group_boot_test.go+347 −0internal/host/group_config.go+16 −0internal/host/group_config_linux.go+75 −0internal/host/group_config_other.go+7 −0internal/host/group_config_test.go+85 −0internal/host/group_departure_test.go+260 −0internal/host/group_fixed_entry_test.go+78 −0internal/host/group_hairpin.go+58 −0internal/host/group_hairpin_rootrunner_linux_test.go+1,027 −0internal/host/group_hairpin_test.go+114 −0internal/host/group_install.go+27 −0internal/host/group_maintenance.go+348 −0internal/host/group_maintenance_linux.go+49 −0internal/host/group_maintenance_other.go+7 −0internal/host/group_maintenance_protocol_test.go+521 −0internal/host/group_maintenance_test.go+634 −0internal/host/group_metrics.go+56 −2internal/host/group_metrics_test.go+145 −0internal/host/group_names_test.go+392 −0internal/host/group_pool_test.go+109 −0internal/host/group_readers_test.go+171 −0internal/host/group_receipt.go+171 −0internal/host/group_receipt_linux.go+110 −0internal/host/group_receipt_other.go+7 −0internal/host/group_receipt_test.go+160 −0internal/host/hadepartures.go+32 −1internal/host/hadepartures_production_test.go+69 −2internal/host/hadepartures_scan.go+15 −0internal/host/hadepartures_wiring.go+11 −1internal/host/installchannel.go+85 −9internal/host/installchannel_test.go+112 −0internal/host/memwatch.go+5 −2internal/host/movesoffline_test.go+5 −5internal/host/systemapply.go+103 −9internal/host/systemleg.go+54 −2internal/host/systemleg_test.go+247 −0internal/host/systemunits.go+38 −0internal/host/testdata/edges-p2b-golden.json+1 −1internal/host/units/carlos-edge-group.conf+6 −0internal/hostenv/awsssm.go+57 −4internal/hostenv/cli.go+47 −3internal/hostenv/group.go+196 −0internal/hostenv/group_linux.go+60 −0internal/hostenv/group_linux_test.go+44 −0internal/hostenv/group_other.go+16 −0internal/hostenv/group_test.go+124 −0internal/instancectl/hairpin.go+267 −0internal/instancectl/hairpin_refresh_linux_test.go+101 −0internal/instancectl/hardening.go+26 −4internal/instancectl/server.go+14 −1internal/provision/plan9_b8_census_test.go+1 −1internal/provision/region_ha_p3b_census_test.go+22 −0internal/provision/testdata/plan14-root-reads-chain.tsv+1 −0internal/provision/testdata/plan14-root-reads-region-ha-p3b.tsv+152 −0internal/release/openers_test.go+9 −8internal/release/plan14_generation_boot_test.go+27 −4internal/sim/regionha/actions_test.go+7 −0internal/sim/regionha/duties_model_test.go+19 −2internal/sim/regionha/group_admission_test.go+387 −0internal/sim/regionha/invariants_test.go+3 −0internal/sim/regionha/world_test.go+2 −0scripts/check-region-group-plan.py+62 −3scripts/check_region_group_plan_test.py+51 −0scripts/region_group_contract_test.py+256 −0scripts/testdata/region-group-plan/fixed-resource-contract.json+359 −0
CI passed — run details
.amadan/test-weights.tsvLoading diff…
docs/site/cli.mdLoading diff…
docs/superpowers/notes/census-proposal-region-ha-p3b.mdLoading diff…
docs/superpowers/plans/2026-11-04-region-ha-p3b-group.mdLoading diff…
docs/superpowers/plans/REVIEW-BRIEF-REGION-HA-P3B-R1.mdLoading diff…
docs/superpowers/plans/REVIEW-BRIEF-REGION-HA-P3B-R2.mdLoading diff…
docs/superpowers/plans/REVIEW-REGION-HA-P3B-R1.mdLoading diff…
docs/superpowers/plans/REVIEW-REGION-HA-P3B-R2.mdLoading diff…
docs/superpowers/specs/2026-10-26-region-ha-without-claims-design.mdLoading diff…
infra/modules/region-host/group-init.sh.tftplLoading diff…
infra/modules/region-host/group.tfLoading diff…
infra/modules/region-host/group_alarms.tfLoading diff…
infra/modules/region-host/group_iam.tfLoading diff…
infra/modules/region-host/main.tfLoading diff…
infra/modules/region-host/outputs.tfLoading diff…
infra/modules/region-host/tests/fixed-and-group/main.tfLoading diff…
infra/modules/region-host/tests/fixed_state_unchanged.tftest.hclLoading diff…
infra/modules/region-host/tests/group.tftest.hclLoading diff…
infra/modules/region-host/tests/group_alarms.tftest.hclLoading diff…
infra/modules/region-host/tests/group_iam.tftest.hclLoading diff…
infra/modules/region-host/tests/group_isolation.tftest.hclLoading diff…
infra/modules/region-host/tests/instance_metadata.tftest.hclLoading diff…
infra/modules/region-host/variables.tfLoading diff…
internal/awsregiongroup/complete.goLoading diff…
internal/awsregiongroup/complete_test.goLoading diff…
internal/boxroles/imports_test.goLoading diff…
internal/boxroles/roles.goLoading diff…
internal/boxroles/roles_test.goLoading diff…
internal/console/group_names_test.goLoading diff…
internal/edge/boxroles_test.goLoading diff…
internal/edge/edge.goLoading diff…
internal/edge/group_admission_external_test.goLoading diff…
internal/edge/group_names_test.goLoading diff…
internal/edge/group_readers.goLoading diff…
internal/edge/group_readers_test.goLoading diff…
internal/edge/hairpin.goLoading diff…
internal/edge/hairpin_linux.goLoading diff…
internal/edge/hairpin_other.goLoading diff…
internal/edge/hairpin_test.goLoading diff…
internal/edge/homemap.goLoading diff…
internal/edge/testdata/edges-forward-hub.jsonLoading diff…
internal/edgesfile/fold.goLoading diff…
internal/edgesfile/homeelect.goLoading diff…
internal/edgesfile/nameauthority.goLoading diff…
internal/edgesfile/nameauthority_test.goLoading diff…
internal/edgesfile/snapshot.goLoading diff…
internal/hairpin/lifecycle.goLoading diff…
internal/hairpin/lifecycle_test.goLoading diff…
internal/hairpin/native_linux.goLoading diff…
internal/hairpin/native_linux_test.goLoading diff…
internal/hairpin/native_other.goLoading diff…
internal/hairpin/rules.goLoading diff…
internal/hairpin/rules_test.goLoading diff…
internal/hairpin/snapshot.goLoading diff…
internal/host/agent.goLoading diff…
internal/host/awsaddr.goLoading diff…
internal/host/bootstrap.goLoading diff…
internal/host/boxrecord.goLoading diff…
internal/host/claimstop_run.goLoading diff…
internal/host/edgesfile.goLoading diff…
internal/host/edgesfile_test.goLoading diff…
internal/host/edgesschedule.goLoading diff…
internal/host/edgesschedule_test.goLoading diff…
internal/host/egress_nopolicy_linux_test.goLoading diff…
internal/host/group_admission.goLoading diff…
internal/host/group_admission_fix_test.goLoading diff…
internal/host/group_admission_test.goLoading diff…
internal/host/group_boot.goLoading diff…
internal/host/group_boot_budget_test.goLoading diff…
internal/host/group_boot_test.goLoading diff…
internal/host/group_config.goLoading diff…
internal/host/group_config_linux.goLoading diff…
internal/host/group_config_other.goLoading diff…
internal/host/group_config_test.goLoading diff…
internal/host/group_departure_test.goLoading diff…
internal/host/group_fixed_entry_test.goLoading diff…
internal/host/group_hairpin.goLoading diff…
internal/host/group_hairpin_rootrunner_linux_test.goLoading diff…
internal/host/group_hairpin_test.goLoading diff…
internal/host/group_install.goLoading diff…
internal/host/group_maintenance.goLoading diff…
internal/host/group_maintenance_linux.goLoading diff…
internal/host/group_maintenance_other.goLoading diff…
internal/host/group_maintenance_protocol_test.goLoading diff…
internal/host/group_maintenance_test.goLoading diff…
internal/host/group_metrics.goLoading diff…
internal/host/group_metrics_test.goLoading diff…
internal/host/group_names_test.goLoading diff…
internal/host/group_pool_test.goLoading diff…
internal/host/group_readers_test.goLoading diff…
internal/host/group_receipt.goLoading diff…
internal/host/group_receipt_linux.goLoading diff…
internal/host/group_receipt_other.goLoading diff…
internal/host/group_receipt_test.goLoading diff…
internal/host/hadepartures.goLoading diff…
internal/host/hadepartures_production_test.goLoading diff…
internal/host/hadepartures_scan.goLoading diff…
internal/host/hadepartures_wiring.goLoading diff…
internal/host/installchannel.goLoading diff…
internal/host/installchannel_test.goLoading diff…
internal/host/memwatch.goLoading diff…
internal/host/movesoffline_test.goLoading diff…
internal/host/systemapply.goLoading diff…
internal/host/systemleg.goLoading diff…
internal/host/systemleg_test.goLoading diff…
internal/host/systemunits.goLoading diff…
internal/host/testdata/edges-p2b-golden.jsonLoading diff…
internal/host/units/carlos-edge-group.confLoading diff…
internal/hostenv/awsssm.goLoading diff…
internal/hostenv/cli.goLoading diff…
internal/hostenv/group.goLoading diff…
internal/hostenv/group_linux.goLoading diff…
internal/hostenv/group_linux_test.goLoading diff…
internal/hostenv/group_other.goLoading diff…
internal/hostenv/group_test.goLoading diff…
internal/instancectl/hairpin.goLoading diff…
internal/instancectl/hairpin_refresh_linux_test.goLoading diff…
internal/instancectl/hardening.goLoading diff…
internal/instancectl/server.goLoading diff…
internal/provision/plan9_b8_census_test.goLoading diff…
internal/provision/region_ha_p3b_census_test.goLoading diff…
internal/provision/testdata/plan14-root-reads-chain.tsvLoading diff…
internal/provision/testdata/plan14-root-reads-region-ha-p3b.tsvLoading diff…
internal/release/openers_test.goLoading diff…
internal/release/plan14_generation_boot_test.goLoading diff…
internal/sim/regionha/actions_test.goLoading diff…
internal/sim/regionha/duties_model_test.goLoading diff…
internal/sim/regionha/group_admission_test.goLoading diff…
internal/sim/regionha/invariants_test.goLoading diff…
internal/sim/regionha/world_test.goLoading diff…
scripts/check-region-group-plan.pyLoading diff…
scripts/check_region_group_plan_test.pyLoading diff…
scripts/region_group_contract_test.pyLoading diff…
scripts/testdata/region-group-plan/fixed-resource-contract.jsonLoading diff…