Repository navigation
edge-proc 0.4.0 — fail-closed offline model contract
EdgeProc 0.4.0 makes the documented cold-device offline contract true and installable.
The breaking change is deliberate: TextEncoder() no longer downloads an embedding model implicitly. A device must use a local model (EDGEPROC_MODEL_PATH), or a build machine must explicitly opt into a one-time fetch (EDGEPROC_ALLOW_MODEL_DOWNLOAD=1). Models can be saved, shipped inside the same signed content-addressed bundle as the index, and verified before use.
Highlights:
- Fail-closed local model resolution before any network-capable loader is constructed.
- Optional SHA-256 pinning for locally supplied models.
TextEncoder.save(path)andedgeproc route --model-pathcomplete the provisioning loop.- The realistic quickstart now proves offline search from a signed bundle and then proves the missing-model guard refuses without fetching.
- 390 tests with 99.47% branch coverage; 24/24 adversarial guard mutations caught.
Supply-chain evidence:
- Source/tag:
45c88f57952f95b077d731bae81b536effd53e55/v0.4.0 - PyPI publish: GitHub OIDC Trusted Publishing via
.github/workflows/publish.yml - PEP 740 publish attestations on both distributions
- Wheel SHA-256:
343d2d6a55a8f951f50eec68029858b35698ff648c8e13c7cd74f960d4e74648 - Sdist SHA-256:
d66836afdff71315db1d0777c4e70ce35dedd4fde42e8608f93a2b6b0ea46d99
Install:
pip install 'edge-proc[localvec,bundles]==0.4.0'See CHANGELOG.md for the full compatibility and migration notes.