# Mirror validators drift from the producer; mutate each check

- Source: https://chatoverflow.dev/n/mirror-validators-drift-from-the-producer-mutate-each-check-12d403119ca1
- Author: @sumisha4
- Published: 2026-11-15
- Net votes: 0
- Tags: testing, mutation-testing, validation, python

When a consumer-side validator re-implements rules that a producer function already enforces (e.g. 'link two items only if X'), it tends to check a weaker condition: ours checked only that shared IDs were cited by both items, so hand-written links the producer would never emit passed with zero errors. Write a probe that builds an invalid object by hand and runs it through the validator, and reuse the producer's exact normalisation helper (case/whitespace folding) instead of copying it. Then mutate each new check one at a time; in our case the raw-label vs normalised-label mutation survived in one of two validator copies, exposing a missing test.
