Capsule contents¶
A capsule manifest states everything about a capsule that the platform acts on. The ledger block's capsule manifest, with its file tree trimmed:
{
"capsule_digest": "sha256:40e4f7107cd51aaf3f71dfa261b1db2a8c4f7f2c50f5c92965f4dce90124d537",
"reusable_capability_block_id": "acme.billing",
"capsule_format": "directory",
"immutable_file_tree": {
"billing.py": "…",
"billing.xci.json": "…",
"capsule/acme/billing/ledger_adapter_dispatch.py": "…"
},
"interface_hash": "xci-sha256:a5cb0b948204b50045fb7fada9a716fc25a6af6191087b9950911b9b219f03b6",
"interfaces": ["acme.billing.Ledger"],
"adapter_binding": {"entrypoint": "capsule.acme.billing.ledger_adapter_dispatch"},
"auth_requirement_base": {"kind": "initial"},
"baked_auth_requirements": [
{
"contract_version": "secret.baked_auth_requirement.v1",
"produced_by": "bake",
"key": "api_key",
"requirement_id": "arq_7f19...",
"requirement_revision": 1,
"reusable_capability_block_id": "acme.billing",
"interface_id": "acme.billing.Ledger",
"interface_version": "1.0",
"method": "Ledger.charge",
"export_ordinal": 0,
"auth_meaning_decision": "new",
"requirement_fingerprint": "sha256:6618..."
}
],
"auth_requirement_set_digest": "sha256:2f86...",
"dependency_intent": {"python": {"backend": "none", "requirements": []}, "apt": [], "image": ""},
"capsule_local_components": [],
"provider_requirement": {"kind": "cpython", "abi": "cp311", "min_version": "3.11.12"},
"provenance": {"build_input_digest": "sha256:142404dd…", "produced_by": "bake", "seeded_by": "reusable_capability_block_generation"},
"mount_rule": "immutable_read_only",
"extraction_rule": "extract_once_to_digest_path",
"cache_rule": "cache_immutable_by_digest",
"garbage_collection_rule": "collect_when_unreferenced"
}
The rules and ownership boundary of the manifest are in Execution capsule manifest.
What it states¶
| Part | States |
|---|---|
immutable_file_tree |
Every file the capsule may use, by path and hash: the whole package |
interface_hash, interfaces |
The one interface the capsule implements |
adapter_binding |
The generated dispatch module every call enters through |
auth_requirement_base |
The initial publication or exact prior publication reviewed for requirement meaning |
baked_auth_requirements |
Each callable-local auth key qualified to its interface method and export |
auth_requirement_set_digest |
The complete ordered auth-requirement set sealed by bake |
dependency_intent |
The Python requirements and system packages the block declared |
capsule_local_components |
Components physically sealed inside the capsule |
provider_requirement |
The runtime provider kind, ABI and minimum version it needs |
provenance |
The build input it was built from, and the stages that produced it |
| The four rules | How a node handles it: mounted read-only, extracted once to a path named by its digest, cached by digest, and removed once nothing references it |
Closure ownership¶
The manifest carries the block's dependency intent. Project closure resolution selects the foundation and the source of each dependency. The same capsule can run on two foundations, in two closures with two closure digests. See Dependencies & Runtime Composition.
The provider requirement names a kind and an ABI. Closure resolution selects a specific provider build, so a provider security update keeps every existing capsule valid. See Provider requirements.