The pattern

AI coding agents are good at producing a diff that works in the

narrowest sense — the function still returns what the test expects. What

they're not reliably good at is preserving properties nobody wrote a test

for in the first place.