# Pre-commit gates. Fast checks only (<5s on typical change).
# Manifest: .ai/scripts/gates/_manifest.yaml — edit there, not here.
# Bypass: bash .ai/scripts/gate_bypass.sh <gate> "<reason>"

export GATE_TRIGGER=pre-commit
bash .ai/scripts/gates/run_gates.sh pre-commit

# Role-specific pre-commit hooks (D22). Each self-scopes to a no-op when the
# staged set is not relevant to it, so ordinary commits are untouched.
bash .claude/hooks/dev-mini-qa.sh
bash .claude/hooks/test-writer-pre-commit.sh
bash .claude/hooks/test-writer-pre-handoff.sh
