feat(ai): add verified local model artifact store - #106
Merged
McanKul merged 2 commits intoSep 11, 2026
Merged
Conversation
Content-addressed blobs under an injected root. SHA-256 must match before a model is ready. Interrupted staging and truncated files stay unlistable. Duplicate imports reuse one blob. No HTTP, no auto-download, no Tauri commands.
Rename-over the dest manifest instead of deleting it first. The no-GGUF walk ignores gitignored bundle trees so local prepare scripts do not fail cargo test.
7 tasks
McanKul
approved these changes
Sep 11, 2026
McanKul
left a comment
Owner
There was a problem hiding this comment.
Thanks — the artifact store is bounded, checksum-verified, atomic at the ready-manifest boundary, and remains fully offline.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a content-addressed local model store next to the #81 Fake adapter. Install is path / reader only: stage → SHA-256 verify → commit. Partial or truncated files never appear ready. The same bytes imported twice share one blob. Remove deletes that model’s files. No HTTP, no catalog, no auto-download, no Tauri commands.
Fixes #83.
Why
Parent #76 needs verified on-disk artifacts before Settings (#84) can install or load a model. Checksum identity keeps disk use honest and interrupted installs out of
list_ready.Validation
cargo test --manifest-path src-tauri/Cargo.toml --lib store_(9 passed)cargo test --manifest-path src-tauri/Cargo.toml --lib ai_(20 passed, Fake keep-green)npm test/npm run typecheck/cargo test --libPrivacy Checklist
sha20.10, MIT/Apache-2.0)