Skip to content

feat(evals): add /evals:audit, a read-only eval-suite health report - #18356

Merged
kyle-sexton merged 10 commits into
mainfrom
feat/evals-audit-skill
Nov 23, 2026
Merged

kyle-sexton merged 10 commits into
mainfrom
feat/evals-audit-skill

Conversation

@kyle-sexton

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

Copy link
Copy Markdown
Member

Closes #18546

Summary

Adds /evals:audit, a read-only health report for a plugin's eval suite. It edits nothing.

  • New skill plugins/evals/skills/audit/ (SKILL.md, scripts/audit-suite.py and its tests).
  • Counts, through the shared case_skills.py rule: skills with no case or no deterministic triggering case, judged graders with no labeled samples (with PASS/FAIL label counts), legacy-only skills, and skills with no should-not-fire case.
  • Then judges gate pairs, duplicates, grader fit and drift, and routes each finding to /evals:design, /evals:validate or /evals:plugin-eval.
  • One deterministic triggering case, plugins/evals/evals/au-suite-health-trigger.

Fix

  • plugin.json and the plugin README name the new skill.
  • Minor changelog fragment under .changes/evals/.

Loosened checks

This PR merges before its eval run: compare mode never runs its scripts beside a credential, so au-suite-health-trigger runs as a scoped suite run on main after merge, and docs/review/evals.md gains that rule. Authorized by the owner decision #18546 cites by line (melodic-software/architecture#208).

Verification

  • Audit tests pass.
  • ruff clean.
  • check-skill.sh plugins/evals/skills passes for audit.
  • validate-cases.py plugins/evals/evals exits 0.
  • Running audit-suite.py on plugins/evals leaves git status unchanged and reports 57 judged graders without samples.
  • Left out: the compare eval run of the new case, which waits for the org API key (next section).

Eval run before merge

au-suite-health-trigger is a new case, so docs/review/evals.md requires a compare run before merge. It waits for the org API key. The session that runs it states its cost first, per "Budget" (3 runs x 1 arm in compare mode).

Related

N/A

🤖 Generated with Claude Code

audit-suite.py counts, through the shared case_skills.py rule, the
skills with no case or no deterministic triggering case, judged graders
with no labeled samples (with PASS and FAIL label counts for those that
have them), legacy-only skills and skills with no should-not-fire case.
The skill then judges gate pairs, duplicate cases, grader fit and drift
from the skill text, and routes each finding to /evals:design,
/evals:validate or /evals:plugin-eval. It edits nothing.

One deterministic triggering case, au-suite-health-trigger, grades only
the Skill call. plugin.json and the README name the skill.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 23, 2026
@kyle-sexton

Copy link
Copy Markdown
Member Author

Held for eval: the new au-suite-health-trigger case needs a VALID no-loss compare run on the current head first, and the org API key is off.

@kyle-sexton
kyle-sexton marked this pull request as ready for review November 23, 2026 05:34
@chatgpt-codex-connector

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

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T05:36:39.098099Z f4c7dca 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: f4c7dcaa3e

ℹ️ 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".

Comment thread plugins/evals/skills/audit/SKILL.md Resolved
@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #18356 (ac80b003)

No security issues found. I read every hunk of all 14 changed files in .claude-lane/pr.diff. This lane already reviewed an earlier head, so this review only looked for CRITICAL and IMPORTANT findings.

