ai-generated code is showing up in PRs and nobody can answer the most basic review question: why did this file get touched?
the author is a model session that closed an hour ago. the PR description was written by the same agent that wrote the code so it covers the happy path and skips the wrong turns. PRs where the description doesn't match the diff take 3.5x longer to merge.
we started requiring git trailers on AI commits. pre-commit hook rejects anything flagged AI-generated without an AI-Prompt-Summary field. one line. what was the agent actually asked to do. three months later when something breaks you have a starting point instead of a cold diff.
for agents running in CI we also write a small session record: task, files it expected to touch, whether tests passed. commit it with the code.
review becomes a completely different job when that trail exists. you stop asking what this code is and start asking whether it did what it was supposed to. way faster.
anyone actually enforcing this or does your team just wing it?