Skip to content

fix(skill-quality): let check 14 accept a plugin case.yaml that tags the skill - #11887

Merged
kyle-sexton merged 4 commits into
mainfrom
fix/8635-check14-case-yaml
Nov 1, 2026
Merged

kyle-sexton merged 4 commits into
mainfrom
fix/8635-check14-case-yaml

Conversation

@kyle-sexton

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

Copy link
Copy Markdown
Member

Refs: #8635

Summary

Clears the blocker in front of #8635's slice 3, the per-plugin conversions from evals.json to case.yaml suites. A conversion removes the plugin's evals/evals.json files, and check 14 failed any later change to one of that plugin's SKILL.md files under --require-evals. Check 14 now also accepts a plugin suite case that tags the skill.

Fix

  • plugins/skill-quality/scripts/check-skill.sh, check 14: a skill with no evals/evals.json passes --require-evals when a case under its plugin's evals/ has a flow tags: entry equal to the skill name (quoted or bare). The tag can be in the case's prompt.md front matter or in a single-file case.yaml. The converter writes it to front matter (convert-evals-json.py:319, written to prompt.md at :324); its case.yaml carries no tags. A tags line in the prompt body, after the front matter, does not count. The action-router WARN stays quiet in the same case. The error text names both ways to satisfy the check.
  • The rule matches the tag exactly, so a case tagged listed-other does not satisfy skill listed.
  • The changelog fragment states the change.

On main, 587 plugin prompt.md files and 400 case.yaml files carry a tags: line, all in flow form. A hand-written case gets the same credit by adding the tag. #11711 asked for a rule for how a case names its skill; this one follows the shape the converter already writes.

Verification

  • plugins/skill-quality/scripts/check-skill.test.sh: all assertions pass, including the new 48b and 48c:
    • a single-file case.yaml tagged listed-other still fails skill listed;
    • one tagged 'listed' passes;
    • the converter's split shape (untagged case.yaml, tag in prompt.md front matter) passes;
    • a tags line in the prompt body does not count.
  • Real converter run: convert-evals-json.py on a throwaway plugin with one evals.json case. On this head, check 14 reports INFO: evals: a plugin suite case tags zed. On main it fails with skill ships no evals/evals.json.
  • scripts/check-affected.sh: 13 passed, 5 skipped over the 3 changed files.

Related

🤖 Generated with Claude Code

kyle-sexton and others added 2 commits November 1, 2026 00:22
…the skill

Converting a plugin's evals.json to case.yaml suites removes the files
check 14 requires, so the next change to one of its SKILL.md files failed
--require-evals. A case.yaml under the plugin's evals/ whose tags name the
skill, the tag convert-evals-json.py writes, now counts.

Refs: #8635

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 1, 2026 06:57
@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-01T06:59:27.694412Z f017cde 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.

@github-actions

github-actions Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: incremental (1c839a8 → 4d93b1c)

No security issues found.

What I reviewed: the only hunk that changed since the last review, in plugins/skill-quality/scripts/check-skill.sh (plugin_case_tags_skill, around L1556-L1558). The function used to pipe awk … "$d/prompt.md" | grep -qE "$re". It now runs grep -qE "$re" < <(awk … "$d/prompt.md"), so grep reads awk's output through a process substitution instead of a pipe.

  • Same match logic: the awk program, the file it reads and the regex $re are unchanged. Only the plumbing between awk and grep differs. With a pipe under pipefail, grep -q can exit early and awk's SIGPIPE can fail the pipeline. With the process substitution, awk's exit status no longer decides the result.
  • No injection: "$d/prompt.md" stays quoted, and nothing new is expanded into a command.
  • Nothing it gates widens: the function only decides whether check 14's --require-evals evals check passes locally or in CI for a skill. It is not a trust control, a merge hold, a token request or a kill switch, and no file in the trusted-path list changed in this increment.
  • Out of scope: the regex built from SKILL_NAME at L26 of the full diff is unchanged since the last review, which already covered it.

Plugin manifests: this increment changes no manifest.
Instruction surface: this increment deletes, narrows or softens no standing instruction.
Prepaid spend: none.

critical-findings: 0

@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: f017cde477

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

Code review (incremental: 1c839a8 → 4d93b1c)

Scope: I reviewed the one hunk in plugins/skill-quality/scripts/check-skill.sh (plugin_case_tags_skill, L1556-1558). No other file has changed since the last review.

Change: The front-matter check used to pipe awk into grep -qE. It now runs grep -qE "$re" < <(awk …).

Assessment: The change is correct, and I found nothing to report.

  • The script runs set -uo pipefail (L188). In the old pipeline, grep -q exits on its first match. If awk is still writing after that, it can die with SIGPIPE (exit 141). Under pipefail, that status becomes the pipeline's result, so a case whose front matter did carry the tag could fail the check now and then. With process substitution, awk's exit status is ignored, and only grep's status decides the && chain.
  • The [[ -f "$d/prompt.md" ]] && guard runs before the redirection is set up, so a missing prompt.md never starts awk. The && list also keeps the logic correct if set -e is ever turned on.
  • The awk program and the regex are unchanged, so the 48b/48c test cases the PR description lists still apply. I could not run them in this lane, so their passing results are the author's claim and I have not verified them.

Closing issue: The PR only refs #8635 and closes no issue, so there are no acceptance criteria to check.

Findings: 0.

….md front matter

convert-evals-json.py writes a case's tags into prompt.md front matter and
leaves case.yaml untagged, so check 14 still failed every converted skill.
It now reads the front matter too, and a test covers the converter's split
shape and a tags line outside the front matter.

Refs: #8635

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

Copy link
Copy Markdown
Member Author

claude-review finding (check-skill.sh, converter writes the tag into prompt.md front matter): VALID, fixed in 1c839a8. Basis: convert-evals-json.py:319 and :324 put tags in prompt.md, and case.yaml (:327-365) has none. Check 14 now accepts the tag in prompt.md front matter as well as in a single-file case.yaml. Test 48c covers the split shape and a tags line outside the front matter. I also ran the real converter on a throwaway plugin: check 14 passes on this head and fails on main. The comment and changelog fragment no longer say case.yaml only. The unflagged gap (no test for the action-router WARN) stays as it is.

…stitution

The pipefail-grep-q hygiene check rejects grep -q at the end of a pipe.

Refs: #8635

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

Copy link
Copy Markdown
Member Author

HUB arm request (R10), host-run lane 4 (melo-lap-001), 07:25Z: this is lane 4's PR. Head 4d93b1c is CLEAN. ci-status is green from a non-draft run. claude-review and claude-security-review both report 0 findings on this head, the Codex P1 thread is fixed and resolved, no thread is open, and there is no do-not-merge, needs-human or pr-verify-failed label. Lane 4 cannot message the hub (its sockets are gone before a reply), so the request is here.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 1, 2026
Merged via the queue into main with commit 5928000 Nov 1, 2026
41 checks passed
@kyle-sexton
kyle-sexton deleted the fix/8635-check14-case-yaml branch November 1, 2026 09:41
@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Post-merge mutation testing

Killed 5, survived 2, timeout 0, no coverage 0, invalid 0, not run 0.
Covered-code score 71%; mutation score 71%.

File Killed Survived Timeout No coverage Invalid Not run
plugins/skill-quality/scripts/check-skill.sh 5 2 0 0 0 0

Surviving mutants

Location Operator Disposition Cause
plugins/skill-quality/scripts/check-skill.sh:1578 other productive input-gap
plugins/skill-quality/scripts/check-skill.sh:1554 SBR productive input-gap

The run's summary has the full report.

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