fix(trace): exclude generated files from the AI-generated line counts

Merged
JI
1mo ago
+177-78

The AI coding session evidence already leaves out files that .gitattributes marks linguist-generated from files and from its line and file counts. The ai_generated_lines_added and ai_generated_lines_removed totals still included them. So when the agent ran a generator such as wire or make generate, the generated diff counted as lines the AI wrote.

The trace state now keeps the lines of the agent edits per file. At push time, the totals leave out generated files with the same matcher that filters the code changes. The trace README is updated to match.

Fixes PFM-8130. Related to spec issue-3639 (R-011, D-011).

AI disclosure: this change was developed with the assistance of Claude Code.