Capsule release records¶
A release carries a capsule release record: the block's capsule documents, exactly as bake wrote them, with digests taken over what was read. Publish distributes the capsule and never rebuilds it, so the record lets anyone check that the capsule published is the capsule baked.
{
"reusable_capability_block_id": "acme.billing",
"interface_id": "acme.billing.Ledger",
"capsule_digest": "sha256:40e4f7107cd51aaf3f71dfa261b1db2a8c4f7f2c50f5c92965f4dce90124d537",
"interface_hash": "xci-sha256:a5cb0b948204b50045fb7fada9a716fc25a6af6191087b9950911b9b219f03b6",
"provider_requirement": {"kind": "cpython", "abi": "cp311", "min_version": "3.11.12"},
"manifest_digest": "sha256:a8c696b2c5ac0db9cb80591cf27462a87a073b0da693af0c30d4be88674c20f7",
"executable_surface_digest": "sha256:2da2c23b22d06090fabca1e969ff3714a1506e96ae4b7c6a7ddd06db4a5525e9"
}
Beside these fields the record carries the block's declared auth keys and the three capsule documents whole: the build input, the capsule manifest and the executable surface index.
What is checked¶
The CLI checks the record before sending it, and the control plane checks it again before storing anything:
- It matches the archive. The capsule's file tree, and its build input's source files, equal the archive's file hashes, and the capsule was built for this archive's bundle digest.
- The documents describe one capsule. The manifest and the executable surface index name the same capsule and block, and the manifest's capsule digest and interface hash match the record.
- Provenance holds. The manifest's provenance names the build input it carries.
- Identity agrees with the seed. The block id and interface id match the interface seed inside the build input.
A failed check refuses the publish and names the capsule and the mismatch:
Carried verbatim¶
The documents travel exactly as read, with a digest over each. A publish that reformatted a field or reordered a map would change the digest, so the record itself shows the capsule was carried unchanged. The control plane's attestation then signs those digests. See Publication attestation and signing.