Verify Custom Rules
Workflow
Help the user verify the current Safety Net custom rules config.
- Run
npx -y cc-safety-net --verify-configto check the current validation status. - If validation succeeds, report the success and the validated config path or paths shown by the command.
- If validation fails, show the exact validation errors.
- Run
npx -y cc-safety-net --custom-rules-docand use the schema documentation as the source of truth for fixes. - Inspect the relevant config file before proposing edits:
- User config:
~/.cc-safety-net/config.json - Project config:
.safety-net.json
- User config:
- Suggest the smallest schema-compliant fix that preserves the user's intended restrictions.
- Ask for confirmation before editing any config file.
- After fixing, run
npx -y cc-safety-net --verify-configagain. - Confirm the final validation result and summarize the changes made.
Rules
- Do not delete failing rules unless the user explicitly asks for removal.
- Do not weaken or bypass built-in Safety Net protections.
- Treat invalid configs as urgent because Safety Net ignores the entire custom config and uses built-in rules only.