Let a later observation of a subagent file replace its baseline

Commit

Soph2d ago

apply kept the first baseline recorded for a pending subagent file. A scan reports a file only on new subagent evidence after its scan position, so a later observation means the subagent wrote the file again (a build appending to a log, a second Edit after a turn boundary), and the stale baseline counted those lines as user work. The later baseline now wins; a user edit made between two of the subagent's writes to the same file counts as the subagent's.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com Entire-Checkpoint: 01M4359214QYBK25DXG7N2QGT8

Checkpoints

Fix Claude Code Subagent Attribution Issues

Claude CodeOpus 5.5
View session
Checkpoint 1