From 75f09fd7550b3120a36e889c72fe229fb9b72662 Mon Sep 17 00:00:00 2001 From: Ronald Tse Date: Thu, 20 Aug 2026 21:31:53 +0800 Subject: [PATCH] rename: SECRYST_INDEX/SECRYST_CACHE env vars + interscript-ml index URL Cross-registry symmetry per the rebrand: bare secryst names everywhere; the canonical index lives in interscript/interscript-ml. --- runtime/README.md | 19 +++++++------------ runtime/src/interscript_ml/registry.py | 2 +- 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/runtime/README.md b/runtime/README.md index 0bca2e0..6b46082 100644 --- a/runtime/README.md +++ b/runtime/README.md @@ -1,17 +1,12 @@ -# secryst (Python crystal) +# interscript-ml (Python runtime) -The Python crystal — reference implementation of **IMF v1** model zips -and the `models.yaml` index (the **interscript-ml** contract), the -phonological layer of Interscript. The Ruby (`secryst` gem) and -TypeScript (`npm i secryst`) crystals are diffed against this one on -shared golden sets. This crystal owns golden generation and numerical -adjudication for the family. - -Home repo: https://github.com/secryst/secryst-py (this copy in -ml-models/runtime is the frozen origin; the package now lives there). +The reference Python runtime for **IMF v1** model zips — the phonological +layer of Interscript. The Ruby (secryst gem) and TypeScript +(@interscript/ml) runtimes are diffed against this one on shared golden +sets. ```python -from secryst import Model +from interscript_ml import Model model = Model.load("khm-latn-1.0") # id: index resolve -> download # -> sha256-verify -> cache -> load @@ -30,7 +25,7 @@ model = Model.load("khm-latn-1.0.zip") # or: a local zip path directly - Dynamic fetch per the `models.yaml` contract (shared with the Ruby and TypeScript runtimes): resolve id -> channel URL, download to temp, verify whole-file sha256 against the index, atomically install into - `~/.cache/secryst/models//`. Overrides: + `~/.cache/interscript/models//`. Overrides: `SECRYST_INDEX` (URL or path), `SECRYST_CACHE`. Install: `pip install ./runtime` (from the ml-models checkout) or diff --git a/runtime/src/interscript_ml/registry.py b/runtime/src/interscript_ml/registry.py index 7c14d8c..aae6c28 100644 --- a/runtime/src/interscript_ml/registry.py +++ b/runtime/src/interscript_ml/registry.py @@ -19,7 +19,7 @@ import yaml DEFAULT_INDEX_URL = ( - "https://raw.githubusercontent.com/interscript/ml-models/main/models.yaml" + "https://raw.githubusercontent.com/interscript/interscript-ml/main/models.yaml" ) ENV_INDEX = "SECRYST_INDEX" ENV_CACHE = "SECRYST_CACHE"