What I checked

  • docs/review/evals.md matches the trusted path docs/review/**, so I read its whole change.
    • The change is prose only. It adds a third kind of PR that may merge before its eval run: one that adds or edits a script or a case scaffold and cuts no existing skill text. A cut still keeps its compare run before merge.
    • The eval hold is a quality hold, not a hold on untrusted provenance or an untrusted spec.
    • The code that enforces it (select-plugins.mjs, release-eval-hold.mjs) is not in this diff. What runs beside a credential is unchanged.
    • No protected-class guardrail is deleted. The instruction-surface lens raises nothing.
  • plugins/evals/skills/audit/scripts/audit-suite.py reads files only.
    • It loads case_skills.py and validate-cases.py from fixed paths inside the plugin, built from __file__. The target directory cannot redirect them.
    • It parses case YAML and JSON with the existing validate-cases parsers. It writes nothing, calls no model, starts no subprocess and makes no network call.
    • A hostile suite directory can only change the report text.
  • au-suite-health-trigger/scaffold.sh writes fixed heredoc content into the eval's scratch directory. It uses no variables, takes no input and makes no network call.
  • plugins/evals/skills/audit/SKILL.md grants no new tools. It runs one in-plugin script with a quoted path argument and edits nothing.
  • Tests, the changelog fragment, the catalog, the cheat-sheet, the README and the leaf-name registry change docs, tests or registry lines only. None of them is a security surface.

Trust controls

  • None of these is touched, so none is widened:
    • the trusted-actor list or check-trusted-trigger
    • lane token scope
    • the kill switch
    • the merge-hold scripts
    • any action under .github/actions/

Embedded text

  • The PR context contains no text that tells this lane what to do. The closing issue's body was withheld by the wrapper.

Spend

  • The new eval case au-suite-health-trigger (3 runs × 1 arm) uses prepaid API credit only. That is not a hold.

Prior findings

  • The one earlier post is the previous summary, which had no findings. There is nothing to repeat.
Manifest lines (1)
  • manifest description: pass

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 f4c7dcaa3e2607db63233dacd210c05015119fe5; the summary is in this lane's pull request comment.

claude-lane: claude-review

Comment thread plugins/evals/skills/audit/SKILL.md Resolved
@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review: PR #18356 at ac80b003

Blocking findings only. This lane already reviewed three earlier heads of this PR, so this review reports only blocking findings and manifest <field>: flag lines. I read every hunk of all 14 changed files in .claude-lane/pr.diff.

Result: no blocking findings. Both earlier inline findings are fixed at this head.

  • Version rollback, fixed. plugins/evals/.claude-plugin/plugin.json no longer has a version hunk, so the version stays at the base value 0.24.2. The release step applies the bump: minor fragment to that.
  • Publisher-owned doc dependency, fixed. plugins/evals/skills/audit/SKILL.md:234-237 now states its own criteria. It reads a repository's eval policy only "where the repository records" one, and no longer points to this marketplace's docs/review/evals.md.

What I checked in the script:

  • audit-suite.py calls these names from validate-cases.py: read_text, parse_yaml, split_markdown, collect_graders, call_matches, discover_cases, containment_root, ParseError, Unmirrored, SAMPLES_DIR and JUDGE_TYPES. All of them exist there with the arguments the script passes.
  • It also calls case_skills.skills_under_test(prompt, prompt_file, tag_sources, graders, suite_plugin), which matches its definition.
  • The test wrapper sources plugins/evals/lib/test-helpers.sh, and that file exists.

Closing issue #18546:

  • "feat(evals): add /evals:audit, a read-only eval-suite health report #18356 merges with the docs/review/evals.md rule above": met. The new third kind of PR in "Where and on what" matches the issue's wording, including "cuts no existing skill text" and splitting a cut from the script change.
  • "au-suite-health-trigger runs as a scoped suite run on main…": this happens after merge, so it cannot be checked on this PR.
  • I could not read the owner decision the issue cites (architecture docs/owner-decisions.md#L371), because it is in another repository.

Loosened checks:

  • The eval-run gate is loosened for this PR. The closing-issue text gives the reason, and the PR body's ## Loosened checks section names it.
  • The prompt has no loosened_check_verdict: or loosened_check_patterns: line, so I used fail with no consumer entries.
  • The prompt has no loosened_check_decision_record: line, so I did not check the citation requirement.

Loosened checks would be marked: fail (default); patterns: 0

Not verified by me: I had no shell and ran nothing. The PR's Verification section (tests pass, ruff clean, check-skill.sh, validate-cases.py) is the author's claim and I have not confirmed it.

Embedded text: nothing in the PR context or prior-findings files was addressed to the lane.

Spend (not a hold): after merge, one scoped suite run of au-suite-health-trigger is due on main (3 runs × 1 arm). It spends prepaid API credit.

Advisory and manifest lines (3)
  • manifest version: pass (unchanged from base 0.24.2; the fragment's bump: minor fits a new skill)
  • manifest description: pass (adds /evals:audit; every existing skill is still named)
  • manifest keywords: pass (unchanged)

I ran no verifier subagent: this blocking-only pass produced no new candidate.

Verifier dropped 0 of 0 candidates.

…ed trigger grader

The audit skill states the criteria it judges against instead of reading this
repository's docs/review/evals.md, which an installed consumer does not have, and defers
to a repository's own eval policy where one exists. A positive Skill grader counts as a
skill's triggering coverage only when it rejects a call to an unrelated skill.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
kyle-sexton and others added 2 commits November 23, 2026 09:01
Shorten the plugin description under claude.ai's 500 characters, register
evals as an owner of the audit leaf name, and declare plugin.json in both
audit suites' test-scope lines.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton

Copy link
Copy Markdown
Member Author

Eval cost before dispatch (docs/review/evals.md, Budget): compare run of head 37925ab on the maintenance subscription token (credential: subscription, #18505).

  • Cases: au-suite-health-trigger (plugins/evals).
  • Agent runs: 6 (2 passes, merge base and head, x 3 runs x 1 case, with-plugin arm only).
  • Ceiling: cost-cap-usd 5 per pass, so at most 10 USD as a list-price estimate; on the subscription it draws plan usage, not billing.
  • CLAUDE_EVALS_DISABLED goes to false for this run and back to true when it ends.

…llow-up

Compare mode refuses a pull request whose manifest or README changes, since the
arms run only skill text. These two edits start no eval run, so they land after
this one.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UJUn7LPUb4rRDJ2JhJRGZf
@kyle-sexton

Copy link
Copy Markdown
Member Author

The first compare run (45246460814) stopped in Compare Prepare before any pass: the arms cannot carry plugins/evals/.claude-plugin/plugin.json or README.md. Those two edits move to a follow-up PR (they start no run, docs/review/evals.md Which cases run). Re-dispatching on head a59118c at the same cost: 6 agent runs, cost-cap-usd 5 per pass, subscription token.

kyle-sexton and others added 2 commits November 23, 2026 14:17
…eir cases after merge

Compare mode never runs a pull request's scripts beside a credential, so a PR
that adds a script or a case scaffold merges first and its cases run on the
default branch (owner decision, melodic-software/architecture#208).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UJUn7LPUb4rRDJ2JhJRGZf
@kyle-sexton kyle-sexton removed the do-not-merge Hard merge gate: do not merge while applied. label Nov 23, 2026
@kyle-sexton

Copy link
Copy Markdown
Member Author

Eval hold lifted by the owner's decision (melodic-software/architecture#208, given in the eval-run-policy session via /session-flow:go-with-recommendations): compare mode refuses this PR because it adds scripts (select-plugins.mjs, run 45247520969), so it merges first and au-suite-health-trigger runs as a scoped suite run on main once the subscription suite mode lands. The session that merges it dispatches that run, states its cost first, and fixes or reverts a failing case (docs/review/evals.md, Where and on what).

@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 08d50e938d2b9e23c53719c9f0676fa430e13005; the summary is in this lane's pull request comment.

claude-lane: claude-review

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit 5b7f14c Nov 23, 2026
56 checks passed
@kyle-sexton
kyle-sexton deleted the feat/evals-audit-skill branch November 23, 2026 21:19
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(evals): land /evals:audit with its case run on main after merge

1 participant