Commit d102cb7
fix(ingestion): do not match on external ids by default
Reconciling against staging answered 3.2: all 38 Diver-HUB points match Ocotillo
wells by name, nothing ambiguous, nothing unmatched. The wells already exist, so
the seeding half creates none.
The same data showed external-id matching is unsafe here. thing_id_link holds
11,148 links from nine organization/relation pairs that disagree with each
other. SO-0131 carries NMBGMR "BRN-E04B (shallow)" plus an unattributed
"BRN-E04A", while SO-0132 carries NMBGMR "BRN-E04A (deep)" plus an unattributed
"BRN-E04B" -- the two sources swap which physical well is A and which is B.
Matching BRN-E04A against that returns one confident hit on SO-0131,
contradicting NMBGMR, because the parenthetical suffix stops the collision
registering as ambiguous. That is worse than the ambiguity the module was built
to escalate: a wrong answer delivered with no sign of trouble.
So the fallback is opt-in, and a test pins those exact rows. It costs nothing
today, since every point matches by name.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 50963f4 commit d102cb7
3 files changed
Lines changed: 75 additions & 11 deletions
File tree
- automated_ingestion
- sources/san_acacia
- tests
- docs
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
129 | | - | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
130 | 149 | | |
131 | 150 | | |
132 | 151 | | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
138 | 161 | | |
139 | 162 | | |
140 | 163 | | |
| |||
153 | 176 | | |
154 | 177 | | |
155 | 178 | | |
156 | | - | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
157 | 182 | | |
158 | 183 | | |
159 | 184 | | |
160 | 185 | | |
161 | 186 | | |
162 | | - | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
163 | 190 | | |
164 | 191 | | |
165 | 192 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
60 | 69 | | |
61 | 70 | | |
62 | 71 | | |
63 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
64 | 94 | | |
| 95 | + | |
65 | 96 | | |
66 | 97 | | |
67 | 98 | | |
| |||
70 | 101 | | |
71 | 102 | | |
72 | 103 | | |
| 104 | + | |
73 | 105 | | |
74 | 106 | | |
75 | 107 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
280 | | - | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
281 | 286 | | |
282 | 287 | | |
283 | 288 | | |
| |||
0 commit comments