Skip to main content

Module sharing

Module sharing 

Source
Expand description

Model weights over the artifact exchange, redistribution fail-closed (ADR-099 section 6; ADR-101 section 3).

A model’s shards enter the exchange only through seed_model, and only when the attested manifest says redistributable = true and the exchange’s RedistributionPolicy allows every shard for Audience::Seed. The grant carries GrantOrigin::OptIn in that case and GrantOrigin::NotFlagged otherwise, so the default crate::mesh_swarm_state::ManifestPolicy vetoes an un-opted-in model for every audience. Models have no Cognitum provenance.

Seeding reads the adopted files and stores their pieces in the artifact store, so it is the one place weights are duplicated on disk. It is an explicit, opted-in act; adoption itself never copies.

Structs§

SeededModel
A model seeded into the exchange.

Enums§

SeedModelError
Why a model was not seeded.

Functions§

grant_origin
Licence standing of a model, from its signed manifest. Fails closed.
seed_model
Seed an adopted model into exchange, if and only if sharing is allowed.
sharing_for
The sharing stance the policy takes for this model: Allowed only when the policy allows every shard to be seeded.