Repository navigation
test(harness-config): judge the formatter-hook case's light-level replies by their stated lean - #16396
Conversation
…lies by their stated lean The posttooluse-not-a-gate criteria demanded a REJECT or CONDITIONAL verdict, which audit-automation-gaps forbids at verification light and off, where every candidate is listed as unverified. Read such a reply's stated lean on the proposed hook as its verdict, and fail any per-edit PostToolUse hook offered as fitting. Add the 12 recorded Sonnet replies from the ladder 2.1.1 and 3.0.0 compare as calibration samples, labelled by three independent labellers. Refs: #16324 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ook grader change Refs: #16324 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-review reviewed Code review: no findingsThis pull request changes only an eval grader. It rewrites the What I checked
Not verified: the validator, Spend: none from this change; it edits grader text and samples only. The author's calibration runs billed about 6.18 USD of judge API credit, which is prepaid usage, not a hold. Verifier dropped 0 of 0 candidates. |
|
claude-security-review reviewed Security review: PR #16396 (head b4f76ee)No security issues found. What changed. All three files are eval or changelog data under
Checks run:
Spend (not a finding): the change adds no billed resource or paid plan. Running the eval or judge calibration over the larger sample set uses prepaid API credit only. The PR reports about 6.18 USD for its own calibration run. critical-findings: 0 |
Closes #16324
Summary
The
posttooluse-not-a-gatejudge inag-formatter-already-enforcedasked for a REJECT or CONDITIONAL verdict. The skill does not allow either verdict at verification level light or off. Every recorded reply ran at light, so the judge had nothing defined to grade, and it split replies of the same shape. In the #16078 compare, Sonnet passed 6 of 6 runs before and 2 of 6 after.Fix
plugins/harness-config/evals/ag-formatter-already-enforced/case.yaml: the criteria now read a light-level reply's stated lean on the proposed hook as its verdict ("leans REJECT", "malformed, don't add", and similar wordings). A reply passes if its lean is against adding the hook, or is a CONDITIONAL that moves the check to a pre-commit hook, a pre-push hook or CI. It must also cite pre-commit and CI, and must not say PostToolUse can block the edit. A reply fails if it offers any per-edit PostToolUse hook as fitting. A separate, optional format-only PostToolBatch candidate does not fail it.Basis:
plugins/harness-config/skills/audit-automation-gaps/SKILL.md:213-217says that under light and off each candidate is listed as unverified, never PASS, CONDITIONAL or REJECT.samples/posttooluse-not-a-gate.json: the 12 recorded Sonnet replies from the Release enforcement ladder 3.0.0 with the verification tier and capability-named rungs - part 2 of 2 #16078 compare are added as calibration samples, next to the 5 existing ones. Three independent labellers agreed on every label: PASS for all 6 BEFORE runs and for AFTER runs 1, 2, 4, 5 and 6. FAIL for AFTER run 3, which offersPostToolUsewithif: Edit(*.py)as a fitting candidate. No reply contains a machine-specific absolute path.bump: nonechangelog fragment, because only an eval grader changed.Verification
validate-cases.py plugins/harness-config/evals: 0 FAIL. The only WARNs are the ones already on main (caseallowed_tools, and llm samples needing calibration).scripts/check-affected.sh --no-fetch: 15 passed, 3 skipped.calibrate-judge.py, judgeclaude-opus-5-5,--runs 3,--threshold 0), in two runs because the first stopped at its 3 USD ceiling: samples 1-8agreement 23/23 runs (100.0%) over 8 samples, then the other 9 (all 4 must-fail samples, including AFTER run 3, and 5 must-pass)agreement 26/26 runs (100.0%) over 9 samples. Together 49/49 judged runs (100%) over all 17 samples, against the 90% bar; no false pass and no false fail. Two runs were not counted: one skipped at the first run's ceiling, one whose trace did not reproduce its sample (that sample keeps 2 counted runs). Billed about 6.18 USD (judge included once).Eval record (eval-16324)
Versions. AFTER is this head,
b4f76ee8ae(ladder blob025a6324,enforcement-ladder: 3.0.0). BEFORE is the same tree with onlyskills/audit-automation-gaps/context/enforcement-ladder.mdreplaced froma3aa9007^(blob6f6d34e5, 2.1.1). Right before batch 1,diff -rqof the two copies printed only that file's line, as registered. Claude Code 2.1.325 on both sides. The validator gave 0 FAIL on both sides; its WARNs are theallowed_toolsgrants (answered by--allow-tools Bash Write Edit WebFetch) and the calibration note.Registration, frozen from batch 1, with no reruns:
claude-opus-5-5, with at least 8 counted runs per side.posttooluse-not-a-gatepasses at least BEFORE's passes minus 2, over counted runs.Calibration (carried). The judge agreed on 49 of 49 judged runs over 17 samples (see Verification above). Owner Q181 (a) requires this statement: the
posttooluse-not-a-gatecriterion was rewritten after reading the 12 #16078 Sonnet replies it is now calibrated on, so its pass is not independent of those replies. The compare's 24 runs are new.Validity. Both files are VALID. 12 of 12 runs were counted on each side, with 0 denials and 0 exclusions. The trace greps found
shim,permission-check,limit,leak-readandother-sideat 0 on both sides.command not foundcame up in 9 runs per side, only for ruff, uv and uvx, which are registered as never voiding.check.pyread CONTINUE after both batches, and no stop fired. The cap test read 3.21 + 5.42 = 8.63 against 15.00.Fired: BEFORE 10 of 12 (runs 5 and 11 carry no level line), AFTER 12 of 12.
posttooluse-not-a-gatealready-enforcednames-precommitno-automation-writeno-automation-editposttooluse-not-a-gate, by 2.ladder-read: BEFORE 7 of 12, AFTER 5 of 12.already-enforcedFAIL is a regex grader.Hand read of the failing replies. Both FAILs follow the criterion's own text: it fails a reply that "offers any per-edit PostToolUse hook ... as fitting".
ruff format"fromPostToolBatch... or from asyncPostToolUse".ruff format"as aPostToolUserewrite".Q181 (a) count. These are replies whose verdict on the proposed hook leans against it and never uses the word REJECT, read by hand per side out of 12. The light-level boilerplate and REJECT on other candidates are ignored, as registered.
Judge reasons are not kept by the tool. A grader's
explanationholds only the vote tally ("judge votes: FAIL FAIL FAIL"),judgeVotesholds the votes, andevidenceholds the reply. This settles #16324's second done-when item ("or the record states why they cannot be").Cost and time. Billed 6.30 USD (BEFORE 3.21, AFTER 3.09) against 6.41 expected and 10.85 worst, with the judge counted once. Wall time was 348 s and 321 s, against about 7.7 min expected per batch.
Verdict: MET. The calibrated grader shows no loss, so #16324's fourth done-when item (change the ladder text and repeat) does not apply.
Remaining
None for #16324. #16078 closes on this record (owner Q171 (a)).
Related
session: GitHub Support
🤖 Generated with Claude Code