---
name: regression-guard
description: Before every commit — verify required functions and DOM IDs haven't been deleted
---

# Regression Guard

Run before every commit to catch regressions before they reach the repo.

1. Identify all public functions, exported symbols, and DOM IDs that were present at the start of the session (from git diff base).

2. Verify each one still exists in the current codebase:
   - Functions: grep for definition
   - DOM IDs: grep for `id="..."` or `getElementById`
   - Exported symbols: grep for export

3. For anything missing, flag it:
   - Was it intentionally removed? (Is there a task for this?)
   - Was it accidentally deleted?

4. If any unintentional deletions found: stop, report to Andrew, do not commit.

5. If all clear: proceed with commit.

Report format:
```
## Regression Guard — [timestamp]
- Checked: N symbols/IDs
- Missing (intentional): [list]
- Missing (unintentional): [list — STOP if any]
- Status: CLEAR / BLOCKED
```
