carlos / platform Public

Merge main (region HA P3b-1) into stateless-coordinator-oneboxfleet

The record-write census inventory now chains on region HA P3b's
inventory; the root-read chain keeps main's lines first and this
branch's overlay re-proposed on seal face84b4 (clean).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev e4115780cf120a2cf82410f6f6c75c868b829de6 parent 8fd2b9dparent 5c3e3fe
135 files changed, +14,614 −307
  • .amadan/test-weights.tsv +5 −0
  • docs/site/cli.md +3 −1
  • docs/superpowers/notes/census-proposal-region-ha-p3b.md +132 −0
  • docs/superpowers/notes/census-proposal-stateless-coordinator-oneboxfleet.md +1 −1
  • docs/superpowers/plans/2026-11-04-region-ha-p3b-group.md +368 −0
  • docs/superpowers/plans/REVIEW-BRIEF-REGION-HA-P3B-R1.md +117 −0
  • docs/superpowers/plans/REVIEW-BRIEF-REGION-HA-P3B-R2.md +132 −0
  • docs/superpowers/plans/REVIEW-REGION-HA-P3B-R1.md +143 −0
  • docs/superpowers/plans/REVIEW-REGION-HA-P3B-R2.md +93 −0
  • docs/superpowers/specs/2026-10-26-region-ha-without-claims-design.md +3 −2
  • infra/modules/region-host/group-init.sh.tftpl +283 −0
  • infra/modules/region-host/group.tf +283 −0
  • infra/modules/region-host/group_alarms.tf +160 −0
  • infra/modules/region-host/group_iam.tf +99 −0
  • infra/modules/region-host/main.tf +42 −20
  • infra/modules/region-host/outputs.tf +35 −5
  • infra/modules/region-host/tests/fixed-and-group/main.tf +69 −0
  • infra/modules/region-host/tests/fixed_state_unchanged.tftest.hcl +15 −13
  • infra/modules/region-host/tests/group.tftest.hcl +428 −0
  • infra/modules/region-host/tests/group_alarms.tftest.hcl +190 −6
  • infra/modules/region-host/tests/group_iam.tftest.hcl +202 −0
  • infra/modules/region-host/tests/group_isolation.tftest.hcl +96 −0
  • infra/modules/region-host/tests/instance_metadata.tftest.hcl +3 −3
  • infra/modules/region-host/variables.tf +111 −1
  • internal/awsregiongroup/complete.go +52 −0
  • internal/awsregiongroup/complete_test.go +83 −0
  • internal/boxroles/imports_test.go +28 −0
  • internal/boxroles/roles.go +6 −4
  • internal/boxroles/roles_test.go +0 −3
  • internal/console/group_names_test.go +28 −0
  • internal/edge/boxroles_test.go +1 −1
  • internal/edge/edge.go +53 −22
  • internal/edge/group_admission_external_test.go +64 −1
  • internal/edge/group_names_test.go +331 −0
  • internal/edge/group_readers.go +37 −0
  • internal/edge/group_readers_test.go +136 −0
  • internal/edge/hairpin.go +134 −0
  • internal/edge/hairpin_linux.go +5 −0
  • internal/edge/hairpin_other.go +7 −0
  • internal/edge/hairpin_test.go +61 −0
  • internal/edge/homemap.go +129 −89
  • internal/edge/testdata/edges-forward-hub.json +1 −1
  • internal/edgesfile/fold.go +1 −1
  • internal/edgesfile/homeelect.go +23 −18
  • internal/edgesfile/nameauthority.go +147 −0
  • internal/edgesfile/nameauthority_test.go +25 −0
  • internal/edgesfile/snapshot.go +98 −0
  • internal/hairpin/lifecycle.go +70 −0
  • internal/hairpin/lifecycle_test.go +99 −0
  • internal/hairpin/native_linux.go +420 −0
  • internal/hairpin/native_linux_test.go +106 −0
  • internal/hairpin/native_other.go +38 −0
  • internal/hairpin/rules.go +148 −0
  • internal/hairpin/rules_test.go +92 −0
  • internal/hairpin/snapshot.go +76 −0
  • internal/host/agent.go +46 −9
  • internal/host/awsaddr.go +18 −0
  • internal/host/bootstrap.go +56 −3
  • internal/host/boxrecord.go +18 −1
  • internal/host/claimstop_run.go +27 −0
  • internal/host/edgesfile.go +11 −3
  • internal/host/edgesfile_test.go +12 −12
  • internal/host/edgesschedule.go +12 −1
  • internal/host/edgesschedule_test.go +60 −0
  • internal/host/egress_nopolicy_linux_test.go +1 −1
  • internal/host/group_admission.go +154 −18
  • internal/host/group_admission_fix_test.go +11 −1
  • internal/host/group_admission_test.go +1 −1
  • internal/host/group_boot.go +157 −0
  • internal/host/group_boot_budget_test.go +450 −0
  • internal/host/group_boot_test.go +347 −0
  • internal/host/group_config.go +16 −0
  • internal/host/group_config_linux.go +75 −0
  • internal/host/group_config_other.go +7 −0
  • internal/host/group_config_test.go +85 −0
  • internal/host/group_departure_test.go +260 −0
  • internal/host/group_fixed_entry_test.go +78 −0
  • internal/host/group_hairpin.go +58 −0
  • internal/host/group_hairpin_rootrunner_linux_test.go +1,027 −0
  • internal/host/group_hairpin_test.go +114 −0
  • internal/host/group_install.go +27 −0
  • internal/host/group_maintenance.go +348 −0
  • internal/host/group_maintenance_linux.go +49 −0
  • internal/host/group_maintenance_other.go +7 −0
  • internal/host/group_maintenance_protocol_test.go +521 −0
  • internal/host/group_maintenance_test.go +634 −0
  • internal/host/group_metrics.go +56 −2
  • internal/host/group_metrics_test.go +145 −0
  • internal/host/group_names_test.go +392 −0
  • internal/host/group_pool_test.go +109 −0
  • internal/host/group_readers_test.go +171 −0
  • internal/host/group_receipt.go +171 −0
  • internal/host/group_receipt_linux.go +110 −0
  • internal/host/group_receipt_other.go +7 −0
  • internal/host/group_receipt_test.go +160 −0
  • internal/host/hadepartures.go +32 −1
  • internal/host/hadepartures_production_test.go +69 −2
  • internal/host/hadepartures_scan.go +15 −0
  • internal/host/hadepartures_wiring.go +11 −1
  • internal/host/installchannel.go +85 −9
  • internal/host/installchannel_test.go +112 −0
  • internal/host/memwatch.go +5 −2
  • internal/host/movesoffline_test.go +5 −5
  • internal/host/systemapply.go +103 −9
  • internal/host/systemleg.go +54 −2
  • internal/host/systemleg_test.go +247 −0
  • internal/host/systemunits.go +38 −0
  • internal/host/testdata/edges-p2b-golden.json +1 −1
  • internal/host/units/carlos-edge-group.conf +6 −0
  • internal/hostenv/awsssm.go +57 −4
  • internal/hostenv/cli.go +47 −3
  • internal/hostenv/group.go +196 −0
  • internal/hostenv/group_linux.go +60 −0
  • internal/hostenv/group_linux_test.go +44 −0
  • internal/hostenv/group_other.go +16 −0
  • internal/hostenv/group_test.go +124 −0
  • internal/instancectl/hairpin.go +267 −0
  • internal/instancectl/hairpin_refresh_linux_test.go +101 −0
  • internal/instancectl/hardening.go +26 −4
  • internal/instancectl/server.go +14 −1
  • internal/provision/onebox_coordinator_census_test.go +1 −1
  • internal/provision/region_ha_p3b_census_test.go +22 −0
  • internal/provision/testdata/plan14-root-reads-chain.tsv +2 −1
  • internal/provision/testdata/plan14-root-reads-region-ha-p3b.tsv +152 −0
  • internal/release/openers_test.go +9 −8
  • internal/release/plan14_generation_boot_test.go +27 −4
  • internal/sim/regionha/actions_test.go +7 −0
  • internal/sim/regionha/duties_model_test.go +19 −2
  • internal/sim/regionha/group_admission_test.go +387 −0
  • internal/sim/regionha/invariants_test.go +3 −0
  • internal/sim/regionha/world_test.go +2 −0
  • scripts/check-region-group-plan.py +62 −3
  • scripts/check_region_group_plan_test.py +51 −0
  • scripts/region_group_contract_test.py +256 −0
  • scripts/testdata/region-group-plan/fixed-resource-contract.json +359 −0

