Repository navigation
Sweep runner: wait no longer reports a just-finished job as not running (flaky required check) - #576
Merged
seathatflowsinourveins merged 1 commit intoOct 1, 2026
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
…as done, not as "not running" `codex_job.py wait` read `done`, then the job lock. A job that finished between the two reads was reported as "done exit=none (the job is not running)". The runner writes `done` before it releases the lock (flock(2): the lock goes when its last descriptor closes), so wait now reads `done` again once it sees the lock free. - tools/sota-convergence/landscape-sweep/codex_job.py: the re-read in `wait`. - tests/test_landscape_sweep_harness.py: `WaitFinishRaceTests` (synthetic fixture: the lock check itself completes the job; fails before the fix with 'done exit=none (the job is not running)' != 'done exit=0'; a job that never ran is still reported as not running); `RunnerCase.diagnose`, used by the web-search-modes test so a failed start or wait prints the command's output and the runner's files. - docs/harness-defaults.md: two anti-pattern rows (this race; the evidence-manifest rows a hot-file re-run dropped). Observed once: hosted run 36836458360 on PR #360 failed test_web_search_modes_are_staged_bound_and_recorded at its wait step, with no output retained. The fixture shows the mechanism; a single-core stress loop did not reproduce the hosted failure before the fix, so the match with that run is an inference. Tests: python3 -m unittest tests.test_landscape_sweep_harness tests.test_adoption_docs_consistency -> 209 tests OK (4 skipped), exit 0. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
seathatflowsinourveins
force-pushed
the
claude/sweep-runner-wait-flake-20261001
branch
from
October 1, 2026 09:36
2414ee8 to
330be78
Compare
6 of 8 tasks
seathatflowsinourveins
deleted the
claude/sweep-runner-wait-flake-20261001
branch
October 1, 2026 10:54
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Scope
wait(a job that finished between itsdonecheck and its lock check was reported as "not running"), adds a deterministic test and failure diagnostics, and records two proven mistakes in the anti-pattern log.b72c588flane:foundationtools/sota-convergence/landscape-sweep/codex_job.py,tests/test_landscape_sweep_harness.py,docs/harness-defaults.md,manifests/evidence.json(hot-file commit, last).SOTA sources
tools/sota-convergence/landscape-sweep/codex_job.py(finishwritesdonebeforeruncloses the job lock;runningprobes the lock). No upstream tool is replaced; the change is three lines in our own wrapper aroundcodex exec.docs/harness-defaults.md, "Upstream verification and compounding learning" (AGENTS.md: record each proven mistake).Evidence-class table
synthetic(fixture: the lock check itself completes the job)python3 -m unittest tests.test_landscape_sweep_harness.WaitFinishRaceTests; failing first on the unfixed runner:'done exit=none (the job is not running)' != 'done exit=0'syntheticwait; a single-core stress loop did not reproduce it before the fixwait's output and the runner's files on failurelocal_integrationpython3 -m unittest tests.test_landscape_sweep_harness tests.test_adoption_docs_consistencyLocal commands run
Decision record
None: a defect repair. The two anti-pattern rows in
docs/harness-defaults.mdrecord what happened and the rule that prevents it (this race; and the evidence-manifest rows that a hot-file re-run of PR #548 dropped twice on 2026-10-01).Host evidence
Not applicable.
Checklist
permissions: contents: read(none changed).🤖 Generated with Claude Code