oficina / equipo Public

plans: Task 34 dev drill rev 3.2, measured deadline arithmetic

Section 8 counts each attempt at D + 18.5 min plus guard, a stop once,
and unit stop --all in its own row. Three retries cut (8.1, image
deletes, 8.7 second read); sum 1312.75 min under the 23 h cap. Hosts
gone within 616 min of a trigger (11 host-hours, about $0.60).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 793514b3e59689e7596f3468722e5c125dbdb7bb parent 4af781e
2 files changed, +133 −80
  • docs/superpowers/plans/2026-12-01-hosted-2-dev-live-plan.md +110 −80
  • docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md +23 −0

CI failed — run details

CI log
=== prepare ===
ci-box: machine: aarch64, 32 CPUs, 62 GiB memory, kernel 7.0.0-1017-aws
ci-box: python 3.12.3; Docker version 29.1.3, build 29.1.3-0ubuntu3~24.04.2
ci-box: user namespaces allowed: 233151
ci-box: cgroup: cgroup2fs
ci-box: disk /home/ci/work/repos/oficina__equipo/wt/hosted-runners-2: Type  Size Avail | ext4   96G   84G
ci-box: disk /home/ci/.cache/equipo-ci-box: Type  Size Avail | ext4   96G   84G
ci-box: bwrap: fetched and verified in 0.3s
ci-box: claude: fetched and verified in 1.7s
ci-box: codex: fetched and verified in 3.5s
ci-box: codex-code-mode-host: fetched and verified in 1.4s
ci-box: libwrap: fetched and verified in 0.3s
ci-box: socat: fetched and verified in 0.3s
ci-box: tofu: fetched and verified in 1.5s
npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead
ci-box: image pulled in 10.4s
ci-box: pi: installed and verified in 7.2s
ci-box: opencode: installed and verified in 2.3s
ci-box: chromium 156.0.8078.79-1~deb13u1: 76 packages fetched, verified and unpacked in 8.6s
ci-box: clone deepened in 5.8s
ci-box: file times set from content: 4068 files, 303 directories
ci-box: ready in 19.2s
=== copy ===
EQUIPO_RELEASE_COPY_CHECK=1 CGO_ENABLED=0 go test ./internal/equipotest -run '^TestReleaseCopyReviewed$' -count=1
--- FAIL: TestReleaseCopyReviewed (0.09s)
    task_pages_test.go:236: COPY REVIEW REQUIRED: copy-status.py verify found copy pending review or stale bookkeeping
FAIL
rastrillo-budget/v1 ran 86ms
FAIL	amadan.net/oficina/equipo/internal/equipotest	0.239s
FAIL
make: *** [Makefile:324: copy-release-check] Error 1

amadan: step copy failed: exit status 2

