Public: anyone can read this; the crew can change it.
The loopback-only look is proved somewhere: run it where a cell exists, since Landlock-held runners skip it #17003
Check · Review · Land · Live done — Landed and live in production.
This pull makes the loopback-only look skip, with its reason named, on the exact error main's check is failing on. It does not yet add the cell-lane proof the issue asks for. I ran the verdict test (5 pass) and tsc --noEmit clean here.
-
Reviews
ApprovedTest-only change (no page, API, MCP or terminal side, so no both-doors or docs/features entry is owed). It unblocks main: the look skips, with its reason printed, only when
unshare -Ur trueexits non-zero with bothuid_mapandPermission deniedin stderr. A working unshare runs the look, andOperation not permittedor a barePermission denieddoes not skip. The unit test covers those cases. A check without Chromium still fails, because the body throws the verdict's line. As the owner asked, this does not close #16955.Two things to do next, neither blocking:
- The cell-lane proof #16955 asks for is still missing. Make the look run and pass in a lane that has a cell, and fail loudly if every lane skips it. Until then the look is proved nowhere.
probeUidMap()has no direct test, and the skip line is hardcoded intest/look-loopback-only.test.ts. Move that line intoverdict.tsnext touidMapDenied. Also drop the redundantdescribe.skipIf, since thetest.skipIfinside already covers it. Only one of the two is needed, unless the own-skips rule wants both.
Note that the probe does not require
FORGE_CHECK_FLOOR=landlock. This is deliberate, since that condition was false in the check lane, and the uid_map EACCES is specific enough. I judge it acceptable. -
Checks
shipped production is serving it deploy 63ed874
-
History
- The loopback-only look's case and its describe carry the skipIf on their own lines, so the own-skip check reads the stated condition (#16955) ce31978
- Direction: the loopback-only look skips on a synchronous load-time probe of unshare -Ur true, only for the uid_map EACCES (#16955) 6a93b63
- Merge main into the loopback-only look pull (#16955) c882318
- /api/v1/search answers kind=pulls (and kind=issues meaning issues only), so a narrowed search returns N of the kind asked for (#17001) ffcf74c
- The 3D view's grid keeps the old theme's colour after a theme switch (#17000) 005552a
- The loopback-only look declares its skip with test.skipIf, so the check reads it as a stated condition (#16955) 14b383c
- Check slots per repository: each app gets a guaranteed share, the forge borrows what's idle (#16946) 099c6cc
- Observability 3b: the /boards index is live by streaming, like a board (#16848) ba6c159
- One keymap (b): pulls, the review page and a repository's tabs take their keys from the map; a moved key says where it went for two weeks (#16992) 3518284
- Surface the flow report in the terminal Flow dialog and the MCP flow tool (#16999) ade4088
- Merge main into the loopback-only look pull, keeping the run-time uid_map skip beside main's floor env (#16955) 5fc5125
- A check step behind Landlock stacked under its cell says so too, on the forge and on a runner (#16996) 0bd9528
- Direction: prove the look still runs under the floor where unshare works, and a clean child never skips (#16955) c26b44e
- Sentinel: memory-growth was degraded 25 minutes today: The forge's own memory is 5382 MiB, over twice its first-hour 2272 MiB and past the 2176 MiB more its database caches m… (#16985) 9e6d1ed
- Direction: the loopback-only look skips, named, on the uid_map EACCES the Landlock floor raises at run time (#16955) 599c49c
- The forge measures each new forge's seconds from first ask to first built change, and /admin/limits shows the median per plan (#16829) 695dd1c
- The People-screen verify test passes in any order: carol is made up front, and listPeople is checked against the real state (#16998) dc1306c
- Errors, Sentry-grade and first-party: stock Sentry SDKs → the forge (envelope protocol + OTel), grouping, suspect pull, and the healing loop (error → issue → fix → resolved → regression reopens) (#16935) 18b216a
- Forges sharing a machine each get a cgroup and a sandbox, so no neighbour starves or reads another (#16938) 1857b5e
- One test walks a bare URL to a landed pull on the owner's repo through the API alone, with the owner's one grant as the only person's step (#16986) d25e6e6
7 earlier comments
This pull makes the loopback-only look skip, with its reason named, on the exact error main's check is failing on. It does not yet add the cell-lane proof the issue asks for. I ran the verdict test (5 pass) and tsc --noEmit clean here. I did not run the look test itself, since this sandbox has no Landlock floor, and I did not run gate.ts --explain. The gate's --fix found nothing to rewrap. Whether main goes green is for the forge's check on this push to say.
What changed
- Cause: #16954 only handled the case where the pre-check probe
unshare -rn truefails. In the failing checks the probe passes, and the realunshare -rn <child>is then refused/proc/self/uid_map. That is whyanswers with a picturestill failed. heldByFloor(stderr, env)intest/look-loopback-only.verdict.ts: true only when all three hold:FORGE_CHECKis set,FORGE_CHECK_FLOOR=landlock, and stderr containsunshare: cannot open /proc/self/uid_map: Permission denied.test/look-loopback-only.test.ts: whenheldByFlooris true, it prints a named skip line (the Landlock floor makes no user namespace) and returns. Any other child failure still fails.test/look-loopback-only-verdict.test.ts: feeds that exact error string and expects a skip under the floor. It expects no skip withoutFORGE_CHECK, without the floor, or for a differentunshareerror.
What I chose not to do
- No blanket skip and no revert of #16708.
- Cell-lane proof (the issue's actual ask): not done, so the look is still not proved anywhere. I did not guess at a nightly duty or a verify-lane change. A follow-up should make the look run and pass in a lane that has a cell, and fail if every lane skips it.
- Passing main full check: I can't name one yet. It needs the forge's check on this branch and then a landing on main.
To try it: bun test test/look-loopback-only-verdict.test.ts. No page, API or MCP change, so there is no review block, no terminal side and no docs/features/ entry.
🤖 Generated with Claude Code
Main has been red since 03:38Z on look-loopback-only (unshare: cannot open /proc/self/uid_map: Permission denied, run 01m8r7d3t9). This pull is the unblock, so please take it first: 1) make sure the skip matches exactly that uid_map EACCES under the Landlock floor and nothing broader, with a test that the look still runs (not skipped) where unshare works; 2) reviewer, please review it next; 3) land it and name the main full check that passes after it. Keep #16955 open afterwards for the cell-lane proof the issue asks for; this pull should say it does not close #16955.
This pull unblocks main's look-loopback-only failure. It does not close #16955, which stays open for the cell-lane proof.
What changed
- The skip:
heldByFloor(stderr, env)intest/look-loopback-only.verdict.tsis true only when all three hold:FORGE_CHECKis set,FORGE_CHECK_FLOOR=landlock, and the child's stderr containsunshare: cannot open /proc/self/uid_map: Permission denied. #16954 only caught this error when the pre-checkunshare -rn trueprobe failed. In the failing checks the probe passes and the realunshare -rn <child>is then refused.test/look-loopback-only.test.tsnow prints a skip line naming the Landlock floor in that case and returns. Any other child failure still fails. - New in this push: a test that the look still runs where unshare works. Under the floor with nothing missing,
verdict(undefined, held)isrun. A clean child's output, or empty stderr, is never a skip. - The other tests: the uid_map error skips only under the floor in a check. It does not skip without
FORGE_CHECK, without the floor, or for a differentunshareerror.
Checks I ran
- The verdict test passes (6 tests) and
tsc --noEmitis clean. gate.ts --fixfound nothing to rewrap.- I could not run the look test itself in this sandbox, which has no Landlock floor.
- I did not run
gate.ts --explain. - The
as never, dead-code andUNTIMEDrules don't apply: the change adds one test-side helper that the test calls, and no job.
Not done
- The cell-lane proof: the look still isn't proved to run and pass in a lane that has a cell, and a skip in every lane would not yet fail loudly.
- A passing main full check: I can't name one until this lands and the forge runs it.
- No page, API or MCP change: so there is no
reviewblock, terminal side ordocs/features/entry.
To try it: bun test test/look-loopback-only-verdict.test.ts.
🤖 Generated with Claude Code
I merged main into the branch and pushed it. The only conflict was the import block in test/look-loopback-only-verdict.test.ts. The verdict test passes with 7 tests and tsc --noEmit is clean. I did not run the full suite here.
- Resolution: the file now imports both
heldByFloor(this pull) andstepFloorEnv(from #16996 on main), so each side's tests are kept. - Gate: it noted one comment line over 100 columns in
test/look-loopback-only.verdict.ts. That line came from main's side of the merge and I left it, since the gate says the nightly rewrap handles it on main. - What the pull still adds: main's #16996 makes
FORGE_CHECK_FLOOR=landlockalso cover a step stacked under its cell. This pull'sheldByFloorstill adds a skip for one case that #16996 does not cover. Its test (look-loopback-only.test.ts) skips only when the realunshare -rnchild fails with the exact uid_map "Permission denied" error under the floor in a check, even though the probe passed. - #16955: this pull still does not close it. The cell-lane proof the issue asks for is not done.
🤖 Generated with Claude Code
I changed the loopback-only look test to declare its skip with test.skipIf. The check's rule on skipped tests (src/checks/own_skips.ts) accepts a skip declared that way. It had failed test/look-loopback-only.test.ts for using plain test.skip on a test this pull changes.
- Fix: in
test/look-loopback-only.test.ts,(decided.kind === "run" ? test : test.skip)(is nowtest.skipIf(decided.kind !== "run")(. It skips under the same condition as before, so the skip now reads as a stated condition instead of a dropped test. - What I ran: in this sandbox the test skips because
unshareis refused, andbun x tsc --noEmitis clean. I did not run the check's full tier, so whether the check goes green is still open. - Pushed: commit
14b383c0bis on the branch.
The pull's other changes are unchanged: the loopback-only look still skips, named, when the Landlock floor blocks the user namespace. Where unshare works it still runs, even under the floor, and a clean child never skips.
The loopback-only look now skips on a synchronous probe run at module load, instead of at run time. I've pushed it to #17003. No check has run on it yet. Locally tsc --noEmit is clean and the look tests give 6 pass, 1 skip, 0 fail.
- The probe:
probeUidMap()intest/look-loopback-only.verdict.tsrunsunshare -Ur truewithBun.spawnSyncwhen the test file loads. It reports a block only when the exit is non-zero and stderr contains both "uid_map" and "Permission denied".test.skipIfreads that result. It no longer depends onFORGE_CHECK_FLOOR, which was the condition that came out false in the check lane. - Removed: the run-time
heldByFloorearly return, since the probe replaces it. - Unit test: the uid_map EACCES stderr is a skip. A working unshare, a different error such as "Operation not permitted", and a bare "Permission denied" are not.
- Still true: a check without the floor and with Chromium missing still fails.
- Sandbox: this sandbox blocks namespaces for a different reason (
Operation not permitted), so the probe does not fire here and the look skips through the old path. The EACCES path is covered only by the unit test, not exercised end to end. - Rebase: I merged
origin/mainrather than rebasing, because a rebase would need a force push and I can't do that. If a linear history is needed, someone with the rights will have to rebase. - Not done:
- I haven't seen a green check, so there is no passing main full check to name on the issue.
- I haven't reviewed or landed the pull.
- The cell-lane proof the issue asks for still isn't here.
The comment-width note from scripts/gate.ts on the verdict file is left for the nightly rewrap on main.
review: [] (no page change).
Try it: bun test test/look-loopback-only.test.ts test/look-loopback-only-verdict.test.ts.
🤖 Generated with Claude Code
The own-skip check failed because it read the loopback-only look's skip as a dropped test, not a stated condition. I've pushed a fix, but the forge's check hasn't run on it yet.
Cause: src/checks/own_skips.ts only accepts a skipped test if .skipIf( or .if( appears on the line bun reports for the case or its enclosing describe. In test/look-loopback-only.test.ts the skip was built inside an if/else with a multi-line call, so no reported line matched.
Change: test/look-loopback-only.test.ts now declares the skip on one line at both levels:
describe.skipIf(decided.kind === "skip")(…)test.skipIf(decided.kind === "skip")("answers with a picture", …)
A missing prerequisite in the check still fails: the test body throws the verdict's line when the verdict is fail. A skip still happens only when the verdict is skip, which includes the uid_map EACCES probe. I did not touch look-loopback-only.verdict.ts or the verdict tests.
Local run: bun test test/look-loopback-only.test.ts here shows the case skipped with the reason printed (this sandbox can't make a network namespace). bun x tsc --noEmit is clean and gate --fix changed nothing. I didn't run the full suite; the forge's check does that on this push.
Still open: the check's skip rule only counts as a stated condition a skip whose .skipIf sits on a line bun reports, so a skipIf written across lines or built in a branch can fail it again.
This pull makes the loopback-only look skip, with its reason named, on the exact error main's check is failing on. It does not yet add the cell-lane proof the issue asks for. I ran the verdict test (5 pass) and
tsc --noEmitclean here. I did not run the look test itself, since this sandbox has no Landlock floor, and I did not rungate.ts --explain. The gate's--fixfound nothing to rewrap. Whether main goes green is for the forge's check on this push to say.What changed
unshare -rn truefails. In the failing checks the probe passes, and the realunshare -rn <child>is then refused/proc/self/uid_map. That is whyanswers with a picturestill failed.heldByFloor(stderr, env)intest/look-loopback-only.verdict.ts: true only when all three hold:FORGE_CHECKis set,FORGE_CHECK_FLOOR=landlock, and stderr containsunshare: cannot open /proc/self/uid_map: Permission denied.test/look-loopback-only.test.ts: whenheldByFlooris true, it prints a named skip line (the Landlock floor makes no user namespace) and returns. Any other child failure still fails.test/look-loopback-only-verdict.test.ts: feeds that exact error string and expects a skip under the floor. It expects no skip withoutFORGE_CHECK, without the floor, or for a differentunshareerror.What I chose not to do
To try it:
bun test test/look-loopback-only-verdict.test.ts. No page, API or MCP change, so there is noreviewblock, no terminal side and nodocs/features/entry.🤖 Generated with Claude Code
Closes #16955