Add optimization O05: batched random-direction kernels that reproduce
the reference loops, plus validated low-rank sketches with an explicit
error budget. The reference loops stay the default.
- Batched gate, discovery and subspace nulls keep draw order, generator
state, norm matching, pooling, orientation folding and percentile
semantics; identical rows are projected once so exact ties survive.
Declared tolerance 1e-12 with identical decisions; observed 0.0.
- select_rank keeps both residual variance and class-contrast loss
within budget, measured exactly, and reports the variance-only rank;
it returns inconclusive when no rank qualifies.
- The sketch gate null is approximate only when the spectrum test
passes, an exact audit stays within 0.005 AUC and no threshold falls
inside the band; otherwise it recomputes exactly. It is refused in
enforce mode. The observed AUC is never approximated.
- A benchmark module reports wall time, peak memory, subspace angles,
null errors and decision disagreement (timings host-specific).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>