Public: anyone can read this; the crew can change it.
Runners show what an SLA rests on: queue wait, speed, availability and completion, measured #16845
Conflicts with main in 6 files
scripts/gate.ts · src/checks/runner_jobs.ts · src/http/api/runners.ts · and 3 more
Phase R1 of #16840 (the runner split). Per runner and for the forge, on Settings → Runners, the terminal's Runners and GET /api/v1/admin/runners: Queue wait: claimable → claimed, p50/p95, last day exact and 30 days in buckets.
-
Reviews
Changes requestedGood shape overall: the desk-side facts, both doors, docs/features and tests are in place, and README is untouched. Changes needed, all in one round:
- Security (medium): the benchmark digest is not proof of work.
BENCH_DIGESTis a public constant in the repository, so any runner can POST{ms: 1, digest: BENCH_DIGEST, version: 1}and be scored as the fastest machine. The runner_metrics.ts header and docs/features/settings-runners.md claim these numbers are never from what a runner says of itself, and a report 'whose digest is not the work's is not kept'. That is not true of speed. Fix: either say plainly in the docs and in the speed words that the time is as reported by the runner (the digest only proves the same version of the work), or have the forge issue a per-request nonce that the work folds in so the digest cannot be precomputed. The first is the smaller change. - DoS (medium):
POST /api/v1/runner/benchinserts a row per valid report with no limit per runner, andpruneruns only fromnoteClaimed. A runner can floodrunner_bench. Keep one row per runner (upsert) or refuse a report newer than a day after the last, and call prune from the bench path too. - Fragile:
timedOutin runner_metrics.ts matches the English text ofrunSteperrors with a regex. A reworded error silently turns timeouts into 'done'. Take the timeout from a field on the step result, or import the message from the module that produces it, and test that link. - Design (principles 1, 7 and 8, src/web/pages/runners.ts
forgeLines): the forge block is a long run-on paragraph (month wait, availability, completion and reference speed in one mutedp), and each row repeats 'Its claims ...' sentences twice. Say one confident line for the page and put the rest asdlfact rows. Reuse an existing named component instead of the hand-rolledstatus-rowsdiv, or document the new class under docs/design/areas/. - Looks: the forge could not infer a look page. Add a
Looks: /settings/runnersline to a commit message, plus areviewblock (JSON steps go/look/expect) for this page change.
Not blocking: the
againstquery isORDER BY at DESC LIMIT 60across all runners, so a busy runner's failures can leave another runner's list empty; query per runner or say so. - Security (medium): the benchmark digest is not proof of work.
-
Checks
look it conflicts with main in scripts/gate.ts, src/checks/runner_jobs.ts, src/http/api/runners.ts, and 3 more — bring the branch up to date and it can land deploy 261b26e
Conflicts in 6 filesdeploy 261b26e
Website spec: 25 findings (report only)
- /board http://127.0.0.1:34295/board answered 303 — https://specification.website/
- /notes http://127.0.0.1:34295/notes answered 303 — https://specification.website/
- /review http://127.0.0.1:34295/review answered 303 — https://specification.website/
- /system http://127.0.0.1:34295/system answered 303 — https://specification.website/
- /admin/limits http://127.0.0.1:34295/admin/limits answered 404 — https://specification.website/
- /maintenance http://127.0.0.1:34295/maintenance answered 303 — https://specification.website/
- /talk http://127.0.0.1:34295/talk answered 303 — https://specification.website/
- /flow http://127.0.0.1:34295/flow answered 303 — https://specification.website/
- /resilience http://127.0.0.1:34295/resilience answered 303 — https://specification.website/
- /boards?help http://127.0.0.1:34295/boards?help answered 303 — https://specification.website/
- /settings/crew http://127.0.0.1:34295/settings/crew answered 303 — https://specification.website/
- /settings/crew?help http://127.0.0.1:34295/settings/crew?help answered 303 — https://specification.website/
- /settings/captain http://127.0.0.1:34295/settings/captain answered 303 — https://specification.website/
- /settings/security/controls http://127.0.0.1:34295/settings/security/controls answered 303 — https://specification.website/
- /settings/grants http://127.0.0.1:34295/settings/grants answered 303 — https://specification.website/
- /preview-admin/sample expected exactly one <h1>, found 2 — headings
- /preview-admin/sample/drop http://127.0.0.1:34295/preview-admin/sample/drop answered 303 — https://specification.website/
- /preview-admin/sample/data-move http://127.0.0.1:34295/preview-admin/sample/data-move answered 303 — https://specification.website/
- /preview-admin/sample/cut-over http://127.0.0.1:34295/preview-admin/sample/cut-over answered 303 — https://specification.website/
- /preview-admin/sample/next?pick expected exactly one <h1>, found 2 — headings
- /preview-admin/sample/bets expected exactly one <h1>, found 2 — headings
- /preview-admin/sample/waves expected exactly one <h1>, found 2 — headings
- /preview-admin/sample/space the first focusable element is not a skip link (an in-page #target link) — skip-link
- /looks/missing http://127.0.0.1:34295/looks/missing answered 404 — https://specification.website/
- /looks/failed http://127.0.0.1:34295/looks/failed answered 500 — https://specification.website/
This pull asks for more cpus. Its preview and check run at the size main declares; the larger size applies when the pull lands.
7 earlier comments
<!-- look-pages afcaaa21db81 --> Look pages for afcaaa2, from the gate:
look pages (none): this pull changes src/web/pages/runners.ts but the forge could not trace the route of /settings/security/controls (an inline or wrapped handler), so it could not infer a page; the reviewer decides. A "Looks: <path>" line naming the nearest page, or a "No look: <why>" line (10+ characters), says it
<!-- look-pages 654b1a9535f7 --> Look pages for 654b1a9, from the gate:
look pages (none): this pull changes src/web/pages/runners.ts but the forge could not trace the route of /settings/security/controls (an inline or wrapped handler), so it could not infer a page; the reviewer decides. A "Looks: <path>" line naming the nearest page, or a "No look: <why>" line (10+ characters), says it
<!-- look-pages 261b26e615fa --> Look pages for 261b26e, from the gate:
look pages (none): this pull changes src/web/pages/runners.ts but the forge could not trace the route of /settings/security/controls (an inline or wrapped handler), so it could not infer a page; the reviewer decides. A "Looks: <path>" line naming the nearest page, or a "No look: <why>" line (10+ characters), says it
Parked, offered to the crew again: it sat 6 h with no push, and nobody on the crew can take it from here (a person's branch: no builder can push it), so it waits for its author. The last verdict (changes requested): Good shape overall: the desk-side facts, both doors, docs/features and tests are in place, and README is untouched. Changes needed, all in one round: 1. Security (medium): the benchmark digest is not proof of work. BENCH_DIGEST is a public constant in the repository, so any runner can POST `{ms: … (The forge posts this; nobody wrote it by hand.)
Answered for #17832, left as it is.
State: conflicted in six files (scripts/gate.ts, src/checks/runner_jobs.ts, src/http/api/runners.ts, src/runner/main.ts, the runners screen and page); changes requested: sentinel's findings on src/http/api/runners.ts.
Why not finished: this pull is trevato's own, a person's branch. #17832 lets a builder rebase, fix or apply reviews only on the crew's own pulls, so the crew does not push here. To hand it to the crew, give it back (or open an issue that names it), and a builder takes it from there. Nothing was merged or closed.
Phase R1 of #16840 (the runner split). Per runner and for the forge, on Settings → Runners, the terminal's Runners and GET /api/v1/admin/runners:
Too little history says so instead of showing a number. Additive beside #16836 (lend runners): new modules, plus one note call at each desk change. No timer, no polling.
🤖 Generated with Claude Code