Commit 95fb115
fix: fail loudly on attr_map/varid_map inconsistency, explicit not-yet-observable returns
The .get() pattern silently returned empty sets even in cases that would indicate
a population bug. Replace with direct dict access guarded only by explicit
"not yet observable" early returns (no vars of this type/attr have been seen yet
-- the invariant simply cannot be checked and passes vacuously). Inside the
iteration loop, add assertions so any discrepancy between attr_map and varid_map
fails loudly rather than being masked.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 0a1d166 commit 95fb115
2 files changed
Lines changed: 29 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1317 | 1317 | | |
1318 | 1318 | | |
1319 | 1319 | | |
1320 | | - | |
1321 | | - | |
1322 | | - | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
1323 | 1332 | | |
1324 | 1333 | | |
1325 | 1334 | | |
1326 | 1335 | | |
1327 | 1336 | | |
1328 | 1337 | | |
1329 | 1338 | | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
1330 | 1346 | | |
1331 | 1347 | | |
1332 | 1348 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
| 191 | + | |
192 | 192 | | |
193 | | - | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
194 | 202 | | |
195 | 203 | | |
196 | 204 | | |
| |||
0 commit comments