How I Stop AI Coding Agents From “Improving” Away Important Features

https://hackernoon.imgix.net/images/2jqChkrv03exBUgkLrDzIbfM99q2-i38223l.jpeg

An AI coding agent will happily hand you a refactor that is smaller, cleaner, better named — and quietly missing a feature.

It is not being careless. It genuinely cannot tell which parts of your code are load-bearing. The append-only trigger on a ledger table looks like clutter. The NULL in a foreign key column looks like a bug. The weird cap on one code path looks like dead code left over from something.

So on this project I keep a list called preservation anchors: things that must not change, written down where the agent will actually read them. This post is about how that list works, the three levels of enforcement behind it, and the one time the whole system failed anyway — which turned out to be the most useful thing that happened.

Last time I said the next post would be about building a paywall for...

Copyright of this story solely belongs to hackernoon.com. To see the full text click HERE