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

The forge watches its cloud accounts hourly and says at once when a provider… #16329

shipped production is serving it opened this has it

Landed in pull #16529 · run

opened this

The forge watches its cloud accounts hourly and says at once when a provider shows more than the forge made

The owner, attaching cloud accounts that bill him for sold forges, 2026-11-24: "dont trust the limits for the first time. be observant with a dedicated hourly watch to make sure we arent bursting costs." The $ ceiling on a cloud account (src/cloud/ceiling.ts) only counts what the forge's own rows say it made. It cannot see a machine made twice, a volume left behind, or anything made outside the forge. A session is doing this watch by hand for now, which the forge must not depend on.

What done looks like: a maintenance duty (src/maintain/duties/, the roster builds itself) that, once an hour for each cloud account with writes allowed:

  1. Reads the provider's live machines and volumes (DigitalOcean droplets and volumes, Hetzner servers and volumes; read-only calls, recorded like the other cloud calls).
  2. Compares them with the forge's pinned rows. Anything at the provider carrying the forge's name prefix (forge-<name>, forge-<name>-data) with no live row is an orphan. A count above a baseline the admin has acknowledged for that account (things there that are not the forge's) is unexplained.
  3. Prices what the provider actually shows from the Places catalog, beside the forge's own reckoning and the ceiling.
  4. On an orphan, an unexplained resource, or real cost over the ceiling: raises it where the forge raises other incidents (health needs, the sentinel's issue path, and a notification to admins), naming each resource, its age and its monthly cost, with the one action that resolves it (retire, adopt, or acknowledge as not the forge's). While an orphan stands, creates on that account are refused, with that sentence.
  5. Quiet when all is as expected: one line on the cloud accounts page saying when it last looked and what it found.

Proof: tests with a recorded fetch for an orphan machine, an orphan volume, an acknowledged outside resource (quiet), a provider read that fails (says so, does not pass silently), and the refusal of a create while an orphan stands.

Files: src/maintain/duties/, src/cloud/ceiling.ts, src/cloud/providers.ts, src/web/pages/cloud.ts

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs