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

What a forge costs: owned metal amortised, cloud per hour, storage per GB-month, and crew spend — one cost model #507

shipped production is serving it opened this has it
opened this

Turn metered use into dollars.

Acceptance:

  • [x] operator prices in the economics settings, each with its unit on the page: owned metal $/month for the whole box and its capacity in app-slots; cloud $/awake-hour; storage $/GB-month; all validated non-negative, two decimals
  • [x] src/core/cost.ts: pure costOf(meter, usage, prices, range) → { owned, cloud, storage, crew, total } in USD. Owned metal is a fixed cost spread over the month regardless of use (that is why the slider fills it first); cloud is per awake-hour; crew is the usage ledger's costUsd
  • [x] formulas cited in the doc comment; units on every field
  • [x] tests: a hand-computed month (e.g. $300 box, 40 h cloud at $0.05, 12 GB-month at $0.02, $57.10 crew → $359.34) matches to the cent; an empty month costs exactly the owned box

Files: new src/core/cost.ts, src/core/slider.ts (prices beside the position), src/web/pages/settings.ts.

Part of the profit slider (#392); the shape is docs/PROFIT.md.

commented

Released from Later to use the week's subscription: Behind pace: 75% of the week left with 21% of its time gone, reset 2026-11-15 02:00 UTC, burning 0% an hour against 0.5% allowed; speeding up to 5 of 5 slots and releasing the next issue.

commented

Reviewed pull #10185 at its head: ticked operator prices in the economics settings, each with its unit on the page: owned metal $/month for the whole box and its capacity in app-slots; cloud $/awake-hour; storage $/GB-month; all validated non-negative, two decimals; src/core/cost.ts: pure costOf(meter, usage, prices, range) → { owned, cloud, storage, crew, total } in USD. Owned metal is a fixed cost spread over the month regardless of use (that is why the slider fills it first); cloud is per awake-hour; crew is the usage ledger's costUsd; formulas cited in the doc comment; units on every field; tests: a hand-computed month (e.g. $300 box, 40 h cloud at $0.05, 12 GB-month at $0.02, $57.10 crew → $359.34) matches to the cent; an empty month costs exactly the owned box.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs