- ensure_index_fresh now rebuilds on ESTIMATOR_INDEX_VERSION mismatch,
so a schema bump actually invalidates the cached pickle.
- Corrupt meta.json rebuilds instead of crashing.
- Index builder no longer falls back to the whole cache dict when
per_prefix is missing — that previously treated top-level keys
(algo_version, created_at) as prefix stats.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Offline pipeline: snapshot_download the HF community dataset, parse
config/pair/lora JSONs into a phase1 dict per combo, featurize via
EstimatorFeatureExtractor, z-score-normalize, fit NearestNeighbors
(cosine), pickle to disk with meta.json sidecar recording the
hf_commit_sha, index version, feature dim, and build timestamp.
Compound arch filenames like `sd_unet` are parsed as a two-token
suffix so the leading token isn't mistakenly captured as a hash.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>