Repository navigation
fix(playbooks): let skill-authoring load when Bash is not granted - #16230
Conversation
Lane-Activity: work-resolve-issue/resolve-issue
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. |
|
claude-security-review reviewed Security review: no findingsI read both changed files in full: the changelog fragment and the one-line edit to What the change does. In a prose code span, Security assessment.
Spend: none beyond normal lane runs. The PR plans eval runs (6 cases × 6 runs on critical-findings: 0 |
|
claude-review reviewed Code review: PR #16230, a one-character fix so
|
|
The pr-verify verifier failed head What it wrote (22 lines)This pull request leaves the merge queue, and ci-status holds it out while it carries |
Closes #16145
Summary
playbooks:skill-authoringfailed to load in every eval run that grants no Bash. Its prose shows the dynamic-context injection syntax inside a code span written as!`command`: the!sits right after whitespace, so the loader treats it as a pre-computed command, runs its permission check, and refuses the load withShell command permission check failed for pattern "!command": Permission to use Bash has been denied.The sixskill-authoring-*eval cases therefore scored a session without the skill on both sides of any compare.Fix
One character in
plugins/playbooks/skills/skill-authoring/SKILL.mdline 182: the code span changes from!commandto``!`command` ``, so a backtick, not whitespace, sits directly before the!. The rendered text still shows readers the!`command`syntax. Apatchchangelog fragment forplaybooksis under.changes/playbooks/.Which escape the loader ignores, and why: the loader recognizes the inline form only when its
!is at a line start or after whitespace. The evals validator encodes that rule atplugins/evals/skills/validate/scripts/validate-cases.py:247-258(PRECOMPUTED = re.compile(r"(?:^|(?<=\s))![^\n]+|^[ \t]*```!", re.MULTILINE)), from the 2026-11-14 compare where skill-authoring's `` !command` `` failed every load. `plugins/evals/skills/plugin-eval/SKILL.md:463` writes the same syntax as ``!`command` `` (backtick directly before the `!`) and loaded in every one of its runs in that compare. The fixed line now uses that same form.Sweep of every other tracked SKILL.md (done-when item 3):
git grep -n -Efor a!after whitespace or at a line start followed by a backticked command, plus a```!fence opener, over*SKILL.md. 98 lines in 60 files hit. Every hit is a deliberate pre-computed line: a label followed by a command with an|| echofallback (for exampleplugins/code-metrics/skills/audit/SKILL.md:15), a standalone!command line (for exampleplugins/instruction-placement/skills/audit/SKILL.md:29), a real```!block (plugins/harness-memory/skills/stateless/SKILL.md:16,plugins/knowledge/skills/course-digest/SKILL.md:13,plugins/knowledge/skills/video-digest/SKILL.md:14,plugins/performance/skills/go-faster/SKILL.md:40), or the eval fixtureplugins/session-flow/evals/recall-still-reports-reopened-bug/work-items-stub/skills/track/SKILL.md:13, whose command is the point of the stub. No other SKILL.md carries the syntax in prose, so nothing else changed.Verification
python3 -I plugins/evals/skills/validate/scripts/validate-cases.py plugins/playbooks/evals: before (origin/main content), 0 FAIL and 6 WARN linesskills/skill-authoring/SKILL.md has a pre-computed context line, which needs Bash, one perskill-authoring-*case. After, 0 FAIL and none of those 6 warnings; the remaining WARNs (sample calibration, missing samples, a Bash grant inupdate-check-runs-pack-scripts) are unchanged.scripts/check-changelog-fragments.sh --check-required origin/main: every fragment-mode plugin changed has a fragment.--check: all 5 fragments valid.scripts/check-changed-skills.sh origin/main:CHECK-SKILL skill-authoring: PASS, 0 errors, 3 warnings that predate this change (no Gotchas surface, description length, body length);update.test.shpassed.scripts/check-affected.sh --no-fetch: 16 passed, 2 skipped.git diff --check origin/main..HEAD: clean.typoson both changed files: clean.docs/review/skills-and-agents.md: the sixskill-authoring-*cases onsonnet. BEFORE is expected to show the load failure (Shell command permission check failedand no skill body in the trace); AFTER is expected to show the skill body loaded and no such line.Eval record (registered before the scored runs)
This pull request carried the
do-not-mergelabel from its opening until this record was added.Before:
4f2dcaaff35e8f9fccc6a9f4d82a5830ab17a5c5(main). After:798822b8a805f3716d1d8592e6f2d8c710176bc7(this head). The two plugin copies differ inskills/skill-authoring/SKILL.mdonly. The sixskill-authoring-*cases, 6 runs per case per side onsonnet, judge claude-opus-5-5,--ablation none, no tool grant beyond each case's ownallowed_tools: [Read, Skill], Claude Code 2.1.325. 72 runs, 4.64 USD list, no run error, none partial, nothing rerun. Figures re-derived by the hub session from the eight result files and their traces.run-validity.py --runs 6check skill loaded: PASSShell command permission check failed for patternPer case, the six scores, the mean, and grader passes of 6:
background-left-outreads-criteria0reads-criteria6,history-dropped6judgment-rule-no-reasonreads-criteria0reason-for-required-stepreads-criteria0reason-scopes-narrow-rulereads-criteria0self-evident-rule-no-reasonreads-criteria6,no-appended-reason0style-output-labeled-pairsreads-criteria6,labeled-pairs-and-rule-line1The registered bar for the after side, written before the runs, is met: every file VALID with the skill loaded in every run that calls it. With the skill loading,
reads-criteriagoes from 0 of 36 to 36 of 36. Two cases stay under 1.00 on a second grader (no-appended-reason0 of 6,labeled-pairs-and-rule-line1 of 6); those graders could not be measured while the skill never loaded, and what they show now is outside this change.One earlier batch is on record and counted on neither side: the first registration reused another compare's
--allow-tools Bash Write Edit, which grants Bash, so its 6 before-side runs loaded the skill and ran the example line as a command. The second registration dropped the grant and says why.Related
session: GitHub Support
🤖 Generated with Claude Code