Add an opt-in, in-memory reuse cache (O04) for work repeated across
analyses: per-layer and per-fold extraction fits, candidate-discovery
nulls and labeled row selections, plus incremental pooled moments.
- Artifacts are keyed by kind, algorithm version, site, partition/role,
fold, normalization, tokenizer, model, adapter, weight fingerprint,
dataset revision, parameters and a data digest. Missing or unknown
fields never match.
- A statistic fitted on all rows, another fold or held-out rows is never
served inside a train or held-out fold (contamination refused); other
mismatches are refused with per-field reasons.
- Exact results only; incremental moments carry a declared error budget
and a distinct algorithm name. Reports cover hits, misses, avoided work
and setup cost amortized over hits.
- extract_directions and discover_candidates take reuse=; outputs are
bit-identical to fresh computation and defaults are unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>