Skip to content

fix(improvement): name find's context recipes by full path - #13897

Merged
kyle-sexton merged 2 commits into
mainfrom
fix/13768-improvement-find-named-context
Nov 7, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
fix/13768-improvement-find-named-context

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Refs: #13768

Summary

Improvement find invocation b02 was INVALID three times on #13768: with-arm Globs of the plugin root hunting for the context recipes SKILL.md named only as context/<file>.md. SKILL.md now names each recipe as ${CLAUDE_PLUGIN_ROOT}/skills/find/context/<file>.md (ci-health, disconnected, hotspots, ranking, unattended) and says to read it with one Read, never to Glob or Grep the plugin. Precedents: #13808, #13865.

Fix

  • SKILL.md: the only lines added are in ## Spoke paths; no eval cites a SKILL.md line.
  • A patch fragment.

Verification

Laptop lane, rsync copies outside git, Claude Code 2.1.319, model claude-opus-5-5, judge opus, --runs 3 --scaffold, each case granted only what it declares. Head (eae2342) and main ran with the same evals.

  • Head: VALID in all 4 invocations.
  • Main: b01, b03 and b04 VALID; b02 INVALID twice on the plugin-root Globs this fix removes (hub rule R382), so it has no numbers.
  • Plugin-root Glob/Grep count in b02: head 0 in 12 runs, main 5 and 8.
Case Head with Head without Main with Main without
already-built-disconnected-scan 0.94 0.83 1.00 0.83
already-built-disconnected-scan-behavior-present 1.00 1.00 1.00 0.94
find-docs-routed-to-lane 1.00 0.50 INVALID INVALID
find-targeted-quick-wins 0.95 0.48 INVALID INVALID
find-unattended-files-capped 1.00 0.86 INVALID INVALID
find-vague-ask-ranked-scan 0.71 0.38 INVALID INVALID
find-instrument-first 1.00 0.50 1.00 0.50
find-implement-request-routes 1.00 0.00 1.00 0.00

already-built-disconnected-scan head 0.94 vs main 1.00 is one run (0.83) missing the regex grader unread-table-export-audit on wording, while its answer states the finding. The other two runs scored 1.00. That is run noise, not a loss.

Record: #13768 (comment)

Remaining on #13768

find-vague-ask-ranked-scan is weak (with 0.71), still above without.

Related

🤖 Generated with Claude Code

kyle-sexton and others added 2 commits November 6, 2026 20:16
The find skill referred to its recipes as bare context/<file>.md, so
with-arm runs hunted for them with Globs of the plugin root
(skills/find/context/*.md, **/*), which the eval gate counted as
permission denials and marked the b02 invocation INVALID (#13768).

Each recipe is now named as
${CLAUDE_PLUGIN_ROOT}/skills/find/context/<file>.md, to be read with
one Read, never a Glob or Grep of the plugin directory.

Refs: #13768

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 7, 2026 03:02
@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-07T03:02:53.802447Z
We couldn’t complete this review. Comment @codex review to try again.
50a5d5a 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 7, 2026

Copy link
Copy Markdown
Contributor

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

Security review: PR #13897 (head 50a5d5a)

No security issues found.

Scope. I read every hunk of both changed files:

  • .changes/improvement/fix-13768-find-named-context-7c3a91e5.md: a new patch changelog fragment, prose only.
  • plugins/improvement/skills/find/SKILL.md: the bare context/<file>.md references now read ${CLAUDE_PLUGIN_ROOT}/skills/find/context/<file>.md (ci-health, disconnected, hotspots, ranking, unattended). The change also adds an instruction to open each recipe with one Read of that exact path and never Glob or Grep the plugin directory.

Neither file matches a trusted-path glob. The change touches no plugin manifest, userConfig key, hook, workflow, token request, or trust control.

Instruction-surface lens. This is a skill body edit, so I checked it for deleted, narrowed or softened rules. It removes none. The ## Spoke paths rule still stands: replace <plugin-root> with ${CLAUDE_PLUGIN_ROOT} before running a command, because a ${…} token in a Read-delivered file reaches Bash unsubstituted. The read-only and no-mutation statements under ## Unattended mode and ## What this skill does NOT do are unchanged. The only new rule narrows tool use: one exact-path Read in place of a Glob or Grep over the plugin directory. That narrows what the skill reaches and opens no path to a leak, a compromise or a charge. Since nothing is removed, I did not need the protected-class register.

PR context. The description matches the diff and contains no embedded instructions aimed at this lane.

Prior findings. This lane had not reviewed an earlier head (blocking only: no), so this is a full review.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

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

Code review: no findings.

This PR changes two files. plugins/improvement/skills/find/SKILL.md now gives every context/ recipe its full path, ${CLAUDE_PLUGIN_ROOT}/skills/find/context/<file>.md. The recipes are ci-health, disconnected, hotspots, ranking and unattended. The file also adds an instruction to open each recipe with one Read and never Glob or Grep the plugin directory. The second file is a patch changelog fragment.

What I checked:

  • Paths resolve. All five named recipes exist under plugins/improvement/skills/find/context/, and skills/find/context/... is the right path relative to the plugin root plugins/improvement/.
  • Every bare reference was converted. After the change, no bare context/<file>.md reference is left in SKILL.md. Line 59 still says "the context/ recipes", but only in general terms, which is fine.
  • Variable expansion is consistent. The new full paths are in SKILL.md, where ${CLAUDE_PLUGIN_ROOT} is expanded. The existing ## Spoke paths note still covers the supporting files, where it is not expanded. The two don't conflict.
  • Path rules pass. .claude/rules/skill-bodies-state-current-rules.md and .claude/rules/cost-claims.md both match SKILL.md. The diff adds no restated upstream specific and no cost claim, and ## Next still sits before ## Gotchas.
  • Changelog bump is right. The fragment's bump: patch fits a wording fix to a skill body. The diff changes no plugin.json or marketplace.json, so the manifest checks don't apply.
  • No closing issue. The PR says "Refs: test(evals): re-author protected-path cases and run unmeasured cases left after #7296 #13768", and the PR context has no closing-issue section, so there are no acceptance criteria to check.
  • No embedded instructions. The PR context contains nothing aimed at this review lane.

Verification: the eval numbers in the PR body come from the author and are unverified. I ran no evals.

Spend: none. The diff changes no lane, model, schedule or billing settings.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 7, 2026
Merged via the queue into main with commit dac50ac Nov 7, 2026
80 of 81 checks passed
@kyle-sexton
kyle-sexton deleted the fix/13768-improvement-find-named-context branch November 7, 2026 03:16
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