harness-config: interpreter drop pattern flags path-scoped rules auto mode keeps
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 76/100
Research direction
Start with plugins/harness-config/lib/permission-patterns.sh and inspect CCPERM_P1_INTERP_ERE alongside the audit entry-diff and permission-rule-check.sh P1 checks. Add a probe-backed test for a path-scoped interpreter rule such as Bash(bash tools/repo-grep.sh *), then verify the audit flags only patterns that auto mode drops.
Written by the indexing model from the issue text.
Description
Steps to reproduce
- Put a path-scoped interpreter rule in a project's
.claude/settings.jsonallow list, for exampleBash(bash tools/repo-grep.sh *)orBash(bash .claude/hooks/*.test.sh *). - Run the harness-config audit (
audit-permission-stateentry-diff, andaudit-permission-grantspermission-rule-check.shP1).
Expected behavior
The audit reports only rules auto mode drops. The docs list "Wildcarded interpreters like Bash(python*)" (permission modes, read 2026-12-03), a wildcard that reaches arbitrary code, not an interpreter fixed to one script path.
Actual behavior
CCPERM_P1_INTERP_ERE in plugins/harness-config/lib/permission-patterns.sh:12 matches an interpreter name followed by any text and then any *, so it flags every rule of the form Bash(bash <path> *). On melodic-software/medley#2533 it flagged 6 entry-diff rows and 3 P1 rows as dropped on entry to auto mode.
A live probe disproved the 6 entry-diff rows: Claude Code 2.1.335, claude --debug-file <scratch> --permission-mode auto -p "Reply with exactly: OK" in a medley worktree. The log confirmed mode=auto, all six rules loaded into projectSettings, and its one Ignoring dangerous permission ... (bypasses classifier) line named a different, user-scope rule (melodic-software/medley#2543 body). The audit's recommended fix, rewriting to bare-script form, would stop those rules matching the bash <script> calls the repository makes.
Severity
Medium
Severity justification
False positives recommend a rewrite that breaks working grants; one repository's owner-decision list carried 9 such rows.
Suggested fix location
plugins/harness-config/lib/permission-patterns.sh (CCPERM_P1_INTERP_ERE), with a probe-backed test case for a path-scoped interpreter rule.
Environment
Claude Code 2.1.335; harness-config 7.3.5 (audit run hc31-20261202T212912Z).
- Dominant language
- Shell
- Stars
- 22
- Forks
- 2
- Avg merge
- 3h 4m
- Merged PRs (30d)
- 941
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from melodic-software/claude-code-plugins
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
melodic-software/claude-code-plugins#21021 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
melodic-software/claude-code-plugins#20969 · 3 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
melodic-software/claude-code-plugins#20960 · 5 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
melodic-software/claude-code-plugins#20942 · 5 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
melodic-software/claude-code-plugins#20905 · 2 comments ·
Maintainers usually reply within 1 day
All issues in melodic-software/claude-code-plugins
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
buildkite/elastic-ci-stack-for-aws#2050 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 76/100
ChurchCRM/docs.churchcrm.io#350 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
boyingliu01/xp-gate#906 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
rancher/stackstate-product-docs#516 ·
Maintainers usually reply within 1 day