Repository navigation
fix(evals): fail run-validity when a scaffold case ran without --scaffold - #11337
Conversation
Lane-Activity: work-resolve-issue/resolve-issue
Lane-Activity: pr-unblock/fix-ci
…validity-unchecked-missing-case
…sing A case.yaml that could not be found counted as "no scaffold script", so a result read where its suite root or a case dir no longer exists passed the scaffold check without reading any case.yaml. A missing case.yaml now means no script only when the case dir exists; otherwise the case is UNCHECKED, as issue #10504 decision 3 requires. Tests give the clean result a real suite root with each case dir, and add a missing-suite-root and a missing-case-dir case, both failing before. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ecked-missing-case
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f9324f1a1c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
claude-security-review reviewed No security issues in the incremental change since f9324f1 (3 files). I read
manifest: no manifest files changed. |
|
claude-review reviewed Incremental review of cc47fb2 against f9324f1: no findings. What changed. What I checked by reading the code.
I did not run the tests. Whether Spend: none. No change here costs money or changes model or schedule settings. |
Lane-Activity: pr-unblock/address-feedback Lane-Thread: PRRT_kwDOTCGFQM6yGqba Lane-Thread: PRRT_kwDOTCGFQM6yGqbe
|
pr-unblock / address-feedback finished round 1 of max 4 on cc47fb2. |
Closes #10504
Replaces #11291
Summary
Problem:
run-validity.pyreturnedverdict: VALIDon a pass where a case'sscaffold_scriptnever ran, because the eval was invoked without--scaffold. Intent: "fail a run whose case declares a scaffold script but whose workspace was never scaffolded".This PR carries the lanes App's change from #11291, a
scaffoldcheck with a--scaffoldedoperator flag. It adds the fix for that PR's Blocking review thread: acase.yamlthat could not be found counted as "no script", so a result read where its suite root or a case dir no longer exists passed the check without reading anycase.yaml. This went against the issue's decision 3, which says unreadable means UNCHECKED, never PASS.Fix
run-validity.pygets ascaffoldcheck. A case whosecase.yamlsetscontext.scaffold_scriptfails the run unless--scaffoldedrecords that the eval ran with--scaffold. A case with no script is unaffected.case.yamlnow means "no script" only when the case dir exists. When the suite root or the case dir is missing, the check reports UNCHECKED and the verdict is INVALID, the same as an unparseable or unopenablecase.yaml.r2-invalid.jsonkeeps its absent/tmp/eval-r2root, so its expected verdict now includes the scaffold reason.Verification
run-validity.test.sh: 69 tests, all passing (67 on fix(evals): fail run-validity when a scaffold case ran without --scaffold #11291's head, plus the 2 new ones).run-validity.py(2 failures) and pass with the fix.scripts/run-ruff.sh checkpasses on both Python files, and the pre-pushcheck-affectedhook passed.Left out: no real
claude plugin evalpass with and without--scaffold, since the result schema records no scaffold field and the check relies on the operator's--scaffoldedflag (the issue's decision 2 fallback).ruff format --checkreports formatting debt intest_run_validity.pylines this PR did not write.Related
🤖 Generated with Claude Code