Tiered Enforcement Architecture

Description

Community-consensus enforcement stack for complex projects that emerged from synthesis across issues #42863, #44461, #45550. Tier 1 (Hooks) handles hard constraints that must always fire: file scope limits, model-cost guards, test-skip detection, commit-message validation, dangerous-command blocking. Tier 2 (CLAUDE.md) handles session-context norms enforced when remembered: architectural decisions, workflow preferences, documentation requirements, style guides. Tier 3 (User prompt) handles per-turn task-level instructions: immediate scope, output format, current-turn constraints.

Key claims

Relations

Sources

src-20260409-370f03f56802