3 production incidents we traced back to Copilot-generated code — and what they had in common

Posted by Ok_Stretch_6623@reddit | Python | View on Reddit | 7 comments

Incident 1: Stripe signature not verified → double charges
Incident 2: Token expiry used >= instead of > → session bypass
Incident 3: Exception swallowed silently in auth path → failures invisible

What all 3 had in common:
— All in auth or payments path
— All looked correct on review
— All passed existing tests
— All were AI-written with no human writing equivalent code nearby

What we changed afterward... [continue the story]