Skip to main content

commit_artifact

Function commit_artifact 

Source
pub fn commit_artifact(
    declaration: CommitDeclaration,
) -> Result<(RunArtifact, ArtifactCommitment), ArtifactError>
Expand description

Build the record and the journaled commitment for one commit — the single constructor both commit paths share. Wave 1 writes the base version sequence (one entry, index 0); the append path that grows it is Wave 2’s.

Refusals are typed (ArtifactError) and change nothing: the naming rules keep names route-addressable and unambiguous under tagging and tenant prefixing, and the address rule keeps identity honest — a commit over a malformed address would mint a record the byte store can never verify.