CI failed — run details

Intent

Attributed to this commit: 31.4 g CO₂e (4,023,060 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on stateless-coordinator-oneboxfleet, never backward from it. A turn that produced more than one commit books all of its tokens to the last one, and a concurrent session on this branch can add to the same figure. Some of it was priced using the shared default rate, because no model-specific factor row exists yet for at least one model involved. The Carbon view has the repo total, which is never derived from this attribution.

.amadan/test-weights.tsv

Loading diff…

docs/site/cli.md

Loading diff…

docs/superpowers/notes/census-proposal-region-ha-p3b.md

Loading diff…

docs/superpowers/notes/census-proposal-stateless-coordinator-oneboxfleet.md

Loading diff…

docs/superpowers/plans/2026-11-04-region-ha-p3b-group.md

Loading diff…

docs/superpowers/plans/REVIEW-BRIEF-REGION-HA-P3B-R1.md

Loading diff…

docs/superpowers/plans/REVIEW-BRIEF-REGION-HA-P3B-R2.md

Loading diff…

docs/superpowers/plans/REVIEW-REGION-HA-P3B-R1.md

Loading diff…

docs/superpowers/plans/REVIEW-REGION-HA-P3B-R2.md

Loading diff…

docs/superpowers/specs/2026-10-26-region-ha-without-claims-design.md

Loading diff…

infra/modules/region-host/group-init.sh.tftpl

Loading diff…

infra/modules/region-host/group.tf

Loading diff…

infra/modules/region-host/group_alarms.tf

Loading diff…

infra/modules/region-host/group_iam.tf

Loading diff…

infra/modules/region-host/main.tf

Loading diff…

infra/modules/region-host/outputs.tf

Loading diff…

infra/modules/region-host/tests/fixed-and-group/main.tf

Loading diff…

infra/modules/region-host/tests/fixed_state_unchanged.tftest.hcl

Loading diff…

infra/modules/region-host/tests/group.tftest.hcl

Loading diff…

infra/modules/region-host/tests/group_alarms.tftest.hcl

Loading diff…

infra/modules/region-host/tests/group_iam.tftest.hcl

Loading diff…

infra/modules/region-host/tests/group_isolation.tftest.hcl

Loading diff…

infra/modules/region-host/tests/instance_metadata.tftest.hcl

Loading diff…

infra/modules/region-host/variables.tf

Loading diff…

internal/awsregiongroup/complete.go

Loading diff…

internal/awsregiongroup/complete_test.go

Loading diff…

internal/boxroles/imports_test.go

Loading diff…

internal/boxroles/roles.go

Loading diff…

internal/boxroles/roles_test.go

Loading diff…

internal/console/group_names_test.go

Loading diff…

internal/edge/boxroles_test.go

Loading diff…

internal/edge/edge.go

Loading diff…

internal/edge/group_admission_external_test.go

Loading diff…

internal/edge/group_names_test.go

Loading diff…

internal/edge/group_readers.go

Loading diff…

internal/edge/group_readers_test.go

Loading diff…

internal/edge/hairpin.go

Loading diff…

internal/edge/hairpin_linux.go

Loading diff…

internal/edge/hairpin_other.go

Loading diff…

internal/edge/hairpin_test.go

Loading diff…

internal/edge/homemap.go

Loading diff…

internal/edge/testdata/edges-forward-hub.json

Loading diff…

internal/edgesfile/fold.go

Loading diff…

internal/edgesfile/homeelect.go

Loading diff…

internal/edgesfile/nameauthority.go

Loading diff…

internal/edgesfile/nameauthority_test.go

Loading diff…

internal/edgesfile/snapshot.go

Loading diff…

internal/hairpin/lifecycle.go

Loading diff…

internal/hairpin/lifecycle_test.go

Loading diff…

internal/hairpin/native_linux.go

Loading diff…

internal/hairpin/native_linux_test.go

Loading diff…

internal/hairpin/native_other.go

Loading diff…

internal/hairpin/rules.go

Loading diff…

internal/hairpin/rules_test.go

Loading diff…

internal/hairpin/snapshot.go

Loading diff…

internal/host/agent.go

Loading diff…

internal/host/awsaddr.go

Loading diff…

internal/host/bootstrap.go

Loading diff…

internal/host/boxrecord.go

Loading diff…

internal/host/claimstop_run.go

Loading diff…

internal/host/edgesfile.go

Loading diff…

internal/host/edgesfile_test.go

Loading diff…

internal/host/edgesschedule.go

Loading diff…

internal/host/edgesschedule_test.go

Loading diff…

internal/host/egress_nopolicy_linux_test.go

Loading diff…

internal/host/group_admission.go

Loading diff…

internal/host/group_admission_fix_test.go

Loading diff…

internal/host/group_admission_test.go

Loading diff…

internal/host/group_boot.go

Loading diff…

internal/host/group_boot_budget_test.go

Loading diff…

internal/host/group_boot_test.go

Loading diff…

internal/host/group_config.go

Loading diff…

internal/host/group_config_linux.go

Loading diff…

internal/host/group_config_other.go

Loading diff…

internal/host/group_config_test.go

Loading diff…

internal/host/group_departure_test.go

Loading diff…

internal/host/group_fixed_entry_test.go

Loading diff…

internal/host/group_hairpin.go

Loading diff…

internal/host/group_hairpin_rootrunner_linux_test.go

Loading diff…

internal/host/group_hairpin_test.go

Loading diff…

internal/host/group_install.go

Loading diff…

internal/host/group_maintenance.go

Loading diff…

internal/host/group_maintenance_linux.go

Loading diff…

internal/host/group_maintenance_other.go

Loading diff…

internal/host/group_maintenance_protocol_test.go

Loading diff…

internal/host/group_maintenance_test.go

Loading diff…

internal/host/group_metrics.go

Loading diff…

internal/host/group_metrics_test.go

Loading diff…

internal/host/group_names_test.go

Loading diff…

internal/host/group_pool_test.go

Loading diff…

internal/host/group_readers_test.go

Loading diff…

internal/host/group_receipt.go

Loading diff…

internal/host/group_receipt_linux.go

Loading diff…

internal/host/group_receipt_other.go

Loading diff…

internal/host/group_receipt_test.go

Loading diff…

internal/host/hadepartures.go

Loading diff…

internal/host/hadepartures_production_test.go

Loading diff…

internal/host/hadepartures_scan.go

Loading diff…

internal/host/hadepartures_wiring.go

Loading diff…

internal/host/installchannel.go

Loading diff…

internal/host/installchannel_test.go

Loading diff…

internal/host/memwatch.go

Loading diff…

internal/host/movesoffline_test.go

Loading diff…

internal/host/systemapply.go

Loading diff…

internal/host/systemleg.go

Loading diff…

internal/host/systemleg_test.go

Loading diff…

internal/host/systemunits.go

Loading diff…

internal/host/testdata/edges-p2b-golden.json

Loading diff…

internal/host/units/carlos-edge-group.conf

Loading diff…

internal/hostenv/awsssm.go

Loading diff…

internal/hostenv/cli.go

Loading diff…

internal/hostenv/group.go

Loading diff…

internal/hostenv/group_linux.go

Loading diff…

internal/hostenv/group_linux_test.go

Loading diff…

internal/hostenv/group_other.go

Loading diff…

internal/hostenv/group_test.go

Loading diff…

internal/instancectl/hairpin.go

Loading diff…

internal/instancectl/hairpin_refresh_linux_test.go

Loading diff…

internal/instancectl/hardening.go

Loading diff…

internal/instancectl/server.go

Loading diff…

internal/provision/onebox_coordinator_census_test.go

Loading diff…

internal/provision/region_ha_p3b_census_test.go

Loading diff…

internal/provision/testdata/plan14-root-reads-chain.tsv

Loading diff…

internal/provision/testdata/plan14-root-reads-region-ha-p3b.tsv

Loading diff…

internal/release/openers_test.go

Loading diff…

internal/release/plan14_generation_boot_test.go

Loading diff…

internal/sim/regionha/actions_test.go

Loading diff…

internal/sim/regionha/duties_model_test.go

Loading diff…

internal/sim/regionha/group_admission_test.go

Loading diff…

internal/sim/regionha/invariants_test.go

Loading diff…

internal/sim/regionha/world_test.go

Loading diff…

scripts/check-region-group-plan.py

Loading diff…

scripts/check_region_group_plan_test.py

Loading diff…

scripts/region_group_contract_test.py

Loading diff…

scripts/testdata/region-group-plan/fixed-resource-contract.json

Loading diff…