Skip to main content

Module registry

Module registry 

Source
Expand description

models.yaml index resolution + cached downloads (SPEC.md §1/§2, interscript_ml/registry.py parity).

Conformance points implemented here:

  • C1 — model ids resolve against a models.yaml index of version: 1, honoring SECRYST_INDEX.
  • C2 — the whole-artifact sha256 is verified before installation AND on every cache hit; a mismatch fails loudly.
  • §2 — resolution order: verified cache hit -> download (single URL or parts in index order, each part verified as it lands) -> whole-artifact verify -> atomic rename into place.
  • renames: — WO87 target-accurate rename aliases (old id -> new id); old ids stay resolvable.

Structs§

Index
IndexEntry
Part

Functions§

cache_dir
SECRYST_CACHE or ~/.cache/secryst (the shared cache layout).
load_index
Load a models.yaml index from an http(s) URL or a local path.
resolve
§2: return a verified local zip path for model_id, downloading into the cache when needed. Never returns an unverified file.