Drift
What it is
Generated-file vs. source comparison. Re-runs the generator (or its core logic) and byte-compares against the committed output. Catches the 'I edited the source but forgot to regenerate' failure mode.
When to use it
Codegen consistency — OpenAPI → MCP catalog, OpenAPI → SDK types, Prisma schema → migrations, TS tokens → CSS.
Example gates
openapi-mcp-drift, brand-tokens-drift, prisma-schema-drift
See also
- The pyramid — where this mode sits relative to the others
- Writing a gate — how to scaffold a new gate in this mode
- Decision tree — "I just wrote feature X — what tests do I owe?"