---
name: block-ignore-preexisting
enabled: true
event: stop
action: block
pattern: .*
---

🚫 **Policy Violation: Pre-existing Issues Cannot Be Ignored**

You MUST NOT dismiss or ignore issues because they existed before your changes. This includes:
- Lint errors
- Type errors
- Test failures
- Code quality warnings
- Any other reported issues

**Forbidden phrases (what triggered this):**
- "pre-existing issue"
- "already existed"
- "not introduced by this change"
- "was there before"
- "unrelated to current changes"
- "out of scope"

**Required actions when encountering issues:**

1. **Add to task list** (preferred for complex issues):
   ```
   Use TodoWrite to add the issue as a pending task
   ```

2. **Launch subagent to fix** (for parallelizable fixes):
   ```
   Use Task tool with appropriate subagent to fix asynchronously
   ```

3. **Fix immediately** (for simple issues):
   ```
   Address the issue as part of current work
   ```

**Project policy:** ALL issues visible during a session must be either fixed or tracked. Claiming something is "pre-existing" is not a valid reason to ignore it.

**If the issue is truly out of scope:**
- Still add it to the todo list with status "pending"
- Or create a triage note in docs/triage.md
- NEVER just dismiss it
