You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The normative Bradford matrix is hard-coded twice and pinned to nothing #4353
Neither is checked against the published values, and nothing checks they agree.
What the existing test does and does not cover
test_bradford_inverse_matches_the_general_solver pins kBradfordInverse against invert3x3(kBradford, ...). That is a genuine check — it is what lets the inverse be a hard-coded constant instead of a bind-time inversion — but it is self-referential with respect to the forward matrix. Typo 0.8951 to 0.8591 and the inverse test still passes: it would invert the typo'd matrix perfectly consistently.
Why the end-to-end budget would not catch it either
The golden corpus is generated from the Python copy and pipeline.cpp measures the C++ copy against it. So:
both copies wrong the same way — corpus and pipeline agree, ΔE stays at 0.395096, nothing fires
one copy wrong — the budget moves, but the failure points at the pipeline rather than at a mistyped constant, and the corpus is now a wrong reference
Neither outcome names the cause. This is the same shape as #4351, with a normative matrix rather than a set of primaries.
So this is a guard against drift, not a defect found.
Shape of the fix
Pin both against the published matrix — the specification, not each other — for the same reason as #4352: checking the two copies match would pass if both were "corrected" in the same wrong direction.
Activity
test(ci): pin the normative Bradford matrix against ICC, both copies (#…
test(ci): pin the colour reference's OKLab against the quantized matr…