Repository navigation
test(performance): add the protect codify hand-off eval case - #17628
Conversation
Adds pr-fragile-guardrail-hands-to-codify for issue 17200's host step under issue 17172. The case loads a corrections stand-in and checks that /performance:protect still proposes the counter ceiling at the measured value and hands a fragile optimization's guardrail to /corrections:codify, naming the call, 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: cfc1cd6520
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
The guardrail-hands-to-codify grader accepted any GUARDRAIL line naming corrections:codify, so a line that chose the mechanism itself (generate the table, add a drift test) and only mentioned codify after it passed. The grader now rejects a line where a mechanism comes before the codify name. Mechanisms named after the hand-off, which describe codify's own choice, still pass. Samples cover both shapes. Refs: #17200 Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_01KeBVgf4hSWe3ViMaDA9Fp9
The typos check reads the stem `generat` as a misspelling. List the verb forms instead; the grader matches the same lines. Refs: #17200 Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_01KeBVgf4hSWe3ViMaDA9Fp9
Lane run report
Failed GitHub API calls
|
|
claude-security-review reviewed Security review: PR #17628, incremental since
|
|
claude-review reviewed Code review: PR #17628, incremental since
|
|
Session hold (GitHub Work): this pull request waits on the owner. Its two open security-lane threads flag the corrections stand-in's manifest inside the eval case; each has an evidence reply, and resolving a security-lane thread is the owner's call. Nothing else is outstanding: CI Status was green and both review lanes read the head. |
|
Hold lifted. The owner decided this on 2026-11-20 (question Q107, option A): the two security-lane manifest-flag threads on the eval-only corrections stand-in are resolved with no code change, and this pull request merges. The earlier session-hold comment no longer applies. |
|
Eval of case
|
Refs: #17200
Summary
Adds the performance eval case that #17200 asks for under #17172:
pr-fragile-guardrail-hands-to-codify. It loads a corrections stand-in plugin, in the shape of the harness-config cases from PR 17459, and grades that/performance:protect§5, as changed in PR 17209, hands a fragile optimization's guardrail to/corrections:codifywhile the counter ceiling is still proposed.The scenario is a verified MET win that keeps a precomputed rate table (a fast path that copies a slow one). The prompt is read-only: it loads the skill with the Skill tool and asks for two filled lines,
CEILING:andGUARDRAIL:. The prompt does not name codify or corrections. The skill text is unchanged; this PR adds the case, its stand-in plugin and abump: nonechangelog fragment.Fix
Graders, all deterministic:
ceiling-measured-value(both arms): theCEILING:line's first number is 1, the measured value, and it does not say none. This is the no-loss check: the ceiling is still proposed.guardrail-hands-to-codify(both arms): theGUARDRAIL:line namescorrections:codify, and no mechanism of protect's own choosing (generating the table, a drift, CI, unit or regression test or check, adding a test or check) comes before that name. Mechanisms named after the hand-off, which describe codify's choice, still pass. This is the discriminator.no-codify-run(with-only): no Skill call runs codify.no-unavailable-claim(both arms): theGUARDRAIL:line does not call codify unavailable.No llm grader: the one in PR 17459 was uncalibrated and read 4 of 9 on correct replies.
Before-text check, judged from the text and the samples (no before arm was run): before PR 17209, §5 said "generate the copy from the source, and add a test that fails when the two drift" and named no codify, so a faithful reply's
GUARDRAIL:line failsguardrail-hands-to-codify. A sample of that shape is in the grader's must-fail samples.ceiling-measured-valuepasses on both texts.Verification
validate-cases.pyoverplugins/performance/evals: no FAIL, and no WARN for the new case. Its deterministic graders were checked offline against the case'ssamples/under both V8 and JavaScriptCore.scripts/check-affected.sh: 18 passed, 2 skipped (no changed shell or Python).guardrail-hands-to-codify(61d4caf, 1f6109f) so aGUARDRAIL:line that picks a mechanism before naming codify fails. The earlier smoke run in this PR was graded by the earlier pattern, which accepted any line naming codify. It is replaced by the run below, made on the pattern now on the head.claude plugin evalon Claude Code 2.1.329, modelsonnet(served asclaude-sonnet-5-5), 3 runs a side, this case only. The validity gate read VALID: no denied tool call, 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). The noise report reads "n too small to call" (one case).ceiling-measured-value3/3,guardrail-hands-to-codify3/3,no-codify-run3/3,no-unavailable-claim3/3.ceiling-measured-value0/3,guardrail-hands-to-codify0/3,no-unavailable-claim3/3.GUARDRAIL:lines, read:/corrections:codify "rates_table.json must not drift from the carrier's rate card"to pick the strongest mechanism, preferring generating the table so drift is impossible, otherwise a CI check that blocks a stale table ..."/corrections:codify, expecting a CI check that regenerates or version-compares the table and fails on drift, plus a quote-parity check ..."/corrections:codify, that fails CI whenrates_table.json's version or quotes differ from the carrier's live rate card."opusalias.Related
Remaining
#17200 stays open. This PR delivers the eval-case item of the #17172 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