Skip to content

fix(eval): harden both grading environments — orphan-swept exam worlds, garbage-ceiling grade timeouts - #2385

Merged
joelteply merged 1 commit into
canaryfrom
fix/eval-environment-hardening
Aug 23, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fix/eval-environment-hardening

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

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.

  1. Orphaned exam worlds — Sentinel-Recipe Engine: Phases 0-6 complete #312's RAII drop can't run through SIGTERM, so continuum reboot mid-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_ROOTS registry + provision-time orphan sweep (event-driven, no boot hook, no tick) + the disk law's two receipts: eval-roots TrackedDir row and an eviction-decision entry (broker pool deferred to Add genome visualization to root README with live video #155, live-set requirement named).
  2. Flat 10s grade timeout — grading shares the box with a 35B decode; contention became a false FAIL. Split into garbage ceilings: compile 120s, run 30s (the infinite-loop guard).

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

…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
@joelteply
joelteply enabled auto-merge (squash) August 23, 2026 04:27
@joelteply
joelteply merged commit 85bbb70 into canary Aug 23, 2026
5 checks passed
@joelteply
joelteply deleted the fix/eval-environment-hardening branch August 23, 2026 04:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant