Appearance
SEC437 / MD-GIT-BRANCH-ALLOWED-TOOLS
SEC437 flags AI-native markdown frontmatter when allowed-tools grants the exact token Bash(git branch:*).
Why It Matters
Blanket git branch authority lets an agent create, rename, or remove branches as part of shared default policy. In AI-native instruction files, that broadens repository mutation authority beyond a narrow reviewed branch workflow.
Trigger Shape
The rule triggers only when all of these are true:
- the file is an AI-native markdown instruction surface with parsed frontmatter
- the path is not fixture-like
allowed-toolsorallowed_toolscontains the exact tokenBash(git branch:*)
Clean Cases
These stay clean:
- more specific reviewed commands such as
Bash(git branch feature/test) - frontmatter that does not grant
git branch - fixture-like examples under test or fixture paths
Example Trigger
md
---
allowed-tools:
- Bash(git branch:*)
- Read
---Safer Example
md
---
allowed-tools:
- Bash(git branch feature/test)
- Read
---How To Fix
Replace Bash(git branch:*) with a narrower reviewed command pattern, or remove broad branch mutation authority from shared frontmatter entirely.