Serve observation and evidence¶
A model deployment is only serving once the node has seen the right image running and the model has answered a request. After it actuates a runtime, the node observes what Kubernetes is running, compares the running image with the digest the control plane pinned, and on a readiness check sends the model one small inference request. It then reports all of it as evidence, joined into a trace chain that links the running image to the weights it serves. This page covers the observation, the readiness gate, the inference probe, the evidence the node reports and the serve report that carries it.
From actuation to report¶
flowchart TB
subgraph CL["YOUR CLUSTER"]
direction LR
DEP["Deployment<br/>deployment_ref"]
SVC["Service<br/>service_ref"]
POD["Pods<br/>by the Deployment's selector"]
end
subgraph NODE["NODE"]
direction TB
OB{{"Observe<br/>image digest, pod readiness,<br/>available replicas"}}
RG{{"Readiness gate<br/>weights ready, digests present"}}
PB{{"Inference probe<br/>readiness_check only"}}
EV[("model.serve.runtime_evidence.v1<br/>with every section")]
TC[("model.serve.runtime_trace_chain.v1")]
OB --> RG --> PB --> EV
EV --> TC
end
CP[("Serve report<br/>release route fences")]
DEP --> OB
SVC --> OB
POD --> OB
PB -->|"health request"| SVC
TC --> CP
Each check runs on what the cluster reports, and the report names the check that failed. A deployment that applied cleanly but runs the wrong image, has no ready pod, or does not answer a request is reported as failed with the reason.
Observing the runtime¶
The node reads the Deployment, its Service, and the pods matching the Deployment's selector, and takes from them:
| Observed | From |
|---|---|
| Running image digest | The first ready pod's container imageID |
| Pod readiness | The pod's Ready condition |
| Available replicas | The Deployment's status |
pod_ref |
pod://<namespace>/<pod> |
When the contract pins the engine image by digest, the running digest must
equal it; a different digest, or no digest at all, fails the serve with
MODEL_SERVE_RUNTIME_OBSERVER_FAILED. An engine image resolves to a digest
before it is deployed, so this check holds on every self-hosted model. See
Engine catalog.
The observed readiness_state follows the phase:
| Phase | readiness_state |
|---|---|
serve_start |
starting |
readiness_check |
ready when a pod is ready and the Deployment has an available replica, otherwise starting |
serve_stop |
stopped |
The readiness gate¶
On a readiness check, the node checks that the weights the runtime depends on are in place before it probes. For a self-hosted model served from staged weights it requires:
- the materialization
mountedormaterialized, and its lane ready; - a staged reference, and a stage whose readiness is
ready; - the manifest digest and the snapshot digest present, and in agreement.
Each unmet condition has its own reason, such as
hf_materialization_lane_not_ready or
hf_materialization_manifest_snapshot_mismatch, and fails the serve with
MODEL_SERVE_MATERIALIZATION_ACTUATION_FAILED. See
Serve materialization and contract projection.
The inference probe¶
The probe runs on readiness_check only. It sends one request to the model's
inference path through its Service and records what came back,
model.serve.inference_probe_evidence.v1.
The request fits the model's interface, and asks for one token:
| Interface | Body |
|---|---|
normalized, openai-v1 |
{"model": ..., "messages": [{"role": "user", "content": "health"}], "max_tokens": 1} |
native |
{"prompt": "health", "max_tokens": 1}, or with model and "stream": false when the engine requires a model |
Proxy, openai_chat |
As openai-v1 |
Proxy, anthropic_messages |
{"model": ..., "max_tokens": 1, "messages": [...]} |
Proxy, gemini_generate_content |
{"contents": [{"role": "user", "parts": [{"text": "health"}]}]} |
The method is POST, or GET where the interface's request matrix says so,
and the request times out after 5 seconds. These HTTP statuses count as ready:
A 4xx in that list is an answer from the model's own request handling: the
route reached the engine, the engine parsed the request, and it replied. A
connection failure, a timeout or a 5xx counts as not ready.
Probe status |
reason |
|---|---|
ready |
Empty |
failed |
runtime_not_ready_for_inference_probe, inference_probe_model_ref_required, inference_probe_contract_invalid, http_status_<code>, or probe_request_failed |
skipped |
probe_only_required_for_readiness_check |
not_required |
runtime_inference_probe_not_required |
A failed probe fails the serve with MODEL_SERVE_INFERENCE_PROBE_FAILED.
The evidence¶
The node assembles one runtime evidence document,
model.serve.runtime_evidence.v1, from the observation and every step before
it:
| Section | Contract |
|---|---|
| Observation | model.serve.runtime_evidence.v1: observer_mode, namespace, Deployment, Service, endpoint, running image, pod_ref, readiness_state |
inference_probe |
model.serve.inference_probe_evidence.v1 |
materialization |
model.serve.materialization_evidence.v1 |
runtime_storage |
The cache volume's evidence |
airgapped_execution |
model.airgapped_execution_evidence.v1 |
scaling |
model.scaling_runtime_evidence.v1: bounds, idle_timeout, the controlling Deployment |
self_hosted_runtime |
model.serve.self_hosted_runtime_evidence.v1, with GPU and resource operational evidence |
proxy_runtime |
proxy.runtime_evidence.v1 |
trace_chain |
model.serve.runtime_trace_chain.v1 |
observer_mode is kubernetes_native: every field in the observation section
comes from the cluster.
The trace chain¶
The trace chain answers one question about a served model: which image is serving which weights.
flowchart TB
IMG[("runtime_image_digest<br/>observed")]
SRC[("model_source_ref,<br/>runtime_source_path")]
WTS[("materialization_staged_ref,<br/>resolved_revision_digest")]
REV["Model revision"]
IMG --- SRC --- WTS --- REV
contract_version model.serve.runtime_trace_chain.v1
phase
runtime_image_digest observed running digest
materialization_ref, materialization_status, materialization_staged_ref
source_type, resolved_revision_digest
model_source_ref, runtime_source_path
self_hosted_status, readiness_state
inference_probe_status, inference_probe_reason
airgapped_status, scaling_status
trace_complete
trace_complete is true when the chain has a running image digest and a model
source, and, for a model with weights to materialize, a staged reference or a
resolved revision digest. A complete chain ties a served response to one
engine build and one set of weights.
The serve report¶
Every report, successful or failed, starts from the same base:
assignment_kind model.serve.v1
assignment_ref, trace_id, idempotency_key
dataplane_registration_uuid this node's registration
lease_owner_dataplane_registration_uuid this node's registration
release_route_generation release_route_contract.route_generation
release_route_hash release_route_contract.route_hash
release_target_version release_route_contract.target_version
secret_lease the lease resolution summary, keys only
A success reports ack, progress with the phase, and complete as
succeeded, each carrying the report, then an assignment.succeeded event. A
failure reports ack and complete as failed with the error code, then an
assignment.failed event. The control plane checks the release route fences
on every report and refuses one made under a superseded route, so a slow report
from an old rollout cannot overwrite the current state. See
Versioned release routes and bindings.