Expand description
Model manifest, adopt-in-place and weights locality (card mesh-placement-17; ADR-101 section 3, ADR-099 section 6).
body: themodelmanifest body and the operator attestation over its hash manifest, reusing the workload package envelope, signing domain andcrate::workload_pkg::TrustAnchors.adopt: hash existing HF cache / MLX quant / GGUF / Ollama files where they lie. Nothing is copied.registry: adopted models, lazy re-hash, refusal on hash mismatch,Degradedon a detached store, andModelRegistry::resolve, the API inference-server adapters consume.advertise:model.presentandstore.tier.externalcapabilities for node facts, from existence and size checks only.locality: the pure fetch-versus-relocate decision with a transfer policy, and placer preferences / requirements.sharing(mesh feature): the only door from model weights into the artifact exchange; redistribution fails closed.
Inference-server adapters (card mesh-placement-18) consume
ModelRegistry::resolve; none of that lives here.
Re-exports§
pub use adopt::AdoptInput;pub use adopt::FileRole;pub use adopt::ScannedFile;pub use adopt::ScannedModel;pub use adopt::hash_file;pub use adopt::scan_dir;pub use adopt::scan_file;pub use adopt::scan_ollama;pub use advertise::StoreTier;pub use advertise::TierResolver;pub use advertise::model_capabilities;pub use body::KIND_MODEL;pub use body::MAX_SHARDS;pub use body::MODEL_MARKER_PREFIX;pub use body::ModelError;pub use body::ModelFormat;pub use body::ModelPackageBody;pub use body::ModelSource;pub use body::VerifiedModel;pub use body::attest;pub use body::verify_model;pub use locality::LocalityDecision;pub use locality::LocalityPlan;pub use locality::NodeHolding;pub use locality::Sharing;pub use locality::TransferPolicy;pub use locality::Unplaceable;pub use locality::decide;pub use locality::locality_preference;pub use locality::model_present_requirement;pub use check::CheckMode;pub use check::FileOutcome;pub use check::ModelCheck;pub use check::ModelState;pub use registry::AdoptedModel;pub use registry::ModelEntry;pub use registry::ModelRegistry;pub use registry::ModelTrust;pub use registry::ResolvedModel;
Modules§
- adopt
- Adopt-in-place scanning (ADR-101 section 3): hash model files where they
lie and describe them as a
ModelPackageBody. Nothing is copied or moved; the result records absolute locations only in the local registry, never in the signed body (which carries paths relative to the root). - advertise
- Storage tiers and the capabilities a node advertises for the models it holds (ADR-101 section 3; ADR-099 sections 2 and 6).
- body
- The
modelmanifest body and operator attestation (ADR-101 section 3). - check
- Checking an adopted model’s files against its attestation (stat-only,
lazy or full), and the resulting
ModelState. - locality
- Locality-aware fetch-versus-relocate decision (ADR-101 section 3, ADR-099 section 6).
- registry
- The local model registry: which attested models are adopted on this node, where their files lie, and whether they are usable right now.
- sharing
- Model weights over the artifact exchange, redistribution fail-closed (ADR-099 section 6; ADR-101 section 3).