Repository navigation
feat(evals): fail dangling skill, agent, path and tag references in validate - #18267
Conversation
…alidate validate-cases.py now FAILs a leading /plugin:skill with no SKILL.md, a context.scaffold_script, history_file or add_dirs entry missing from the case directory, a literal plugin:skill or plugin:agent token in a Skill or Agent tool_used input_match that names nothing, and a plugin:skill tag that names no skill. Names resolve under the nearest plugins/ directory above the suite. The eval-cases step validates every suite on every PR. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ✅ CompletedThis 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: 05482c2cfc
ℹ️ 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): PR #18267,
|
|
claude-review reviewed Code review (incremental, blocking only): PR #18267, JavaScript checks graded once per suiteScope. I read every hunk of both files listed in What changed
Traced (no defect found)
Prior findings. The single earlier inline thread (the hyphenated-name backtrack) is resolved and settled, and this increment does not touch it. I am not raising it again. Blocking findings. None. Verification. I ran nothing: this lane has no shell. Everything above comes from reading and tracing the code at head. The PR's pytest and sweep results are the author's own and I have not verified them. Spend. None in this increment. Fewer node and bun processes per validate run lowers CI time slightly. Loosened checks. None found in this increment. Loosened checks would be marked: fail. That is the default, because the prompt has no Closing issue. The PR closes no issue (it is Phase 4 of a plan tracked outside the issue tracker), so I report nothing against issue criteria. Verifier dropped 0 of 0 candidates. |
…group A plugin:skill token directly inside a group, as in "(?:demo:gone)", was missed because the group's own colon read as a literal before it, and a token ending at a group close was taken as a prefix even when a literal followed the group. Group parentheses are now regex syntax, and whether a token is open on the right is read from the source pattern past each group close and alternative. Co-Authored-By: Claude Opus 5.5 <[email protected]>
A hyphenated name followed by a regex part, such as review:security-.* or review:code-review(er)?, let the name group backtrack to the last hyphen and check review:security or review:code, a false FAIL. A name may no longer end right before a hyphen, so such a token is skipped as not literal. Co-Authored-By: Claude Opus 5.5 <[email protected]>
review:(code|security)-reviewer was checked as the exact name review:code, a false FAIL. A token that crosses a group holding alternatives, or ends in one that more of a name follows, is no longer read as a literal name and is skipped; a group whose alternatives are each a whole name is still checked. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The review summary's finding at validate-cases.py ~1256 is fixed in aafe319: |
The eval-cases sweep spent 93% of its time starting node and bun twice per case (474 processes for work-items alone). One process per engine per suite cuts the local full sweep from about 2 minutes to 22 s with byte-identical findings. Co-Authored-By: Claude Opus 5.5 <[email protected]>
No related issue: Phase 4 of the eval-run-policy plan (stale-reference checks in validate); the plan is tracked outside the issue tracker.
Draft: the orchestrating session marks it ready after its phase review.
Summary
/evals:validatenow fails four kinds of dangling reference, so a skill or agent rename cannot leave an eval case testing something that no longer exists. Theeval-casesstep ofpr-require-checks.ymlvalidates every suite on every PR instead of only changed plugins.Fix
validate-cases.pyFAILs:/<plugin>:<skill>resolves to noplugins/<plugin>/skills/<skill>/SKILL.md;context.scaffold_script,context.history_fileorcontext.add_dirsentry missing from the case directory;tool_usedgrader ontool: Skill(ortool: Agent) whoseinput_matchnames, as a literal token, a<plugin>:<skill>(orplugins/<plugin>/agents/<agent>.md) that does not exist. Character classes, lookarounds and tokens joined to another regex part are skipped; a/<plugin>:<skill>token in an Agent input is checked as a skill; a token left open on the right (end,|,)) matches as a substring, so a prefix of a real name passes;<plugin>:<skill>form that names no skill.plugins/directory above the suite; a suite under none skips the name checks.pr-require-checks.yml: theeval-casesstep drops the changed-plugin narrowing.validate/SKILL.mddocuments the four FAILs; changelog fragment under.changes/evals/.Verification
pytest plugins/evals/skills/validate/scripts/test_validate_cases.py: 118 passed, including the newStaleReferencesclass (four failing fixtures, one per check, plus a pass fixture coveringdiscovery:explorer, a lookahead, a character class, an optional prefix group and a substring prefix).plugins/*/) exits 0. Its first run found 4 FAILs, all false positives of the first draft of check (c), so the check was fixed rather than the cases:/discipline:scrutinize-dont-coastinside an Agentinput_matchis a skill reference, and the unanchoreddiscovery:researchmatchesdiscovery:researcheras a substring. After the fix the checks resolved 2,164 references with no FAIL.python3 -m pytest plugins/evals/skills/validate/scripts/test_validate_cases.pyexits 0, with four new failing-fixture tests.eval_casesstep ofpr-require-checks.ymlpasses over every suite in under 60 s (gh run view --json jobs). Not yet measured: the local sweep took about 2 minutes on this machine with node and bun grading samples.Related
🤖 Generated with Claude Code