Repository navigation
test(playgrounds): add outcome eval cases and frozen trigger probes for use - #12036
Conversation
…or use Five deterministic outcome cases under plugins/playgrounds/evals with offline pass and fail samples for every grader, plus the 20-query frozen trigger probe set for use (byte-identical to the host-run copy, digest 79ba59f7d95a). Every eval run takes the absent branch, so the cases cover routing from plain words, the install command and scope guidance, a visual-form near miss that must not route, the organization-policy stop with no workaround, and the consumer-notes read before a data explorer meets untrusted input. No skill text changes; bump: none fragment. Refs: #6612 Co-Authored-By: Claude Opus 5.5 <[email protected]>
The smoke pass failed no-workaround on a correct reply: "I won't sideload the plugin, copy its skill files in by hand, or otherwise work around the block" matched "copy its skill". The grader now matches a workaround only in a sentence that does not negate it. The observed reply is a pass sample, two new fail samples offer the workaround in a sentence after the refusal, and every old sample keeps its verdict under the Python and node regex engines. Refs: #6612 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis 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: 8164db4423
ℹ️ 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".
|
claude-security-review reviewed Security review (incremental, 6a47845..6c58390)I found no security issues in this change. Scope: I read every hunk of the 2 files changed since the last review:
Why there is no security surface:
Skip gate 2: no security-relevant surface after reading the diff. critical-findings: 0 |
|
claude-review reviewed Incremental review of 6a47845..6c58390: no findings. I read every hunk of both in-scope files.
I traced the pattern by hand against every sample (I did not run
Observation (not counted as a finding): this fix moves the trade-off the other way. A correct refusal that puts its negation after the workaround term now fails the grader, for example "Loading it with --plugin-dir is something I won't do." The old pattern let that reply pass. The PR body's "Known grader limits" bullet doesn't mention this direction. If the frozen baseline should list every way the grader can be wrong, consider adding a line there. The observed smoke reply puts its negation first, so it isn't affected. Settled threads: both earlier threads on this file are resolved by this commit. Nothing from them is raised again. |
- no-workaround: a dot not followed by whitespace (a URL or path) no longer ends the sentence, so a workaround after it is still seen. New fail sample: "Clone https://github.com/... --plugin-dir ...". - no-playground-skill: the boundary case now also rejects the bare `use` invocation the routing case accepts, with a fail sample. validate-cases.py: exit 0, no FAIL, under Python and node. Co-Authored-By: Claude Opus 5.5 <[email protected]>
no-workaround read a negation anywhere in the sentence, so after the dot fix a reply like "Copy the skill folder into .claude/skills, and it won't need the plugin install" passed. A tempered token now stops the sentence body only at a negation that comes before the workaround. Two new fail samples; validate-cases.py exit 0 under Python and node. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Refs: #6612
Refs: #6476
Summary
Adds outcome eval cases and a frozen trigger-probe file for the
playgroundsplugin'suseskill, and fixes one grader the smoke pass caught failing a correct refusal. No skill text changes and no concise rewrite ships. The rewrite comes next as its own measured pass.These cases and probes are the frozen suite the rewrite's measured before/after pass runs against. #6612 stays open for that pass.
Fix
plugins/playgrounds/evals/: five outcome cases, all deterministic (nollmgrader), with offline pass and fail samples for every grader.use-routes-natural-explorer: a plain-words request for an interactive explorer. The run routes toplaygrounds:use, gives the install command for the absent upstream plugin, writes no file, and puts no HTML in the reply.use-absent-install-scope:/playgrounds:usewith the upstream plugin absent. The reply gives the install command and both the user and project scope choices.use-boundary-visual-form: a static comparison view of pasted content, a near miss. Neitherusenor the upstream skill fires, and no install is pushed.use-install-policy-blocked: the install is refused by managed policy. The reply names the block and stops, with no clone,--plugin-dir, hand copy or hand-built page.use-reads-consumer-notes: a request that needs the skill's consumer notes. The run readsconsumer-notes.mdand names theinnerHTMLescaping rule.plugins/playgrounds/probes/use.json: 20 frozen trigger queries (10 positive, 10 negative; 14 train, 6 validation). The file is byte-identical to the probe set an earlier host-run description screen used (sha25679ba59f7d95a...).use-install-policy-blocked/no-workaround(042c24b566), narrowed to the sentence. See Verification.bump: none: no skill text changed.Verification
Smoke pass:
claude plugin eval(Claude Code 2.1.316), Opus under test, Opus judge (no judge grader ran),--runs 1 -j 2 --allow-tools Write --max-cost-usd 5. The run copy dropped the manifest'sdependencieskey: with it, the session lists only built-in plugins and every positive scores 0. The upstreamplaygroundplugin is therefore absent in both arms, and every run takes the skill's absent branch.Validity:
run-validity.pyreturnedverdict: INVALID (1 permission denial in the traces). The scores below are a smoke signal, not a measurement; do not promote. The one denial is a Glob of the home directory in the with-pluginuse-absent-install-scoperun, made while it checked whether the upstream plugin was installed. The sandbox denies that path. The run scored 1.00. No run errored.use-boundary-visual-form,use-reads-consumer-notes(its Read grader is with-only) and, after the fix,use-install-policy-blocked.use-install-policy-blocked/no-workaround, with plugin: grader defect, fixed. The reply said "I won't sideload the plugin, copy its skill files in by hand, or otherwise work around the block", and "copy its skill" matched. The grader now matches a workaround only in a sentence that does not negate it. The observed reply is a new pass sample. Two new fail samples offer the workaround in the sentence after a refusal. Every old sample keeps its verdict, under both the Python and the node regex engines.routes-use(no plugin);install-commandandscope-guidance(the baseline did not name the upstream plugin's install);no-write(the baseline wrote an explorer file itself).scripts/check-affected.sh --tests: 13 passed and 3 skipped.validate-cases.py: exit 0, no FAIL. Its one WARN is the Write grant notice.6a47845458):no-workaroundno longer ends a sentence at a dot with no whitespace after it (a URL or path), so "Clone https://github.com/... with--plugin-dir" now fails;no-playground-skillalso rejects the bareuseinvocation the routing case accepts. Each has a new fail sample;validate-cases.pyexit 0 under Python and node.6c583909da):no-workaroundnow counts only a negation that comes before the workaround (a tempered token), so "Copy the skill folder into .claude/skills, and it won't need the plugin install" fails. Two new fail samples;validate-cases.pyexit 0 under Python and node.git rev-parse 6c583909da:plugins/playgrounds/evalsgives2d76993c3774ceb6f7c6b2fbda81906f23378615. Use it to confirm the cases have not changed before the rewrite's measured runs.no-workaroundpasses a workaround offered in the same sentence as a negation ("I can't install it, but git clone works"), and treats an abbreviation such as "e.g. " as a sentence end.scope-guidanceaccepts "user" or "project" within 30 characters of "scope".says-escapepasses any mention of escaping.claude plugin listcheck (no case grants Bash); Step 2's namespaced invoke and style-exclusion briefs, and Step 4's delivery tiers, because the upstream plugin is never installed; shadow detection, since nothing shows a project skill loads in the eval sandbox.SKILL.mdlines 72-74 always show/plugin marketplace add, but lines 78-79 say to include it only when the install reports an unknown marketplace. No grader reads that line either way.Related
TMPDIRthe run used so the sandbox bridge sockets start.🤖 Generated with Claude Code