Commit 5216e6a
fix(rules): CROSS-PARTY-001 normalize spelled-out 'Incorporated' & 'LLLP' party suffixes (v4 cross-doc 1.3.0)
What was wrong: the cross-document party-name normalizer stripped "Inc." and
"Corporation" but not the spelled-out "Incorporated" (nor "LLLP"), so
"Acme Incorporated" and "Acme, Inc." canonicalized differently and
CROSS-PARTY-001 missed the same-entity-different-legal-name drift it exists to
surface.
How it was fixed: added "incorporated" and "lllp" to the entity-suffix strip list
in normalizePartyName. "incorporated" is ordered so it wins over the "inc"
alternative (whose trailing word-boundary fails inside "incorporated").
Proof: a new regression test pins "Acme Incorporated" vs "Acme, Inc." now being
recognized as the same entity across two documents. Full suite green (5688
passing). The shared V4_VERSION bump drifts the bundle consistency goldens; a
finding-level check confirms zero drift in finding_count / finding_rule_ids across
every bundle fixture (prospective — no fixture uses a spelled-out suffix;
version-only hash bump).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 4c0f402 commit 5216e6a
17 files changed
Lines changed: 34 additions & 16 deletions
File tree
- src/engine/consistency/rules/v4
- tests/golden/v4/bundle-expected
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
106 | 124 | | |
107 | 125 | | |
108 | 126 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
0 commit comments