Guard rails for modifying OMEGA mathematical kernels (SRL, TDA, Epiplexity).
omega_core/omega_math_core.py or omega_core/omega_math_vectorized.pyconfig.py parameters that affect mathematical outputcalc_compression_gain() must never return negative values. If model cost exceeds data cost, return 0.calc_topology_area(x, y) reversed == -calc_topology_area(x_rev, y_rev). Green's theorem is antisymmetric.| Floor | Config Path | Purpose |
|---|---|---|
sigma_floor | L2SRLConfig.sigma_floor | Prevents sqrt(Q/D) / 0 |
depth_floor | L2SRLConfig.depth_floor | Prevents division by zero depth |
price_scale_floor | L2TopologyRaceConfig | Prevents topology normalization explosion |
min_trace_len | L2EpiplexityConfig | Prevents OLS on < 3 data points |
Before merging ANY math change:
python3 -m pytest tests/test_omega_math_core.py -v # Must be 28/28 pass, <1s
omega_core/omega_math_core.py — scalar kernels (source of truth)omega_core/omega_math_vectorized.py — batch kernels (must match scalar behavior)omega_core/omega_math_rolling.py — rolling window variantstests/test_omega_math_core.py — invariant tests