plans: Plan 4 R16, console gates only for the replica floor (B+)
Paul chose B+ after a Fable 5.2 steer: the root protocol floor runs only with a claims census, which is shelved. No box backstop; the barrier also requires prev_release at the floor; a manual root downgrade on a box with copies is documented as uncovered.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs/superpowers/plans/2026-11-01-stateless-replicas-4-deploy-and-drill.md+12 −0
CI failed — run details
Intent
<task-notification> <task-id>a9f821e38ebce5680</task-id> <tool-use-id>toolu_01Rz73XJWk6FLk7tHzYi6Fo5</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/72128d15-58b8-452f-9f7e-8e864e8854d2/tasks/a9f821e38ebce5680.output</output-file> <status>completed</status> <summary>Agent "Implement Plan 4 Task 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>- **Status:** DONE_WITH_CONCERNS - **Commit:** `88605b6e feat: coordinate fleet release and ordered copy swaps` (local only, not pushed) - **Tests:** the 20 new tests failed against a base-plus-stubs tree and all pass now. One of them, `TestReplicaDeployFailedRelease`, already passed at base, so it guards existing behaviour rather than proving the new code. The updated existing tests pass, the 10 mutations were all caught, the D11 region HA guards pass, the darwin, windows and arm64 builds pass, and both censuses pass. The root-read census proposal is written; the #280 verdict is yours to get. - **Concerns:** 1. **Not built as the brief listed:** - `Transition` returns `replicas.Deploy`, not `provision.Record`. - There is no store adapter for `/deploy`, because copy assignments are fleet-only. - `beginReplicaDeploy` is not built, per D1. - `deploywatch.go`, `authcli.go`, `confirm.go`, `ladder.go` and `deployments.go` are untouched; their planned changes belonged to the dropped console allocator. 2. **Swap order uses the roster, not live health.** The console orders the boxes the fleet roster lists as active. Per-copy health needs Plan 3's health socket, which is Task 3's decision. 3. **A dead box can block new deploys.** A halted permit is resolved only by its box's ack or that box's retirement proof. If the box never comes back, new deploys of that instance stay blocked. 4. **Misleading refusal message.** A box whose new release is refused because another switch is still open reports "result unknown", not SR-4-C31. Task 2 should give that case its own message. 5. **Retrying a halted swap reruns the release command.** It starts a new attempt, so the command must be safe to repeat. 6. **Copy:** SR-4 rows are built as pending. I added SR-4-C39, which needs Paul's copy review. 7. **Stale git lock:** `packed-refs.lock`, dated 07:47 and not mine, triggered a warning from `git commit`. The commit landed anyway. - **Report:** `/home/paulca/amadan.net/carlos/platform/.claude/worktrees/stateless-replicas-4/.superpowers/sdd/2026-11-01-stateless-replicas-4-deploy-and-drill/task-1-report.md`</result> <usage><subagent_tokens>505319</subagent_tokens><tool_uses>204</tool_uses><duration_ms>3851535</duration_ms></usage> </task-notification>
Attributed to this commit: 51.8 g CO₂e (6,219,921 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on stateless-replicas-4, 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/plans/2026-11-01-stateless-replicas-4-deploy-and-drill.md b/docs/superpowers/plans/2026-11-01-stateless-replicas-4-deploy-and-drill.md| index 8b3cdc5be..befe94157 100644 |
| --- a/docs/superpowers/plans/2026-11-01-stateless-replicas-4-deploy-and-drill.md |
| +++ b/docs/superpowers/plans/2026-11-01-stateless-replicas-4-deploy-and-drill.md |
| @@ -147,6 +147,18 @@ Round 2 found the same fault families again. Under stopping rule 2, these ruling |
| - the existing `testRootProtocolFloorCrashes` extended to the third floor. |
| - This closes Astra round 3's two P1s. Task 5 runs a root-scope census and a Fable review. |
| +- **R16 (Paul, 2026-11-11, option B+ after a Fable 5.2 steer; supersedes R15, R10, D10, R5 and R6's root bullet): no box-side replica floor backstop.** |
| + - The root protocol floor framework engages only with a claims census (`internal/rootparticipation/production.go:78-82`). Claims are shelved, so real boxes take the legacy `/data/.moves` path and the recovery unit's shell clause, and A would have meant building that legacy path as well. |
| + - An old v0.34.x binary on a box with copies costs availability, not correctness: |
| + - an unpermitted swap; |
| + - a returning box using its local `committedGood`; |
| + - a 12g copy falling back to the build's tier. |
| + |
| + It cannot run a second release, because R9's writer rule binds old boxes too. |
| + - The console publication judge (D9, R4) and the single `replicaPolicyBarrier` (R11) remain. |
| + - R11 additionally counts a box as at StatelessReplicasFloor only when its heartbeat `prev_release` is at the floor too (or prev is "none"). That closes the one automatic path back to an old binary: a failed first apply restoring `carlos.prev`. |
| + - A manual root downgrade on a box with copies is not prevented. The Task 5 docs page says so. |
| + |
| **Round limit.** This is the third and final plan round. If Astra's round 3 still finds a P1, the next step is to cut scope or ask Paul, not a fourth round. |
| - **Test patterns.** Each task's red run names only its new tests, because `TestReplica(Release.*|Deploy.*|OnlyOne.*)$` already matches about 20 passing Plan 1 tests. |