Problem
Package coverage is strong overall, but three long-standing core modules lag well behind (figures from the current instrument; re-baseline after the coverage-measurement fix in this milestone lands):
| Module |
Coverage |
Untested regions |
_arma.py |
53% |
property setters (phi/theta), simulation/impulse-response paths |
_lss.py |
75% |
validation branches, simulate_linear_model region, stationarity paths |
_kalman.py |
80% |
stationary_* computations, smoothing branches |
Notably, simulate_linear_model is one of the six names missing from the top-level namespace (#853) — untested code and broken export travel together.
Proposed change
Targeted tests, not ceremony: setter round-trips and seeded simulation shape/determinism checks for _arma; constructor-validation pytest.raises cases and a simulate_linear_model statistical sanity check for _lss; the stationary-solution fixed-point property (residual of Σ = A Σ A' + C C') for _kalman. Aim ≥85% per module; don't chase plotting/__repr__ lines.
Acceptance criteria
From the July 2026 technical-debt audit (AI-assisted; claims verified against 28d4b3b on 2026-07-25).
Problem
Package coverage is strong overall, but three long-standing core modules lag well behind (figures from the current instrument; re-baseline after the coverage-measurement fix in this milestone lands):
_arma.pyphi/theta), simulation/impulse-response paths_lss.pysimulate_linear_modelregion, stationarity paths_kalman.pystationary_*computations, smoothing branchesNotably,
simulate_linear_modelis one of the six names missing from the top-level namespace (#853) — untested code and broken export travel together.Proposed change
Targeted tests, not ceremony: setter round-trips and seeded simulation shape/determinism checks for
_arma; constructor-validationpytest.raisescases and asimulate_linear_modelstatistical sanity check for_lss; the stationary-solution fixed-point property (residual ofΣ = A Σ A' + C C') for_kalman. Aim ≥85% per module; don't chase plotting/__repr__lines.Acceptance criteria
From the July 2026 technical-debt audit (AI-assisted; claims verified against
28d4b3bon 2026-07-25).