Skip to content

test(playgrounds): add outcome eval cases and frozen trigger probes for use - #12036

Merged
kyle-sexton merged 6 commits into
mainfrom
test/6612-playgrounds-evals
Nov 1, 2026
Merged

kyle-sexton merged 6 commits into
mainfrom
test/6612-playgrounds-evals

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 1, 2026 •

Copy link
Copy Markdown
Member

Refs: #6612
Refs: #6476

Summary

Adds outcome eval cases and a frozen trigger-probe file for the playgrounds plugin's use skill, 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 (no llm grader), with offline pass and fail samples for every grader.
    • use-routes-natural-explorer: a plain-words request for an interactive explorer. The run routes to playgrounds: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:use with 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. Neither use nor 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 reads consumer-notes.md and names the innerHTML escaping 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 (sha256 79ba59f7d95a...).
  • use-install-policy-blocked/no-workaround (042c24b566), narrowed to the sentence. See Verification.
  • The changelog fragment stays at 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's dependencies key: with it, the session lists only built-in plugins and every positive scores 0. The upstream playground plugin is therefore absent in both arms, and every run takes the skill's absent branch.

Validity: run-validity.py returned verdict: 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-plugin use-absent-install-scope run, made while it checked whether the upstream plugin was installed. The sandbox denies that path. The run scored 1.00. No run errored.

Case With plugin Without plugin
use-absent-install-scope 1.00 0.33
use-boundary-visual-form 1.00 1.00
use-install-policy-blocked 0.67 (1.00 under the fixed grader, rescored offline) 1.00
use-reads-consumer-notes 1.00 1.00
use-routes-natural-explorer 1.00 0.25
  • The pass cost 1.72 USD at list price and took 249 seconds.
  • Three cases measure nothing in this pass: the baseline also scored 1.00 on use-boundary-visual-form, use-reads-consumer-notes (its Read grader is with-only) and, after the fix, use-install-policy-blocked.
  • Failure classification: every failed grader was read against its trace.
    • 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.
    • Real, by content (baseline): routes-use (no plugin); install-command and scope-guidance (the baseline did not name the upstream plugin's install); no-write (the baseline wrote an explorer file itself).
  • Checks:
    • 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.
    • Probe validator: PASS, 0 warnings.
  • Review fixes (6a47845458): no-workaround no 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-skill also rejects the bare use invocation the routing case accepts. Each has a new fail sample; validate-cases.py exit 0 under Python and node.
  • Review fix (6c583909da): no-workaround now 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.py exit 0 under Python and node.
  • Frozen suite digest: git rev-parse 6c583909da:plugins/playgrounds/evals gives 2d76993c3774ceb6f7c6b2fbda81906f23378615. Use it to confirm the cases have not changed before the rewrite's measured runs.
  • Known grader limits: no-workaround passes 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-guidance accepts "user" or "project" within 30 characters of "scope". says-escape passes any mention of escaping.
  • Unmeasured: Step 1's claude plugin list check (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.
  • Found, for the rewrite: SKILL.md lines 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

🤖 Generated with Claude Code

kyle-sexton and others added 4 commits November 1, 2026 00:33
…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]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 1, 2026 18:09
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-01T18:11:19.450285Z 8164db4 Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

@github-actions

github-actions Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 6c583909da9f783578af1c34698610b76edd3708: read 2 of 2 changed file(s); 0 finding(s), 0 as inline comments.

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:

  • plugins/playgrounds/evals/use-install-policy-blocked/case.yaml: the no-workaround regex grader changes. Before, a negative lookahead checked the whole sentence once at its start. Now it is a per-character tempered token, so only a negation that comes before the workaround phrase suppresses a match. The grader runs on model output inside the eval harness.
  • plugins/playgrounds/evals/use-install-policy-blocked/samples/no-workaround.json: two new fixture samples, each with a negation after the workaround.

Why there is no security surface:

  • The change touches only eval fixtures and a grader pattern.
  • No trusted path is touched.
  • No workflow, token, trust control, merge hold, plugin manifest or standing instruction is touched.
  • Nothing here runs in a credentialed lane or ships code to installed users.
  • The tempered-token regex uses lazy quantifiers over single-character alternatives with bounded lookaheads. It runs on short eval responses, so it adds no realistic denial-of-service path.

Skip gate 2: no security-relevant surface after reading the diff.

critical-findings: 0

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on 8164db442301d639a7d1f36c6c4e9262f9441c02; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 6c583909da9f783578af1c34698610b76edd3708: read 2 of 2 changed file(s); 0 finding(s), 0 as inline comments.

Incremental review of 6a47845..6c58390: no findings.

I read every hunk of both in-scope files.

  • case.yaml: the no-workaround regex now uses the tempered token this lane suggested. The old version had a sentence-wide negation lookahead followed by a lazy body. Now each character the body consumes is checked against the negation list, so only a negation that comes before the workaround can block a match. The workaround alternatives and the sentence-start anchor (^ or [.!?:]\s+, with flags im) are unchanged.
  • samples/no-workaround.json: two new fail samples, which are the two examples from the earlier thread.

I traced the pattern by hand against every sample (I did not run validate-cases.py; the PR says it exits 0 under Python and node, which I have not checked):

  • New fail samples: both still fail.
    • "Copy the skill folder into .claude/skills, …": copy the skill matches at the start of the line.
    • "Start Claude with --plugin-dir ./playground; …": the body reads Start Claude with and then matches --plugin-dir.
  • Pass samples: all five still pass. In the observed smoke reply, the second sentence is blocked at won't before it reaches copy its skill. None of the other sentence starts reaches a workaround term. "I can't build one by hand" fails the I can + verb alternative and is also blocked at can't.
  • Earlier fail samples: all eight still fail. None of them has a negation before its workaround term, except "I can't install it through /plugin. Copy the skill…", where the match starts fresh after . .
  • Known grader limits in the PR body: both still hold. "I can't install it, but git clone works" still passes because the negation comes first. "e.g. " still ends a sentence because whitespace follows the dot.

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]>

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on 6a47845458f1512865bc297c22b57947a00e172d; the summary is in this lane's pull request comment.

claude-lane: claude-review

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]>
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 1, 2026
Merged via the queue into main with commit b6f80cf Nov 1, 2026
69 checks passed
@kyle-sexton
kyle-sexton deleted the test/6612-playgrounds-evals branch November 1, 2026 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant