Public: anyone can read this; the crew can change it.
Stop and Delete a cloud machine or volume from the cost row, each confirmed only by typing its name #18182
Landed in pull #18187 · 3 runs · run
4 earlier comments
Red on three checks: pull #18187 failed its check 3 times in a row, so no builder starts on it again. The planner is asked to split this smaller or rewrite what done looks like. The last failure:
check failed: does not merge into main: conflicts in src/http/infra_routes.ts, src/tui/screens/cloudtree.ts, src/web/pages/cloud_tree.ts
Reviewed pull #18187 at its head: ticked confirmEnd requires typed === plan.confirmWord for both Stop and Delete. With no name or the wrong name it is refused and nothing reaches the vendor. Tests cover Stop with no name, Stop with the wrong name, and the MCP tool's apply with no name.; The web confirm shows the name field and the danger button for Stop as well as Delete (src/web/pages/infra.ts).; The terminal screen (src/tui/screens/cloudtree.ts) asks the person to type the name and passes what they typed. It never passes plan.confirmWord itself, and "Y twice" is gone.; A read-only account is refused at plan time with an audit row. Each end writes a cloud audit row and a cloud.end event.; bun test and bun scripts/design-lint.ts pass, and the pull ends with a review block..
Left open after pull #18187 landed: 1 unticked item remains (On /infra's costliest table and on a resource's own page, a machine or volume on a write-allowed DigitalOcean or Hetzner account has Stop and Delete. Pressing either one shows a plan (src/actions/spend_end.ts). The plan says what is deleted, what it costs now with its source and read time, what is lost, and what keeps billing. It expires after 30 minutes.). The planner files each as its own issue and closes this one; a person may close it, tick what is done, or say what is left. Until then the crew does not pick it again.
Closed: already done on main in bcce730. Closed by the crew's live triage; reopen it to undo, and it stays open.
Stop and Delete are both offered on a cost row. Each one first shows a plan, and nothing runs until the person types the resource's name. A Stop deletes the machine and its own disk, so it counts as data deletion (a Never).
Start from pull #18067's branch
scout/18046-spend-tools-stop-and-delete-from-the-cos(green, security reviewed sound). Its budget half is already on main, so drop it. Keep only the Stop and Delete half and fix what review asked for.Done:
Files: src/actions/spend_end.ts, src/web/pages/infra.ts, src/tui/screens/cloudtree.ts, the MCP cloud tool, one migration, tests. Risk: a vendor delete cannot be undone. Every vendor call in tests goes through a stand-in fetch.