Commit 0e45ee8
fix(pm): read a widening tell as a NET member/key delta, so a replaced line stops reading as an addition (#17216)
The two tells the card reproduced fire on added LINES and could not see that a
line replaced an equivalent one: PR #16941 (T2, a form `description:` prose
rewrite on a file with no closed set in it) and PR #16968 (T1, a Zod key whose
`.describe()` text grew, keys 32 -> 32). Neither moved an accept set, and the
C5 row neither raised could be cleared except by declaring `Clause-②: yes` on a
change that does not widen.
`tellsInFile` now reads a REPLACEMENT BUDGET per change block, per tell kind:
each removed line carrying a member or key of kind K buys one added line of
kind K the right not to be reported, spent in patch order, so a block that adds
more than it removed still reports the surplus with its own file:line. The unit
is the change block, never the hunk, so an unrelated removal three context
lines away cannot pay for a real addition. Openers and prose fragments pay for
nothing.
Claude-Session: https://claude.ai/code/session_012GKcPZbMoGq7WPzKLfRBTU
Co-authored-by: Claude <noreply@anthropic.com>1 parent 3c5f3c5 commit 0e45ee8
1 file changed
Lines changed: 270 additions & 17 deletions
0 commit comments