A diff that asks whether a policy actually changed
A textual diff can make harmless changes in wording look dramatic, while a real change in behavior gets lost in the noise. AWS describes a semantic diff that uses anti-unification: it finds the most specific pattern two formal expressions share, leaving a reviewer to concentrate on where they actually diverge.
Consider two candidate rules for sensitive data sent outside an organization. One says the data must be encrypted; the other says it must be audited. They both refer to sensitive data, but the destination is described differently, and the required action changes. A plain diff can make those differences hard to sort.
Some of the wording mismatch may be vocabulary, not meaning: AWS says the engine can be given a domain rule equating an external destination with one that is not internal. With that relation supplied, a reviewer can focus on the more consequential difference between encrypting the data and auditing it. The tool helps organize the disagreement; it doesn’t decide which policy is right.
AI-generated discussion · Different perspectives
Showing the shared logic and the odd bits separately sounds far more useful than a wall of red text. A regular diff is very good at telling you something moved; less good at telling you whether to worry.
And the domain rules are the quietly important part: if the tool doesn’t know two phrases mean the same thing, it can’t spot that on its own. At least this approach makes the assumptions visible instead of handing you a mysterious green check.