Skip to content

test(playbooks): add eval cases for boris, repo-sweep and update - #13414

Merged
kyle-sexton merged 5 commits into
mainfrom
test/13310-playbooks-evals-replacement
Nov 5, 2026
Merged

kyle-sexton merged 5 commits into
mainfrom
test/13310-playbooks-evals-replacement

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Closes #13310
Siblings: #13336

Summary

Opened by the work-resolve-issue lane. The run's own summary:

Adds one claude plugin eval case each for the playbooks boris, repo-sweep and update skills, the open row of this issue (the playwright demo-video row was delivered by #13336, per the recorded decision). boris and repo-sweep use natural-language prompts with a skill-fired grader (tool_used Skill, input_match playbooks:boris / playbooks:repo-sweep) plus deterministic graders; repo-sweep also has an llm judge for stopping before the step. The update case has no skill-fired grader, a deliberate departure from the issue's wording: update sets disable-model-invocation: true, so Claude cannot call it through the Skill tool (code.claude.com/docs/en/skills, 'Control who invokes a skill'), and a slash-invoked case makes no Skill call, so that grader would fail every run and mark it INVALID (plugins/evals/skills/plugin-eval/reference/case-authoring.md lines 100-106). It is graded on the plugin-specific script paths in its reply instead.

Not verified

  • validate-cases.py (python3 -I plugins/evals/skills/validate/scripts/validate-cases.py plugins/playbooks/evals) was not run: this lane runs no interpreter. The review subagent read the validator and traced the samples by hand instead; the PR's CI or a person should run it to confirm 0 FAIL.
  • The update case has no skill-fired grader, which the issue's decision comment asks for: playbooks:update sets disable-model-invocation: true, so no Skill call can occur (see summary). It is graded on the plugin-specific script paths in the reply instead.
  • No paid claude plugin eval run was made; the VALID both-arm verdict for these cases belongs to #13311.
  • Tidy skipped: the change spans 13 files, over the 10-file tidy cutoff.
  • boris-parallel-sessions-from-reference: the base model may know Boris's public '3-5 worktrees' tip, so names-worktrees-and-count may pass in both arms; skill-fired is the indicator that separates them.

Fix

  • plugins/playbooks/evals/boris-parallel-sessions-from-reference/case.yaml: new case; a natural-language parallel-sessions question; graders skill-fired, names-worktrees-and-count (regex for 3-5 sessions on git worktrees, from the hub Quick Reference and reference/foundations.md:29), no-vendor-read…
  • plugins/playbooks/evals/boris-parallel-sessions-from-reference/samples/{skill-fired,names-worktrees-and-count,no-vendor-read}.json: pass and fail samples per deterministic grader
  • plugins/playbooks/evals/repo-sweep-next-stops-on-conflicting-pr/case.yaml: new case; next with state.sh output showing mergeable CONFLICTING (reference/next.md section 1 step 2); graders skill-fired, reads-next-procedure (with-only), asks-merge-base (regex), stops-before-step (llm)
  • plugins/playbooks/evals/repo-sweep-next-stops-on-conflicting-pr/samples/{skill-fired,reads-next-procedure,asks-merge-base}.json: pass and fail samples per deterministic grader
  • plugins/playbooks/evals/update-check-runs-pack-scripts/case.yaml: new slash-invoked case for /playbooks:update --check; graders runs-both-checks (boris then skill-authoring update.sh --check), no-apply-command (not_contains), fable-5-no-upstream
  • plugins/playbooks/evals/update-check-runs-pack-scripts/samples/{runs-both-checks,no-apply-command,fable-5-no-upstream}.json: pass and fail samples per grader
  • .changes/playbooks/work-resolve-issue-issue-13310-41921132612-1-1a917397.md: patch fragment recording the three new cases

Verification

The runner ran each check from the base copy against 6417819:

  • scripts/check-changelog-fragments.sh --check: passed
  • scripts/check-changed-skills.sh --merge-base: passed

The run reports:

  • read https: //code.claude.com/docs/en/skills: disable-model-invocation: true means Claude can't invoke the skill on its own, its description is not in context, and the user can still run it with /name ('Control who invokes a skill' table and Frontmatter reference)
  • check-changelog-fragments: all 10 fragments under .changes/ valid
  • check-changed-skills: no changed skill under plugins/*/skills/, nothing to gate
  • check-affected: 12 passed, 7 skipped over 13 changed files
  • fresh-context review subagent: traced every sample against its grader by hand; all sort as labelled, no validate-cases.py FAIL or WARN expected, cited skill lines match; three POSSIBLE findings were fixed (an llm stop check that scores on the repo-sweep case, git merge origin/main accepted by…
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/41921132612

Left out: the items under Not verified.

Related

#13310

melodic-automation-lanes Bot and others added 4 commits November 4, 2026 22:15
Lane-Activity: work-resolve-issue/resolve-issue
Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM6z1I73
@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-05T01:34:20.501988Z ea92147 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: ea92147d0e

ℹ️ 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 0117d7bce3467df2c24596704162e28d58367f64: read 4 of 4 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #13414, incremental (ea92147 → 0117d7b)

I found no security issues. This review covers only the change since ea92147d and reports only blocking findings, because this lane already reviewed an earlier head. I read every hunk of all 4 files in scope.

What changed. These are eval grader changes for plugins/playbooks/evals/update-check-runs-pack-scripts/:

  • case.yaml: the runs-both-checks and no-apply-command regexes now accept a single-quoted script path as well as a double-quoted one. A new no-apply-run grader of type tool_used fails the run if any Bash call contains update.sh --apply (min: 0, max: 0).
  • samples/no-apply-command.json and samples/runs-both-checks.json: each gains one sample with a single-quoted path.
  • samples/no-apply-run.json: a new file with pass and fail samples for the new grader.

What I checked:

  • Trust controls and trusted paths. None of the 4 files matches a trusted-path glob. Nothing touches a workflow, action, token request, trusted-actor list, kill switch, merge hold, plugin manifest or standing instruction.
  • Tool access. The hunks change only graders:. They do not touch allowed_tools or the prompt, so the Bash access the last review checked is unchanged: Bash is still granted only through the operator's --allow-tools. The new grader makes the test stricter, since it now fails a run that actually executes --apply. It grants nothing.
  • Untrusted input. The patterns and samples are fixed text in the repository. No pull request, issue or comment author supplies any of it, and none of it is interpolated into a shell command or a workflow expression.
  • PR context. The description and the issue comments contain no instruction to this lane to pass the PR, skip a check, drop a finding or post elsewhere.

Prior findings. The only earlier entry is the last review's summary comment, which reported 0 findings, so nothing carries over.

Spend (not a hold, not counted as a finding): when the case runs, the new grader is checked against the same eval run, so it uses no extra prepaid or subscription API usage.

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 ea92147d0e8febda56fd18ab479e758bc923cb9d; 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 0117d7bce3467df2c24596704162e28d58367f64: read 4 of 4 changed file(s); 0 finding(s), 0 as inline comments.

Code review (incremental): PR #13414, ea92147 → 0117d7b

Of the 4 files on the incremental list, I read every hunk of all 4 in .claude-lane/incremental.diff. This lane already reviewed an earlier head, so this pass looked for blocking findings only. No new findings.

The prior finding is fixed

My earlier advisory (discussion_r4475544346) said the reply regexes accepted only a double-quoted script path. The push fixes it:

  • runs-both-checks and no-apply-command in update-check-runs-pack-scripts/case.yaml now use the ["'']? quote class. That matches the (?:\\"|'')? the tool_order grader already uses.
  • samples/runs-both-checks.json gains a single-quoted pass sample.
  • samples/no-apply-command.json gains a single-quoted fail sample.

New grader: no-apply-run

This is a tool_used grader on Bash with min: 0, max: 0. I checked it against validate-cases.py:

  • call_matches (lines 1414-1426) applies input_match to the compact-JSON encoding of each call's input.
  • grade_tool_used (lines 1429-1446) treats min: 0 / max: 0 as "no matching call allowed".

I traced each sample in samples/no-apply-run.json by hand against the pattern "command":"(?:[^"\\]|\\.)*?update\.sh(?:\\"|')?[ \t]+--apply\b. All of them sort as labelled:

  • Pass, two --check calls: no call matches, so the count is 0.
  • Pass, empty call list: the count is 0.
  • Fail, double-quoted path: \\. consumes the escaped \" before the path, and (?:\\"|') consumes the one after update.sh.
  • Fail, single-quoted path: the ' is not escaped in JSON, and the ' alternative matches it.
  • Fail, --check && … --apply in one call: the lazy run skips past the --check occurrence and matches the second update.sh --apply.
  • Fail, separate apply call: the second call matches, so the count is 1, which is over the maximum of 0.

Not verified

  • I did not run validate-cases.py (this lane has no interpreter). The traces above are by hand only. Someone should run python3 -I plugins/evals/skills/validate/scripts/validate-cases.py plugins/playbooks/evals on this head before merge.

Spend (not a finding)

When the playbooks suite runs, the extra grader spends nothing: it is deterministic and adds no model call. This push makes no billing change.

…ted paths

Add a no-apply-run tool_used grader that fails when any Bash call runs an
update.sh with --apply, so a run that applies after the checks no longer
passes on its reply alone. Accept single-quoted paths in the reply regexes
to match the process grader, with samples for each.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 5, 2026
Merged via the queue into main with commit b5b1e8f Nov 5, 2026
47 checks passed
@kyle-sexton
kyle-sexton deleted the test/13310-playbooks-evals-replacement branch November 5, 2026 02:01
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.

test(evals): add eval cases for pointer-swept skills that have none - part 8 of 9

1 participant