Claude Code will get ur test suite to green. that is what u asked for. it is not the same as the feature doing the right thing, and the gap between those two is where most of my rework came from.
made a short on the idea behind it.
in systems there are two separate numbers. availability is can u reach it. reliability is does it do the right thing when u do. a service can be up 99.999% and still write bad rows all day, and no health check will say a word.
same shape in a codebase. the suite passes, the types check, and the behaviour is wrong.
what worked for me is writing the correctness check into the CLAUDE.md as a plain sentence before any code. something like every saved order must have a matching payment row. then the agent has a definition of right to build against, instead of a definition of green. whats ur equivalent, do u write the acceptance rule down anywhere the agent can read it.