Skip to content

Three distinct things

A running reusable capability block is assembled from three artifacts made at different times by different steps: the Xratu package, the execution capsule, and the closure-local dependency components. Each has its own digest, and each question about what ran is answered by one of them.

Xratu package Execution capsule Closure-local dependency component
Made by xratu bake xratu bake, inside the package Closure resolution, for a project
Made when Once per block version Once per block version After bake, when a project resolves the block's closure
Holds The block folder's files and the build record The block's executable description: files by hash, interface, entry point, dependency intent, provider requirement One third-party distribution and its transitive bundle
Used for Publishing and distribution Running the block in a cell Satisfying a requirement the block declared
Identified by Archive SHA-256 and bundle digest Capsule digest Component digest
Belongs to The catalog release The catalog release The resolved runtime closure
flowchart LR
  B["Block folder"] -->|"xratu bake"| P["Xratu package"]
  P --> C["Execution capsule<br/>dependency intent"]
  C -->|"project build:<br/>closure resolution"| R["Resolved runtime closure"]
  D["Closure-local components<br/>built for the closure"] --> R
  F["Foundation and<br/>project components"] --> R

Dependencies are selected after bake

A capsule carries the block's dependency intent, the requirements as declared. The bytes that satisfy them are chosen later, when a project resolves the block's closure against its foundation, its prepared components and the approved sources. The same capsule can therefore resolve to different bytes in two projects, and each closure records exactly which.

A component built during that resolution belongs to the closure that selected it, and its source on the binding is closure_local. See Closure-local dependency components.

The capsule's own capsule_local_components list names only components sealed inside the capsule at bake, each by component id, component digest and provenance digest.

Reading the three in the evidence

A closure binds the capsule digest and every dependency binding as separate inputs, alongside the foundation and provider digests, so a run's evidence answers each question on its own:

  1. Which release was used: the package in the catalog.
  2. Which block code ran: the capsule digest.
  3. Which library bytes it ran on: the component digests in the closure's bindings.

Related: Packages and capsules and Resolved runtime closures.