region-ha-p3b2-build
Region HA P3b-2: attended operator Standby rolls (plan docs/superpowers/plans/2026-11-04-region-ha-p3b-group.md, Task 7) under N-HA14 and N-HA19. Build only: no release, apply or drill. The dev witness is a later dated card.
What changes
- Group members get the SSM agent (
infra/modules/region-host/group-init.sh.tftpl). P3b-1 found they had none, so Session Manager, the only approved root channel, could not reach them. A failed install stops the boot before edge start. - Operator IAM output. The module output
group_operator_policy_jsonis least privilege: UpdateASG, EnterStandby and ExitStandby on the exact group; describes; StartSession only on group-tagged instances with one approved document; the operator's own sessions; reads ofcontrol/edges/*. It grants no termination, no SetDesiredCapacity and no CompleteLifecycleAction. - Root verbs on the box:
carlos system group-maintenance {status|permit|revoke|prepare|apply|rollback}. - The permit writer uses the merged Task 4 guard's own validators, and the guard's acceptance is unchanged. - prepare verifies the signed pointer and artifact digest before minimum is lowered. - apply and rollback reuse the unchanged apply body under the permit. Rollback needs an explicit same-transaction rollback permit. - status gives a bounded local snapshot, including the edge start time as a lower bound. scripts/region-group-roll.py, the attended N-HA14 transaction tool. - One serialized transaction per group, with a fsynced, hash-chained journal and a group lock. - The sequence: min N to N-1, EnterStandby with decrement, deregistration readback, permit, box apply, readback, fresh admission (≤5 s before Exit), ExitStandby, InService and healthy readback, restore min, revoke last. - Every return decision comes from one pureclassify()table. It never terminates, never raises desired, and never sends a lifecycle completion or ABANDON.- Docs: operator note, Standby witness runbook (including 7(b) with a fixed box legitimately out), follow-up list, and one plan ruling row.
Ruling change (Paul, 2026-11-05, stopping rule 2, recorded on #421). The tool refuses return hooks. If Pending:Wait is seen after ExitStandby, that is divergence: the tool journals it, alerts and blocks further rolls. If AWS's default ABANDON then terminates the member, that is a FAIL, never a pass. This replaces B3b-D's defensive CONTINUE.
Tests and review
- Fake-provider tests (132), a seeded simulation (one 3000-seed sweep) that asserts no completion is ever sent, and plan and simulation mutations, all caught.
- Targeted Go tests for the verbs, and mock tofu tests for the policy and user data.
- Per-task Opus reviews: B1, B2, B2b (two fix rounds), B3 (three rounds plus the cut, under rule 2 twice).
- Whole-branch Opus review round 1: READY AFTER FIXES, 0 P1, 1 P2 (applied: freeze region applies during rolls), 6 P3 (follow-up list).
- Census region-ha-p3b2 APPROVED by Opus on #280.
- CI green on the tip.
Commits
19
Discussions
0
0 open
Tasks
8/8
done
Discussions
- No discussions on this branch yet.
Tasks 8/8 done
- B1: group SSM agent + operator IAM policy (review clean, R7/R9 closed) Done
- B2: root group-maintenance verbs (review clean, follow-up closed) Done
- B3: operator Standby roll — Paul's cut (refuse return hooks) applied, checks clean Done
- B4: witness runbook, operator docs, Luna copy pass (applied e5e9b1a7) Done
- Census card + Opus verdict on #280 (APPROVED r1 at a77d1a8c) Done
Activity
- claude agent, operated by paul@keymail.dev pushed 6c1fe657b Merge origin/main into region-ha-p3b2-build
- claude agent, operated by paul@keymail.dev pushed f4b86b59e Freeze region applies during group rolls; list P3b-2 follow-ups
- claude agent, operated by paul@keymail.dev pushed e5e9b1a7b Apply copy pass to group roll operator text
- claude agent, operated by paul@keymail.dev pushed 623126dc9 Re-propose P3b-2 census after the return-hook cut
- claude agent, operated by paul@keymail.dev pushed e38fbb939 Refuse lifecycle completion during group maintenance
- claude agent, operated by paul@keymail.dev pushed 580a36440 Centralize group return decisions and simulate recovery
- claude agent, operated by paul@keymail.dev pushed 6895a596e Fix group roll warming, rollback recovery and abandonment
- claude agent, operated by paul@keymail.dev pushed 06bedaf74 Document attended group rolls and the Standby witness
- claude agent, operated by paul@keymail.dev pushed 277d66cb9 Fix attended group roll return safety and session recovery
- claude agent, operated by paul@keymail.dev pushed a77d1a8cd Census proposal for region HA P3b-2 group maintenance
- claude agent, operated by paul@keymail.dev pushed cd0d54cf7 Fix maintenance test isolation and process start bound
- claude agent, operated by paul@keymail.dev pushed 8877f0e09 Add attended group Standby roll command and failure witnesses
- claude agent, operated by paul@keymail.dev pushed 36bdeb0df Fix group maintenance apply configuration and preparation reporting
- claude agent, operated by paul@keymail.dev pushed d48d82d1b Add attended group preparation and local rollback
- claude agent, operated by paul@keymail.dev opened B2b: box roll prerequisites (prepare, apply, local rollback, started_at) — review clean after 2 fix rounds
- claude agent, operated by paul@keymail.dev pushed 8b2940281 Fix group operator session channel scope for role identities
- claude agent, operated by paul@keymail.dev pushed 05c274333 Clarify group maintenance status and release probe lock
- claude agent, operated by paul@keymail.dev pushed 4a43d1e04 Fix group operator policy and test hygiene for R7
- claude agent, operated by paul@keymail.dev pushed bdaca0072 Add root group maintenance permit, revoke and status verbs
- claude agent, operated by paul@keymail.dev pushed 401381395 Add SSM boot channel and scoped policy for group roll operators
- claude agent, operated by paul@keymail.dev opened Merged e129f53, mirror fast-forwarded, posted on #421
- claude agent, operated by paul@keymail.dev opened Whole-branch Opus review: r1 READY AFTER FIXES (0 P1), P2 applied
- claude agent, operated by paul@keymail.dev opened Census card + Opus verdict on #280 (APPROVED r1 at a77d1a8c)
- claude agent, operated by paul@keymail.dev opened B4: witness runbook, operator docs, Luna copy pass (applied e5e9b1a7)
- claude agent, operated by paul@keymail.dev opened B3: operator Standby roll — Paul's cut (refuse return hooks) applied, checks clean
- claude agent, operated by paul@keymail.dev opened B2: root group-maintenance verbs (review clean, follow-up closed)
- claude agent, operated by paul@keymail.dev opened B1: group SSM agent + operator IAM policy (review clean, R7/R9 closed)