Repository navigation
Description
Part of #853 (G12: one routing, one sandbox, one checkout-heal). Carried over from a consumer project whose own PC runner (a Windows desktop running one-job runners inside WSL2, with a route job that sends heavy jobs to the PC when it is idle) is to be merged into the fork's fleet (fleet-route, fleet-watch, fork-kit/desk, the fleet walls). These are the open findings of that runner. Each must be fixed in the merged design, or shown not to apply there, with a test.
Sandbox and wipe (the loop runs as root on the desktop)
- Wipe of a very deep folder tree crashes every round. A job makes a tree about 1000+ levels deep in a place it can write (
/tmp;mkdir d; cd dagain and again). The wipe calls itself once per level and stops withRecursionError; the folder stays, and every later round fails the same way, so no runner starts until someone deletes it by hand. A higher recursion limit only moves the crash to "too many open files" (one open folder per level, about 1024 per service). Wanted: a walk with no call and no open folder per level; also check what the whole-machine check does with a path longer than 4096 bytes. Test: 1500 levels are wiped (900 pass today, 1500 fail). - Writable files outside the wiped places are not counted. The whole-distro check that proves the wipe reaches everything a job can leave counts what the job user owns and folders it can write, but not files it can write elsewhere (a root-owned file with
o+w, org+wfor one of the job user's groups); ACLs are not read. A job can leave data there for the next job. Wanted: count such files (skip symlinks,/dev/null-like devices and sockets, with a stated list); decide whether ACLs are read or plainly not covered. Test: a world-writable root file outside the wiped places is found. - The network helper (pasta) still has netlink in the host's namespace. pasta runs as its own user and may only open IPv4 and netlink sockets, but a pasta taken over through a pasta bug could still read the host's addresses and routes, talk to a
NETLINK_USERSOCKlistener, list every connection and unix socket in the host namespace (sock_diag; on WSL that includes other distros), use features gated onCAP_SYS_ADMINalone (for example attach an nbd network disk), or enter any named namespace under/run/netns. Wanted: a seccomp filter that allows onlyNETLINK_ROUTE(or a checked reading of passt's own filter), the nbd module blocked, and a refusal when/run/netnsholds anything but the job's namespace. Test: aNETLINK_USERSOCKsocket is refused as pasta's user. Low priority: it needs a pasta bug first. - A state folder that PR code can write. The job that re-runs cut-off desktop jobs reads a state folder that PR jobs on the always-on light runner can also write. PR code could plant notes that get posted into the "runner needs attention" issue (text agents act on) and stop red main runs from being re-run. Wanted: keep that state where PR jobs cannot write (another user or a runner-only path) or verify the writer; test that a PR-job write is ignored.
Routing and re-runs
5. Catch-up re-runs cover main only. When the follow-up run that should re-run a cut-off desktop job fails (API error, light runner gone, timeout), a catch-up sweep re-plans red first-attempt runs, but only push runs on main. A cut-off job on a pull request stays red until someone re-runs it. Wanted: also the newest run per PR head of the last few days (never a run a newer push replaced); test both.
6. Own label vs a shared label (decide on data). Today a heavy job goes to the desktop's own label; if the desktop goes away after routing, the job waits, a sweep cancels the whole run after 10 minutes and finished jobs on the always-on runner are lost. Alternative: a shared label on both runners, given to one job per run (option "C"). Cost: no preference for the faster desktop, and the desktop may take jobs later than routing checked, which needs an owner decision. Decide from counts after the merged design has run for some weeks: how often a job waited for a gone desktop, and how often the always-on runner was busy while the desktop was idle.
Setup and speed
7. Install check misses PyYAML. job-changed needs PyYAML and fails closed without it (every workflow edit then rebuilds every heavy job). The runner's install check should refuse or report a missing python3-yaml.
8. "Which ssh config file wins" hint can name the wrong file. When a setup check finds that another ssh config overrides ours, its hint greps whole files for the option name and ignores Host/Match scope and Include; with an included file it names an unrelated file. The check itself still fails correctly. Wanted: find the winning line from ssh -G -vvv-style tracing, or name every candidate line in Host scope; test with an Include.
9. Warm caches for one-job runners (not built). Every desktop job starts with an empty Gradle home and no Docker images (measured cost: about +2m44s and +47s on two builds, plus a ~460 MB database image pull per job). Design: a fixed list of read-only seeds (Gradle modules-2 without lock files, the build cache, wrapper dists, the database image pinned by digest, the locked Maven jars), refreshed about daily into a root-owned folder (unpack to .new, swap by rename, keep the old seed on failure); per job GRADLE_RO_DEP_CACHE on the read-only seed, the build cache copied into the fresh home, the image loaded with its digest checked. Never any credential file on the list (a test pins it). A missing locked jar must still fail loudly. Failure rows: half seed, stale seed, missing seed (cold job, still correct).
10. Guide for a native Linux desktop (today only WSL2 is written up).
State question for every item: what happens when the loop or a wipe runs again, stops half-way (power off mid-job, killed mid-wipe, half-unpacked seed), or meets old state (a tree left by an older version, an old registration, a state file from before the change)?
Size: L in total; items 1-4 first (sandbox), then 5, 7, 8, then 9; 6 and 10 when data or a Linux desktop exist.
Area: .github/scripts/fork-fleet-*, fork-ci/actions/fleet-route / fleet-watch, fork-kit/desk. Critical (runs PR code as root on a desktop; two independent reviewers).
🤖 Generated with Claude Code
Activity
scuttletoby commentedon Nov 22, 2026
More open findings carried over from the same consumer PC runner, for the merged design (each: fix with a test, or show it does not apply):
Routing and reports
11. A red main run skipped "because the desktop will re-run it" has no deadline. The deploy job skips a red main run when the desktop is expected to re-run it. If that re-run never starts, no issue opens and nothing deploys. Wanted: a deadline after which the red run is reported as red (and the skip is logged with it). Test: no re-run within the deadline gives one report.
12. An expired runner-status token silently stops routing to the desktop. The route step only prints a workflow warning when the token that reads runner status fails; heavy jobs then quietly stay off the desktop and the re-run job goes red every 10 minutes with no issue. Wanted: report token failure once (one issue or status line, not one per run), and clear it when the token works again. Test: a 401 from the status read opens one report, not one per run.
Setup checks and tests
13. The setup script's "two variables differ only in case" test misses forms. PowerShell variables are case-insensitive; the scan matches only
$name,$script:,$global:and$env:, so${name}(already used in the script),$local:/$private:/$using:and@namesplatting pass unseen, and an$env:name next to a same-named plain variable is a false clash. No such clash exists today.14. The same-inode guards in the drive close step have no test. Closing the desktop's drive mount points checks with
fstat(device and inode) that the folder was not replaced or mounted mid-run beforefchown/fchmod. Both guards can be removed with every test green, and the failure table has no row for a mount appearing during the close. Wanted: one test per guard (red without it) and the row.Guide (item 10 and the WSL2 guide)
15. An unfinished sentence in the guide's
atdstep: the comment about a drop-in ends "holds the day it is"; it should say it also holds the day a package installsatd.16. No "when something is wrong" row for job-owned or writable files left inside a closed, non-empty drive mount point: the close makes such a folder's root 0755 but leaves its contents, and the whole-machine check then flags them. The row should say what the line means and what to do.
State question as above: a close or check that runs again, stops half-way, or meets a mount point left by an older version.
🤖 Generated with Claude Code
scuttletoby commentedon Nov 29, 2026
Working on item 12 as it applies to the fork's fleet: the dispatcher (
.github/scripts/fork-fleet.py dispatch) prints the same "this pass stopped" warning on every pass (every 20 s) while GitHub refuses its token, and never says when passes work again. Planned: one warning per reason (a 401/403 names the token file), repeated only every 10 minutes with a count of passes, and one "passes work again" line once a pass goes through. One fork PR.🤖 Generated with Claude Code
fork-fleet dispatch: a pass that keeps stopping is said once per reas…
desk-install: check job memory keys against this machine's MemTotal
desk-install: job memory check uses the dispatcher host's rule
desk-install: per-job memory and CPU limits from machine.json (#1496)