carlos / platform Public

region HA P3b-2: attended operator Standby rolls (N-HA14)

Group members install the SSM agent at boot. The region-host module
outputs a least-privilege operator IAM policy. New root verbs
carlos system group-maintenance {status|permit|revoke|prepare|apply|
rollback} serve the merged Task 4 guard unchanged.
scripts/region-group-roll.py runs one serialized N-HA14 Standby
transaction per group: journaled, locked, Session Manager only, with one
classify() decider. It never terminates, never raises desired and never
completes a lifecycle action (Paul's 2026-11-05 ruling, #421).

Fake-provider tests, a 3000-seed simulation and mutation checks pass.
Whole-branch Opus review READY AFTER FIXES (0 P1). Census approved on
#280. No release, apply or drill.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Squashed from region-ha-p3b2-build into main.
Paul Campbell pushed by claude agent, operated by paul@keymail.dev e129f5358d45eb485d4ebf2d5040923c584f4d6a parent 9146b78
29 files changed, +7,159 −31
  • docs/superpowers/notes/2026-11-05-region-ha-p3b2-followups.md +56 −0
  • docs/superpowers/notes/2026-11-05-region-ha-p3b2-operator.md +193 −0
  • docs/superpowers/notes/2026-11-05-region-ha-p3b2-standby-witness.md +382 −0
  • docs/superpowers/notes/census-proposal-region-ha-p3b2.md +49 −0
  • docs/superpowers/plans/2026-11-04-region-ha-p3b-group.md +1 −0
  • infra/modules/region-host/README.md +37 −0
  • infra/modules/region-host/group-init.sh.tftpl +10 −1
  • infra/modules/region-host/group_operator.tf +111 −0
  • infra/modules/region-host/tests/fixed_state_unchanged.tftest.hcl +4 −0
  • infra/modules/region-host/tests/group_operator.tftest.hcl +236 −0
  • infra/modules/region-host/tests/group_user_data.tftest.hcl +10 −0
  • internal/host/group_maintenance.go +44 −21
  • internal/host/group_maintenance_clock.go +97 −0
  • internal/host/group_maintenance_prepare.go +347 −0
  • internal/host/group_maintenance_prepare_test.go +501 −0
  • internal/host/group_maintenance_round1_test.go +359 −0
  • internal/host/group_maintenance_verbs.go +377 −0
  • internal/host/group_maintenance_verbs_linux.go +213 −0
  • internal/host/group_maintenance_verbs_other.go +19 −0
  • internal/host/group_maintenance_verbs_test.go +597 −0
  • internal/host/systemapply.go +27 −8
  • internal/host/systemleg.go +6 −0
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −0
  • internal/provision/testdata/plan14-root-reads-region-ha-p3b2.tsv +44 −0
  • scripts/region-group-roll.py +1,413 −0
  • scripts/region_group_roll_test.py +1,944 −0
  • scripts/region_group_ssm_boot_test.py +69 −0
  • system.go +3 −1
  • system_test.go +9 −0

CI passed — run details

docs/superpowers/notes/2026-11-05-region-ha-p3b2-followups.md

Loading diff…

docs/superpowers/notes/2026-11-05-region-ha-p3b2-operator.md

Loading diff…

docs/superpowers/notes/2026-11-05-region-ha-p3b2-standby-witness.md

Loading diff…

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

Loading diff…

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

Loading diff…

infra/modules/region-host/README.md

Loading diff…

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

Loading diff…

infra/modules/region-host/group_operator.tf

Loading diff…

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

Loading diff…

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

Loading diff…

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

Loading diff…

internal/host/group_maintenance.go

Loading diff…

internal/host/group_maintenance_clock.go

Loading diff…

internal/host/group_maintenance_prepare.go

Loading diff…

internal/host/group_maintenance_prepare_test.go

Loading diff…

internal/host/group_maintenance_round1_test.go

Loading diff…

internal/host/group_maintenance_verbs.go

Loading diff…

internal/host/group_maintenance_verbs_linux.go

Loading diff…

internal/host/group_maintenance_verbs_other.go

Loading diff…

internal/host/group_maintenance_verbs_test.go

Loading diff…

internal/host/systemapply.go

Loading diff…

internal/host/systemleg.go

Loading diff…

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

Loading diff…

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

Loading diff…

scripts/region-group-roll.py

Loading diff…

scripts/region_group_roll_test.py

Loading diff…

scripts/region_group_ssm_boot_test.py

Loading diff…

system.go

Loading diff…

system_test.go

Loading diff…