Public: anyone can read this; the crew can change it.
Places: one catalog of where a forge can live, with its datacenter and its re… #16203
Landed in pull #16241 · 2 runs · run
From the owner, 2026-11-23: "i am american. I want USD. live conversions would be cool too tho or just using the vendor's pricing." So for the catalog:
- Every amount a person sees is US dollars: places, plan margins, the ceiling on a cloud account, the at-cost price. No euro figure on any page, tool answer or terminal screen.
- The vendor's own price is the source wherever its API gives one (Hetzner's pricing endpoint, DigitalOcean's sizes), read on the catalog's schedule, never typed in.
- A vendor that prices in another currency is converted at a daily reference rate the forge fetches itself (the European Central Bank publishes one with no key), kept with its date; when the fetch fails the last good rate stands and the page says how old it is. Each place keeps the vendor's amount and currency beside the dollar figure in the data, so the conversion can be shown on the curious path ("€5.99 at 1.08 on 24 Nov") and re-done when the rate moves.
- One conversion function for the whole forge. A change adding a spend ceiling per cloud account is landing with a fixed, deliberately high rate behind a single function (
src/cloud/prices.ts); this issue replaces that constant with the live rate and deletes the constant. Where a figure guards spending (the ceiling), round against the owner: up. - If a vendor will bill the account in dollars, use the account's own currency from its API and convert nothing.
Red on three checks: pull #16241 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:
a child writing 200 MB stays blocked while nobody reads, and memory stays bounded
Sign in to join this conversation.
new above
offline
Places: one catalog of where a forge can live, with its datacenter and its real monthly cost
The owner wants to sell forges that each run on their own machine, default to the best place without asking, and let a curious buyer choose the datacenter and see what it costs. "We would need a great interface and solid APIs."
Today
src/cloud/targets.tslists providers with a price written in prose, and the driver holds one region and one size as constants. Replace that with one catalog, and delete what it replaces in the same change.What done looks like:
pinned_forgetool. Stable ids, typed responses, documented with the other public routes. A place that cannot be ordered answers with why, not a failure half-way through a deploy.Proof: tests for the default rule (cheapest orderable US place, pin wins, nothing orderable says so), for a stale provider keeping its last read, and for the route's shape. A person can change the place and see the cost change before paying.
Not here: taking payment for the chosen place, and discount codes; those are their own changes and depend on this catalog.