Add the geometry laboratory (F10), a research branch of measurement
tools that reports when its assumptions fail rather than assuming them.
- Neighbourhood stability under noise (with chance level), local PCA
rank, tangent variation between neighbouring local bases, LID
(Levina-Bickel MLE and TwoNN) with a local-regularity test, resample
stability, and raw-space versus PCA-view projection distortion. Every
nonlinear measure carries a global PCA-rank baseline.
- A rejected regularity test nulls the LID with a reason. Curvature is
always null and unsupported. Graph splits, connectivity changes,
duplicates, projection artifacts and unstable neighbourhoods are
flagged and labelled as not concept structure.
- Synthetic benchmarks with known answers (plane, sphere, circle, torus,
swiss roll, union of subspaces) and density/noise sweeps; catalog
entries checked against the code and every report's evidence.
- `obliteratus experiments geometry-lab benchmark|sweep|points` and a
Python API including verified labeled activation sets.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Finish the measurement-validity audit for the two remaining geometry
modules.
wasserstein_transfer:
- The Gaussian W2 paired sorted eigenvalues and underestimated the
distance for non-commuting covariances (0 for a 45-degree rotation of
diag(100, 1)). Compute the exact closed form with a stable PSD square
root, from each side's own mean and covariance.
- Mismatched widths gave a truncated value and failures gave 0; both are
now None with a reason. Failed map inversion no longer falls back to
the raw cross-covariance. Fidelity is exact Pearson correlation.
- The "transport map" is a ridge least-squares map, not a Gaussian Monge
map. Viability, fidelity and recommendations are labelled heuristics
and are None unless their inputs exist; refusal-removal estimates that
measured nothing are unsupported and always None.
bayesian_kernel_projection:
- Relabel as seeded random search with local perturbation over a
partial linear projection (no surrogate or kernel). The Pareto front
could keep a dominated trial on reduction ties; fixed. With no signal
or no input, best results are None with a reason instead of score 0.
Both modules now carry measurement evidence and catalog rows checked by
the registry test, and the app overview no longer claims a Monge map or
TPE optimization.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resolve additive conflicts with #442 in ci/test-risk-map.json and
docs/geometry-measurement-validity.md by keeping both sides.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Extend the measurement-validity treatment from riemannian_manifold.py
to concept_geometry, the LEACE paths, cross_layer and
wasserstein_optimal. Each audited result carries measurement evidence,
every reported field has a catalog entry, and a registry test fails
when either is missing.
- concept_geometry: the cone "solid angle" is a cap around the mean
axis, not a minimal enclosing cone; relabelled. Placeholder defaults
(cosine 1.0, specificity 1.0, linear/polyhedral flags, layer indices 0)
become None when there is too little data. The informed pipeline skips
unavailable flags; decisions on valid inputs are unchanged.
- cross_layer: persistence, adjacent cosine and angle path length are
None with fewer than two layers instead of 0.0/1.0; zero or non-finite
directions are rejected instead of reported as orthogonal.
- leace: the Fisher "erasure loss" is relabelled as variance along the
direction; exact and multiclass LEACE gain erasure oracles.
- wasserstein_optimal: a layer with no signal reported a cost ratio of 0
and could be chosen as best_layer; it is now None and excluded. The
W2 cost is exact for any direction (closed-form oracle), and the
comment calling it a bound is corrected.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Rank-k extraction stores a basis, but the gate validates only its
primary direction, so an informative first vector plus unrelated
dimensions could pass as a whole subspace.
Add a standalone, versioned subspace report (not wired into the gate):
spectrum and conditioning, PCA-threshold and entropy effective rank,
bootstrap principal-angle stability, held-out multivariate prediction
per rank, rank-matched random-subspace nulls, and joint/interaction
diagnostics for direction pairs. The verdict reports the supported rank
("supported_rank: s of k"), counting only consecutive ranks whose
held-out increment beats both their null and a minimum increment. The
report compares the primary-vector, PCA-threshold, entropy-rank and
prediction arms side by side.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>