pub struct DeploymentRevision {
pub revision_id: RevisionId,
pub content: RevisionContent,
pub author: ProvenanceAuthor,
pub created_at: DateTime<Utc>,
}Expand description
An immutable, content-addressed declaration of what may serve.
Immutable by construction: a changed declaration is a new id, and there is no in-place update anywhere in the control plane. A registry prompt promotion does not flow into an existing revision — the revision-refresh path mints a new one addressing the delta, a journaled act like any other.
Fields§
§revision_id: RevisionIdThe content address (derive_revision_id).
content: RevisionContentWhat the revision binds.
Who registered the revision (human:{id}, the registry commit
discipline). Mandatory — journaled with registration, because a
deployment act that cannot name its author is indistinguishable
from an untracked edit.
created_at: DateTime<Utc>When the revision was registered.
Implementations§
Source§impl DeploymentRevision
impl DeploymentRevision
Sourcepub fn new(
content: RevisionContent,
author: ProvenanceAuthor,
created_at: DateTime<Utc>,
) -> Result<Self, DeployError>
pub fn new( content: RevisionContent, author: ProvenanceAuthor, created_at: DateTime<Utc>, ) -> Result<Self, DeployError>
Mint a revision over content, attributed to author. The pin
set is canonicalized here — sorted by surface, duplicate surfaces
refused — so equal declarations converge on one address however
the caller ordered them.
Sourcepub fn verify_address(&self) -> Result<(), DeployError>
pub fn verify_address(&self) -> Result<(), DeployError>
Re-derive the content address and compare. The integrity check the store read path and admission run before anything serves or pins — a revision failing its own address is tampered evidence, refused rather than journaled.