← Playbook
02 · Shift-left quality gates

Catch it in review, not in production.

Tags, data quality rules and secret scans run on every change, before anyone can merge it.

The problem

Data quality and governance checks usually run after data lands, so problems show up in dashboards and audits, days after the change that caused them.

The move

  1. 1Write the rules downRequired tags, data quality expectations and naming standards live next to the code.
  2. 2Check every changeCI runs them on every pull request, along with secret and broken-reference scans.
  3. 3Route by riskRiskier changes automatically get a more senior reviewer.
  4. 4Block the mergeNothing merges until the checks pass. No exceptions by email.

Why it works

  • Problems surface where they are cheapest to fix: in review, with the author still in context.
  • Standards are enforced the same way for everyone, without anyone policing them.
  • Reviewers spend their time on design, not on spotting missing tags.

When not to use it

Coming soonThe checks I would not put in the merge path, and why.

Seen in