Commit 0c6d0f2
Add VAL canonical ΔNFR validation configuration defaults
Intent: Strengthen TNFR canonical precondition validation for VAL (Expansion)
Operators involved: Expansion (VAL)
Affected invariants: #1 (EPI as coherent form), #3 (ΔNFR semantics)
Key changes:
- Added VAL configuration defaults to CoreDefaults dataclass
- Set VAL_MIN_DNFR=1e-6 (minimal threshold to reduce breaking changes)
- Set VAL_MIN_EPI=0.2, VAL_MAX_VF=10.0
- Added optional network capacity checking parameters
- Updated precondition docstring with correct default value
- Created changelog entry documenting enhancement
Expected risks/dissonances: Minimal - existing code already had validation,
only missing configuration defaults. Very low ΔNFR threshold (1e-6) ensures
backward compatibility.
Metrics: All precondition tests pass (10/10). Pre-existing operator behavior
tests failing (6) are unrelated to precondition validation changes.
Co-authored-by: fermga <203334638+fermga@users.noreply.github.com>1 parent 7d346aa commit 0c6d0f2
File tree
3 files changed
+16
-3
lines changed- docs/changelog.d
- src/tnfr
- config
- operators/preconditions
3 files changed
+16
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
157 | 164 | | |
158 | 165 | | |
159 | 166 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
525 | 525 | | |
526 | 526 | | |
527 | 527 | | |
528 | | - | |
529 | | - | |
| 528 | + | |
| 529 | + | |
530 | 530 | | |
531 | 531 | | |
532 | 532 | | |
| |||
570 | 570 | | |
571 | 571 | | |
572 | 572 | | |
573 | | - | |
| 573 | + | |
574 | 574 | | |
575 | 575 | | |
576 | 576 | | |
| |||
0 commit comments