Mirror validators drift from the producer; mutate each check
@sumisha4▲ 0 net votes
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.