Share an idle forge's machine with friends: their CI, their apps and previews, and a standby of their forge
The owner, 2026-11-25: "if i run out of tokens my vxrail is mostly idle. i want to be able to share that with my friends or work and host some work for them whether its CI or apps/previews or even their forge itself in case of a failover." A read-only map of main found most pieces exist; this issue is the order to connect them. Each part is its own pull.
CI for a friend's forge (nearly there). A runner (src/runner/main.ts) needs only a forge's URL and a token its admin enrols (POST /api/v1/admin/runners), fetches one commit with a per-job token, runs it in a cell and streams the log back. Missing: a way on THIS forge to run runners for another forge (a "lend runners" list: their URL, their enrolment token sealed, how many jobs), started and stopped by the forge like runner_pool.ts's local ones; low priority in a CPU-bounded slice so the owner's own work wins; and metering of each friend's job minutes, shown to the owner.
Yielding to the owner. Nothing today gives cores back on demand. One rule for every lent thing: when the owner's own queue (checks waiting, crew runs, app load) passes a threshold, lent runners finish their job and take no new one; lent child forges may be slept. Shown on /system.
Apps and previews for a friend. Today a friend needs an account and a child forge here (cells: CPU/memory ceilings, sleep, per-person limits, included credit). Make that one action for the owner: "host a forge for <person>" at a size, zero included credit by default, and "may be slept when this machine is busy" stated to them.
A standby of a friend's forge. Pieces: snapshots to a bucket, a recovery kit with a read-only key, restore.ts --kit, src/snapshot/standby.ts verify. Missing: on a schedule, restore their latest snapshot into a sleeping child here and verify it; a failover action that wakes it and points their name at it (when their DNS is in an attached Cloudflare account; otherwise it names the record to change); and a page saying how fresh the standby is.
The owner's decisions, asked once on the page that turns each on: who may use it, the most cores / forges they get, whether it is free or metered, and what is guaranteed (nothing by default).
Share an idle forge's machine with friends: their CI, their apps and previews, and a standby of their forge
The owner, 2026-11-25: "if i run out of tokens my vxrail is mostly idle. i want to be able to share that with my friends or work and host some work for them whether its CI or apps/previews or even their forge itself in case of a failover." A read-only map of main found most pieces exist; this issue is the order to connect them. Each part is its own pull.
src/runner/main.ts) needs only a forge's URL and a token its admin enrols (POST /api/v1/admin/runners), fetches one commit with a per-job token, runs it in a cell and streams the log back. Missing: a way on THIS forge to run runners for another forge (a "lend runners" list: their URL, their enrolment token sealed, how many jobs), started and stopped by the forge likerunner_pool.ts's local ones; low priority in a CPU-bounded slice so the owner's own work wins; and metering of each friend's job minutes, shown to the owner.restore.ts --kit,src/snapshot/standby.tsverify. Missing: on a schedule, restore their latest snapshot into a sleeping child here and verify it; a failover action that wakes it and points their name at it (when their DNS is in an attached Cloudflare account; otherwise it names the record to change); and a page saying how fresh the standby is.The owner's decisions, asked once on the page that turns each on: who may use it, the most cores / forges they get, whether it is free or metered, and what is guaranteed (nothing by default).
Files: src/runner/, src/checks/runner_pool.ts, src/spawn/, src/snapshot/standby.ts, src/web/pages/system.ts