Files
noteflow/.claude/hookify.block-tests-quality-bash.local.md
2026-01-02 04:22:40 +00:00

1.2 KiB

name, enabled, event, action, pattern
name enabled event action pattern
block-tests-quality-bash true bash block (rm|mv|cp|sed|awk|chmod|chown|touch|mkdir|rmdir|truncate|tee|>|>>)\s.*tests/quality/(?!baselines.json)

BLOCKED: Protected Directory (Bash)

Bash commands that modify files in tests/quality/ are not allowed.

Why This Is Blocked

  • The tests/quality/ directory contains protected test infrastructure
  • Commands like rm, mv, cp, sed, echo >, etc. targeting this directory are prohibited
  • The user has explicitly requested that agents may view but never modify these files

Allowed Operations

  • cat tests/quality/* - viewing file contents
  • ls tests/quality/ - listing files
  • pytest tests/quality/ - running the tests

Blocked Operations

  • Any command that would create, modify, or delete files in this directory
  • Redirecting output to files in this directory
  • Moving or copying files into this directory

If You Believe a Change Is Needed

Do NOT attempt to modify these files. Instead:

  1. Explain to the user what change you believe is necessary
  2. Provide your justification
  3. Wait for explicit user approval and manual intervention

This rule cannot be bypassed.