AID-H-021.001
High
Client-Side Configuration Enforcement
The approval file leaves the laptop at the commit. A pre-commit hook that inspects the staged content can refuse a commit that includes
.claude/settings.local.json or an agent settings file with a literal credential, and it also runs when Claude Code creates the commit in that clone. A local hook can be skipped or missing in another clone, so it is fast feedback, not the final gate. That gate is a required CI job on the protected branch: it fails when the local file is tracked, and it validates the shared .claude/settings.json against a schema and policy that allow no literal credential in permission rules or env. The framework's examples target other files, so this case needs its own path and password-in-command rules. A branch pushed to a public repository is readable before the job runs.