Skip to content

test(evals): feed run-validity a recorded skill-load failure trace - #16168

Merged
kyle-sexton merged 2 commits into
mainfrom
test/evals-run-validity-real-skill-load-trace
Nov 14, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
test/evals-run-validity-real-skill-load-trace

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Refs: #16146

Summary

Adds a run-validity fixture cut from a real eval run whose Skill call failed to load, and a test that feeds it to run-validity.py and reads the run INVALID. #16150 delivered the detection with a hand-written trace; the issue's done-when asks for a recorded one.

Fix

  • fixtures/run-validity/traces/IF6xuu.jsonl: 4 of the 14 events of a recorded run (Claude Code 2.1.325, case skill-authoring-background-left-out): the init line, the Skill tool_use, its tool_result, and the result line. The Skill call and its result keep every key. Session, message, request and tool ids are replaced with zero placeholders of the same shape; the paired tool id is the same in all three places. Paths, plugin list and answer text are dropped.
  • test_a_recorded_skill_call_that_failed_to_load_is_invalid: asserts exit 1, verdict: INVALID, check skill loaded: FAIL as the only FAIL line, and the detail line naming the case and run.
  • The hand-written case's comment no longer says a recorded trace is owed.

The recording differs from the hand-written shape in one way: the real tool_result content is a bare string with no tool_use_error wrapper. The detection matches both.

Verification

  • plugins/evals/skills/plugin-eval/scripts/run-validity.test.sh: 171 of 171 pass.
  • With load_failure disabled in-process (no file edited), the new test and the hand-written one both fail with check skill loaded: PASS and verdict: VALID, so the test depends on the detection.
  • The source trace's result line was compared with the fixture's: subtype: success, is_error: false, num_turns: 3, permission_denials: [] in both, so dropping events hides no second failure.
  • scripts/check-affected.sh --no-fetch: 17 passed, 1 skipped (shellcheck: no shell file changed).
  • Fixture scanned for home paths, user names, addresses and token shapes: none.

No eval case loads a changed skill: this change touches only a test file, a fixture and a fragment.

Remaining

Related

session: GitHub Support

🤖 Generated with Claude Code

kyle-sexton and others added 2 commits November 14, 2026 02:31
Adds traces/IF6xuu.jsonl, cut from a real playbooks eval run (Claude Code
2.1.325) whose Skill call returned "Shell command permission check failed
for pattern", with its ids replaced by placeholders, and a test that reads
it INVALID under skill loaded as the only failing check, with the case's
skill-fired grader removed as in the recorded suite.

Refs: #16146

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 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-14T07:40:44.346551Z 203bfb9 PR opened
ℹ️ 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

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 203bfb9b3e290db2c8b4b92a91f81794c0639f6c: read 3 of 3 changed file(s); 0 finding(s), 0 as inline comments.

Security review: no security issues found

I read the whole diff for all 3 changed files. This is a test-only change:

  • .changes/evals/test-evals-run-validity-real-skill-load-trace-27893496.md: a changelog fragment with bump: none.
  • plugins/evals/skills/plugin-eval/scripts/fixtures/run-validity/traces/IF6xuu.jsonl: a 4-line JSONL fixture taken from a recorded eval run. The session, message, request and tool ids are zero placeholders. It has no home paths, user names, tokens, API keys or other credentials. It contains no instruction text aimed at a model, only a tool-result error string (Shell command permission check failed ... Permission to use Bash has been denied.), which the test reads as data.
  • plugins/evals/skills/plugin-eval/scripts/test_run_validity.py: a comment update and one new unittest. The test copies a clean result, removes the skill-fired grader, points a run at the new fixture and checks that run-validity.py reports INVALID. It adds no shell, network, path or credential handling beyond what the existing test harness already does.

None of the changed files matches a trusted-path glob. The diff changes no trust control, merge hold, workflow, token request, plugin manifest or standing instruction, and no shipped plugin code. The PR context file contains no embedded directives aimed at this lane.

The PR text says the test passes and that it fails when the detection is disabled. That was not re-run here.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed 203bfb9b3e290db2c8b4b92a91f81794c0639f6c: read 3 of 3 changed file(s); 0 finding(s), 0 as inline comments.

Code review: PR #16168, no findings

I read every hunk of all 3 changed files: the changelog fragment, the new traces/IF6xuu.jsonl fixture, and test_run_validity.py.

What I checked

  • The fixture reaches the right code. The new test drops the skill-fired grader from case measurable-criterion (index 1 in r2-clean-runs.json) and from its with-arm row. It then sets the row's tracePath to traces/IF6xuu.jsonl, and write() turns that into FIXTURES/traces/IF6xuu.jsonl. That is the same path as the TRACES / "IF6xuu.jsonl" the detail-line assertion expects.
  • The detection matches the recorded trace. In load_failure (run-validity.py#L1066-L1086), the fixture's Skill tool_use id toolu_0100… is the same as its tool_result's tool_use_id. The bare-string content Shell command permission check failed for pattern … matches PRE_COMMAND_FAILURE (L329), so the run comes back as SKILL_CALL_LOAD_FAILED.
  • No second failure from the same text. The result text "Permission to use Bash has been denied." does not contain DENIAL_TEXT ("denied by your permission settings", L309). So the permission-denial check should not also fail, which fits the test's claim that check skill loaded is the only FAIL line.
  • Comments and fragment are accurate. The docstring and the hand-written test's comment describe the fixture correctly. The fragment's bump: none fits a change that only touches a test and a fixture.

Not verified: I had no shell, so I did not run the tests. The 171-of-171 pass count and the in-process mutation check in the PR description are the author's claims and are unverified.

Closing issue: the PR only refers to #16146 (Refs) and closes no issue. The PR context file has no closing-issue section, so I had no acceptance criteria to check.

No plugin manifest changed. There are no prior findings and no settled threads.

Verifier dropped 0 of 0 candidates.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 14, 2026
Merged via the queue into main with commit f34847f Nov 14, 2026
45 checks passed
@kyle-sexton
kyle-sexton deleted the test/evals-run-validity-real-skill-load-trace branch November 14, 2026 07:51
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 14, 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