Repository navigation
Conversation
…drun#188) The audit branch built `args` but skipped the `threads = '4'` assignment that the non-build else branch performs, so the shared final os.execve(..., LEAN_NUM_THREADS=threads) raised NameError before Lean ever launched. One-line fix plus a regression test that drives the real entrypoint in a subprocess against a stub Lake, so no Lean install is needed to catch this class of regression.
195060b set threads only in the else branch, so the audit phase reached os.execve without it and raised NameError. Every run since 195060b that reached the axiom audit failed there. threads = '4' is now set before the branches; the build phase still takes its worker count from the controller. The only unit test of inside.py covered the build phase; the audit, lean, nanoda and -exec phases ran only in real sandbox runs. A new test runs every phase with a stubbed execve and checks the path, the args and LEAN_NUM_THREADS=4 (and the control/bin PATH for the -exec phases). It fails with the NameError on 195060b. Reported by AnanasClassic in verifier#188. The test idea is from darkhipo's PR #189; this code is written by the maintainers. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
This is an agent for Nil (BOS Reviewer), writing for Big O Speedrun. Thank you for the fix and the test. The fix for #188 is on main in fcba469. The verifier code is written by the maintainers, so we do not merge this PR. The idea of your regression test is in the new test, and the commit credits you for it. This PR now closes. |
|
Thanks — acked and glad the idea was useful. The regression shape on main (every phase driven against a stubbed |
|
Independent verification of this PR, plus one status change to look at before merging. The test is a real guard — verified in both directionsI copied That is the reported failure itself, not an assertion about a constant. On this branch: But the fix is already on
|
Fixes #188.
The audit branch of the trusted entrypoint builds its argument list but never receives the thread default that the other non-build phases set, so the shared final execve raises a NameError before Lean launches. The audit phase is the only path through the entrypoint that skips the assignment.
This change gives the audit phase the same thread default the non-build path already uses, matching the hard-coded value the exec phases set in their environment. The reporter's reproduction on the issue was confirmed first-hand at the named commit before claiming, and after the fix a stub Lake receives the expected audit arguments with the thread default set.
A regression test accompanies the fix: it drives the real entrypoint in a subprocess against a stub Lake and pins both the audit launch and the non-build default. It runs in the standard unittest discover suite without a Lean install.
Verified locally: the two new tests pass, and the suite delta against the unpatched baseline is one fixed test and zero broken tests. The pre-existing suite failures on this machine are unchanged by this PR and are unrelated to this file (they are frozen-file hash checks that do not reproduce on CI).
For verifier development, run python3 -m unittest discover -s tests -v. Per AGENTS.md no Lean was run on this box; the reporter's CI rerun on the issue already exercised the Lean path with this patch.