Executable surface index¶
The executable surface index lists everything in a capsule that may run: every method of the block, with its method number and the entry point that serves it. It is complete, so a method that is absent from it cannot be called at all.
{
"contract_version": "capsule.executable_surface_index.v1",
"produced_by": "bake",
"capsule_digest": "sha256:40e4f7107cd51aaf3f71dfa261b1db2a8c4f7f2c50f5c92965f4dce90124d537",
"reusable_capability_block_id": "acme.billing",
"interface_id": "acme.billing.Ledger",
"interface_hash": "xci-sha256:a5cb0b948204b50045fb7fada9a716fc25a6af6191087b9950911b9b219f03b6",
"entries": {
"charge": {"export_ordinal": 7, "adapter_entrypoint": "capsule.acme.billing.ledger_adapter_dispatch:dispatch"},
"charge_status": {"export_ordinal": 9, "adapter_entrypoint": "capsule.acme.billing.ledger_adapter_dispatch:dispatch"}
}
}
Bake builds it from the method numbers in the block's interface seed, and the capsule manifest carries its digest. See Export ordinals.
Complete, and nothing else¶
Bake checks the index against the methods the block declared, and refuses one that differs in either direction:
executable surface index is incomplete; ['refund'] may execute and are not indexed
executable surface index carries undeclared symbols: ['debug_dump']
two symbols share an export ordinal; an ordinal names one export
A missing entry would leave a method that exists and can never be routed to. An extra entry would be routable surface nobody declared. Because the index is complete, a call for a method outside it is refused, with no fallback.
What it holds and what it leaves out¶
Each entry holds a method number and an entry point, and nothing that chooses dependencies or placement. The block's identity, interface id and interface hash must match the interface seed exactly. Which foundation, components and cell the block runs with belongs to its resolved closure. See Resolved runtime closures.