pub struct RevisionContent {
pub graph: String,
pub graph_hash: String,
pub assistant: Option<String>,
pub source_environment: EnvironmentTag,
pub pins: Vec<RegistryPin>,
}Expand description
What a revision binds: the content the address covers.
Struct serialization is field-ordered, so the canonical form is stable
across map backends — the same discipline
crate::learn::derive_candidate_id relies on. Attribution is not
identity (the crate::learn::Candidate rule): the author and the
creation instant travel on the record, outside the address, so two
registrations of the same declaration converge on one id.
Fields§
§graph: StringThe registered graph this revision serves (the GraphRegistry
name — the run’s admission target).
graph_hash: StringThe graph’s topology hash — exactly what
crate::graph::Graph::topology_hash computes and the checkpoint
header stamps. Code identity is the R0.7/R0.11 story, unchanged;
the revision records it so admission can refuse a build the
revision no longer describes.
assistant: Option<String>The assistant identity the revision binds, when the deployment serves through one. Absent when the revision binds the graph directly.
source_environment: EnvironmentTagThe environment the pin set was resolved from at creation. A revision-refresh is a new revision resolved again from its source — the staleness of the freeze becomes a journaled act, never silent drift.
pins: Vec<RegistryPin>The frozen pin set, sorted by surface (the canonical order — a set, so order is derivation, not declaration). May be empty: a graph that binds no registry artifacts pins nothing.