CRAP Score as deterministic AI quality gate
AI produces code fast. The code generated is non-deterministic. Code complexity tends to increment.
Any new project started using AI, looks good. Until it doesn’t. It decays very fast without human steering.
Providing contextual style-guides, or rules as Markdown doesn’t work. You expect deterministic outputs from a non-deterministic process.
AI will either edit your current program, or extend it.
On edit, it will often reuse the same style and standards in the codebase its modifying.