Conversation
…ry copy agrees (#987) The Skill check read the first copy T3's skill list keeps. The list passes over a copy it cannot parse and takes the next one of that name, and Claude Code's own order is not checked against T3's, so Claude Code could run a copy the check never read. Now a name found in more than one of the managed, config and project skill folders is refused (enforce) or noted (advise) unless every copy reads and runs the same model and effort. The refusal names each copy and what it runs. Plugin skills (prefixed names) and launch-arg folders are not scanned. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #987 (item 5, plus the part of item 2 that covers the places T3 reads).
What changes
The model policy's Skill and slash-command check used to read the first copy of a skill that T3's skill list kept. Two gaps came from that:
Now, for a skill name without a plugin prefix, the check looks in all three folders. When the name is in more than one of them, the check passes only if every copy can be read and runs the same model and effort (an alias and its full id count as the same). Otherwise it fails closed:
enforcerefuses andadviseruns with a note. The refusal names each copy and what it runs, so a person can see which file to fix. A folder without a SKILL.md is not counted. All the code is in fork files (apps/server/src/fork/claudeAgentModelPolicy.ts). No upstream file changes.Left on #987
.claude/commands, parent folders,--add-dir/--plugin-dir). They are still refused underenforce, as before.Tests
apps/server/src/fork/claudeAgentModelPolicy.test.tshas a new case, "a name in two places T3 reads runs only when every copy reads the same", which fails on main:advise.Each mutant of the fix (the managed folder, scanning other copies, the "same" test, the name match) makes the test fail.
vp run check:changedpasses: format, lint, knip, typecheck and tests.🤖 Generated with Claude Code