Repository navigation
test(harness-memory): add the audit C8 codify hand-off eval case - #17632
Conversation
Adds audit-c8-unchecked-rule-hands-to-codify for issue 17200's host step under issue 17179. The case loads a corrections stand-in and checks that the audit's C8 check warns on a CLAUDE.md line no check covers and hands the choice of mechanism to /corrections:codify, naming no mechanism itself, without running codify or calling it unavailable. The skill text is unchanged. Refs: #17200 Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_01KeBVgf4hSWe3ViMaDA9Fp9
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. |
Lane run report
Failed GitHub API calls
|
|
claude-security-review reviewed Security review: PR #17632 (full review, head 61e13bc)I found no exploitable security issue. The pull request adds one eval case for
It changes no workflow, script, trust control, merge hold, token request, kill switch or The stand-in's The eval grants Bash (prompt.md#L7). That grant applies only inside an eval session run on demand against a fixed prompt, with no untrusted input. Spend: each run of this eval case uses prepaid API credit or subscription usage (3 runs per arm, I found no embedded instructions in the PR context. Manifest lines (3)
critical-findings: 0 |
|
claude-review reviewed Code review: no findingsI read all 10 changed files in full. The PR adds one eval case, What I checked:
Other checks:
Advisory and manifest lines (2)
Verifier dropped 0 of 0 candidates. |
|
Eval of case
|
Refs: #17200
Summary
Adds the harness-memory eval case that #17200 asks for under #17179:
audit-c8-unchecked-rule-hands-to-codify. It loads a corrections stand-in plugin, in the shape of the harness-config cases from PR 17459, and grades that the audit's C8 check, as changed in PR 17210, hands a C8 instruction no check covers to/corrections:codifyand names no mechanism itself.The scenario is one CLAUDE.md line a machine could check ("Every shell script under
scripts/starts withset -euo pipefail"), which nothing checks today and which is no protected rail. The prompt loads the skill with the Skill tool, has it readreference/criteria.mdC8 items 1 to 3, and asks for three filled lines:C8:,MOVE:andMECHANISM:. It does not name codify or corrections. The skill text is unchanged; this PR adds the case, its stand-in plugin and abump: nonechangelog fragment.The case grants Bash, unlike the performance and planning cases in PR 17628 and PR 17629. The audit skill has a pre-computed spine line, and the evals plugin's validity gate fails a run whose skill did not load because the case granted no Bash. The existing
audit-c8-enforced-prosecase grants Bash for the same reason. No run called Bash itself.Fix
Graders, all deterministic:
c8-warn(both arms): theC8:line says warn. This is the no-loss check: item 2's WARN is unchanged by PR 17210.move-hands-to-codify(both arms): theMOVE:line namescorrections:codify. This is the discriminator.mechanism-none(both arms): theMECHANISM:line says none. This checks that the audit picks no mechanism itself.no-codify-run(with-only): no Skill call runs codify.no-unavailable-claim(both arms): theMOVE:line does not call codify unavailable.No llm grader.
Before-text check, judged by reading the text (no before arm was run). Before PR 17210, C8 item 1 listed six mechanisms (a compiler setting, a static-analyzer or linter rule, an architecture test, a pre-commit or pre-push git hook, a CI gate, a Claude Code hook), and item 3 said "Include which enforcement level it could move to". It named no codify. A faithful reply's
MOVE:line names a level from that list, so it failsmove-hands-to-codify, and itsMECHANISM:line names that level, so it failsmechanism-none. Samples of both shapes are among the graders' must-fail samples.c8-warnpasses on both texts.Verification
validate-cases.pyoverplugins/harness-memory/evals: no FAIL. The new case's one WARN, that Bash needs an--allow-toolsgrant, is the one every Bash-granting case in the suite carries. Its deterministic graders were checked offline against the case'ssamples/.scripts/check-affected.sh: 18 passed, 2 skipped (no changed shell or Python).claude plugin evalon Claude Code 2.1.329, modelsonnet, 3 runs a side, this case only, with--allow-tools Bash. The validity gate read VALID: no denied tool call, no skill load failure, and every with-arm run loaded the plugin and the stand-in. Its two warnings: no grader checks that the skill fired, and no judge was recorded (the case has no judge grader).c8-warn3/3,move-hands-to-codify3/3,mechanism-none3/3,no-codify-run3/3,no-unavailable-claim3/3.c8-warn0/3,move-hands-to-codify0/3,mechanism-none2/3,no-unavailable-claim3/3. The without-arm replies say the skill could not load and fill the lines with "unknown"; two of them wrote none on theMECHANISM:line.harness-memory:audit, readscriteria.md, and endsC8: warn,MOVE: Hand it to /corrections:codify, which picks the strongest enforcement-ladder rung ...,MECHANISM: none.opusalias.Related
Remaining
#17200 stays open. This PR delivers the eval-case item of the #17179 entry. Not part of this PR: that entry's PR-body quote item, and the entry's run budget beyond this smoke run (before and after, both aliases). The other entries' host steps remain as the issue lists them.
🤖 Generated with Claude Code