Let AI fix bugs without breaking trust: reproduce with failing tests, localise with traces and git bisect, keep patches minimal, verify in isolation, detect test tampering and secrets, review and revert safely, with every step run in Python and real git.