Apply copy pass to group roll operator text
Document that operators must finish or close a diverged transaction before clearing its flag. Preserve approved copy already present and the newer return-hook refusal behavior.
docs/superpowers/notes/2026-11-05-region-ha-p3b2-operator.md+2 −0
CI passed — run details
Intent
<task-notification> <task-id>a4722b9319f350dc8</task-id> <tool-use-id>toolu_0174rzg2VuZi54psXpvtZVQT</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/e47280e8-3e59-4dc1-95d2-11de7237d34c/tasks/a4722b9319f350dc8.output</output-file> <status>completed</status> <summary>Agent "Scoped check of the cut + census" finished</summary> <note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note> <result>The cut is clean and the census is approved. I made no edits, started no processes and left no scratch files. ## Part A: the "refuse return hooks" cut (e38fbb93) **(1) No lifecycle completion path: PASS.** The `complete` op and its CONTINUE call to `complete-lifecycle-action` are gone from `AWS.request`. The adapter now serves only group, targets, online, hooks, activities, edges, minimum, enter, exit, terminate_session and session; anything else hits `raise Refusal(TEXT["unsupported"])` (`scripts/region-group-roll.py:746`). The executor branches for `complete`, `acknowledge`, `activity` and `backoff` were removed from `return_member`, along with `exit_activity()`. The only "ABANDON" strings left in the script are the launch-hook default check (869, 909) and prose. `test_api_shapes_match_policy_and_remote_verbs` checks that `complete` is refused for both CONTINUE and ABANDON and never reaches `complete-lifecycle-action` (`region_group_roll_test.py:1304-1315`). **(2) classify() is still the only decider: PASS.** - Pending:Wait leads to `diverged`: for a hook seen but not yet recorded (186), and at any readiness once described (192). The executor (1285-1291) then writes the block flag, journals `return-hook` once, and `alert("return_hook")` journals an alert and raises. It sends no completion and no ABANDON. - A gone, `Terminat*` or replaced member after Exit or a hook leads to `failed lost_member` (195-200). `stop_decision` turns that into FailedProbe and writes the block flag (1012-1020). - Every branch of the hook/hold block (203-218) returns hold, held, wait or resumable, so `finish-return` cannot follow an observed hook. - Hook evidence also comes from journaled group responses (1126-1133), so a death partway through recording repairs on resume. **(3) Rest of the return contract: PASS.** - ExitStandby is sent only at 1314 inside `return_member`, with `freshness=ready["observed"]`. `call` refuses anything outside 0–5 s (787). - Minimum is restored (1333) only after `restore-minimum` (266), which needs InService, all targets healthy and readiness ok, and never with a hook or hold. - Nothing calls the desired-capacity or terminate APIs. The adapter has no op for them, and the simulation fake rejects both. - The block flag is checked in preflight (863) and plan (906). `test_default_abandon_and_resume_stay_failed` shows a new roll is refused. **(4) Simulation and mutations: PASS.** - `audit()` runs at every step and asserts `continues == 0` with no `complete` calls (1755). The fake also asserts `op != "complete"` (1685), and `decide()` rejects complete/abandon decisions (1777). - Faults are still random per seed: hook on or off, provider return or abandon, deaths, describe errors, admission flips, response loss. - The source mutations "tool sends CONTINUE", "tool sends ABANDON", "divergence not flagged" and "terminated recorded as pass" are all caught (1909-1923). So are the decision-level simulation mutants (1862-1888) and the kept plan mutations. - I ran the default suite once: **132 tests OK** in 232 s, all 10 source mutations caught, all 5 simulation mutants caught. The 50 seeds covered diverged 24, failed 13, provider-return 11, provider-abandon 13. I did not run the 3000-seed sweep. **(5) Docs: PASS.** The operator note (115-124), the witness runbook (95-97 and the 290-298 table) and the README (`infra/modules/region-host/README.md:157-162`) all describe divergence with no completion. Nothing still describes completing a return hook. The remaining "complete" hits are about box actions, or say "zero completions". **(6) Plan edit: PASS.** Exactly one row was added after B3b-D in the Rulings table, matching the brief word for word. Nothing else in the plan changed. **Findings (none blocking):** - **Low** (test hygiene, `region_group_roll_test.py:186-187`): the unit-test fake still has a `complete` handler and a `continues` counter. They work as a tripwire, since every hook test asserts zero completions, but they are dead code under the new contract. - **Info** (block flag, `region-group-roll.py:185-186,1287`): `divergence_recorded` needs the flag file to exist. If the controller clears the flag while the diverged transaction is still active, the next resume writes it again. That is arguably the right behaviour, but the operator note should say "finish or close the transaction before clearing the flag". - **Info** (`classify:192`): the Pending:Wait row does not check that Exit was sent. This is harmless, because only `return_member` reaches it and the member is in Standby before Exit. **Cut verdict: CLEAN** ## Part B: census re-check (tip 623126dc against approved a77d1a8c) `git diff a77d1a8c..623126dc --stat -- internal/ infra/ system.go main.go` lists five files: - `group_operator.tf` and its tftest. - `README.md`. It is Markdown, which AGENTS.md puts outside census scope. Its extra lines come from 06bedaf7 (doc links). - The overlay and chain testdata. Nothing in `internal/host`, `system.go`, `main.go`, user data or units changed. `go test ./internal/provision -run 'TestPlan14RootReadCensus$|TestCensusScopeIsTheRootBinary$'` passes. The frozen hashes match the files: tf `7ca75e00…`, tftest `c23087ee…`. | Unit / envelope | Change | Verdict | |---|---|---| | `infra/modules/region-host/group_operator.tf` (external) | Drops `autoscaling:CompleteLifecycleAction` from GroupMaintenance (`group_operator.tf:34`) and updates the comment. It is an output only, never read by root, and it narrows the operator's grant. | APPROVE | | `infra/modules/region-host/tests/group_operator.tftest.hcl` (external) | Exact-set assertion updated, and `CompleteLifecycleAction` added to the forbidden list. That strengthens the check. Test only. | APPROVE | | `@coverage infra/modules/region-host` | Re-pinned for the tf change. The README is out of scope. | APPROVE | | `@coverage infra/modules/region-host/tests` | Re-pinned for the tftest change. | APPROVE | | Overlay and chain seal (`plan14-root-reads-region-ha-p3b2.tsv`, chain line 96) | The seal changed only because the two rows were re-frozen. Every other row is byte-identical. | APPROVE | Root cannot open, run, query or follow anything new, and no check is weakened: the IAM grant shrinks and the test gets stricter. **Census: APPROVED.** The verdict still needs recording on #280, citing Opus as the reviewer and tip 623126dc.</result> <usage><subagent_tokens>102315</subagent_tokens><tool_uses>18</tool_uses><duration_ms>390949</duration_ms></usage> </task-notification>
diff --git a/docs/superpowers/notes/2026-11-05-region-ha-p3b2-operator.md b/docs/superpowers/notes/2026-11-05-region-ha-p3b2-operator.md| index 1cca4c4d0..600880d0f 100644 |
| --- a/docs/superpowers/notes/2026-11-05-region-ha-p3b2-operator.md |
| +++ b/docs/superpowers/notes/2026-11-05-region-ha-p3b2-operator.md |
| @@ -90,6 +90,8 @@ object with its pinned numeric version), and `documented_no_hook: true`. |
| Keep the full probe evidence on the private card. Do not create this record |
| from an expectation or a fake test. `provider-divergence.json` blocks further |
| rolls until the controller resolves the provider contract. |
| +Finish or close the diverged transaction before clearing the flag, or the next |
| +resume will write it again. |
| The tool passes through `AWS_CONFIG_FILE`, `AWS_SHARED_CREDENTIALS_FILE` and |
| `AWS_CA_BUNDLE` for profile and trust configuration. It removes ambient |