Lifecycle separation¶
Reusable capability blocks, projects and models each have their own lifecycle, run by their own commands on their own schedule. A block is published once and imported by many projects. A project is built and deployed many times from the same block releases. A model is built and served on its own. They meet at named points: a project imports block releases by version, and binds models by name.
flowchart LR
subgraph B["Reusable capability block"]
direction TB
B1["xratu capability generate"] --> B2["xratu bake"] --> B3["xratu publish<br/>release in the catalog"]
end
subgraph P["Project"]
direction TB
P1["xratu apply"] --> P2["xratu build project"] --> P3["xratu project deploy"]
end
subgraph M["Model"]
direction TB
M1["xratu model apply"] --> M2["xratu model build"] --> M3["xratu model deploy"]
end
B3 -->|"imported by version"| P
M3 -->|"bound by name"| P
What each lifecycle decides¶
The block lifecycle decides the block's code, interface, dependency intent and declared secret keys, and seals them into a capsule in a catalog release. It ends at publish.
The project lifecycle decides which block releases a workflow or agent uses, the runtime foundation they run on, the policy they run under, and how the project is deployed. Project build resolves each imported block's closure. See Projects.
The model lifecycle decides a model's revision, build and serving runtime. Workflows and agents reach a model through a model binding. See Models and revisions and Bindings.
What this gives you¶
- A block release is fixed for every project that imports it. A project build resolves the release's closure without changing the capsule, so two projects importing one release run the same block code.
- A project rebuild leaves blocks unchanged. Changing a project's foundation, policy or deployment produces a new project version from the same block releases.
- A block change reaches a project through a new release and a new import version. See Version pinning.