Repository navigation
fix(source-control): make the pull-request evidence eval cases measure the skill - #17198
Conversation
…e the skill The four pull-request-evidence-* prompts name the pull-request skill, and the fixture's gh answers `repo set-default --view`, so the skill fires and step 1 can resolve the repository. Their content graders read the posted comment (.git/eval-forge/comment-body.md) instead of the Write call, so a body written another way is judged on what it holds. A new body-written-with-write grader checks step 4's Write instruction on its own. evidence.md step 5 states the leak scan's normalization and credential pattern itself instead of pointing at /app-control:drive, whose files a session without that plugin cannot read. Step 4 says to read the comment template with the Read tool. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… the evidence step Step 1 wrote `scripts/target-repo.sh` with no `<skill-dir>/`, and the plugin root has a `scripts/` directory without it, so runs ran the missing path and then listed and searched the plugin copy for the script. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ✅ CompletedThis 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. |
|
claude-security-review reviewed Security review: no security issues foundThis PR repairs four What I checked
Spend (not a hold): the PR description reports about 5.39 USD of model usage at list price for eval runs done outside CI. The diff changes no workflow, schedule or runner. critical-findings: 0 |
|
claude-review reviewed Code review: no findingsThis PR fixes the four What I checked against the source:
Closing issue: the PR closes no issue, so there are no acceptance criteria to check. The PR text contains no instructions aimed at the review lane. Eval results: the eval results and VALID verdict in the PR's Verification section are author-claimed and unverified. This lane ran no evals. Loosened checks: I judged the grader change as a restructure, not a loosening. No case loses a grader. Before, each content grader required Write-tool input that held the body's structure. Now each requires that structure in the body actually posted, which also fails a run that writes a correct body but never posts it. The Write requirement moved to its own grader, Spend: none. The new grader is a deterministic Loosened-check verdict: fail (default; the prompt gave no Verifier dropped 0 of 0 candidates. |
No related issue: the four evidence eval cases were found measuring nothing while measuring held PR #17183; this repair must land first so #17183 can be measured against a live baseline.
Summary
The four
pull-request-evidence-*cases in the source-control plugin measured nothing on main.The pull-request skill fired in 0 of 3 baseline runs. When it did fire, three causes made a run
fail or read INVALID for reasons that had nothing to do with the evidence comment:
ghdid not answerrepo set-default --view, so step 1 stopped attarget-repo.sh.tool_used: Write. A run that wrote the body with a Bash heredocfailed every content grader, whatever the body held.
drive/SKILL.mdand theplugins/parent, because step 5 defined its leak scan only bypointing at
/app-control:drive. They also searched the plugin copy fortarget-repo.sh,because step 1 named it without
<skill-dir>/.Fix
the pull-request skill, post its verification evidence comment", and
evals/fixtures/gh-forge/ghanswersrepo set-default --viewas a checkout with no defaultset.
text-first,captures-in-collapsed-section,collapsed-sections,captures-labeled-by-run,record-fields,inline-tableandno-record-by-defaultare nowregexgraders on{ source: file, path: .git/eval-forge/comment-body.md }. That is the body the fakegh pr commentreceived, however the body file was written. The precedent ispull-request-reassess-rebase-comparison/graders/comparison-body.md. Each pattern is the oldone translated from JSON-escaped tool input to raw text, and its samples are the old ones
converted to posted bodies. A run that never posts fails them, as it should for this prompt.
body-written-with-writegrader in each case (tool_used: Write, content holdingVerification evidence for <sha>) checks step 4's "with the Write tool" on its own. A run thatwrites the body another way passes the content graders and fails this one, so its score names
the one step it skipped.
reference/evidence.md:plugin's files for them.
bash "<skill-dir>/scripts/target-repo.sh"..changes/source-control/: a patch fragment.No case loses a grader, and the skill description is unchanged.
Verification
validate-cases.py(repo copy) onplugins/source-control/evals: no FAIL. No WARN on anyevidence grader, so every pass and fail sample sorts as intended under Python and JavaScript.
Rule written before the first run: each case VALID over 3 runs; the skill fires in every run;
each content grader passes on every run whose posted body is correct, whatever
body-written-with-writesays; one trace read per case.claude plugin evalon Claude Code 2.1.327, Sonnet (claude-sonnet-5-5) tested, judge Opus,--ablation none,--scaffold,--allow-tools Bash Write, 3 runs per case, againstgit archiveof this branch's headdcf3e0037d:body-written-with-writeVerdict VALID, with no permission denial in 12 traces.
I read the posted
comment-body.mdin all 6 runs that failedbody-written-with-write, and inone passing run per case. Each body has the structure its graders require, so no content grader
passed a wrong body or failed a right one.
The traces show:
<skill-dir>/scripts/target-repo.shdirectly;An earlier pass at
9786d58034was also VALID: content graders 12/12, the Write grader passing5/12. Its traces showed the
target-repo.shsearch, whichdcf3e0037dfixes.Cost 5.39 USD (list-price estimate) across a 1-run smoke and the two passes.
The new
body-written-with-writegrader passed in 6 of 12 runs at this head (5 of 12 at9786d58034). In the other runs the skill's step 4 ("with the Write tool") was ignored: the bodywas written with a Bash heredoc or
echo. That was happening before this PR too, hidden becauseit failed every content grader at once; it is now measured as one grader.
Left out: the without-plugin arm (
--ablation none; this PR repairs the suite, and the A/Bbelongs to feat(verification): carry one row per criterion into the PR evidence table #17183), and a second tested model.
Related
PR. It rebases onto this, keeps only its own graders (its
criteria-tablemoves to theposted-body target), then gets an A/B of main against its head.
session: AI Hero
🤖 Generated with Claude Code