Skip to content

Approval policy has no stricter rule for the files that set the rules

Partialmedium severity · reads .yml .yamlBeta

This policy has an easy path, and no stricter rule names the agent's instructions, its settings or CI. The policy file, a root REVIEW.md and CODEOWNERS always need a person; CLAUDE.md, AGENTS.md, .mcp.json, the rest of .claude and .github do not unless a rule says so. A change there changes what every later review checks (CWE-284). When Lintsure finds this, it marks it as Partial: it may be fine, depending on context only you can confirm.

What it looks like

A line Lintsure flags in its own test app:

// .claude/approvals.yml
rules:

How to fix it

Add a rule for the files that steer agents and reviews, for example paths: ["**/.claude/**", "**/CLAUDE.md", "**/AGENTS.md", ".mcp.json", ".github/**"] with nested: inherit and verdict: { claude: comments, seats: [{ count: 1, from: [humans, "!pr/authors"] }] }.

Through a coding agent, Lintsure suggests the change and waits. Nothing is edited until you approve it.

Controls it relates to

What the framework asks

OWASP Top 10 A02:2025: Security Misconfiguration

Safe settings by default: debug off, real host names, strong secret keys, cookies marked secure, XML parsers that don't load outside files, and errors that don't reveal internals.

Evidence a reviewer may ask for: Production configuration and a hardening checklist.

OWASP LLM Top 10 LLM03:2026: Excessive Agency

Tools and permissions given to an agent should be the minimum it needs, with a person approving anything risky.

Evidence a reviewer may ask for: A list of the tools each agent can call and which need approval.

AST03: Over-Privileged Skills

A skill should get only the tools, files and network access its job needs. Open shell access makes every other limit moot.

Evidence a reviewer may ask for: The permissions each skill declares, and why it needs them.

Summaries are our own reading of the public texts, not the official wording.

Check your code for this

Runs on your machine. Your code is never uploaded.

npx lintsure scan

Quickstart · Use it in Claude Code or Cursor

This rule is in Beta: its mapping to framework controls is our own reading of the public texts, not independently reviewed. Lintsure is a readiness tool, not an audit or legal advice. A finding, or the lack of one, doesn't make you compliant. Disclaimer

We improve these rules all the time. If you see a false alarm, a missed problem or anything that could work better, tell us in a review and we will use it to improve your experience.

Related rules

Did this rule flag something that's fine, or miss a real problem? Tell us on GitHub. Every report becomes a test case, so the same mistake can't come back.