james.maes
|
4d52126ade
|
feat(06-02): ModelManifest SHA-256 verifier + fetch script (Task 1)
- ModelManifest.verify(modelDir:) reads MANIFEST.json via JSONDecoder,
checks SHA-256 of each ONNX file via CryptoKit; fail-closed on mismatch
- WakeWordError: modelHashMismatch / missingModel / ortInitFailed
- Resources/models/openwakeword/MANIFEST.json placeholder (hashes populated
by scripts/fetch-openwakeword-models.sh on first run)
- scripts/fetch-openwakeword-models.sh: downloads 3 ONNX files from
dscripka/openWakeWord v0.5.1, computes and writes SHA-256 to MANIFEST.json
- .gitignore: add Resources/models/**/*.onnx (large gitignored binaries)
- ModelManifestTests M1..M4: all pass (4/4 GREEN)
|
2026-04-27 11:42:21 -05:00 |
|