Good. Now let me trace through each review finding:
Finding 1 (Copilot): "Agent removal attribution uses unfiltered global user removals"
Finding 1 (Cursor Bugbot): Same issue — "Agent removal attribution uses unfiltered global user removals"
This was the original bug in the first commit. The second commit (aff8143ed) already fixed this by adding UserRemovedPerFile and using classifiedEdits.removedFromAgentFiles (per-file filtered) instead of global accumulatedUserRemoved. Looking at computeAgentDeletions on line 412 — it takes accumulatedRemovedToAgentFiles (which is classified.removedFromAgentFiles, filtered to agent files only). Already fixed. These comments are stale — they reference the first commit.
Finding 2 (Copilot): "agentRemovedInCommit over-reports if user reintroduces deleted lines"
Looking at computeAgentDeletions line 422: agentRemovedInCommit += min(removedBaseToShadow, removedBaseToHead). This clamps per-file to the minimum of base→shadow and base→head removals, which is exactly the fix Copilot is requesting. Already fixed in the second commit.
Finding 3 (Copilot): "Non-agent removals not included in totalLinesChanged"
Looking at line 250: totalLinesChanged := agentChangedLines + pureUserAdded + totalHumanModified + pureUserRemoved + nonAgent.userRemovedFromNonAgentFiles. The userRemovedFromNonAgentFiles is included. Already fixed in the second commit.
Finding 4 (Copilot): "Breaking semantic change to agent_percentage field"
This is a real concern. The PR changes agent_percentage from "share of net additions" to "share of total changed lines" and adds MetricVersion: 2 to distinguish them. Let me check if there's downstream consumption.