Skip to content

fix(evals): excuse a without-arm search of its own eval root - #17491

Merged
kyle-sexton merged 2 commits into
mainfrom
fix/17262-eval-root-search
Nov 19, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
fix/17262-eval-root-search

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Refs: #17262

Summary

Post-merge eval run 44589476148 scored INVALID only from 5 Glob and Grep denials in its without-plugin runs, each searching that run's own eval folder; the with-plugin runs scored 3 of 3 at 1.00 with no denial. run-validity.py excused such a search only when its pattern named the plugin. The owner decided to excuse a without-arm Grep or Glob rooted at the run's own eval folder (owner-decisions.md L235; verbatim: "Excuse own-folder search (Recommended)").

Loosened check: the permission-denials check of plugins/evals/skills/plugin-eval/scripts/run-validity.py. A finished without-arm run's denied Grep or Glob whose path is that run's own eval root now warns instead of failing. With-arm runs and every other denial are unchanged.

Fix

  • own_root_search: a finished without-arm run's denied Grep or Glob whose path resolves to sandbox_dir(run) (the folder holding its out/trace.jsonl). A Glob pattern that is rooted or holds .., a path under or above the root, another run's root, and any other tool do not qualify.
  • check_denials sets these aside after the absent-plugin search rule, adds a summary clause, and appends own eval root searches excused: <tool> root <root> pattern <pattern>, ... to the check's reason. That reason reaches the verdict line, the only line CI keeps in validity.txt, so every excused call is listed (redacted, no cap).
  • shown_text is factored out of named_calls for reuse.
  • Docs: module docstring, reference/reading-results.md (sixth set-aside kind), SKILL.md; changelog fragment.

Verification

  • plugins/evals/skills/plugin-eval/scripts/run-validity.test.sh: 196 tests, OK. New tests cover Glob and Grep at the root (warn, verdict line names tool, root and pattern), and the subfolder, parent, sibling root, missing and relative path, .. and rooted Glob patterns, Read, Bash grep, with-arm, unfinished and non-out/ trace cases (fail).
  • scripts/run-ruff.sh check clean; scripts/check-changelog-fragments.sh --check valid.
  • fix(event-storming): give the simulation-default-markdown eval case the tools it needs to score #17262 closes only after a VALID re-run of simulation-default-markdown, so this PR does not close it.

Remaining

Related

🤖 Generated with Claude Code

https://claude.ai/code/session_01KeBVgaQE4QB75SPD3ky1jd

A finished without-arm run's denied Grep or Glob whose path is that run's
own eval root now warns instead of making the run INVALID, per the owner
decision recorded in architecture docs/owner-decisions.md L235. The
verdict line, which is all CI keeps in validity.txt, names each excused
call with its tool, root and pattern. With-arm runs, other tools, a path
under or above the root, and a Glob pattern that is rooted or holds ..
still fail.

Refs: #17262

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KeBVgaQE4QB75SPD3ky1jd
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 19, 2026 19:01
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-19T19:04:38.247822Z e0d4364 Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 2 inline finding(s) on e0d43641fcef3dd432265fa3bfb71c6fdfeaed75; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 2844fa8abe83f32da9d3031d7cdfa55506211842: read 1 of 1 changed file(s); 1 finding(s), 0 as inline comments.

Code review (incremental, blocking only): PR #17491

Scope. This review covers only what changed since e0d43641. One file changed: plugins/evals/skills/plugin-eval/scripts/test_run_validity.py. I read its whole change in .claude-lane/incremental.diff. This lane already reviewed an earlier head, so this review reports blocking findings only.

The change is correct.

  • The expected verdict now uses the raw root (% (tool, root, pattern)). That matches what root_searches prints from the path input, so the macOS and Windows short-name mismatch from my earlier advisory comment is gone.
  • The import os removal is safe. A search of the head file finds no other os use (os., import os or from os).
  • I ran nothing. The author's claim that -k eval_root passes 2 tests is unverified.

Still blocking: the denial check is loosened without a closing-issue spec.

Other checks.

  • Loosened-check verdict: fail. This is the default, because the prompt has no loosened_check_verdict: or loosened_check_patterns: line; patterns: 0. The prompt has no loosened_check_decision_record: line either, so I did not check whether the spec cites a decision.
  • Closing-issue criteria: none apply, since the PR closes no issue.
  • No plugin manifest changed in this push.
  • Nothing in the PR context, settled-threads or prior-findings files tried to direct this lane.

Verifier dropped 0 of 0 candidates.

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 2844fa8abe83f32da9d3031d7cdfa55506211842: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Security review (incremental, blocking only): no security issues found

This review covers only what changed since e0d43641. That is one file, plugins/evals/skills/plugin-eval/scripts/test_run_validity.py, and I read its whole change.

  • What changed: the test drops its unused import os. It now expects the verdict line to name the eval root the way the input gives it, rather than as os.path.realpath(root).
  • Why it is safe: this is a test-only edit. It changes no code that decides what counts as the run's own eval root or how that text is redacted before it reaches validity.txt. It grants no permission and reaches no credentials, trust control, merge hold or plugin manifest.
  • Earlier review: the head reviewed last time had no findings, and nothing in this push affects them.

This review was blocking only (blocking only: yes), so it reports only CRITICAL and IMPORTANT findings. There are none. The PR description contains no directives aimed at the review lane.

Spend: the change adds no billing and no new lane runs.

critical-findings: 0

root_searches prints the path input as given, so the expected verdict
line uses the unresolved root; realpath differs on a temp directory
reached through a link (macOS /var, Windows short names).

Refs: #17262

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KeBVgaQE4QB75SPD3ky1jd
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 19, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 19, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 19, 2026
Merged via the queue into main with commit 0db80ba Nov 19, 2026
54 checks passed
@kyle-sexton
kyle-sexton deleted the fix/17262-eval-root-search branch November 19, 2026 22:04
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant