Skip to content

fix(eval): the grader reads from the run's root, not the process cwd - #2384

Merged
joelteply merged 1 commit into
canaryfrom
fix/grader-roots-at-run-root
Aug 23, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fix/grader-roots-at-run-root

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Defect 2 of the Ornith showcase battery. Take 2 of hard-rs proved #2382's hands-rooting works (sol files landed in the ephemeral clone with live timestamps) — and every task still graded 0 because test_grade_file resolved rel_path against the core process CWD, not the run root.

  • test_grade_file(root: Option<&Path>, ...) — joins rel_path under the run's root; None keeps old behavior for absolute-path callers
  • solo pass: task_root (per-task pin or the Sentinel-Recipe Engine: Phases 0-6 complete #312 ephemeral clone)
  • team pass: the run root threaded through run_pass_team as a new param (same semantics as solo)
  • rooted regression test: artifact written into a tempdir root, graded from an unrelated CWD

Takes 1 and 2 both infra-poisoned, neither recorded. Take 3 launches after this deploys.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…— defect 2 of the showcase battery

Take 2 of hard-rs proved #2382's hands-rooting fix works (live timestamps
showed sol files written INTO the ephemeral clone) and then failed every
task anyway: test_grade_file resolved rel_path against the core process's
CWD, so a correctly-written artifact in the run root graded as 'she never
wrote it'. Uniform false zeros, second infra-poisoned take, never recorded.

Fix: test_grade_file takes the run's root explicitly and joins rel_path
under it; solo passes task_root (task pin or #312 ephemeral clone), team
gets the same run root threaded through run_pass_team. None preserves the
old CWD behavior for callers with absolute paths.

Regression test writes an artifact into a tempdir root and grades it from
an unrelated CWD.

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 03:43
@joelteply
joelteply merged commit d4d26a7 into canary Aug 23, 2026
5 checks passed
@joelteply
joelteply deleted the fix/grader-roots-at-run-root branch August 23, 2026 03:54
joelteply added a commit that referenced this pull request Aug 23, 2026
…receipt + fluid-sim e2e task (#2393)

The Ornith showcase battery's honest output:

- hard-rs row (RESULTS.jsonl + home ledger): 6/8 (75%), first clean
  number on our own set — takes 1-2 discarded as infra-poisoned (grading
  defects #2382/#2384), conditions and contention caveat on the row.
- benchmarks/serving/ttft_fold.py + the d4d26a7-window receipt: 215
  streams, 3h of real multi-agent serving, M5 64GB, Ornith-1.5-35B-A3B
  Q4_K_M. Agent-scale prompts (>=4k tok): median TTFT 14.8s, worst 66.9s
  — vs FreeToken's published 44s worst-case on their rigs and stock
  llama.cpp's 232s (the baseline they beat). Our policy lands 3.5x better
  than their llama.cpp baseline under multi-workload contention; warm
  exclusive-slot streams (97-99% reuse, ~11s) show the headroom to their
  44s inside our own data. Zero-reuse ablation column derived from the
  same rows.
- render_results.py Reproduce line now leads with the citizen path
  (cognition/eval — gyms ship in-repo, clone + core = full setup).
- docs/genome/design/fluid-sim.eval.jsonl: the wild frontier one-shot
  prompt as a graded, eye-node-checked eval task (runs blocked tonight on
  the 1-lane wedge-loop finding, memory-filed; task ships regardless).


Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

Co-authored-by: Claude Fable 5 <[email protected]>
joelteply added a commit that referenced this pull request Aug 23, 2026
…ibling (#2400)

Found live on the MirrorCode maiden round: run_dod spawned bash in the
PROCESS CWD, so setup_shell staged task fixtures into the real repo
checkout (a mirrorcode/ tree appeared in the operator's working copy)
while her hands and artifacts lived in the #312 ephemeral clone — the DoD
then graded a world containing the fixtures but not her work: 100% false
fails plus operator-tree pollution. DS-1000's clean sweep predates the
ephemeral roots, when CWD *was* the workspace — coincidence, not design.

run_dod takes the resolved run root (task pin or ephemeral clone — the
same authority test_grade_file adopted in #2384) and sets current_dir at
all three call sites (setup, solo DoD, team DoD). None preserves cwd for
callers that genuinely run there. Regression test proves the DoD's world
is the root and nothing lands in the process cwd.

MirrorCode maiden run fda23ab2 is VOID (never recorded); Take 2 launches
post-deploy as the unlearned baseline.


Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

Co-authored-by: Claude Fable 5 <[email protected]>
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