plans: Task 34 rev 3.1, retry on 8.3a instead of 8.5
The coordinator's ruling: a stall in terminate and unfence leaves the billable hosts up, so 8.3a gets the retry; a stuck connector delete, after the hosts and their addresses are gone, leaves only network pieces with no hourly charge, so 8.5 stops and asks Paul. Teardown now sums to 21 h 18 within the 23 h continuation; the hosts are gone within 9 h 15 of a trigger, about $0.55; the worst-case estimate is $32.88.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2 files changed,
+52
−29
docs/superpowers/plans/2026-12-01-hosted-2-dev-live-plan.md+38 −29docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md+14 −0
CI cancelled — superseded by a newer push — run details
diff --git a/docs/superpowers/plans/2026-12-01-hosted-2-dev-live-plan.md b/docs/superpowers/plans/2026-12-01-hosted-2-dev-live-plan.md| index 5b57bc59..43ef649d 100644 |
| --- a/docs/superpowers/plans/2026-12-01-hosted-2-dev-live-plan.md |
| +++ b/docs/superpowers/plans/2026-12-01-hosted-2-dev-live-plan.md |
| @@ -22,10 +22,11 @@ With the kit's after-cap commit `5b65ec54` (`kit-p34-report.md`, "After cap"): |
| `ops block <id> --teardown --optional --max <D> -- bash "$P/teardown.sh" step <id>` (kit K12): past its deadline the block kills the |
| step's process group, journals `DEADLINE`, reconciles any root it cut short and exits 1, which |
| takes the step's one retry where it has one, and otherwise stops the script (`escalate`). 8.3 is |
| - split: 8.3a (terminate and unfence, no retry) and 8.3b (the services destroy, one retry). Every |
| + split: 8.3a (terminate and unfence) and 8.3b (the services destroy), one retry each. Every |
| hand-run unit has `ops unit start <id> --max <bound> -- bash "$P/blocks/<id>.sh"`, so systemd ends it at its bound. 8.0's sum |
| - with every retry is 21 h 28 min, inside the 23 hours with 92 minutes to spare; from the deadlines, |
| - the hosts are gone within **432 minutes (7 h 12 min) of a trigger, about $0.44**, or the script |
| + with every retry is 21 h 18 min, inside the 23 hours with 102 minutes to spare; from the |
| + deadlines, the hosts are gone within **554.5 minutes (9 h 15 min) of a trigger, about $0.55**, or |
| + the script |
| has stopped and asked Paul. |
| 2. **`vms adopt` classified late** (finding 2). The strike classifies `vms adopt` before it starts |
| `vms scan`. |
| @@ -189,9 +190,9 @@ back to Paul. |
| **Spend** (section 9): the bill is expected at about **$1.80**, at most about $5. The run's own |
| estimate, which charges every admitted VM at four times the Large rate for 90 minutes, ends near |
| -**$26.68** to plan, with a proven worst case of **$32.77**. Self-stop **$40**; ceiling **$50**. |
| +**$26.68** to plan, with a proven worst case of **$32.88**. Self-stop **$40**; ceiling **$50**. |
| After a safe stop the armed teardown runs unattended: from its steps' deadlines the hosts are gone |
| -within 7 h 12 min of the trigger, at most about **$0.44** more, or it stops and asks Paul. |
| +within 9 h 15 min of the trigger, at most about **$0.55** more, or it stops and asks Paul. |
| **Paul's own steps:** confirm the dev alert subscription (2.4, any time before 7.4); sign the |
| certificate (5.4, bounded 12 hours); confirm the test alert arrived (7.4, bounded 2 hours). Past the |
| @@ -1439,16 +1440,16 @@ reconcile where the step runs OpenTofu (8.3b, 8.6), plus 2 for the guard. |
| | --- | --- | --- | --- | --- | --- | |
| | `ops unit stop --all`, then 8.1 | staging off: five `carlos` calls, up to four units stopped at 90 s each | 20m | 22.5 m | 2 | 45 m | |
| | 8.2 | `ops fence` (guard 2, attach and read 2, host stop 10), `vms reconcile` (5), each image's settle with its repeat (41; two images 82), `ledger reconcile` (5): 108 | 110m | 112.5 m | 1 | 112.5 m | |
| -| 8.3a | `controller terminate` (12), `unfence` (5), its one repeat (fence 14, settles 82, unfence 5): 118 | 120m | 122.5 m | 1 | 122.5 m | |
| +| 8.3a | `controller terminate` (12), `unfence` (5), its one repeat (fence 14, settles 82, unfence 5): 118 | 120m | 122.5 m | 2 | 245 m | |
| | 8.3b | the services destroy (30), `tf reconcile` on its failure (10): 40 | 40m | 57.5 m | 2 | 115 m | |
| | 8.4.1, 8.4.2 | one image delete each (`-timeout 15m`, plus guard, STS and reads: 20) | 20m | 22.5 m | 2 each | 90 m | |
| -| 8.5 | `connector delete` (its 120-minute budget, then reads) | 130m | 132.5 m | 2 | 265 m | |
| +| 8.5 | `connector delete` (its 120-minute budget, then reads) | 130m | 132.5 m | 1 | 132.5 m | |
| | 8.6 | three bucket empties (7 each), the config destroy (30) and its reconcile on failure (10), the network the same (40): 101 | 105m | 122.5 m | 2 | 245 m | |
| | 8.7 | `verify-gone` (about 90 direct reads at up to 60 s: 90), once more on exit 1 (90), the state bucket's empty and delete (10), `verify-gone --all` (90), `estimate` (5) | 285m | 287.5 m | 1 | 287.5 m | |
| | `escalate` | a FINDING and `ops report --stopped` | | | 1 | 5 m | |
| -| **Sum** | | | | | **1287.5 m = 21 h 28 min** | |
| +| **Sum** | | | | | **1277.5 m = 21 h 18 min** | |
| -`--max 23h` (1380 minutes) leaves **92 minutes** for cleanup and slack, under the kit's 24-hour cap; |
| +`--max 23h` (1380 minutes) leaves **102 minutes** for cleanup and slack, under the kit's 24-hour cap; |
| every step's deadline is enforced, so the script cannot run into `RuntimeMaxSec` with a step still |
| inside a stalled call. From a trigger (a watchdog's deadline or a failed block), the continuation |
| starts within about 31 minutes plus 90 seconds per running unit (at most four here: about 37), and |
| @@ -1456,13 +1457,20 @@ ends within 23 hours plus a 5-minute stop: **about 23 h 42 min end to end**. |
| **When the hosts are gone, from the deadlines.** The controller is terminated in 8.3a and the proxies |
| in 8.3b's destroy. So the hosts are gone, at the latest, 37 + 45 (8.1, two attempts) + 112.5 (8.2) + |
| -122.5 (8.3a) + 115 (8.3b, two attempts) = **432 minutes, 7 h 12 min after the trigger**, or the |
| -script has stopped and asked Paul: 8.2 or 8.3a past its deadline, or 8.3b failing twice. Bounded, |
| -that is at most **8 host-hours in the estimate, about $0.44**. Image storage is already charged at |
| +245 (8.3a, two attempts) + 115 (8.3b, two attempts) = **554.5 minutes, 9 h 15 min after the |
| +trigger**, or the script has stopped and asked Paul: 8.2 past its deadline, or 8.3a or 8.3b failing |
| +twice. Bounded, that is at most **10 host-hours in the estimate, about $0.55**. Image storage is already charged at |
| its one-week minimum; the buckets, the connector and the topic cost pennies. After an escalation |
| before 8.3b finishes, the proxies, the addresses and the volumes stay (about $0.80 a day, the |
| controller already stopped by the fence) until Paul answers. |
| +**Where the retries go (the coordinator's ruling).** 8.3a has one because a stall there leaves the |
| +billable hosts up. 8.5, the connector delete, has none: by then 8.3b has destroyed the hosts and |
| +released their addresses, so a stuck connector leaves only network pieces with no hourly charge (the |
| +connector, which has no listed charge (Task 17b), its interfaces, the VPCs, subnets, peering, route |
| +tables, gateway, security groups and roles), plus the buckets at a few cents a month. The script then |
| +stops and asks Paul, and nothing bills by the hour meanwhile. |
| + |
| ```sh |
| set -euo pipefail; P='<P printed by 0.1>'; . "$P/run.env" |
| if [ "${1:-}" = step ]; then |
| @@ -1590,7 +1598,14 @@ ops block 8.3a --teardown --optional --max 120m -- bash "$P/teardown.sh" step 8. |
| rc=$? |
| set -e |
| ordinary "$rc" |
| -if [ "$rc" = 1 ]; then escalate "8.3a did not finish within its deadline"; fi |
| +if [ "$rc" = 1 ]; then |
| + set +e |
| + ops block 8.3a.retry1 --teardown --optional --max 120m -- bash "$P/teardown.sh" step 8.3a |
| + rc=$? |
| + set -e |
| + ordinary "$rc" |
| + if [ "$rc" = 1 ]; then escalate "terminate and unfence did not finish twice"; fi |
| +fi |
| set +e |
| ops block 8.3b --teardown --optional --max 40m -- bash "$P/teardown.sh" step 8.3b |
| rc=$? |
| @@ -1640,14 +1655,7 @@ ops block 8.5 --teardown --optional --max 130m -- bash "$P/teardown.sh" step 8.5 |
| rc=$? |
| set -e |
| ordinary "$rc" |
| -if [ "$rc" = 1 ]; then |
| - set +e |
| - ops block 8.5.retry1 --teardown --optional --max 130m -- bash "$P/teardown.sh" step 8.5 |
| - rc=$? |
| - set -e |
| - ordinary "$rc" |
| - if [ "$rc" = 1 ]; then escalate "the connector delete failed twice"; fi |
| -fi |
| +if [ "$rc" = 1 ]; then escalate "the connector delete did not finish (no retry: what it leaves has no hourly charge)"; fi |
| set +e |
| ops block 8.6 --teardown --optional --max 105m -- bash "$P/teardown.sh" step 8.6 |
| rc=$? |
| @@ -1685,7 +1693,8 @@ deletes only a recorded image and takes one already gone as done, so each `.retr |
| 8.5 is the connector's first real interface cleanup: on `DELETE_FAILED`, one retry with the |
| managed-operator condition dropped; interfaces left after the delete are waited for within the same |
| 120-minute budget and never deleted by hand; 1 (while the connector is still recorded, or the |
| -deadline) is retried as `8.5.retry1`, 99 (interfaces not proved gone after the delete) stops. 8.6 |
| +deadline) stops the script and asks Paul (no retry: what it leaves has no hourly charge), 99 |
| +(interfaces not proved gone after the delete) stops. 8.6 |
| empties the buckets by their fixed names: a recorded bucket a direct read shows gone is done |
| (`DELETED ... read-gone`, kit K11), so `8.6.retry1` after a partial config destroy goes on to the |
| destroy (finding 13); another owner stops. 8.7: `verify-gone` reads every recorded resource directly |
| @@ -1752,30 +1761,30 @@ Builds: one, plus one only if the step-down runs. |
| | | Expected (to plan) | Worst case | |
| | --- | --- | --- | |
| -| Hosts | 9 h × $0.054692 = $0.49 | 34 h × $0.054692 = $1.86 | |
| +| Hosts | 9 h × $0.054692 = $0.49 | 36 h × $0.054692 = $1.97 | |
| | VMs and VM reservations | 12 × $1.86 = $22.32 | 13 × $1.86 = $24.18 (a late VM found by a settle repeat) | |
| | Image builds | 1 × $1 = $1.00 | 2 × $1 = $2.00 (the step-down) | |
| | Image storage | 1 × $1.87 | 2 × $1.87 = $3.73 (the step-down image) | |
| | S3, SNS, alarms | $1.00 | $1.00 | |
| -| **Estimate** | **$26.68** | **$32.77** | |
| +| **Estimate** | **$26.68** | **$32.88** | |
| Host hours, from the services apply to the hosts' termination. Expected: up and status 0.75, |
| certification 1, signing 2, wiring 0.25, three scenarios 1.5, two drills 1.5, the alert 0.5, |
| teardown to termination 1.25: 8.75, rounded up to 9. Worst, every step at its bound: up and status |
| 0.85 (4.2 25 minutes, 4.3 25), certification 1.1 (5.1 25, 5.2 40), the signing bound 12, wiring |
| 0.25, three watchers 5.25 (105 minutes each), 7.0 and two drills 4.4 (10, 135, 110), the alert bound |
| -2, then the alert watchdog's trigger and the continuation to 8.3b's end, 7.2 (8.0): 33.05, rounded |
| -up to 34. |
| +2, then the alert watchdog's trigger and the continuation to 8.3b's end, 9.24 (8.0): 35.09, rounded |
| +up to 36. |
| **After a trigger** (a watchdog's expiry or a failed block, from 2.2b on): the continuation ends |
| -the hosts within 432 minutes (from the steps' deadlines), at most **8 host-hours, about $0.44**, added to the estimate at the |
| +the hosts within 554.5 minutes (from the steps' deadlines), at most **10 host-hours, about $0.55**, added to the estimate at the |
| trigger; nothing else grows (no VM runs after S.4, and image storage is already charged at its |
| minimum). The worst case above already contains the latest trigger. The continuation itself ends |
| within about 23 h 42 min. The exceptions are a guard failure, a failed credential check at the |
| trigger (2.2b's known limit) and a teardown step that stops: then about $1.15 a day on the bill until |
| Paul answers. |
| -**Self-stop $40** leaves $7.23 over the worst case: three unplanned VMs. **Ceiling $50**: the stop is |
| +**Self-stop $40** leaves $7.12 over the worst case: three unplanned VMs. **Ceiling $50**: the stop is |
| checked only when a block or reservation starts, and the estimate leaves out the connector, the |
| state bucket and data transfer. Teardown is never refused on spend. |
| @@ -1814,7 +1823,7 @@ bills its full week. |
| | teardown step deadlines (`--max` on each teardown block) | 8.0 | `DEADLINE`: the step killed, reconciled, exit 1; its one retry where it has one, else `escalate` | |
| | `tf` destroys | 8.3b, 8.6 | 1: reconciled in the step, then the step's retry; 99: stop | |
| | `img delete` with `-ledger`, one block per image | 8.4.1, 8.4.2 | ordinary: `.retry1` once; 4: stop | |
| -| the connector's interface cleanup | 8.5 | 1: `8.5.retry1`; 99: stop | |
| +| the connector's interface cleanup | 8.5 | 1: stop and ask Paul (no retry; nothing left bills by the hour); 99: stop | |
| | resumable bucket teardown | 8.6, 8.7 | a recorded bucket already gone is done; another owner: stop | |
| | `verify-gone` with the strict tag cross-check | 8.7 | 1: once more; 99: report and ask Paul (R9) | |
diff --git a/docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md b/docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md| index b45e8631..3c262c08 100644 |
| --- a/docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md |
| +++ b/docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md |
| @@ -3970,3 +3970,17 @@ real tabs and can fail a named block with `DEADLINE`; a stub `cert`; no AWS, no |
| On the way, my stub harness twice misled me (a delay too short to be late, a skip file left from the |
| previous case); neither was a plan defect. |
| + |
| +## Task 34 revision 3.1: retry moved from 8.5 to 8.3a (coordinator's ruling, 2026-12-02) |
| + |
| +8.3a (terminate and unfence) now has one retry and 8.5 (the connector delete) none: a stall in 8.3a |
| +leaves billable hosts up, while a stuck connector, after 8.3b has destroyed the hosts and released |
| +their addresses, leaves only network pieces with no hourly charge. 8.0's sum is now 1277.5 minutes |
| +(21 h 18), 102 minutes inside the 23 hours. From the deadlines the hosts are gone within 554.5 |
| +minutes (9 h 15) of a trigger: 10 host-hours, about $0.55. Worst-case estimate $32.88 (36 |
| +host-hours), self-stop margin $7.12. |
| + |
| +Green: the three plan-parse tests, `make budget`, `bash -n` on all 32 `sh` blocks and the quoted |
| +`run.env`. Stub run: teardown in order (eight blocks); 8.3a past its deadline once, then |
| +`8.3a.retry1` and on; 8.3a past it twice, `escalate`, exit 99; 8.5 past its deadline, `escalate` |
| +with no retry, exit 99; the watcher's plain scenario settled at `ended_at` and judged. |