Skip to content

fix(skill-quality): slash-invoke read-only check cases and say which blocks check 18 counts - #13736

Merged
kyle-sexton merged 4 commits into
mainfrom
feat/7296-skill-quality-readonly-cases
Nov 6, 2026
Merged

kyle-sexton merged 4 commits into
mainfrom
feat/7296-skill-quality-readonly-cases

Conversation

@kyle-sexton

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

Copy link
Copy Markdown
Member

Refs: #7296

Summary

The read-only skill-quality check/setup suite (7 ck-* and 3 su-check-* cases) was INVALID twice on main, both times on the same two defects. This PR fixes both. One cause was a gap in the check hub, which is now filled; the rest were case prompts.

Fix

  • The skill never fired. ck-broken-ref-hand-verify, ck-precompute-warn-advisory and ck-verb-contract-fail-blocks are output cases, not invocation probes: none carries the invocation-probe tag, and their graders score the reply. Their prompts never invoked the skill, so it fired in 0 of 9 with-arm runs per suite and the two arms tied. They now slash-invoke the hub, as ck-check-gate-fail-verbatim does (/skill-quality:check check my-skill).
  • Searches outside the sandbox. Sessions with no shell were asked to run the check, or were given files they could not find. They then searched the home directory for a plugin cache, the checker script, skill audit and the plugin-philosophy doc. ck-outside-git-degrades searched before its Skill call fired, so it is also slash-invoked now. Each prompt now states environment facts only: no shell, and the named files are not in the workspace.
  • Removed skill-fired. The skill-fired indicator is gone from all four cases, along with its samples. A slash expansion leaves no Skill call in the trace, the slash-invoked sibling cases carry no such grader, and in these cases it was scored: false, so no arm's score changes.
  • Hub gap (SKILL.md). In both suites of the first local pair, ck-precompute-warn-advisory with-arm run 1 grepped the plugin directory for precompute, because the hub did not say which blocks check 18 counts. The check 18 Gotchas entry now says so. Changelog fragment: patch.

Verification

Remaining on #7296

  • The coordinator judges and records the local pair for skill-quality check and setup.
  • ck-broken-ref-hand-verify still ties at 0.6 in both arms with the skill loaded: quotes-fail-line and verifies-before-edit fail in both. This is a separate grader or skill question.

Related

🤖 Generated with Claude Code

kyle-sexton and others added 3 commits November 6, 2026 10:31
… no-shell sandbox

ck-broken-ref-hand-verify, ck-precompute-warn-advisory and
ck-verb-contract-fail-blocks are output cases, not invocation probes, but
their prompts never invoked the skill, so it fired in 0 of 9 with-arm
runs twice and the arms tied. They now slash-invoke the hub as
ck-check-gate-fail-verbatim does; the unscored skill-fired indicator goes,
since a slash expansion leaves no Skill call in the trace.

ck-outside-git-degrades asked the model to run the check with no shell,
which sent it hunting for a plugin cache and the checker script outside
the sandbox. That prompt and the three above now state the environment:
no shell, and the named files are not in the workspace.

Refs: #7296

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-outside-git-degrades

In both runs of the first local pair, ck-precompute-warn-advisory with-arm
run 1 grepped the plugin directory for "precompute". The hub did not say
which fenced shell blocks check 18 counts. The check 18 Gotchas entry now
says so.

ck-outside-git-degrades still searched outside the sandbox before the
Skill call fired, so it now slash-invokes the hub like its siblings. Its
unscored skill-fired indicator is removed, and the prompt says the
checker's source is not in the workspace.

Refs: #7296

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Refs: #7296

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kyle-sexton kyle-sexton changed the title test(skill-quality): slash-invoke read-only check cases and state the no-shell sandbox fix(skill-quality): slash-invoke read-only check cases and say which blocks check 18 counts Nov 6, 2026
@kyle-sexton

Copy link
Copy Markdown
Member Author

Before/after record (VALID pair, no loss).

Head sqr3-hd (d1413c6) vs before sqr2-bf (main's skill with this head's evals, local only). Both VALID, 3 runs, each case with its declared tools only (Read). The head and before sides share the case edits, so the pair isolates the one SKILL.md change: check 18's Gotchas now name the readers that count.

case head with / without before with / without
ck-broken-ref-hand-verify 0.6/0.6/1 / 0.6 ×3 0.6 ×3 / 0.6 ×3
ck-cross-skill-invocation-doctrine 0.75/1/1 / 0 ×3 1 ×3 / 0 ×3
ck-declines-skill-authoring 0.25/0.5/0.5 / 0.5 ×3 0.25/0.75/0.5 / 0.5 ×3
ck-outside-git-degrades 1 ×3 / 0.33 ×3 1 ×3 / 0.33 ×3
ck-precompute-warn-advisory 1 ×3 / 0.33 ×3 1 ×3 / 0.33 ×3
ck-validate-absent 1 ×3 / 0.25/0.5/0.75 0.75/0.5/1 / 0.75/0.75/0.25
ck-verb-contract-fail-blocks 0.75/1/0.75 / 0 ×3 1/1/0.75 / 0 ×3
su-check-default-root 1 ×3 / 0.4/0.4/0.8 1 ×3 / 0.4/0.6/0.8
su-check-missing-root 1 ×3 / 0.67 ×3 1 ×3 / 0.67 ×3
su-check-non-default-root 0.83/0.83/0.75 / 0.25 ×3 0.83 ×3 / 0.25/0.33/0.25

