carlos / platform Public

design: group roll verb spec V10, V11 (watch fails closed)

Task 9 review found two script watch defects; the Go verb fails closed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 5bbdb783fb7f31c71b0953bd331ff42f69dae505 parent b5c7bf6
1 file changed, +2 −0
  • docs/superpowers/specs/2026-11-09-group-roll-verb-design.md +2 −0

Intent

Human

<task-notification> <task-id>a4599f79b6d38e3e1</task-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/669506ff-23ec-45f1-9035-1d29593f2c37/tasks/a4599f79b6d38e3e1.output</output-file> <status>completed</status> <summary>Agent "Implement Task 9: replace/remove" 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>Status: DONE_WITH_CONCERNS. Replace, remove and cancel-drain work, and the roll's drain path is no longer a stub. Nothing in the concerns blocks the next task. Commits on `group-roll-verb` (not pushed): - `7c3b6d1d` grouproll: replace, remove and cancel-drain — the engine in `depart.go`, the held fake, and every ported depart, drain and cancel test, including Task 7's six deferred drained-roll tests. - `b78362f3` carlos system group: replace, remove and cancel-drain — the three CLI leaves, parity rows plus `make parity-doc`, and the census re-proposed with `Engine.Depart` added. `docs/site/cli.md` is untouched. - `b5c7bf6e` grouproll: the seeded depart simulation and its mutants — the 3000-seed stats are in the commit body. Tests: - `go test ./internal/grouproll/... ./internal/grouprollaws/...` passes; grouproll takes 129 s with both 200-seed simulations. The CLI, parity, docsite and census tests also pass, as do vet and the darwin and windows builds. - The 3000-seed depart run passed in 952 s (823 replaced, 370 removed, 1807 returned after a failed drain, 8901 deaths). - All five required mutants fail the simulation, each on its own check, within 3 seeds. A sixth control row shows the "desired lowered" check also fires on its own. - Four engine mutants first survived because the Python suite has no case for them (the edge-stop proof, a fence of another transaction, the drain report's fence or step, and the move status before the action). I added Go tests and each is now caught. Concerns: 1. CI time: the depart simulation adds about 63 s at 200 seeds. 2. That terminating a Standby member without decrement leaves desired unchanged is still unproven live. The tool only detects a change afterwards, as a failed probe, so the attended call on dev is still owed. 3. The census reviewer's verdict on the 23 claimed units belongs to Task 14. 4. There are small differences from the script, all listed in the report. Lock listings are counted differently, so the lock-read count assertion in TestDepartReplaceOrderRestoresShapeAndWatches differs from the script's. A few messages format values differently, and integral floats in the drain summary print as integers. 5. Go commands had to run outside the sandbox because `~/.cache/go-build` is read-only inside it; GOCACHE stayed at its default. The full report, including the Python→Go test map for Task 12 and the exported API, is at `/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-group-roll-verb/.superpowers/sdd/2026-11-09-group-roll-verb/task-9-report.md`.</result> <usage><subagent_tokens>455735</subagent_tokens><tool_uses>110</tool_uses><duration_ms>2927678</duration_ms></usage> </task-notification>

Human

<task-notification> <task-id>bg3byayes</task-id> <tool-use-id>toolu_01Ef3kHRTLQJ31WpvM8Nzc9o</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/669506ff-23ec-45f1-9035-1d29593f2c37/tasks/bg3byayes.output</output-file> <status>completed</status> <summary>Background command "Wait for Astra Task 9 review" completed (exit code 0)</summary> </task-notification>

Attributed to this commit: 19.0 g CO₂e (2,410,038 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 9d08a30cd..e1d5024bb 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
@@ -364,6 +364,8 @@ build to it.
| V7 | `region-group-probe.py` is a separate script | `carlos system group probe` | Same engine; probe rules unchanged (read-only status sessions, the member's own `DescribeAutoScalingInstances` row overrides group membership) |
| V8 | The session response goes to the plugin in argv (CLI versions without the environment handoff) | Always the environment handoff, and an older plugin is refused | The token is a session credential (§5.3) |
| 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 |
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