Skip to content

2.1 Hard validation gates

2. Validation / PL2-hard-validation-gates

2.1 Hard validation gates (max 2)

violations of deterministic code-quality rules (lint, typecheck, format; e.g. Biome, ESLint, SwiftLint) cannot reach the protected branch undetected. Enforcement happens at multiple checkpoints with the same ruleset across layers, so no surprise surfaces between them, and bypassing an earlier checkpoint is caught by a later one


Levels

Level 0

No enforcement at any checkpoint; violations routinely reach merge

Level 1

Partial enforcement โ€” rules enforced at one checkpoint (typically CI at merge) but not at earlier ones; a developer bypassing that checkpoint can land violations before review

Level 2

Enforcement at multiple checkpoints (commonly pre-commit hooks + CI, also valid: pre-push + CI, merge queue + CI, pre-receive server-side hook + CI) with consistent ruleset across layers; bypass at any earlier checkpoint is caught by a later one, so violations cannot reach the protected branch undetected

Level 3

Not applicable โ€” this criterion caps at level 2.


Recipes that advance this criterion

No recipes yet.