Commit 2df9a88
Fix findings element validation, one-to-one fallback matching
P1: Filter non-dict elements from findings list in parse_review_state().
Entries like strings or integers are silently dropped instead of crashing
downstream code that calls f.get(...).
P2: Track consumed current candidates in merge_findings() pass 2b so
two prior no-location findings can't both match the same current finding.
Ensures one-to-one matching in the reverse fallback pass.
P2: Add 2 regression tests: non-dict findings filtering, duplicate
no-location findings one-to-one matching.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent e3585eb commit 2df9a88
2 files changed
Lines changed: 48 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
391 | 391 | | |
392 | 392 | | |
393 | 393 | | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
394 | 397 | | |
395 | 398 | | |
396 | 399 | | |
| |||
669 | 672 | | |
670 | 673 | | |
671 | 674 | | |
672 | | - | |
| 675 | + | |
| 676 | + | |
673 | 677 | | |
674 | 678 | | |
675 | 679 | | |
676 | 680 | | |
677 | 681 | | |
| 682 | + | |
678 | 683 | | |
679 | 684 | | |
680 | 685 | | |
| |||
684 | 689 | | |
685 | 690 | | |
686 | 691 | | |
687 | | - | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
688 | 697 | | |
689 | 698 | | |
| 699 | + | |
690 | 700 | | |
691 | 701 | | |
692 | 702 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
767 | 767 | | |
768 | 768 | | |
769 | 769 | | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
770 | 784 | | |
771 | 785 | | |
772 | 786 | | |
| |||
1070 | 1084 | | |
1071 | 1085 | | |
1072 | 1086 | | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
1073 | 1109 | | |
1074 | 1110 | | |
1075 | 1111 | | |
| |||
0 commit comments