Mean with-arm score over the 10 cases: 0.87 on the head, 0.86 before. The single-run dips are on cases the SKILL.md line does not touch, and they are offset by ck-validate-absent. On main (r19-qsr2, INVALID, reference only), ck-precompute-warn-advisory scored 0.33 and ck-verb-contract-fail-blocks about 0.08, and the arms tied. Both now separate.

Still weak and not changed here:

  • ck-broken-ref-hand-verify ties at 0.6. quotes-fail-line and verifies-before-edit fail in both arms.
  • ck-declines-skill-authoring with-arm scores 0.42 on the head against 0.5 without, a gap of one run in three. On main the two arms tie at 0.5.

@kyle-sexton
kyle-sexton marked this pull request as ready for review November 6, 2026 17:27
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-06T17:27:27.639495Z
We couldn’t complete this review. Comment @codex review to try again.
f6f3b1d 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

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

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

Security review: PR #13736 (head f6f3b1d)

I read the whole change in all 10 listed files, plus the four deleted samples/skill-fired.json files that are in the diff but not on the list. The review is complete, not partial.

No security issues found.

What the change does:

  • Four skill-quality eval cases (ck-broken-ref-hand-verify, ck-outside-git-degrades, ck-precompute-warn-advisory, ck-verb-contract-fail-blocks):
    • Each prompt.md now opens with a /skill-quality:check slash invocation and states facts about the sandbox: no shell, and the named files are not in the workspace.
    • The skill-fired tool_used indicator grader and its sample files are removed.
    • description frontmatter is updated to match.
    • These are test fixtures for the local eval harness. No credentials, hooks, workflows, tokens or untrusted input paths are involved. allowed_tools and the read-only / no-network tags are unchanged.
  • plugins/skill-quality/skills/check/SKILL.md: adds four lines to the check 18 Gotchas entry. They describe which fenced shell blocks the advisory precompute heuristic counts: allowlisted read-only commands only, with no redirection, substitution, chaining or pipe. The change only adds text. It deletes, narrows and softens nothing. The nearby "hand-verify the block before converting it" rule is still there, so the instruction-surface lens finds nothing removed.
  • .changes/ fragment: a patch-bump changelog note. No security surface.

Other checks:

  • Trusted paths: no changed file matches a TRUSTED PATHS: glob.
  • Trust controls: the diff touches none.
  • Plugin manifests: the diff changes no manifest.
  • PR context: the description has no embedded text aimed at the lane.
  • Prior findings: none. This is the lane's first review of the PR, so it is not blocking-only.

Spend: the cases are run locally with claude plugin eval, so running them uses prepaid model credit only. That is not a hold.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

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

Code review: PR #13736 (no findings)

I read every hunk of all 10 listed files and the four deleted samples/skill-fired.json files.

What changed

  • Three output cases (ck-broken-ref-hand-verify, ck-precompute-warn-advisory, ck-verb-contract-fail-blocks) and ck-outside-git-degrades now start by slash-invoking /skill-quality:check, as the sibling ck-check-gate-fail-verbatim already does.
  • Each prompt now says the session has no shell and the named files are not in the workspace, so the model stops searching outside the sandbox.
  • The skill-fired tool_used grader is removed from all four cases, along with its samples file. Each case's grader list and samples/ directory still match.
  • The check 18 Gotchas entry in plugins/skill-quality/skills/check/SKILL.md now says which fenced shell blocks count.

Checked against the code

  • I compared the new check 18 text (SKILL.md lines 377-380) with precompute_readonly_line and the fence scan in check-skill.sh:

    • The readers it names (ls, cat, find, wc) are on the allowlist.
    • git is limited to read-only subcommands (status/log/diff), and gh to read verbs (view/list).
    • Redirection, $(, backticks, ;/& and bare pipes disqualify a line.
    • || echo is the one continuation it strips.
    • The WARN text at L1826 names no block.

    The doc leaves out some details: blank and # lines are skipped, and options like find -exec disqualify a line. The text before it already covers the shell info-string limit. None of these gaps would lead a reader to the wrong conclusion.

  • The changelog fragment's bump: patch fits a documentation clarification plus eval-case edits. No plugin manifest changed.

Path-scoped rules

  • .claude/rules/eval-case-transcripts.md: the prompts are synthetic, with no transcript content or machine paths.
  • .claude/rules/skill-bodies-state-current-rules.md: the new SKILL.md text describes this repo's own checker, not an upstream specific, so the rule does not apply.

Closing issue

  • The PR says Refs: #7296 and closes no issue. The context file has no closing-issue section, so there were no acceptance criteria to check.

Verification: the PR's results (validate-cases.py 0 FAIL, check-skill.sh check PASS, the local before/after eval pair) are the author's claims. I did not run them; this lane has no shell.

Spend: none. The change edits eval prompts and graders only. Turn limits, timeouts, models and schedules are unchanged.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 6, 2026
Merged via the queue into main with commit 1fa5946 Nov 6, 2026
69 checks passed
@kyle-sexton
kyle-sexton deleted the feat/7296-skill-quality-readonly-cases branch November 6, 2026 17:54
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