mirror of
https://gitee.com/ShopeX/ECShopX
synced 2026-08-05 19:55:51 +08:00
1.2 KiB
1.2 KiB
Strengthening TDD Enforcement
Ensure consistent TDD validation by preventing agents from modifying guard settings or bypassing file operation hooks.
Protect Guard Settings
Prevent agents from accessing TDD Guard's configuration and state:
{
"permissions": {
"deny": ["Read(.claude/tdd-guard/**)"]
}
}
This protects your custom instructions, guard state, and test results from unintended changes.
Block File Operation Bypass
If your settings allow shell commands without approval, agents can modify files without triggering TDD validation. Block these commands to maintain enforcement:
{
"permissions": {
"deny": [
"Bash(echo:*)",
"Bash(printf:*)",
"Bash(sed:*)",
"Bash(awk:*)",
"Bash(perl:*)"
]
}
}
Note: Only needed if you've configured auto-approval for shell commands. May limit some agent capabilities.
Where to Apply
Add these settings to your chosen settings file. See Settings File Locations to choose the appropriate location.
Need Help?
- Report bypass methods: GitHub Issues
- Share strategies: GitHub Discussions