Getting Started
Week 1: Add dependency layering rules to your existing linter. Define which directories can import from which.
Week 2: Add 3–5 vibecoded lint rules based on your most common agent mistakes.
Month 1: Add structural tests for your top architectural invariants.
Month 2: Add LLM-based auditing for subjective quality checks on PRs.
Measuring Effectiveness
Track the violation rate per layer. If pre-commit catches 60% of violations, CI catches 30%, and only 10% reach human review, your stack is working well. If 50% still reach human review, your earlier layers need more rules. The goal is to shift violations left — catch them earlier, cheaper, faster.
Key insight: Your enforcement stack is never done. Every agent mistake that reaches production is a missing rule somewhere in the stack. Add the rule, and that class of mistake never reaches production again. Over time, the stack becomes comprehensive.