amadan: job failed at step copy — its output is above, not at the tail of this log
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 43ef649d..e489b396 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
@@ -1,6 +1,7 @@
# Hosted runners slice 2, Task 34: the dev drill in `kass` (for Paul's GO)
-**Revision:** 3.1 (2026-12-02), after Astra's round 3 (`p34-r3.md`, its after-cap fixes, with the
+**Revision:** 3.2 (2026-12-02), after the scoped after-cap review (`p34-r4.md`, finding 19, with the
+kit's `d17fc5c4` and `4af781ec`); 3.1 came after Astra's round 3 (`p34-r3.md`, its after-cap fixes, with the
kit's `5b65ec54`); revision 3 came after Astra's round 2 (`.superpowers/sdd/2026-11-30-hosted-runners-slice-2/p34-r2.md`),
with the coordinator's revision 3 rulings (`task-34-rev3-brief.md`), the run kit's round 2
(`dc868b1c`, `0acdeea7`; `kit-p34-report.md`, "Round 2") and the headless round 2 (`4efc4956`).
@@ -13,6 +14,25 @@ everything else, a ledger, systemd user units, teardown verified by direct reads
through `equipo-hosted-ops` (slice 2 Task 33), so this drill is that tool's first real run, ahead of
the production bring-up (`2026-11-30-hosted-prod-account-plan.md`, "the account plan").
+## Revision 3.2 (the scoped after-cap review, finding 19)
+
+The scoped review (`p34-r4.md`) found the 8.0 table left out work done outside its allowances. Kit
+`d17fc5c4` and `4af781ec` (`kit-p34-report.md`, K14 to K17) changed what a deadline does and measured
+its worst case. Section 8 now reflects them:
+- **The deadline path.** The group is stopped synchronously (TERM, 90 s, KILL, 30 s; not proved gone
+ is a stop). Only the roots the block touched are reconciled. Only a state lock this block's killed
+ OpenTofu provably left is released; any other lock stops.
+- **The table** counts every attempt at D + 18.5 minutes plus its guard. The 35.75 minutes a stop's
+ recovery adds is counted once (a stop ends the script). `ops unit stop --all` has its own row.
+- **The sum** at revision 3.1's attempts was 1524.25 minutes, over even the kit's 24-hour maximum.
+ Three retries were cut (8.1's, the image deletes', and 8.7's second read), and the cap stays 23
+ hours. The new sum is **1312.75 minutes (21 h 53)**, leaving 67 minutes.
+- **The hosts** are gone within **616 minutes (10 h 16)** of a trigger, or the script has stopped and
+ asked Paul by **651.75 (10 h 52)**: 11 host-hours, about **$0.60**.
+- **Worst-case estimate** $32.93.
+- **Known limit:** a descendant that leaves the process group (`setsid`) is not stopped with it.
+ OpenTofu and its providers do not do that.
+
## Revision 3.1 (after Astra's last round)
Astra's round 3 (`p34-r3.md`) found findings 1, 2 and 10 still open and two new defects (14, 15).
@@ -24,9 +44,8 @@ With the kit's after-cap commit `5b65ec54` (`kit-p34-report.md`, "After cap"):
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) 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 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
+ with every retry was 21 h 18 min and the hosts were gone within 554.5 minutes of a trigger (both
+ superseded by revision 3.2's measured arithmetic: 21 h 53 and 616 minutes), 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`.
@@ -190,9 +209,10 @@ 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.88**. Self-stop **$40**; ceiling **$50**.
+**$26.68** to plan, with a proven worst case of **$32.93**. Self-stop **$40**; ceiling **$50**.
After a safe stop the armed teardown runs unattended: from its steps' deadlines the hosts are gone
-within 9 h 15 min of the trigger, at most about **$0.55** more, or it stops and asks Paul.
+within 10 h 16 min of the trigger, at most about **$0.60** more, or it stops and asks Paul by
+10 h 52 min.
**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
@@ -1419,57 +1439,86 @@ Section 8 is one script, `$P/teardown.sh` (8.0), written and armed at 2.2b. It r
`upoll 8 1380`.
Inside, every step is `ops block <id> --teardown --optional --max <D> -- bash "$P/teardown.sh" step <id>`
-(revision 3.1, kit K12): the guard and the ledger's ownership run, the spend gate does not, any create
-refuses with 99, and **the step has a deadline**. Past it, the block stops the step's whole process
-group (TERM, KILL 30 seconds later; OpenTofu inside gets TERM at the deadline), journals `DEADLINE`,
-reconciles any root whose apply or destroy it cut short (`tf reconcile`, up to 15 minutes) and exits
-1. A killed step is not a resource gone: the reconcile records what state says, and `verify-gone`
-judges at the end. So each step ends within its `--max` plus 30 seconds, plus 15 minutes if it cut a
-root short, plus the guard. Exit 1 (an ordinary failure or the deadline) takes the step's one retry
-where it has one (`<id>.retry1`, same deadline); a second 1, or a 1 from a step with no retry, stops
-the script (`escalate`: a FINDING, `ops report --stopped`, exit 99). 99 always stops: the block asks
-for recovery, which spares the continuation and does not start it again. Either way the run reports
-what still exists and its daily cost and asks Paul; that spend is not bounded until he answers.
+(revision 3.1, kit K12; revision 3.2, kit K14 to K17): the guard and the ledger's ownership run, the
+spend gate does not, any create refuses with 99, and **the step has a deadline**. Past it, the block:
+1. stops the step's whole process group: TERM, then up to 90 seconds for it to go (above OpenTofu's
+ own 60), then KILL and up to 30 seconds more; a group not proved gone is a stop (99) and nothing is
+ reconciled;
+2. reads the state lock of every root this block touched (a `TF-START` since the block's start) and
+ releases only a lock this block's killed OpenTofu provably left (this user@host, created inside
+ the block's window), journalled `FORCE-UNLOCK`; any other lock is a stop (99);
+3. reconciles only the roots this block was applying (`tf reconcile`, all within one 15-minute
+ context, its last OpenTofu call killed 60 seconds after that), a safety error there being a stop
+ (99);
+4. journals `DEADLINE` and exits 1.
+
+A killed step is not a resource gone: the reconcile records what state says, and `verify-gone`
+judges at the end. Exit 1 (an ordinary failure or the deadline) takes the step's one retry where it
+has one (`<id>.retry1`, same deadline). 8.1's 1 is a FINDING and the script goes on. Any other step's
+second 1, or a 1 from a step with no retry, stops the script (`escalate`: a FINDING,
+`ops report --stopped`, exit 99). 99 always stops: the block asks for recovery, which spares the
+continuation and does not start it again. Either way the run reports what still exists and its daily
+cost and asks Paul; that spend is not bounded until he answers. **Known limit:** a descendant that
+leaves the process group (for example through `setsid`) is not stopped with it; OpenTofu and its
+providers do not do that, and no step of this script does.
### 8.0 The script, and its bound
-Each attempt's wall time is its `--max`, plus 30 seconds (TERM to KILL), plus 15 minutes for the
-reconcile where the step runs OpenTofu (8.3b, 8.6), plus 2 for the guard.
+The kit's measured worst case past a deadline (`kit-p34-report.md`, K14 to K17): an attempt that ends
+with exit 1 takes at most **D + 18.5 minutes** (2.5 to stop the group, 15 for the lock release and
+the reconcile, 1 for the last OpenTofu call); one that ends in a stop (99) at most **D + 54.25**, the
+recovery its hard path requests adding 35.75. Each attempt also opens with the block's guard (2). A
+stop ends the script, so at most one attempt in the whole run takes the extra 35.75: the table counts
+every attempt at D + 20.5 and adds that 35.75 once, as "the script's end" (it covers `escalate`'s 5
+too, which happens instead).
| Step | What it runs (from the kit's bounds) | `--max` | Wall per attempt | Attempts | Budget |
| --- | --- | --- | --- | --- | --- |
-| `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 | 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 | 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** | | | | | **1277.5 m = 21 h 18 min** |
-
-`--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
-ends within 23 hours plus a 5-minute stop: **about 23 h 42 min end to end**.
+| `ops unit stop --all` | outside any block's `--max`: up to four units (the watchdogs, a block) stopped at 90 s each | | 6 m | 1 | 6 m |
+| 8.1 | staging off: five `carlos` calls | 20m | 40.5 m | 1 (its 1 is a FINDING) | 40.5 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 | 130.5 m | 1 | 130.5 m |
+| 8.3a | `controller terminate` (12), `unfence` (5), its one repeat (fence 14, settles 82, unfence 5): 118 | 120m | 140.5 m | 2 | 281 m |
+| 8.3b | the services destroy (30), `tf reconcile` on its failure (10): 40 | 40m | 60.5 m | 2 | 121 m |
+| 8.4.1, 8.4.2 | one image delete each (`-timeout 15m`, plus guard, STS and reads: 20) | 20m | 40.5 m | 1 each | 81 m |
+| 8.5 | `connector delete` (its 120-minute budget, then reads) | 130m | 150.5 m | 1 | 150.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 | 125.5 m | 2 | 251 m |
+| 8.7 | `verify-gone` (about 90 direct reads at up to 60 s: 90), the state bucket's empty and delete (10), `verify-gone --all` (90), `estimate` (5): 195 | 195m | 215.5 m | 1 | 215.5 m |
+| the script's end | one stop's recovery (35.75), or `escalate` (5) | | | 1 | 35.75 m |
+| **Sum** | | | | | **1312.75 m = 21 h 53 min** |
+
+**What revision 3.2 cut to fit.** At revision 3.1's attempts, the same arithmetic gives 1524.25
+minutes, over the continuation's 23 hours and over the kit's 24-hour maximum too, so raising the cap
+could not fit them. Three retries were cut instead:
+- **8.1's retry.** Its deadline is now a FINDING and the script goes on: turning hosted work off on
+ staging destroys nothing in AWS, and section S's S.1 has already tried it.
+- **The image deletes' retries.** A failure escalates after the hosts are gone; what is left (an
+ image) has no hourly charge, only storage.
+- **8.7's second read of `verify-gone`.** A tag index that does not read escalates after everything
+ is torn down.
+
+The cap stays at `--max 23h` (1380 minutes): **67 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 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 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) +
-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.
+in 8.3b's destroy. So the hosts are gone, at the latest, 37 + 6 (`unit stop --all`) + 40.5 (8.1) +
+130.5 (8.2) + 281 (8.3a, two attempts) + 121 (8.3b, two attempts) = **616 minutes, 10 h 16 min after
+the trigger**. Otherwise the script has stopped and asked Paul by **651.75 minutes (10 h 52 min)**,
+the same plus one stop's recovery: 8.2 past its deadline, 8.3a or 8.3b failing twice, or a stop on
+the way. Bounded, that is at most **11 host-hours in the estimate, about $0.60**. 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.
+stops and asks Paul, and nothing bills by the hour meanwhile. Revision 3.2 cut three more retries to
+fit the measured deadline arithmetic (8.0): 8.1's, the image deletes' and 8.7's second read.
```sh
set -euo pipefail; P='<P printed by 0.1>'; . "$P/run.env"
@@ -1562,7 +1611,7 @@ if [ "${1:-}" = step ]; then
rc=$?
set -e
ordinary "$rc"
- if [ "$rc" = 1 ]; then ops finding "verify-gone: the tag index did not read, reading once more"; ops verify-gone; fi
+ if [ "$rc" = 1 ]; then ops finding "verify-gone: the tag index did not read"; exit 1; fi
ops bucket empty --name equipo-hosted-tfstate-640012953448 --expected-owner 640012953448
ops bucket delete --name equipo-hosted-tfstate-640012953448 --expected-owner 640012953448
ops verify-gone --all
@@ -1579,14 +1628,7 @@ ops block 8.1 --teardown --optional --max 20m -- bash "$P/teardown.sh" step 8.1
rc=$?
set -e
ordinary "$rc"
-if [ "$rc" = 1 ]; then
- set +e
- ops block 8.1.retry1 --teardown --optional --max 20m -- bash "$P/teardown.sh" step 8.1
- rc=$?
- set -e
- ordinary "$rc"
- if [ "$rc" = 1 ]; then escalate "8.1 failed twice"; fi
-fi
+if [ "$rc" = 1 ]; then ops finding "8.1 did not finish within its deadline, staging may still have hosted work on, which destroys nothing"; fi
set +e
ops block 8.2 --teardown --optional --max 110m -- bash "$P/teardown.sh" step 8.2
rc=$?
@@ -1626,14 +1668,7 @@ if [ -n "$I1" ]; then
rc=$?
set -e
ordinary "$rc"
- if [ "$rc" = 1 ]; then
- set +e
- ops block 8.4.1.retry1 --teardown --optional --max 20m -- bash "$P/teardown.sh" step 8.4 "$I1"
- rc=$?
- set -e
- ordinary "$rc"
- if [ "$rc" = 1 ]; then escalate "the first image's delete failed twice"; fi
- fi
+ if [ "$rc" = 1 ]; then escalate "the first image's delete did not finish (the hosts are already gone)"; fi
fi
if [ -n "$I2" ]; then
set +e
@@ -1641,14 +1676,7 @@ if [ -n "$I2" ]; then
rc=$?
set -e
ordinary "$rc"
- if [ "$rc" = 1 ]; then
- set +e
- ops block 8.4.2.retry1 --teardown --optional --max 20m -- bash "$P/teardown.sh" step 8.4 "$I2"
- rc=$?
- set -e
- ordinary "$rc"
- if [ "$rc" = 1 ]; then escalate "the second image's delete failed twice"; fi
- fi
+ if [ "$rc" = 1 ]; then escalate "the second image's delete did not finish (the hosts are already gone)"; fi
fi
set +e
ops block 8.5 --teardown --optional --max 130m -- bash "$P/teardown.sh" step 8.5
@@ -1670,7 +1698,7 @@ if [ "$rc" = 1 ]; then
if [ "$rc" = 1 ]; then escalate "the buckets or a destroy failed twice"; fi
fi
set +e
-ops block 8.7 --teardown --optional --max 285m -- bash "$P/teardown.sh" step 8.7
+ops block 8.7 --teardown --optional --max 195m -- bash "$P/teardown.sh" step 8.7
rc=$?
set -e
ordinary "$rc"
@@ -1679,7 +1707,7 @@ echo "section 8 done; 8.8 is the agent's"
```
**What each step does.** 8.1 turns hosted work off on staging (an unset of a variable never set is a
-FINDING; 1.2 showed what it does). 8.2's fence attaches `deny_launches` and stops the controller
+FINDING; 1.2 showed what it does; its deadline is a FINDING too, and the script goes on). 8.2's fence attaches `deny_launches` and stops the controller
host; each settle terminates every known VM, proves the image clear by three scans and a direct read
of each known ID, and repeats after 10 minutes; a VM live past a bound stops (99). 8.3a:
`controller terminate` reads every controller host back `terminated`; `unfence` detaches
@@ -1689,7 +1717,8 @@ one exception to "99 goes to recovery" (the coordinator's explicit exception), a
stops with the policy attached; the images still exist, so the repeat's settles can scan them. 8.3b,
the services destroy: 1 is reconciled inside the step, then the step's retry runs the destroy again;
99 (plan-check, the fence attached, an unresolved intent) stops. 8.4: `img delete` with `-ledger`
-deletes only a recorded image and takes one already gone as done, so each `.retry1` is safe; 4 stops.
+deletes only a recorded image and takes one already gone as done, so a later re-run is safe; an
+ordinary failure escalates (no retry since revision 3.2: the hosts are gone by then); 4 stops.
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
@@ -1761,30 +1790,31 @@ Builds: one, plus one only if the step-down runs.
| | Expected (to plan) | Worst case |
| --- | --- | --- |
-| Hosts | 9 h × $0.054692 = $0.49 | 36 h × $0.054692 = $1.97 |
+| Hosts | 9 h × $0.054692 = $0.49 | 37 h × $0.054692 = $2.02 |
| 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.88** |
+| **Estimate** | **$26.68** | **$32.93** |
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, 9.24 (8.0): 35.09, rounded
-up to 36.
+2, then the alert watchdog's trigger and the continuation to 8.3b's end, 10.27 (8.0): 36.12,
+rounded up to 37.
**After a trigger** (a watchdog's expiry or a failed block, from 2.2b on): the continuation ends
-the hosts within 554.5 minutes (from the steps' deadlines), at most **10 host-hours, about $0.55**, added to the estimate at the
+the hosts within 616 minutes (from the steps' measured deadlines), at most **11 host-hours, about
+$0.60**, 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.12 over the worst case: three unplanned VMs. **Ceiling $50**: the stop is
+**Self-stop $40** leaves $7.07 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.
@@ -1820,12 +1850,12 @@ bills its full week.
| `cert bundle` (with and without `-empty`) and `cert reload` | 5.4b, 7.2 | skip, FINDING; a withdrawal not acknowledged in the window is not judged |
| the dev alert subscription and a real alert email | 2.4, 7.4 | FINDING; PASSED needs it |
| `ops fence`, `ops controller terminate`, `ops unfence` | 8.2, 8.3a | unfence: one repeat of fence and settle; then stop |
-| 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` |
+| teardown step deadlines (`--max` on each teardown block) | 8.0 | the group stopped (else 99), only our own stale locks released (else 99), the touched roots reconciled, `DEADLINE`, exit 1 (at most D + 18.5 min); its one retry where it has one, 8.1's a FINDING, else `escalate`; a stop at most D + 54.25 |
| `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 |
+| `img delete` with `-ledger`, one block per image | 8.4.1, 8.4.2 | ordinary or the deadline: escalate (the hosts are gone); 4: 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) |
+| `verify-gone` with the strict tag cross-check | 8.7 | 1: escalate; 99: report and ask Paul (R9) |
## 11. Unconfirmed, and open questions
diff --git a/docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md b/docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md
index 3dc1bf08..e7b09e4d 100644
--- a/docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md
+++ b/docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md
@@ -4081,3 +4081,26 @@ Mutation checks, each restored and green again:
- **K17d** TF-START after init: `TestTouchedFromInit` FAILED `:73 1 TF-START lines with init failing, want 2`.
- **K17e** applying never recognised: `TestBlockDeadlineKillsAndReconciles` FAILED `kit34r3_test.go:59 no
reconcile after the deadline`.
+
+## Task 34 revision 3.2 (Astra p34-r4 finding 19, after kit K14 to K17, 2026-12-02)
+
+Section 8 now counts what a deadline really costs, from the kit's measured worst case (`d17fc5c4`,
+`4af781ec`): every attempt at D + 18.5 minutes plus a 2-minute guard, the 35.75 minutes a stop's
+recovery adds counted once (a stop ends the script), and `ops unit stop --all` in its own row (6
+minutes). The deadline path is described as the kit now runs it: the group stopped synchronously,
+only the roots the block touched reconciled, only our own provable lock released.
+
+At revision 3.1's attempts the sum was 1524.25 minutes, over even the kit's 24-hour maximum, so
+three retries were cut rather than the cap raised: 8.1's (a deadline is now a FINDING and teardown
+goes on, since 8.1 destroys nothing), the image deletes' (a deadline escalates; the hosts are
+already gone), and 8.7's second read (a tag index that does not read is a FINDING, then the stop).
+8.7 is one block at `--max 195m`. The sum is 1312.75 minutes (21 h 53), 67 minutes inside the
+continuation's 23 hours, which stays. The hosts are gone within 616 minutes (10 h 16) of a trigger,
+or the script has stopped and asked Paul by 651.75 (10 h 52): 11 host-hours, about $0.60.
+Worst-case estimate $32.93 (37 host-hours), self-stop margin $7.07. Known limit added: a descendant
+that leaves the process group (`setsid`) is not stopped with it.
+
+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.7 at 195m); 8.1 past its deadline, a
+FINDING, then 8.2 on; 8.3a past it twice, `escalate`, exit 99; 8.4.1 past it, `escalate` with no
+retry, exit 99; verify-gone's tag index unreadable, a FINDING, then the stop, exit 99.