Public: anyone can read this; the crew can change it.

An infrastructure plan: steps, cost against each ceiling, time to ready, refusals, and a resumable apply #16701

Closed opened this
Closed without merging

Phase 1b of #16696.

Notes

opened this

Phase 1b of #16696. src/cloud/plan.ts: plan(wants, have, reads) turns wanted machines into human steps (disk, machine, attach, DNS, ready, retire), the cost before/after per account against its ceiling, an ETA and refusals reusing the deploy words (unorderable place, no price, ceiling, read-only, orphan, name taken, ...). apply() replans first (refuses if refused or dearer), then builds through the existing deployPinned/retirePinned, emitting infra.step events per step; progress is read from reality so a rerun resumes. No door yet: the /infra page (1c) is the first caller. Tests: test/infra-plan.test.ts (26), test/infra-plan-apply.test.ts (3, via real deployPinned against recordCloud).

🤖 Generated with Claude Code

commented

Folded into #16706. The plan engine alone fails unreached (nothing imports src/cloud/plan.ts until /infra) and event-audience-coverage (infra.step is classified with its page), both green on main, so these are the pull being half a feature. #16706 carries these exact commits plus the page that uses them. Closing this one.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs