Commit 2501f1e
test(auto-eval): cover legacy from_dict payload without ef_cqs_strict
Address review comment #4 (Minor) on PR #764 Sub-project A. The backward-
compat behavior — old ledger/graveyard JSON written before this PR must
reload with ef_cqs_strict defaulted to 0.0 — was correct in code (via the
valid_fields filter on both CompanyCQS.from_dict and CQSResult.from_dict)
but not pinned by a regression test. Adding the explicit test closes that
gap so a future refactor that accidentally requires the field can't
silently break re-reads of pre-Sub-A artifacts.
Test asserts on the CQSResult top level AND the nested CompanyCQS — both
dataclasses need the tolerant-load behavior for checkpoint files to round
trip cleanly.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 2f206cc commit 2501f1e
1 file changed
+52
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
420 | 420 | | |
421 | 421 | | |
422 | 422 | | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
423 | 475 | | |
424 | 476 | | |
425 | 477 | | |
| |||
0 commit comments