Uncle Bob Martin тут набросил с лопаты…
Говорит, перестал читать код, написанный агентами:
Martin surrounds his agents with what he calls extreme constraints: unit tests, Gherkin acceptance tests, QA procedures, cyclomatic complexity thresholds, module size limits, dependency structure analysis, mutation testing, and test coverage requirements. The logic is that if generated code passes all of those gates, confidence in its correctness is high, regardless of whether any human ever read a single function body.
Все это у нас есть (хотя SonarQube/flake8 и т.п. можно ужесточить) и не спасает.
Еще хвалит mutation tests:
"In the end, I have very high confidence in the code they produce because they've had to run the gauntlet of all these constraints and tests," he wrote... Mutation testing alone, which systematically mutates source code to check whether tests actually catch defects, is more rigorous than most human-led review processes at typical engineering teams.
Просим в комменты…
