Skip to content

Publish boundaries

Publishing distributes a block and records its release. What the block is was fixed by generation and bake, and publish carries it through exactly: the interface, the dependency declaration, the capsule documents and the archive reach the catalog as bake produced them.

Carried unchanged

  1. Capsule documents travel verbatim. Publish re-validates the build input, capsule manifest and executable surface index, and sends them with a digest over each as read. See Capsule release records.
  2. The archive is the one bake built. Its SHA-256 must match the xratufile, and the capsule's file tree must match its file hashes.
  3. The interface is the one generation compiled. The capsule's interface id and hash must match the interface seed in the build input.

Refused, never repaired

A capsule record that fails a check refuses the publish, naming the capsule and the mismatch. Publish has no basis for correcting a capsule, since it does not know what the block declared, so the fix is always to bake again:

capsule release is not valid: capsules[0] was not built for this archive bundle

What publish adds

Publish adds only release facts: the release version derived from the content, the tag, the publication status, and the control plane's signed attestation over the capsule's digests. See Publication attestation and signing.