Public: anyone can read this; the crew can change it.
Hosting at every scale: hundreds of forges for cents, thousands without a forklift, free in the browser #16840
Closed without the crew
2 earlier comments
The runner split: lend, borrow, slide (owner, 2026-11-30)
"users running the forge could lend compute to others to use as check runners … my mac as a check runner … users could also just control their spend and slide for more runners. it could be even easier than vercel fluid compute and also crowdsourced! good metrics will be key for SLAs"
This is the macro half of "heavy work on a shared pool". Runners as they exist today are the right base (docs/features/runners.md): a runner pulls work with a URL and a token, nothing dials in to it, and it shares no disk with the forge. A Mac behind home NAT already works.
One slider, sources in order
Settings → Runners gets one control: how fast checks should be, against what you'll spend a month. The forge fills it from the cheapest source first:
- Your own machines (the forge's own runners, your Mac): free.
- Lent by people you trust (friends, your team): free, or paid in credits.
- Rented on your own cloud through connect → plan → build: ephemeral runners with a lifetime (#16699) that end when the queue is empty, so idle costs nothing. The plan shows the monthly ceiling before anything starts.
- The forge network's shared pool: crowdsourced lent capacity, metered. Each position on the slider shows its predicted queue wait and cost, from measured history. Never a guess.
Lending
- A runner can serve more than one forge: its claim loop asks each forge it is enrolled in, with a share for each. Lending in v1 means enrolling your runner at a friend's forge with a share, and it can be ended at any time. In v2 the forge network matches lenders and borrowers.
- Lent minutes earn credits, and borrowed minutes spend them. Any money price is the owner's decision.
Trust has two directions, and both must be explicit
- The borrower's code on the lender's machine. Whoever owns the machine can read whatever runs on it. So a check goes to a lent runner only when its repository allows it (public, or private shared with a named circle), and secrets are never sent to a runner the borrower doesn't own. The page says this in plain words.
- The borrower's code against the lender's machine. A lent runner runs strangers' code, so it must be contained: cgroups, bwrap or the Landlock floor, egress through the proxy only, and no access to the lender's home. A Mac can do none of that natively. A Mac lending to others runs checks inside a Linux VM, through Apple's Virtualization framework, or a wasm guest after the unkernel spike. A Mac running its owner's own forge's checks can run them as today.
- Honest results. A lent runner could report a fake green. Results carry the runner's identity. A sample of jobs is re-run on a trusted runner, and disagreement drops the runner's score and pauses it. A check that gates a merge on a protected branch takes a trusted runner's result, or two agreeing runners'.
Metrics, which an SLA rests on
Measured per runner and per pool, shown on the runner page and the network's public board:
- Queue wait: queued → claimed, p50 and p95.
- Speed: run time normalized by a small reference benchmark each runner runs at enrolment and daily.
- Availability: the share of the hours it said it would be there when it was connected.
- Completion: jobs finished ÷ jobs claimed (lost, abandoned and timed out count against it).
- Agreement: the share of sampled re-runs that matched.
An SLA states the tier, such as "own: best effort", "trusted lent: measured p95 wait", "rented: capacity you reserved" and "network pool: p95 wait under X, measured last 30 days". The number on a sales page is the measured one, linked to its board.
Phases (add to D-list)
- R1 Runner metrics (wait, speed reference, availability, completion) on Settings → Runners and the terminal. They are useful today, before any lending.
- R2 The Mac as a runner for its owner's forge (an agent is on this already). Report its numbers through R1.
- R3 A runner serving several forges with shares, plus a "lend to <forge>" enrolment and the repository's opt-in for lent runners. No secrets go to them.
- R4 Ephemeral rented runners from your own cloud behind the slider, with lifetimes and plans.
- R5 Credits, sampled re-runs and scores, then the network pool and its public board.
Split: one run each, all P4. D1 boot memory: #16851 (budget test), #16852 (nothing optional loads at boot), #16853 (bundle, with --bytecode measured). D2 sleep and wake: #16854 (router wakes, "waking…"), #16855 (idle sleep, a setting). D3 many on one machine: #16856 (cgroup + bwrap/Landlock walls), #16857 (shared tier sold, numbers from a test). D4: #16858 (continuous stream to a bucket), #16859 (move + machine-kill test). D5: #16860 (heartbeat placement, route table). D6: #16861 (forge boots in the tab), #16862 (one-button move to a shared forge).
Hosting at every scale: hundreds of forges for cents, thousands without a forklift, and a free forge that runs in the browser.
Owner, 2026-11-30: "could we host for cheaper then? could we make it viable to host hundreds of forges for cheap? what about thousands. im thinking of scale in terms of small and large. micro and macro" … "a way we could do free hosting without fronting the $. as long as the forge is clear to the user about what is going on."
What a forge costs today (measured 2026-11-30)
Today a sold forge is one VM, so every forge pays for a whole machine around the clock, though most forges sit idle most of the time. Measured on a fresh forge (current main, Bun 1.4.4, macOS arm64, empty data):
--smolmakes no differenceOn vxrail (Linux 6.12), the small forges the crew starts use 580–630 MB each, and production uses 2.2 GB.
So the JavaScript heap is small. Nearly all of an idle forge's memory is native allocation made while booting: most likely the 4,441 modules (25 MB of TypeScript) parsed at start, plus warm-ups (search, samplers, crew). A plain
bun build --minifybundle comes to 10 MB, but it does not run yet, because the code reads source directories at runtime (readdirSync).The ladder (each tier upgrades to the next by moving the same files)
Micro: density on one machine
FORGE_DRAIN_LINGER_S). The page says "waking…" honestly while it wakes.Macro: thousands across machines
Phases
readdirSyncof the source), then try--bytecode;Target: idle under 120 MB on Linux, then measure again.
Principles
Related: #16696 (cloud builder), the Landlock floor, and the unkernel spike (both filed 2026-11-30).