Similarity Gates Approve Reversals: A Validity Audit of Embedding-Cosine Thresholds in Agent Systems
Comparing two blocks of text by embedding cosine and firing below a fixed cutoff is standard plumbing — deduplication filters, semantic caches, drift guards, answer graders — and it gets read as asking whether the meaning still holds. It answers a different question: how much of the wording changed. Reversing an instruction takes one word and leaves roughly 72% of the tokens in place, while an honest restatement replaces nearly all of them, so the gate runs backwards: the audited production guard caught 0 of 56 meaning-breaking edits and scored "withhold the study drug" against "administer the study drug" at 0.9608 on a 0.60 trigger. Add pairs that share wording and flip the decision to the gate's test suite — four of four suites the author opened had none — and stop reading a threshold on it as a check on meaning.