From fbdc77172b64745c342e3933920a1211cef20c1e Mon Sep 17 00:00:00 2001 From: Joseph Magly <1159087+jmagly@users.noreply.github.com> Date: Sat, 15 Aug 2026 19:15:09 -0400 Subject: [PATCH] test: stabilize coordinate permutation oracle --- tests/test_whitened_svd_oracles.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_whitened_svd_oracles.py b/tests/test_whitened_svd_oracles.py index dff7815..b7ace01 100644 --- a/tests/test_whitened_svd_oracles.py +++ b/tests/test_whitened_svd_oracles.py @@ -189,7 +189,10 @@ def test_feature_coordinate_permutation_round_trips_through_inverse_mapping() -> feature_permutation = torch.tensor([2, 0, 3, 1]) extractor = WhitenedSVDExtractor( regularization_eps=REGULARIZATION_EPS, - min_variance_ratio=0.0, + # The fixture has one mathematically null covariance dimension. Apply + # the production-default truncation policy so this metamorphic oracle + # compares the well-defined retained subspace across LAPACK backends. + min_variance_ratio=0.01, ) original = extractor.extract(_as_public_samples(harmful), _as_public_samples(harmless), 3)