carlos / platform Public

design: group roll verb spec V12 (drain check before every exit)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 87d907663a98090621bd3f550286ed4a12b8f62f parent 9f41a92
1 file changed, +1 −0
  • docs/superpowers/specs/2026-11-09-group-roll-verb-design.md +1 −0

Intent

Human

<task-notification> <task-id>a54ecfbf908606838</task-id> <tool-use-id>toolu_01KoqeWxtEkb3CAve5CFNBo5</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/669506ff-23ec-45f1-9035-1d29593f2c37/tasks/a54ecfbf908606838.output</output-file> <status>completed</status> <summary>Agent "Branch review fix wave round 1" 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>&lt;br&gt; **Status:** all 8 items are done. There are 8 commits on top of 726d942f, none pushed, and the working tree is clean. **Commits:** - a1f932f2: journal failures now stick, and a failed `session-opened` row cancels the session, returns `record` and blocks every later provider request. The saved journal still loads, because nothing is written after the failed row. - f81929e9: the drain check now runs before every ExitStandby, ignoring any earlier exit-intent. Yes, this needs a V12 row; suggested text is in the report. - 71191661: a capacity restore that AWS answered is never sent again; if the value later reads below N, the probe fails with `desired_changed` (V11, option 1). - 81b602ec: a failed drain's return ends with `drain_failed` and no alert row after `done`. - 0c50aaf3: the depart simulation's terminate audit now also checks the fake agent's own drain state. The new "accept a drain whose result is not ok" mutant is caught at seed 51 and survived all 100 seeds without the audit. - 8b1d94ae: a StartSession answer with an id but no token or stream URL now cancels that session. - 5aa2e164: fixes the CI failure (item 7). The cause was not a second marker. There is exactly one; the amd64 binary had grown to 108 MB against a 96 MiB limit, and the scanner gives the same error for that. Holding the Auto Scaling, ELB, EC2 and SSM clients as fields made the linker keep every method on them (808 EC2 methods against main's 14). The adapter now holds only the operations it calls; the binary is 70 MB (main is 68 MB), and a new test checks the adapter holds none of those four clients. - 9f41a920: census re-pin. Only the two package hashes changed; the seal and dispositions did not. **Tests:** every new test failed on the old code and passes now. The full requested set passes: the grouproll, grouprollaws, release, execsandbox and parity packages, the root `TestCLIProjection|TestRegionHA` run, and the census. Vet, gofmt and the darwin and windows builds are clean. **Concerns:** - You need to add V12 to the spec, and the parity ledger's wording still says V1-V11. - The session cancel after a journal failure writes no journal row, because none can be written. The only sign of it is the alert printed if the cancel fails. - The sts and s3 clients are still held as fields; they did not add to the binary size. The runbook draft is at `.superpowers/sdd/2026-11-09-group-roll-verb/runbook-draft.md`, ready for copy review and not applied to the docs. Report: `/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-group-roll-verb/.superpowers/sdd/2026-11-09-group-roll-verb/fixwave-1-report.md`</result> <usage><subagent_tokens>220814</subagent_tokens><tool_uses>110</tool_uses><duration_ms>1838450</duration_ms></usage> </task-notification>

Attributed to this commit: 38.0 g CO₂e (4,896,238 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on 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/specs/2026-11-09-group-roll-verb-design.md b/docs/superpowers/specs/2026-11-09-group-roll-verb-design.md
index 3f9f8ffe5..4375bc964 100644
--- a/docs/superpowers/specs/2026-11-09-group-roll-verb-design.md
+++ b/docs/superpowers/specs/2026-11-09-group-roll-verb-design.md
@@ -366,6 +366,7 @@ build to it.
| V9 | Any profile the CLI accepts | Only profiles with a stable caller identity (§4) | `OwnSessions` needs the same `aws:userid` for the plugin's calls |
| V10 | The depart watch keeps the first replacement it admitted; a different replacement later passes without its own readiness check (`depart_watch`, `:2264-2278`) | The admitted replacement's iid is journaled; any later change to the set of new members is a failed probe (`members`) | Found in the build's Task 9 review (Astra, 2026-11-10); completion must describe the replacement actually admitted |
| V11 | After the terminate check, any `desired` or `minimum` below N is raised again (`:2248-2255`), so an outside reduction after the restore launches capacity | Once a fresh read shows a restore reached N, a later value below N is a failed probe (`desired_changed`); only an unanswered restore is retried | Same review; H4 forbids the tool from raising capacity it already restored |
+| V12 | `refuse_while_moving` is skipped once any `exit-intent` exists (`:1828`), though that row is written before dispatch and dispatch can be refused or cut | Before every ExitStandby of a failed drain's member the drain check runs on the status the request acts on, whatever earlier intents exist | Branch review round 1 (Astra P1, 2026-11-10): the r2 cut must hold on resume |
Not deviations, recorded so nobody "fixes" them in the port: the drain-rerun
backoff and the TakeHost `wake_timeout` follow-ups from the held build stay