pub struct ArtifactCommitment {
pub artifact_id: String,
pub name: Option<String>,
pub version: Option<u64>,
pub media_kind: MediaKind,
pub bytes: u64,
pub effect_id: EffectId,
pub retention: RetentionPolicy,
}Expand description
The journaled half of a commit: the output payload of one
RunEventKind::ArtifactCommitted
event in the producing run’s own journal.
The event is the commitment, and it is what the signed receipt’s head
covers — the bytes never enter the journal, so the payload names
everything an auditor needs to walk from the receipt to the bytes:
the address, the name and version index when named, the media kind,
the byte count, the producing EffectId, and the declared
retention. Built together with the RunArtifact record by
commit_artifact: one derivation, two homes, so the journaled
commitment and the stored record can never diverge.
Fields§
§artifact_id: StringThe content address (the record’s artifact_id).
name: Option<String>The logical name, when the artifact is named.
version: Option<u64>The version index this commit appended — present exactly when
the artifact is named (the sequence position of the new head; 0
for the first version).
media_kind: MediaKindThe media class.
bytes: u64The byte count (the ArtifactRef::bytes rule).
effect_id: EffectIdThe producing effect’s deterministic id.
retention: RetentionPolicyThe retention declared at commit.