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

Check slots per repository: each app gets a guaranteed share, the forge borrows what's idle #16946

Merged opened this

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

Merged

The owner, after a conversation with a teammate: "getting away from a global runner pool and instead granting each app a number of concurrent runners it could have. the problem we have right now is that all the work is on one repo, the forge." Measured over 24 h: trevato/forge ran 610 of 613 checks (99.5%).

Notes

opened this

The owner, after a conversation with a teammate: "getting away from a global runner pool and instead granting each app a number of concurrent runners it could have. the problem we have right now is that all the work is on one repo, the forge." Measured over 24 h: trevato/forge ran 610 of 613 checks (99.5%). Design: talk-research/app-runner-grants.md.

  • repo.check_slots (default 1; migration with its pin), written only through setCheckSlots (src/actions/check_slots.ts). A repo admin may lower it; raising is a site admin's. Grants above 1 must leave one of checks.concurrency for every app at 1 (on 8: forge 5 ok, 4+4 refused).
  • Admission (grantHold, src/checks/check_slots.ts, in scheduler.ts over queued pull checks): within its grant a check starts as before; above it, a repo starts one only if free slots exceed what other waiting repos are still owed. No preemption; pick.ts order kept; main, rebase and verify checks are never held. Held log line once: "queued, held: trevato/forge at its grant of 5; tess/app's 1 is reserved".
  • Doors: a Settings "Check slots" row with running/waiting now (POST /settings/check-slots); the terminal Autonomy screen line (set with g); a /boards "Check slots by repository" fold (used of grant, borrowed, waiting); docs/features/check-slots.md.
  • Tests (test/check-slots.test.ts): a small app gets its 1; the forge borrows idle slots; the reserve holds with the exact log line; no starvation over a 600-tick run (max app wait one check length); bounds and who may set them; boards rows.

After it ships, setting trevato/forge to 5 is a site-admin action.

Burst note (not measured): scheduler.ts holds every pull check while main is red and releases them together when main goes green — one visible source of tonight's queue bursts.

tsc 0, gate clean; checks, tui-autonomy, pages-budget, api-fields, doorless, docs pass.

🤖 Generated with Claude Code

3 earlier comments
commented

<!-- look-pages 407ab6f026bc --> Look pages for 407ab6f, from the gate:

  • look pages (inferred): this pull changes src/web/pages/boards-slots.ts, src/web/pages/boards-view.ts, src/web/pages/settings.ts; the forge pictures / (src/web/pages/boards-slots.ts), /docs (src/web/pages/boards-slots.ts), /explore (src/web/pages/boards-slots.ts) and 28 more, the pages whose routes import it. A "Looks: <path>" or "No look: <why>" line in a commit message overrides
commented

<!-- look-pages 2ae64a842880 --> Look pages for 2ae64a8, from the gate:

  • look pages (inferred): "Looks: /boards" is not a page of app.looks in forge.json; this pull changes src/web/pages/boards-slots.ts, src/web/pages/boards-view.ts, src/web/pages/settings.ts; the forge pictures / (src/web/pages/boards-slots.ts), /docs (src/web/pages/boards-slots.ts), /explore (src/web/pages/boards-slots.ts) and 28 more, the pages whose routes import it. A "Looks: <path>" or "No look: <why>" line in a commit message overrides
commented

<!-- look-pages e833d348fc4e --> Look pages for e833d34, from the gate:

  • look pages (inferred): "Looks: /boards" is not a page of app.looks in forge.json; this pull changes src/web/pages/boards-slots.ts, src/web/pages/boards-view.ts, src/web/pages/settings.ts; the forge pictures / (src/web/pages/boards-slots.ts), /docs (src/web/pages/boards-slots.ts), /explore (src/web/pages/boards-slots.ts) and 28 more, the pages whose routes import it. A "Looks: <path>" or "No look: <why>" line in a commit message overrides
commented

<!-- look-pages 812ab3a34505 --> Look pages for 812ab3a, from the gate:

  • look pages (inferred): "Looks: /boards" is not a page of app.looks in forge.json; this pull changes src/web/pages/boards-slots.ts, src/web/pages/boards-view.ts, src/web/pages/settings.ts; the forge pictures / (src/web/pages/boards-slots.ts), /docs (src/web/pages/boards-slots.ts), /explore (src/web/pages/boards-slots.ts) and 28 more, the pages whose routes import it. A "Looks: <path>" or "No look: <why>" line in a commit message overrides
Sign in to join this conversation.

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

Keyboard shortcuts

Docs