Commit ee13ced
Repair state-conditioned shocks per PR #405 rounds 2-3 review
Round-2 findings:
- F1: broadcast pruner and usage validator missed the metadata-declared
`state_conditioned.on` dependency, rejecting legitimate models. Both passes
now register the conditioner explicitly (pruner keeps it only when a retained
or reachable-target process reads it; validator credits it model-wide).
- F2: `_validate_conditioned_grid_is_fixed` now rejects singleton and
non-strictly-increasing node axes.
- F4: added AR(1) simulate-side regression (innovation std tracks conditioned
sigma) and a through-time timing test.
Round-3 finding:
- F1 (cross-regime): a conditioned process in a target regime creates a
dependency in every source regime that can reach it (per-target transitions),
evaluated at the source's own `on` state. Pruner keeps the conditioner for
reachable targets; validator credits it via the model-wide set. Added three
cross-regime regression tests (build + solve + semantic).
F3 accepted as a documented v1 limitation (cross-regime code agreement).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DW9D1WhLN8JhhiEPCScbaw1 parent ca3a170 commit ee13ced
4 files changed
Lines changed: 681 additions & 0 deletions
File tree
- src/_lcm
- regime_building
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
257 | 258 | | |
258 | 259 | | |
259 | 260 | | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
260 | 285 | | |
261 | 286 | | |
262 | 287 | | |
| |||
285 | 310 | | |
286 | 311 | | |
287 | 312 | | |
| 313 | + | |
288 | 314 | | |
289 | 315 | | |
290 | 316 | | |
| |||
306 | 332 | | |
307 | 333 | | |
308 | 334 | | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
309 | 343 | | |
310 | 344 | | |
311 | 345 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
264 | 265 | | |
265 | 266 | | |
266 | 267 | | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
267 | 275 | | |
268 | 276 | | |
269 | 277 | | |
| |||
272 | 280 | | |
273 | 281 | | |
274 | 282 | | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
275 | 334 | | |
276 | 335 | | |
277 | 336 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1680 | 1680 | | |
1681 | 1681 | | |
1682 | 1682 | | |
| 1683 | + | |
| 1684 | + | |
| 1685 | + | |
| 1686 | + | |
| 1687 | + | |
| 1688 | + | |
| 1689 | + | |
1683 | 1690 | | |
1684 | 1691 | | |
1685 | 1692 | | |
| |||
1712 | 1719 | | |
1713 | 1720 | | |
1714 | 1721 | | |
| 1722 | + | |
| 1723 | + | |
| 1724 | + | |
| 1725 | + | |
1715 | 1726 | | |
1716 | 1727 | | |
1717 | 1728 | | |
| |||
1735 | 1746 | | |
1736 | 1747 | | |
1737 | 1748 | | |
| 1749 | + | |
| 1750 | + | |
| 1751 | + | |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
| 1755 | + | |
| 1756 | + | |
| 1757 | + | |
| 1758 | + | |
| 1759 | + | |
| 1760 | + | |
| 1761 | + | |
| 1762 | + | |
| 1763 | + | |
| 1764 | + | |
| 1765 | + | |
| 1766 | + | |
| 1767 | + | |
| 1768 | + | |
| 1769 | + | |
| 1770 | + | |
| 1771 | + | |
| 1772 | + | |
1738 | 1773 | | |
1739 | 1774 | | |
1740 | 1775 | | |
| |||
0 commit comments