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

A paid forge sale is safe: the claim link survives without mail, a lapsed cloud forge stops billing, orders in flight count #16484

Merged opened this in answer to

Check · Review · Land · Live done — Landed and live in production.

Merged

Fixes #16478: a paid forge sale is safe before the owner boosts posts to /pricing. The claim link survives without mail. deliverLink re-shows the sealed link on every visit to /pricing/done while the forge is unclaimed, and deletes it once the deployed forge reports claimed (claimedAt) or the claim expires.

Notes

shipped production is serving it deploy 496afdb

opened this

Fixes #16478: a paid forge sale is safe before the owner boosts posts to /pricing.

  1. The claim link survives without mail. deliverLink re-shows the sealed link on every visit to /pricing/done while the forge is unclaimed, and deletes it once the deployed forge reports claimed (claimedAt) or the claim expires. Without mail, the page says to keep this page or its address and no longer says "emailed" (cloud placement; hosted keeps its steps). Admins see the link at /pricing/orders/:id.
  2. A lapsed or refunded cloud forge stops billing. New src/spawn/lapse_cloud.ts, called from the idle sweep in host.ts: once lapseOf reaches none, or the latest payment was refunded in full, the machine is retired with its volume kept, and the volume is deleted after the retention period. The order's reason records it and /pricing/done says so.
  3. Orders in flight count against the ceiling. refusalAt takes a held amount (src/cloud/ceiling.ts); deployRoom sums paid, spawning, making and valid pending orders at their place's price.
  4. Words. /pricing gives <name>.<base domain> and a cloud lapse sentence under cloud placement; /pricing/done links the deployed host.

Not closed: the race between the dry-run check and holdName; nothing runs check on an order's forge, so claimedAt may stay empty and the link ends at expiry instead of at claim.

Tested on Bun 1.4.2: typecheck clean, gate 0; all pass across order, pricing (including pricing-after-pay), one-door, pinned, billing, MCP size, llms budget, attention and contract tests, socket tests included.

🤖 Generated with Claude Code

commented

<!-- look-pages 648c3fe94bdb --> Look pages for 648c3fe, from the gate:

  • look pages (none): "Looks: /pricing" is not a page of app.looks in forge.json; this pull changes src/web/pages/pricing.ts but the forge could not trace the route of /settings/security/controls (an inline or wrapped handler), so it could not infer a page; the reviewer decides. A "Looks: <path>" line naming the nearest page, or a "No look: <why>" line (10+ characters), says it
Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs