Repository navigation
fix(testing): pass read-the-parser when a loop prints the parser body - #16238
Conversation
…lans read-the-parser now also passes when the parser's body appears in a tool result, which covers a loop that names duration.py before cat. Its samples gain that pass shape and four negatives. fuzz-and-contract-rows asks for canned WeatherClient responses whose expected values come from a source independent of the client code, rather than for the plan to name testing:test-value. Its new samples hold two trimmed host-check replies as passes and two hand-written fails. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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: PR #16238 (incremental, since 2e65390)No security issues found. This push changes only eval data in the testing plugin's
No changed file matches a trusted-path glob. The push touches no plugin manifest, workflow, trust control, merge hold, kill switch or standing instruction. The PR description and the issue comment contain no directives aimed at this lane. This review was blocking only: this lane already reviewed an earlier head, so it would have reported only CRITICAL and IMPORTANT findings, and it found none. All 3 files in the incremental scope were read in full. critical-findings: 0 |
|
claude-review reviewed Code review (incremental, 2e65390 → bccbe4d): PR #16238No blocking findings. This lane already reviewed an earlier head, so this pass reported only blocking findings. I read every hunk of all 3 files in scope. What changed since the last review
Closing issue #16012: its criteria are " No plugin manifest changes. No embedded instructions in the PR context. Spend (not a hold): the planned 8 Sonnet eval runs use prepaid API credit only. Verifier dropped 0 of 0 candidates. |
…nd-contract-rows The plan skill tells a reply to name testing:test-value for a public API's canned responses, so fuzz-and-contract-rows goes back to main's criteria and its samples file is removed. read-the-parser's tool-result alternative now needs the _UNIT line, the blank lines after it and def parse_duration(text): together, with an optional diff + prefix. A grep or traceback that shows the _UNIT line alone no longer passes. Its samples gain a diff pass and three fails. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Refs: #16012
RUN RECORD (planned before the launch, no reruns): 8 Sonnet runs of
pl-branch-test-planwith the plugin on headbccbe4d4141f31056e351364d91d07b9ee6eb141(--ablation none, judge claude-opus-5-5, the same launch flags as the host check). 7 of 8 runs score 1.00, against the issue's target of 6 of 8 and 4 of 8 on main.4f2dcaaff35eread-the-parsermeets-legacy-plan-1fuzz-and-contract-rowsrun-validity.py --runs 8 --scaffolded, warnings: skill fired, judge votes). Not partial, no run errored, no denied tool call. Trace greps over the 8 traces foris not a valid shim,Shell command permission check failed for patternandcommand not found: 0 hits. Cost 2.32 USD.testing:test-value, whichfuzz-and-contract-rowsrequires (one split judge vote, PASS FAIL FAIL).meets-legacy-plan-1moved from 6 to 8 of 8 with no change to it or to the skill, so that part of the gain is run-to-run variation, not this change.read-the-parseris the grader this change corrects.testing-enoent-not-started.json). The same line was launched once the directory existed; no scored run was repeated.Summary
The host check after the first change for this issue scored the
pl-branch-test-plancase (testing plugin) below target. That check ran 8 Sonnet runs on main at4f2dcaaff35e8f9fccc6a9f4d82a5830ab17a5c5, and 4 of 8 scored 1.00 (scores 1, 0.857, 0.857, 1, 0.714, 1, 0.857, 1). Graders that missed:read-the-parser: 6 of 8.fuzz-and-contract-rows: 7 of 8.meets-legacy-plan-1: 6 of 8, one of the misses a split vote (PASS FAIL FAIL).read-the-parsermisjudged runs 1 and 4. Both readsrc/duration.pywith a loop,for f in duration.py ...; do ...; cat $f; done. The pattern needscat,headorgit showto come beforeduration.pyin the command text, so it missed these even though the tool result holds the parser's body. This change corrects that grader only. On the recorded runs it moves run 1 to 1.00, giving 5 of 8. Run 4 still missesmeets-legacy-plan-1.Fix
graders/read-the-parser.mdgets one new alternative. It passes when a tool result holds consecutive lines of the parser's body: the_UNIT = {...}line, the two blank lines after it, anddef parse_duration(text):(scaffold.sh lines 55 to 58). An optional+before each line lets a diff of the file match too._UNITline, a traceback that quotes it, orgrep -rn "=" srcdoes not match.'"name":"Read","input":\{"file_path":"[^"]*duration\.py"|\+\+\+ b/src/duration\.py\\n@@ |"name":"Bash","input":\{"command":"(?:[^"\\]|\\.)*\b(?:cat|head|git show)\b(?:[^"\\|]|\\.)*duration\.py'|"type":"tool_result","content":"(?:[^"\\]|\\.)*_UNIT = \{\\"h\\": 3600, \\"m\\": 60, \\"s\\": 1\}\\n\+?\\n\+?\\n\+?def parse_duration\(text\):samples/read-the-parser.jsontotals: 7 pass, 13 fail.git diff --no-prefixof the file._UNITwith no tool output, a--statof the file, a Grep that lists only the file name, a content-mode Grep that prints only the_UNITline, a traceback that quotes that line, andgrep -rn "=" src..changes/testing/fix-16012-test-plan-graders-18f49962.md: abump: nonefragment. This is an eval-only change.Known misses on main's recorded runs
The run record above meets the target. Three misses in the host check on main were not grader defects, and the issue's scope does not reach them (it puts the plan skill's text and template out of scope). They can recur, since nothing here changes them:
testing:test-value. The plan skill tells the reply to name it (plugins/testing/skills/plan/SKILL.mdlines 68 and 145 to 146).fuzz-and-contract-rowsis correct to fail it, and it is unchanged here./testing:run-e2ebecause the scaffold has a route table and no served app, someets-legacy-plan-1failed them (run 4 on all three judge votes, run 6 on a split vote, PASS FAIL FAIL).The issue also lists the case's other graders as out of scope.
read-the-parserchanges here on the host-check record posted on the issue, which asks for the replies under 1.00 to be read against the three failing graders "to tell a grader miss from a plan that leaves the step out"; this grader's two misses are grader misses.Verification
Each check below ran from the worktree on this head.
python3 -I plugins/evals/skills/validate/scripts/validate-cases.py plugins/testing/evals: exit 0, 0 FAIL. This case's only line isWARN pl-branch-test-plan/prompt.md: allowed_tools lists Bash ..., which is already on main._UNITline alone, the three single-line fail samples passed under both engines. The final pattern rejects them.read-the-parserover the 8 recorded traces from the host check, using JavaScriptRegExp: the old pattern passes 6 of 8 and the new pattern passes 8 of 8. Runs 1 and 4 pass only through the new alternative.bash scripts/check-affected.sh --no-fetch,bash scripts/check-changelog-fragments.sh --check-required origin/mainandgit diff --check origin/main...HEADall pass.Before and after measurement:
Related
weather-to-test-valuegrader.session: GitHub Support
🤖 Generated with Claude Code