design: group roll verb review brief, round 2
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2 files changed,
+292
−0
docs/superpowers/reviews/ASTRA-R1-group-roll-verb.md+211 −0docs/superpowers/reviews/CODEX-REVIEW-BRIEF-group-roll-verb-R2.md+81 −0
CI passed — run details
Intent
Attributed to this commit: 41.7 g CO₂e (4,470,587 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on design-group-roll-verb, 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.
diff --git a/docs/superpowers/reviews/ASTRA-R1-group-roll-verb.md b/docs/superpowers/reviews/ASTRA-R1-group-roll-verb.md| new file mode 100644 |
| index 000000000..963c1f06d |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/ASTRA-R1-group-roll-verb.md |
| @@ -0,0 +1,211 @@ |
| +codex |
| +Reviewed `5008e0842ec724dd3b78042a56e4b1d82f435049`, round 1. The checkout is clean. No files changed. Four targeted terminate-decision tests passed; no full suites ran. |
| + |
| +1. **P1 — Spec §8 / Plan Task 11: force-release can admit concurrent transactions.** |
| + **Evidence:** [spec:314–331](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-group-roll-verb/docs/superpowers/specs/2026-11-09-group-roll-verb-design.md:314), [plan:203](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-group-roll-verb/docs/superpowers/plans/2026-11-09-group-roll-verb.md:203). Acquisition precedes preflight; the script creates its journal before preflight and prepares before lowering minimum (`scripts/region-group-roll.py:1355–1369, 1644–1662`). |
| + |
| + **Failure:** machine A acquires the claim and pauses before its first group write. The group satisfies every at-rest condition. B force-releases A’s claim and starts another transaction; A resumes and writes. The release CAS does not fence A’s execution. Likewise, “same transaction plus local journal” accepts a copied journal without establishing exclusive ownership. |
| + |
| + **Fix:** remove automatic at-rest forced release unless recovery proves the previous executor and dispatched operations cannot continue. Bind resumption to an exclusive owner/generation; a copied journal must not establish ownership. Test pauses before dispatch and resumption after ownership changes. |
| + |
| + **Fault family:** exclusive transaction ownership across machines. |
| + |
| +2. **P1 — Spec §§6, 8 / Plan Tasks 7 and 11: the divergence block becomes machine-local.** |
| + **Evidence:** the spec promises to block further rolls at [spec:235–240](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-group-roll-verb/docs/superpowers/specs/2026-11-09-group-roll-verb-design.md:235), but every finished transaction closes the shared claim at [spec:319](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-group-roll-verb/docs/superpowers/specs/2026-11-09-group-roll-verb-design.md:319). The block remains a local file (`scripts/region-group-roll.py:1273, 1468, 1755`). `close_lost` finishes while deliberately retaining that file (`:1425–1431`), also asserted by `scripts/region_group_roll_test.py:514–521`. |
| + |
| + **Failure:** A observes a return hook, then closes the lost member after its termination. The claim becomes closed. B has no divergence file and can acquire the claim and roll the replacement group using its existing observation record. |
| + |
| + **Fix:** persist the divergence block in shared group state and check it during acquisition and planning. Finishing or force-releasing a transaction must preserve it. Add a two-machine test covering divergence → member loss → closure → attempted new roll. |
| + |
| + **Fault family:** durable, group-wide divergence interlock. |
| + |
| +3. **P1 — Spec §8 / Plan Task 11: first acquisition cannot reliably distinguish an absent claim under the proposed IAM.** |
| + **Evidence:** [spec:314–318 and 334–335](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-group-roll-verb/docs/superpowers/specs/2026-11-09-group-roll-verb-design.md:314) requires GET-before-create but grants only object Get/Put. Existing bucket-list permissions cover edges and lock prefixes (`infra/modules/region-host/group_operator.tf:112–135`). `release.S3Store.Get` propagates AccessDenied rather than treating it as absence (`internal/release/store.go:914–920`). |
| + |
| + **Failure:** with only the advertised policy, GET of the never-created claim can return 403, so acquisition refuses before its conditional PUT. S3 documents this missing-object distinction: [https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html](https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html). |
| + |
| + **Fix:** use a create-only PUT first, reading the existing claim after a conditional conflict; separately define how read-only planning establishes absence. Alternatively, provision the initial closed object explicitly. Test missing-object AccessDenied with the exact policy; never reinterpret arbitrary 403s as absence. |
| + |
| + **Fault family:** object absence versus authorization failure. |
| + |
| +4. **P1 — Plan Task 3: the prescribed SDK loading does not suppress endpoint overrides.** |
| + **Evidence:** [plan:80](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-group-roll-verb/docs/superpowers/plans/2026-11-09-group-roll-verb.md:80) specifies `LoadDefaultConfig`, profile, credentials, region, IMDS and retry options. In the installed `config@v1.32.6`, `env_config.go:402` loads `AWS_ENDPOINT_URL`; `:679–681` reads service-specific overrides; `resolve.go:108–127` applies the configured endpoint. None of the listed options disables this. |
| + |
| + **Failure:** Task 3’s own `TestCredentialsIgnoreAmbient` fails, or privileged requests go to an ambient endpoint. Explicit profile selection also does not by itself exclude `credential_source=Environment` (`resolve_credentials.go:383–391`). |
| + |
| + **Fix:** specify and test actual isolation of SDK configuration sources, including service endpoints and credential-provider subclients. Reject prohibited ambient credential sources, and apply the same environment policy to the plugin. |
| + |
| + **Fault family:** operator credential and endpoint isolation. |
| + |
| +5. **P1 — Plan Task 4: the plugin runs without the selected profile.** |
| + **Evidence:** [plan:96](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-group-roll-verb/docs/superpowers/plans/2026-11-09-group-roll-verb.md:96) passes `''` as the profile argument. The script always supplies `--profile` (`scripts/region-group-roll.py:787`). AWS CLI forwards that profile specifically so plugin API calls use the same identity (`sessionmanager.py:133–138, 177–183`): [https://raw.githubusercontent.com/aws/aws-cli/develop/awscli/customizations/sessionmanager.py](https://raw.githubusercontent.com/aws/aws-cli/develop/awscli/customizations/sessionmanager.py). |
| + |
| + **Failure:** StartSession succeeds with the operator profile, while plugin reconnect or cleanup uses default/ambient credentials—or has none. A different caller cannot satisfy the exact `aws:userid` condition in `OwnSessions` (`infra/modules/region-host/group_operator.tf:97–104`). The hard-coded endpoint also loses partition-specific resolution. |
| + |
| + **Fix:** pass `c.Profile` and the actual resolved SSM endpoint, with the sanitized environment. Test plugin arguments and reconnect/cleanup with differing default and operator identities. |
| + |
| + **Fault family:** session identity continuity. |
| + |
| +6. **P1 — Plan Task 5: Merge A omits mandatory command-registry artifacts.** |
| + **Evidence:** [plan:103–116](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-group-roll-verb/docs/superpowers/plans/2026-11-09-group-roll-verb.md:103) adds runnable leaves and then merges, but no task updates `parity/parity.tsv`, regenerates `parity/cli.tsv`, or runs `make parity-doc`. `TestCLIProjection` rejects the changed tree against the old projection (`cli_projection_test.go:42–55`); updating only the projection then fails command coverage (`internal/parity/repo_test.go:62–69`). |
| + |
| + **Failure:** the stated first merge cannot pass CI. Later leaves repeat the problem. |
| + |
| + **Fix:** include the parity rows and generated artifacts in each slice introducing commands. Include the required CLI documentation and review its copy before that slice ships. |
| + |
| + **Fault family:** command-tree and published-contract consistency. |
| + |
| +7. **P1 — Spec §11 / Plan retirement step: deleting the scripts breaks retained tools and parity checks.** |
| + **Evidence:** deletion is specified at [spec:448–451](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-group-roll-verb/docs/superpowers/specs/2026-11-09-group-roll-verb-design.md:448) and [plan:237](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-group-roll-verb/docs/superpowers/plans/2026-11-09-group-roll-verb.md:237). However, `scripts/region_group_frames.py:9–12` imports `region-group-roll.py`; the retained fault client uses its text and AWS session transport (`scripts/region-group-fault/client.py:14–15, 33–44`). Task 12’s ledger test also reads Python files scheduled for deletion (`plan:215`). |
| + |
| + **Failure:** the retained fault client fails during import after retirement. The ledger check loses its input inventory. Repointing the document test alone fixes neither. |
| + |
| + **Fix:** explicitly migrate the retained framing, transport and text dependencies before deletion. Freeze the Python test inventory for the post-retirement ledger, and update every remaining importer and CI entry point. Verify the retained fault client and ledger with the scripts absent. |
| + |
| + **Fault family:** retirement dependency closure. |
| + |
| +8. **P2 — Plan Tasks 2–4 and 10: complete the provider interfaces.** |
| + **Evidence:** [plan:75](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-group-roll-verb/docs/superpowers/plans/2026-11-09-group-roll-verb.md:75) offers `Instance → InstanceState`, with Task 3 testing EC2 absence. The probe separately needs the Auto Scaling instance row, including group, template, lifecycle and health (`scripts/region-group-probe.py:35–53`). Also, `Box` exposes only `Run` (`plan:58`), while Task 4 requires the engine to install a session observer and invoke session termination (`plan:92`). |
| + |
| + **Failure:** the declared interfaces cannot express probe reconciliation or timeout journaling/cleanup without undeclared methods or adapter assertions. |
| + |
| + **Fix:** declare separate membership and instance-existence reads, plus provider-neutral session observation/cleanup capabilities, and exercise them through the interfaces. |
| + |
| + **Fault family:** lossless provider abstraction. |
| + |
| +9. **P2 — Spec V3/V4 and §11: format 2 does not guarantee Python rejection.** |
| + **Evidence:** [spec:445–447](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-group-roll-verb/docs/superpowers/specs/2026-11-09-group-roll-verb-design.md:445) claims the script fails its hash check. Its reader checks hashes and `kind=="begin"`, but never rejects a `format` field (`scripts/region-group-roll.py:579–587`). An in-memory reproduction using sorted ASCII JSON, integer milliseconds and `"format":2` was accepted by the actual reader. |
| + |
| + **Failure:** an otherwise compatible format-2 journal can be interpreted using Python’s seconds-based semantics. Hash differences are not a format boundary. The overlap card remains necessary. |
| + |
| + **Fix:** specify an explicit incompatibility check, with fixtures proving both readers refuse the other format. Clarify separate state-directory configuration: the same directory cannot satisfy both root ownership and non-root ownership requirements. |
| + |
| + **Fault family:** journal format isolation. |
| + |
| +10. **P2 — Spec §6: several recovery rules are missing from the parity contract.** |
| + **Evidence:** [spec:218–266](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-group-roll-verb/docs/superpowers/specs/2026-11-09-group-roll-verb-design.md:218) omits the script’s intent-based abandon restrictions (`scripts/region-group-roll.py:1392–1407`), dual group/EC2 proof for `close-lost` (`:1417–1428`), failed-drain return’s nonzero result and retained drain state (`:1849–1858`), and terminate recovery’s activity ownership and retry allowance per invocation (`:372–394`). |
| + |
| + **Failure:** §6 alone permits materially different closure or recovery behavior despite promising decision-for-decision parity. |
| + |
| + **Fix:** state these rules explicitly and tie them to their existing fault tests in the ledger. |
| + |
| + **Fault family:** recovery-contract completeness. |
| + |
| +11. **P2 — Plan Tasks 4 and 11: repeated `-run` flags skip intended checks.** |
| + **Evidence:** [plan:95](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-group-roll-verb/docs/superpowers/plans/2026-11-09-group-roll-verb.md:95) uses `-run TestSession -run TestPlugin`; [plan:204](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-group-roll-verb/docs/superpowers/plans/2026-11-09-group-roll-verb.md:204) similarly uses two filters. The last flag replaces the first. |
| + |
| + **Failure:** the prescribed verification skips session tests and claim lifecycle/race tests respectively. |
| + |
| + **Fix:** use `-run 'TestSession|TestPlugin'` and `-run 'TestClaim|TestForceRelease'`. |
| + |
| + **Fault family:** verification coverage. |
| + |
| +**Spec verdict: NOT READY — P1 findings 1, 2, 3 and 7.** |
| + |
| +**Plan verdict: NOT READY — P1 findings 1–7.** |
| +tokens used |
| +191,233 |
| +Reviewed `5008e0842ec724dd3b78042a56e4b1d82f435049`, round 1. The checkout is clean. No files changed. Four targeted terminate-decision tests passed; no full suites ran. |
| + |
| +1. **P1 — Spec §8 / Plan Task 11: force-release can admit concurrent transactions.** |
| + **Evidence:** [spec:314–331](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-group-roll-verb/docs/superpowers/specs/2026-11-09-group-roll-verb-design.md:314), [plan:203](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-group-roll-verb/docs/superpowers/plans/2026-11-09-group-roll-verb.md:203). Acquisition precedes preflight; the script creates its journal before preflight and prepares before lowering minimum (`scripts/region-group-roll.py:1355–1369, 1644–1662`). |
| + |
| + **Failure:** machine A acquires the claim and pauses before its first group write. The group satisfies every at-rest condition. B force-releases A’s claim and starts another transaction; A resumes and writes. The release CAS does not fence A’s execution. Likewise, “same transaction plus local journal” accepts a copied journal without establishing exclusive ownership. |
| + |
| + **Fix:** remove automatic at-rest forced release unless recovery proves the previous executor and dispatched operations cannot continue. Bind resumption to an exclusive owner/generation; a copied journal must not establish ownership. Test pauses before dispatch and resumption after ownership changes. |
| + |
| + **Fault family:** exclusive transaction ownership across machines. |
| + |
| +2. **P1 — Spec §§6, 8 / Plan Tasks 7 and 11: the divergence block becomes machine-local.** |
| + **Evidence:** the spec promises to block further rolls at [spec:235–240](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-group-roll-verb/docs/superpowers/specs/2026-11-09-group-roll-verb-design.md:235), but every finished transaction closes the shared claim at [spec:319](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-group-roll-verb/docs/superpowers/specs/2026-11-09-group-roll-verb-design.md:319). The block remains a local file (`scripts/region-group-roll.py:1273, 1468, 1755`). `close_lost` finishes while deliberately retaining that file (`:1425–1431`), also asserted by `scripts/region_group_roll_test.py:514–521`. |
| + |
| + **Failure:** A observes a return hook, then closes the lost member after its termination. The claim becomes closed. B has no divergence file and can acquire the claim and roll the replacement group using its existing observation record. |
| + |
| + **Fix:** persist the divergence block in shared group state and check it during acquisition and planning. Finishing or force-releasing a transaction must preserve it. Add a two-machine test covering divergence → member loss → closure → attempted new roll. |
| + |
| + **Fault family:** durable, group-wide divergence interlock. |
| + |
| +3. **P1 — Spec §8 / Plan Task 11: first acquisition cannot reliably distinguish an absent claim under the proposed IAM.** |
| + **Evidence:** [spec:314–318 and 334–335](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-group-roll-verb/docs/superpowers/specs/2026-11-09-group-roll-verb-design.md:314) requires GET-before-create but grants only object Get/Put. Existing bucket-list permissions cover edges and lock prefixes (`infra/modules/region-host/group_operator.tf:112–135`). `release.S3Store.Get` propagates AccessDenied rather than treating it as absence (`internal/release/store.go:914–920`). |
| + |
| + **Failure:** with only the advertised policy, GET of the never-created claim can return 403, so acquisition refuses before its conditional PUT. S3 documents this missing-object distinction: [https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html](https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html). |
| + |
| + **Fix:** use a create-only PUT first, reading the existing claim after a conditional conflict; separately define how read-only planning establishes absence. Alternatively, provision the initial closed object explicitly. Test missing-object AccessDenied with the exact policy; never reinterpret arbitrary 403s as absence. |
| + |
| + **Fault family:** object absence versus authorization failure. |
| + |
| +4. **P1 — Plan Task 3: the prescribed SDK loading does not suppress endpoint overrides.** |
| + **Evidence:** [plan:80](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-group-roll-verb/docs/superpowers/plans/2026-11-09-group-roll-verb.md:80) specifies `LoadDefaultConfig`, profile, credentials, region, IMDS and retry options. In the installed `config@v1.32.6`, `env_config.go:402` loads `AWS_ENDPOINT_URL`; `:679–681` reads service-specific overrides; `resolve.go:108–127` applies the configured endpoint. None of the listed options disables this. |
| + |
| + **Failure:** Task 3’s own `TestCredentialsIgnoreAmbient` fails, or privileged requests go to an ambient endpoint. Explicit profile selection also does not by itself exclude `credential_source=Environment` (`resolve_credentials.go:383–391`). |
| + |
| + **Fix:** specify and test actual isolation of SDK configuration sources, including service endpoints and credential-provider subclients. Reject prohibited ambient credential sources, and apply the same environment policy to the plugin. |
| + |
| + **Fault family:** operator credential and endpoint isolation. |
| + |
| +5. **P1 — Plan Task 4: the plugin runs without the selected profile.** |
| + **Evidence:** [plan:96](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-group-roll-verb/docs/superpowers/plans/2026-11-09-group-roll-verb.md:96) passes `''` as the profile argument. The script always supplies `--profile` (`scripts/region-group-roll.py:787`). AWS CLI forwards that profile specifically so plugin API calls use the same identity (`sessionmanager.py:133–138, 177–183`): [https://raw.githubusercontent.com/aws/aws-cli/develop/awscli/customizations/sessionmanager.py](https://raw.githubusercontent.com/aws/aws-cli/develop/awscli/customizations/sessionmanager.py). |
| + |
| + **Failure:** StartSession succeeds with the operator profile, while plugin reconnect or cleanup uses default/ambient credentials—or has none. A different caller cannot satisfy the exact `aws:userid` condition in `OwnSessions` (`infra/modules/region-host/group_operator.tf:97–104`). The hard-coded endpoint also loses partition-specific resolution. |
| + |
| + **Fix:** pass `c.Profile` and the actual resolved SSM endpoint, with the sanitized environment. Test plugin arguments and reconnect/cleanup with differing default and operator identities. |
| + |
| + **Fault family:** session identity continuity. |
| + |
| +6. **P1 — Plan Task 5: Merge A omits mandatory command-registry artifacts.** |
| + **Evidence:** [plan:103–116](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-group-roll-verb/docs/superpowers/plans/2026-11-09-group-roll-verb.md:103) adds runnable leaves and then merges, but no task updates `parity/parity.tsv`, regenerates `parity/cli.tsv`, or runs `make parity-doc`. `TestCLIProjection` rejects the changed tree against the old projection (`cli_projection_test.go:42–55`); updating only the projection then fails command coverage (`internal/parity/repo_test.go:62–69`). |
| + |
| + **Failure:** the stated first merge cannot pass CI. Later leaves repeat the problem. |
| + |
| + **Fix:** include the parity rows and generated artifacts in each slice introducing commands. Include the required CLI documentation and review its copy before that slice ships. |
| + |
| + **Fault family:** command-tree and published-contract consistency. |
| + |
| +7. **P1 — Spec §11 / Plan retirement step: deleting the scripts breaks retained tools and parity checks.** |
| + **Evidence:** deletion is specified at [spec:448–451](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-group-roll-verb/docs/superpowers/specs/2026-11-09-group-roll-verb-design.md:448) and [plan:237](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-group-roll-verb/docs/superpowers/plans/2026-11-09-group-roll-verb.md:237). However, `scripts/region_group_frames.py:9–12` imports `region-group-roll.py`; the retained fault client uses its text and AWS session transport (`scripts/region-group-fault/client.py:14–15, 33–44`). Task 12’s ledger test also reads Python files scheduled for deletion (`plan:215`). |
| + |
| + **Failure:** the retained fault client fails during import after retirement. The ledger check loses its input inventory. Repointing the document test alone fixes neither. |
| + |
| + **Fix:** explicitly migrate the retained framing, transport and text dependencies before deletion. Freeze the Python test inventory for the post-retirement ledger, and update every remaining importer and CI entry point. Verify the retained fault client and ledger with the scripts absent. |
| + |
| + **Fault family:** retirement dependency closure. |
| + |
| +8. **P2 — Plan Tasks 2–4 and 10: complete the provider interfaces.** |
| + **Evidence:** [plan:75](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-group-roll-verb/docs/superpowers/plans/2026-11-09-group-roll-verb.md:75) offers `Instance → InstanceState`, with Task 3 testing EC2 absence. The probe separately needs the Auto Scaling instance row, including group, template, lifecycle and health (`scripts/region-group-probe.py:35–53`). Also, `Box` exposes only `Run` (`plan:58`), while Task 4 requires the engine to install a session observer and invoke session termination (`plan:92`). |
| + |
| + **Failure:** the declared interfaces cannot express probe reconciliation or timeout journaling/cleanup without undeclared methods or adapter assertions. |
| + |
| + **Fix:** declare separate membership and instance-existence reads, plus provider-neutral session observation/cleanup capabilities, and exercise them through the interfaces. |
| + |
| + **Fault family:** lossless provider abstraction. |
| + |
| +9. **P2 — Spec V3/V4 and §11: format 2 does not guarantee Python rejection.** |
| + **Evidence:** [spec:445–447](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-group-roll-verb/docs/superpowers/specs/2026-11-09-group-roll-verb-design.md:445) claims the script fails its hash check. Its reader checks hashes and `kind=="begin"`, but never rejects a `format` field (`scripts/region-group-roll.py:579–587`). An in-memory reproduction using sorted ASCII JSON, integer milliseconds and `"format":2` was accepted by the actual reader. |
| + |
| + **Failure:** an otherwise compatible format-2 journal can be interpreted using Python’s seconds-based semantics. Hash differences are not a format boundary. The overlap card remains necessary. |
| + |
| + **Fix:** specify an explicit incompatibility check, with fixtures proving both readers refuse the other format. Clarify separate state-directory configuration: the same directory cannot satisfy both root ownership and non-root ownership requirements. |
| + |
| + **Fault family:** journal format isolation. |
| + |
| +10. **P2 — Spec §6: several recovery rules are missing from the parity contract.** |
| + **Evidence:** [spec:218–266](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-group-roll-verb/docs/superpowers/specs/2026-11-09-group-roll-verb-design.md:218) omits the script’s intent-based abandon restrictions (`scripts/region-group-roll.py:1392–1407`), dual group/EC2 proof for `close-lost` (`:1417–1428`), failed-drain return’s nonzero result and retained drain state (`:1849–1858`), and terminate recovery’s activity ownership and retry allowance per invocation (`:372–394`). |
| + |
| + **Failure:** §6 alone permits materially different closure or recovery behavior despite promising decision-for-decision parity. |
| + |
| + **Fix:** state these rules explicitly and tie them to their existing fault tests in the ledger. |
| + |
| + **Fault family:** recovery-contract completeness. |
| + |
| +11. **P2 — Plan Tasks 4 and 11: repeated `-run` flags skip intended checks.** |
| + **Evidence:** [plan:95](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-group-roll-verb/docs/superpowers/plans/2026-11-09-group-roll-verb.md:95) uses `-run TestSession -run TestPlugin`; [plan:204](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-group-roll-verb/docs/superpowers/plans/2026-11-09-group-roll-verb.md:204) similarly uses two filters. The last flag replaces the first. |
| + |
| + **Failure:** the prescribed verification skips session tests and claim lifecycle/race tests respectively. |
| + |
| + **Fix:** use `-run 'TestSession|TestPlugin'` and `-run 'TestClaim|TestForceRelease'`. |
| + |
| + **Fault family:** verification coverage. |
| + |
| +**Spec verdict: NOT READY — P1 findings 1, 2, 3 and 7.** |
| + |
| +**Plan verdict: NOT READY — P1 findings 1–7.** |
diff --git a/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-group-roll-verb-R2.md b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-group-roll-verb-R2.md| new file mode 100644 |
| index 000000000..efd4f9d27 |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-group-roll-verb-R2.md |
| @@ -0,0 +1,81 @@ |
| +# Review brief: `carlos system group` roll tool port, spec + plan, round 2 of 3 |
| + |
| +Repo carlos/platform, branch `design-group-roll-verb`, commit named in the reviewer's prompt. |
| +Under review: `docs/superpowers/specs/2026-11-09-group-roll-verb-design.md` (spec) and |
| +`docs/superpowers/plans/2026-11-09-group-roll-verb.md` (plan). Give separate verdicts for each; |
| +they have separate round budgets. |
| +Authorities: `docs/superpowers/specs/2026-10-26-region-ha-without-claims-design.md` (§7.5, §9.9, |
| +§12, §25 incl. §25.15) and the code on main: `scripts/region-group-roll.py`, |
| +`scripts/region-group-probe.py`, their tests, `internal/host/group_maintenance*.go`, |
| +`internal/host/hadrain.go`, `infra/modules/region-host/group_operator.tf`, |
| +`infra/modules/region-group-operator-document/`, `internal/release/systempointer.go`, |
| +`internal/rootaws/`, `region_ha_boundary_test.go`, `system_roles.go`, `system.go`. |
| + |
| +You are an independent reviewer. Read the documents, then the code they name, and check every |
| +claim against that code. |
| + |
| +## Fixed: do not re-argue |
| + |
| +- Paul (2026-11-09, via agent manager 8a3d302): port the script into the carlos binary; |
| + provider-neutral core with an AWS adapter; exact behaviour parity; no root unless proven |
| + necessary; no extra packages; parity proven by fixtures, the simulation and the fault tests; |
| + rollout ends with the script retired; the census covers the port. |
| +- §25 rulings are binding (§25.15 r4; the r2 uncertain-drain cut: after a failed drain, exit |
| + Standby only on proof no move runs). Report only mechanisms that fail to honour them. |
| +- The unmerged branch `held-floor-sha-map` (SHA-pinned floor) is a declared dependency: the spec |
| + §9 says the floor task waits for its merge and follows it (stopping rule 4). Do not raise |
| + "depends on unmerged work" as a P1; do check that §9 as written is safe on its own. |
| + |
| +## What to check |
| + |
| +1. Parity: does anything in spec §6 misstate what the script does? Is any script behaviour |
| + missing from §6 that is not a declared deviation in §7? Pay attention to H4, H5, the |
| + failed-drain return, divergence/hold, terminate recovery, abandon/close-lost conditions. |
| +2. The deviations V1-V7: is each one safe? In particular V1 (no root, per-user state), V3/V4 |
| + (journal format 2 and the overlap rule with the script), V6. |
| +3. The claim (§8): can two machines both run a transaction on one group? Can a claim be lost |
| + or forced while a transaction is in flight? Is the at-rest force check sufficient? |
| +4. The provider boundary (§5): is the Phase mapping lossless for every distinction |
| + classify()/terminate_decision() make? Does anything in the "core" column actually need AWS? |
| +5. The Session Manager transport (§5.3): is calling StartSession via the SDK and then running |
| + session-manager-plugin equivalent to the CLI path the cards verified (interruption, session |
| + id capture, TerminateSession permissions under the OwnSessions statement)? |
| +6. Credentials (§4): does the described loading actually ignore ambient keys and endpoints with |
| + aws-sdk-go-v2, and is the "never as root / never on a box" refusal sound? |
| +7. The floor (§9): any way to guess a version, or fall back to DR-4 on an unreadable floor? |
| +8. Parity proof (§10): are the golden fixtures, simulation port, byte-identical commands and the |
| + ledger enough to catch a divergent port? What would slip through? |
| +9. The plan: do tasks cover the spec? Wrong file paths, signatures that do not fit the code, |
| + tests that cannot be written as described, ordering problems (stopping rules 4 and 6). |
| + |
| +## Round 2 |
| + |
| +Earlier rounds: round 1, `docs/superpowers/reviews/ASTRA-R1-group-roll-verb.md` (spec NOT READY, |
| +P1 1, 2, 3, 7; plan NOT READY, P1 1-7; P2 8-11). The spec's rev 2 note says what changed. |
| + |
| +First give one line per P1 and P2 from round 1: resolved, partly, or not. Carry every unresolved |
| +or partly resolved finding forward at its current severity, then add new findings. The verdict |
| +covers everything outstanding. Name the fault family of each finding; a second finding in the |
| +same family as a round-1 finding is reported as such. |
| + |
| +## Severity |
| + |
| +- **P1**: unsafe, would not compile, a test fails, or it would not work. Blocks merge. |
| +- **P2**: wrong or missing. Fixed without reopening this review. |
| +- **P3**: clarity or polish. Goes on a follow-up list; never a reason for another round. |
| + |
| +A P1 states its failure scenario and the evidence (file:line). Do not raise a P2 to P1 to keep the |
| +review open. |
| + |
| +## Output |
| + |
| +Findings ranked P1, P2, P3. Each gives the section or task, the problem, the evidence (file:line, |
| +verified), the failure scenario, a concrete fix and the invariant or trust boundary it breaks (its |
| +fault family). End with exactly one verdict for the spec and one for the plan: |
| + |
| +- **READY**: no P1 and no P2. |
| +- **READY AFTER FIXES**: no P1. The listed P2s are fixed without another round. |
| +- **NOT READY**: one or more P1s, listed. |
| + |
| +Do not edit files. Do not spawn Anthropic-model reviewers or subagents of your own. Do not run the |
| +full test suites. |