Skip to content

test(evals): add setup check cases for five plugins - #13500

Merged
kyle-sexton merged 2 commits into
mainfrom
test/7296-setup-check-cases
Nov 5, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
test/7296-setup-check-cases

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Refs: #7296

Summary

Adds one setup-check-* eval case for the setup skill's check action in each of five plugins that had none: source-control, harness-ops, multi-agent, testing and playwright.

Plugin Case What it grades
source-control setup-check-reports-team-layer-and-ignore-gap team-layer subject_pattern won by team; missing recursive .claude/**/*.local.* rule is FAIL
harness-ops setup-check-reports-guard-and-hook-tools status table with node, jq and hook-log guard rows; no settings-file read
multi-agent setup-check-shows-role-map-and-ignore-gap single/fan-out line per role; recommended ignore line; no apply or --write
testing setup-check-reports-missing-lint-rule ruff PT011 reported as a FINDING; no apply
playwright setup-check-reads-shipped-docs-modifies-nothing status table with CLI, browser and .playwright-cli/ rows; gitignore note; no install

Fix

Each case scaffolds a small git repository that gives the check a definite finding, invokes /<plugin>:setup check, and arms no-write and no-edit (and, where the skill names one, a shell .gitignore write or an install) on both arms. Each has one with-only indicator on a plugin-bundled file the check reads or runs: a Read of skills/playwright/reference/windows-quirks.md (playwright); a Bash run of setup.sh check (multi-agent, testing), lib/check-retirements.sh --manifest (harness-ops), or convention-key.sh / parse-branch-issue.sh (source-control). No grader depends on host state: tool presence, gh auth, or the babysit probes. Every grader has pass and fail samples; the status tables are built from the shared table_header_rule / table_verdict_cell matchers.

There is no skill-fired grader. All five setup skills are disable-model-invocation: true, and the prompt invokes them by slash command, which makes no Skill tool call. None of the existing setup-check cases has one.

Verification

python3 -I plugins/evals/skills/validate/scripts/validate-cases.py plugins/<p>/evals, run for each plugin:

== source-control rc=0 FAIL=0
== harness-ops rc=0 FAIL=0
== multi-agent rc=0 FAIL=0
== testing rc=0 FAIL=0
== playwright rc=0 FAIL=0

The new cases raise only the expected allowed_tools lists Bash/Write/Edit WARN, which --allow-tools answers at run time. check-matchers.py reports ok for playwright and harness-ops under JavaScript. The scaffolds were run locally against the bundled scripts: testing's setup.sh check prints ruff PT011 FINDING, multi-agent's prints the personal-override WARN, harness-ops's retirement check exits 0, and source-control's convention-key.sh resolves subject_pattern from the team YAML. No paid claude plugin eval was run.

Remaining on #7296

These five setup skills stay open on #7296 until each case has a VALID run on both arms.

Related

🤖 Generated with Claude Code

Add one setup-check case for the setup skill's check action in
source-control, harness-ops, multi-agent, testing and playwright. Each
grades the check's own report shape, arms no-write and no-edit graders
on both arms, and carries a with-only indicator on a plugin-bundled file
the check reads or runs.

Refs #7296

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 5, 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-05T13:57:23.363729Z 0911df4 PR opened
ℹ️ 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: 0911df414a

ℹ️ 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 5, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: incremental, 0911df4..b611d30 (PR #13500)

I found no security issues in this push. This lane already reviewed an earlier head, so this review reported blocking findings only.

What I read. Every hunk of the 7 files on the incremental list:

  • Three scaffold.sh scripts (multi-agent, playwright, source-control). Each adds one line, git config core.excludesFile /dev/null. It runs after git init inside the scaffolded eval sandbox and only writes that throwaway repo's local config. It takes no input, makes no network calls, uses no credentials and expands no variables.
  • playwright/.../case.yaml. Adds a max: 0 tool_used grader that fails the case if a Bash command runs playwright install or install-browser. It narrows what the eval allows and widens nothing.
  • playwright/.../samples/no-browser-install.json. New pass/fail fixtures for that grader. The install commands in them are negative samples the grader must reject, and nothing executes them.
  • source-control/.../case.yaml and samples/subject-pattern-won-by-team.json. The grader regex now also accepts an answer that names the supplying file, and there is a matching pass sample. This is test data only.

Checked. No plugin manifest, workflow, trust control, merge hold, kill switch, token request or instruction surface changed in this push. None of the 7 files matches a TRUSTED PATHS glob, so there are no manifest lines to report.

Prior findings. The one earlier post is this lane's summary comment, which reported 0 findings. Nothing carries over.

Spend. Running these eval cases later uses prepaid model credits only. That is not a hold and is not counted as a finding.

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: 3 inline finding(s) on 0911df414a28abde45897c2cdb947785cff2dd83; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review (incremental, blocking only): no findings

This review covers only what changed between 0911df41 and b611d30b. I read every hunk of all 7 files in the incremental list. This lane already reviewed an earlier head, so I reported only blocking findings.

My three earlier findings are fixed:

  • multi-agent and playwright scaffolds: both now run git config core.excludesFile /dev/null right after git init. A host's global ignore file can no longer flip the personal-override row or the .playwright-cli/ row. Both threads are settled by the owner's reply.
  • source-control subject-pattern-won-by-team: the grader now also accepts docs/conventions/source-control.yaml as the layer name, which matches SKILL.md:103-104 ("name the supplying file in won by"). A new pass sample covers the row that names only the file. The user-global and plugin default fail samples still fail.
  • source-control scaffold: gets the same core.excludesFile /dev/null pin.

New no-browser-install grader (playwright): I checked the input_match regex by hand against the JSON-serialised Bash input. I did not run it.

  • The three fail samples match: playwright-cli install-browser, npx playwright install chromium, and the &&-chained form.
  • The two pass samples do not match. playwright-cli --version has no install. The grep … 'playwright-cli install-browser' … command has no separator before the quoted text, so the regex cannot treat that text as a command.

Other notes

  • Below the blocking bar (dropped): the new regex misses a few variants, such as npx -y playwright install and npx playwright@latest install. These are advisory gaps in a max: 0 guard, not blocking.
  • Manifests: no plugin.json or marketplace.json changes in this push.
  • Closing issue: none; the PR only has Refs: #7296.
  • Embedded text: none found in the PR context, settled threads or prior findings.
  • Spend: the eval cases use prepaid API credit only when someone runs claude plugin eval. This push adds no billable resource.
  • Verification: I ran no scaffold, validator or eval. Any outputs the PR body reports are the author's claims and remain unverified.

- playwright: a no-browser-install grader fails a run that provisions a
  browser (playwright-cli install-browser, npx playwright install), which
  the setup skill says it never does; the package-manager matcher missed
  it. A grep that quotes the command still passes.
- multi-agent, playwright, source-control scaffolds: set
  core.excludesFile to /dev/null, so a host's global gitignore cannot
  turn the ignore-gap rows these cases grade into PASS.
- source-control: subject-pattern-won-by-team accepts the team file's
  path as the winning layer, as SKILL.md:103-104 tells the model to
  name it, with a pass sample for that answer.

validate-cases.py: 0 FAIL for playwright, source-control and
multi-agent; swapping the new grader's labels yields FAILs, so its
samples are graded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 5, 2026
Merged via the queue into main with commit b009306 Nov 5, 2026
58 checks passed
@kyle-sexton
kyle-sexton deleted the test/7296-setup-check-cases branch November 5, 2026 14:28
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