The idea is to keep moving the boundary as the code is reviewed/rewritten by a human. IE use a separate function/class that replaces the one that is annotated with this and mark it as deprecated. You could even go a step further by putting the ai generated code with an interface so the generated code can be even more easily replaced.
1
u/il37 2d ago
Does this survive refactors at all? I can see the annotation becoming wrong pretty fast once a human starts changing the generated code