Repository navigation
fix(eval): harden both grading environments — orphan-swept exam worlds, garbage-ceiling grade timeouts - #2385
Merged
Merged
Conversation
…s, garbage-ceiling grade timeouts Environment audit of the eval seam (persona side + grader side), prompted mid-battery. Persona side is sound: ShellSession roots at the canonicalized eval clone with the shared cargo cache. Two grader-side defects fixed: 1. Orphaned exam worlds. #312's RAII drop covers every in-process return path but not a killed process — 'continuum reboot' SIGTERMs the core and Drop never runs. Measured today: Take 2's killed run left its 31 GB (logical; CoW-shared) clone under $TMPDIR/continuum-eval with no reporter able to see it — the exact silent-class shape of the 2026-07-13 incident. Fix: a live-root registry (LIVE_EVAL_ROOTS) + a provision-time sweep that removes sibling worlds belonging to no live run in this process (an eval run cannot survive its process, so those are orphans by construction). Event-driven at point of use — no boot hook, no tick. Plus the law's two receipts: a TrackedDir row ('eval-roots') and an eviction decision entry (steady state owned in-file; broker pool deferred to #155 with the live-set requirement named). 2. Flat 10s grade timeout under decode contention. Grading shares the machine with a 35B decode; a tight flat budget converts scheduler contention into a false FAIL against the candidate. Split into garbage ceilings per the stopwatch doctrine: compile 120s (rustc on a busy box is legitimately slow and cannot hang on its own), run 30s (the infinite-loop guard — gym tests assert in microseconds, so anything near the ceiling IS a hang). Regression test: sweep removes an unregistered world, never a live or in-provision one, and Drop still owns the in-process path. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
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.
Environment audit of the eval seam, both sides, prompted mid-Ornith-battery ("make sure their environments aren't screwed up, persona and grader").
Persona side: sound. ShellSession roots at the canonicalized eval clone, inherits the shared cargo cache — no fix needed, verified live (Atlas's sol files land in the clone).
Grader side: two defects fixed.
continuum rebootmid-run leaks the whole CoW clone (Take 2's 31 GB logical root, found by hand today; the 2026-07-13 silent-class shape). Fix:LIVE_EVAL_ROOTSregistry + provision-time orphan sweep (event-driven, no boot hook, no tick) + the disk law's two receipts:eval-rootsTrackedDir row and an eviction-decision entry (broker pool deferred to Add genome visualization to root README with live video #155, live-set requirement named).Regression test: sweep removes an unregistered world, never a live or in-provision one; Drop still owns the in-process path.
Deploy note: not before Take 3 completes — a reboot would kill the run (that's how defect 1 was found).
🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo