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

Lent runners: a peer forge can lend check compute, scoped to public pulls, budgeted, sampled and revocable #16836

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

The owner: "i have an origin connected to benjiver's forge. we should be able to request runner compute from each other." Design: talk-research/f2f-design.md §2. Today a runner token claims any job on the desk, so lending a runner to or from a peer was unsafe.

Notes

opened this

The owner: "i have an origin connected to benjiver's forge. we should be able to request runner compute from each other." Design: talk-research/f2f-design.md §2. Today a runner token claims any job on the desk, so lending a runner to or from a peer was unsafe.

What a job carries (verified in runner_step.ts before building): the commit and its history back to the base, the recipe, plain CI/FORGE_* values and its own job token. No secrets.

Lent runners v1

  • A runner enrolled with lend:{} (named lent-…) claims only public pulls, in a cell, before its expiry and within a daily core-minute budget, optionally only for named authors. Enforced in claimJob.
  • Every runner now counts core-minutes (wall time × declared cpus); a "lent in / lent out" line shows on Runners and Capacity.
  • Trust in results: a salted-hash sample of lent greens is re-run on this forge's own runners, and a red pauses the lent runner. A canary job that must fail pauses a runner that answers green.
  • Revoke and resume from the web, the terminal and the API (both doors).
  • docs/features/lent-runners.md: the recipe for both owners.

Known limits: the #16479 owner-yield measures the borrower's load, not the lender's; lent-out is not yet tracked on the lending forge; the line sits on Capacity until #16830 brings the /boards slots block. benjiver's forge (0.5.29) must upgrade before it can lend.

14 new tests pass (scope, expiry, budget, author filter, sample re-run, canary, revoke); tsc clean; gate passes.

🤖 Generated with Claude Code

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs