I use AI mostly for writing docs and always make sure the documents have an "AI generated content" notice as the first thing readers see.
In the codebase itself I add in-line comments pointing to precisely where AI was used.
AI has proven very useful for providing extensive in-line comments too as my employer is pushing hard for our Ops guys to learn IaC despite the vast majority having zero-to-none development experience.
Contextual comments explaining _what, why & how_ loops/conditionals/etc. work has (so far anyway) proven quite successful.