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

A deployed forge's machine and volume land in the cloud project meant for forges #16340

shipped production is serving it opened this has it

Landed in pull #16516 · run

opened this

The first real pinned deploy (test1, 2026-11-24) put its DigitalOcean droplet and volume in the account's default project ("first-project") instead of the owner's "forges" project. The owner: "we gotta be organized." DigitalOcean puts every new resource in the default project unless it is assigned; the driver (src/cloud/droplet.ts) never assigns one.

What done looks like:

  1. A cloud account names the project its forges go in (a field on the account, set where the ceiling is set: cloud accounts page and cloud_account). For DigitalOcean, after the droplet and volume exist, assign both to that project (POST /v2/projects/{id}/resources with their URNs, do:droplet:<id>, do:volume:<id>), found by name with GET /v2/projects. A missing project is a plain refusal before anything is made, not a silent default.
  2. Hetzner needs nothing: a Hetzner token already belongs to one project; say so where the field would be.
  3. Every machine and volume the forge makes also carries a label/tag naming the forge (forge:<name>), so the hourly watch (#16329) and retire find them by tag, not by name prefix.
  4. Replace (update, rollback, new claim link) assigns the new droplet the same way.
  5. A row made before this can be assigned by one action (pinned_forge verb, or on Check), so test1 moves without being rebuilt.

Proof: recorded-fetch tests for the assign call after create and after replace, a missing project refused with zero creates, and the tag on both resources.

Files: src/cloud/droplet.ts, src/cloud/hetzner.ts, src/cloud/machine.ts, src/actions/pinned.ts, src/actions/cloud_ceiling.ts, src/http/mcp/tools/cloud_account.ts

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs