Build strategy, composition, and orchestration¶
What a model declares decides whether it is built at all, and which route the build takes. The classification happens in the control plane before any assignment exists, so a model that will never build is identified before a node is asked to build it.
Three declarations decide the route¶
A source of api with a proxy engine describes a model that already runs
somewhere else. Nothing needs building, and the route reflects that.
Two build routes¶
An artifact route builds and pushes an image, and the deployment pins its digest. A proxy, no build route produces no image and routes to an existing endpoint.
Classifying the route up front keeps a proxy model from occupying a build slot. It also decides where the runtime image comes from, which is the subject of Runtime image authority.
Instance and strategy are validated together¶
Both are closed sets, and they are validated as a pair rather than independently. A combination that cannot be satisfied is refused at classification rather than failing partway through a build.
Model build instances are the same five sizes as project builds, so one sizing vocabulary covers both. See Instance and context profiles.
Two policy projections travel with the build¶
Composition produces two projections the node consumes:
Base image policy. Which base the build may start from, given the strategy. An airgapped strategy constrains this to internally hosted images.
Source auth policy. How the build authenticates to the model source. The control plane projects the policy; the node holds the credential and performs the fetch, in the same split as every other artifact operation. See The tenant byte rule.
The deployment mode is resolved, not assumed¶
Build orchestration resolves a deployment mode from the model document rather than taking one from the request. The same model document therefore classifies the same way whoever submits it, and the classification is recorded with the build.
What the node receives¶
flowchart LR
MD[("Model document")]
RC{{"Route classification"}}
subgraph BA["BUILD ASSIGNMENT, artifact route"]
direction TB
B1["Instance, validated"]
B2["Strategy, validated"]
B3["Base image"]
B4["Source auth, projected"]
end
EC[("Engine catalog<br/>proxy route, no build")]
N["xratud"]
MD --> RC
RC -->|"artifact"| BA
RC -->|"proxy"| EC
BA -->|"pulled"| N
The model document is classified once, and only the artifact route produces a build assignment. Every section inside that assignment is resolved before it is written, so the node builds from the box and nothing else.
By the time an assignment exists, every choice has been made and validated. The node builds what it was told to build, with the policy it was given, and reports the digest. See Build orchestration.