Model
Identifies a trained model artifact and the training inputs and result associated with it.
ml.prokrust.ai/v1beta1 · Namespaced · models
Controller status
Conditions
Controller checks for this resource. Read the type, status, reason, and observed generation to diagnose the current state.
| Condition | What it tells you |
|---|---|
ArtifactVerified | Reports whether training verified the model bundle identity and the artifacts required for publication. |
Ready | Reports whether the published Model is ready for consumers. |
If a condition is missing, inspect publication and failure status on the TrainingRun named by spec.trainingRunRef.
Model publication verified
The TrainingRun controller wrote these conditions after verifying the model bundle and publication records.
status:
conditions:
- type: ArtifactVerified
status: "True"
reason: Verified
message: Model bundle identity and publication closure are verified.
observedGeneration: 1
- type: Ready
status: "True"
reason: Ready
message: Model is ready.
observedGeneration: 1
Compare status.loadedIdentity with the training and artifact digests you expect.
Model condition results and reasons
ArtifactVerified
| Status and reason | What to check |
|---|---|
True / Verified | Check status.artifactVerifiedAt for the verification time and status.loadedIdentity for the verified digests. |
Ready
| Status and reason | What to check |
|---|---|
True / Ready | The same update sets status.phase to Ready. Check status.producerRef for the TrainingRun identity. |
Condition field meanings
| Field | What to look for |
|---|---|
type | Names the check. Use it to select the condition you want to inspect. |
status | Reports whether the named condition holds. Read the reason to see why. |
reason | A short identifier for this outcome. Use it when comparing observations or filtering results. |
message | When present, gives details about this object, such as the name of a dependency. |
observedGeneration | Compare with metadata.generation to see which version of the spec the controller checked. |
lastTransitionTime | Records the time of the last transition for this condition. |
How to read status fields
| Field | What it tells you |
|---|---|
status.artifactVerifiedAt | Time the operator verified the model artifact. Use it with the model conditions to check verification status. |
status.failure | Recorded failure details. Inspect the reason and message to locate the failed operation. |
status.loadedIdentity | Resolved model identity. Use it to verify which artifact and training inputs the model represents. |
status.observedGeneration | Resource generation evaluated by the controller. Compare it with metadata.generation to check whether the status covers the current spec. |
status.phase | Current stage reported by the controller. Use the conditions or failure details to diagnose why progress stopped. |
status.producerRef | Identifies the training run that produced the model. Use it to trace the artifact to its producer. |
status.trainingDiagnostics | Diagnostics recorded for training. Inspect them to investigate the training inputs, evaluation, or model result. |
status.trainingQueryRef | Exact query lineage retained with the controller-verified model. |
Kubernetes schema for status
Required applies when the parent is present. A dash in the default column means the CRD declares no default.
| Field | Type | Required | Default | Schema constraints and descriptions |
|---|---|---|---|---|
status | object | no | — | maxProperties 1024 · nullable true |
status.artifactVerifiedAt | string | no | — | Time the operator verified the model artifact. Use it with the model conditions to check verification status. · maxLength 2048 · nullable true |
status.conditions | array | no | — | Controller checks for this resource. Read the type, status, reason, and observed generation to diagnose the current state. · maxItems 8 |
status.conditions[] | object | — | — | maxProperties 1024 |
status.conditions[].lastTransitionTime | string | yes | — | maxLength 2048 |
status.conditions[].message | string | yes | — | maxLength 1024 |
status.conditions[].observedGeneration | integer | yes | — | format "int64" |
status.conditions[].reason | string | yes | — | maxLength 128 |
status.conditions[].status | string | yes | — | enum ["True","False","Unknown"] · maxLength 2048 |
status.conditions[].type | string | yes | — | maxLength 2048 |
status.failure | object | no | — | Recorded failure details. Inspect the reason and message to locate the failed operation. · maxProperties 1024 · nullable true |
status.failure.at | string | yes | — | maxLength 2048 |
status.failure.code | string | yes | — | maxLength 128 |
status.failure.details | object | no | — | maxProperties 1024 · nullable true · self.sizeBytes >= 0 && self.sizeBytes <= 9007199254740991 |
status.failure.details.digest | string | yes | — | SHA-256 digest of the artifact contents. Compare it with the downloaded bytes to verify the artifact. · maxLength 71 · pattern "^sha256:[0-9a-f]{64}$" · self.matches('^sha256:[0-9a-f]{64}$') |
status.failure.details.mediaType | string | yes | — | Use the recorded media type to identify the artifact representation. · maxLength 2048 |
status.failure.details.sizeBytes | integer | yes | — | Use the published byte count when verifying a transferred artifact. · format "int64" |
status.failure.details.uri | string | yes | — | Use this location to identify the published artifact during retrieval or diagnostics. · maxLength 2048 |
status.failure.message | string | yes | — | maxLength 1024 |
status.failure.relatedResource | object | no | — | Exact related resource identity in the same namespace as the status owner. · maxProperties 1024 · nullable true |
status.failure.relatedResource.apiVersion | string | yes | — | maxLength 2048 |
status.failure.relatedResource.executionDigest | string | no | — | maxLength 71 · nullable true · pattern "^sha256:[0-9a-f]{64}$" |
status.failure.relatedResource.kind | string | yes | — | maxLength 2048 |
status.failure.relatedResource.name | string | yes | — | maxLength 253 |
status.failure.relatedResource.recoveryOrdinal | integer | no | — | format "int32" · nullable true |
status.failure.relatedResource.uid | string | yes | — | maxLength 128 |
status.failure.retryable | boolean | yes | — | |
status.failure.stage | string | no | — | Safe execution stage identifier, when the failing stage is known. · maxLength 2048 · nullable true |
status.failure.suggestedAction | string | no | — | Actionable guidance without credentials or raw provider response bodies. · maxLength 2048 · nullable true |
status.loadedIdentity | object | no | — | Resolved model identity. Use it to verify which artifact and training inputs the model represents. · maxProperties 1024 · nullable true |
status.loadedIdentity.graphSnapshotDigest | string | yes | — | maxLength 71 · pattern "^sha256:[0-9a-f]{64}$" |
status.loadedIdentity.modelArtifactDigest | string | yes | — | maxLength 71 · pattern "^sha256:[0-9a-f]{64}$" |
status.loadedIdentity.queryDigest | string | yes | — | maxLength 71 · pattern "^sha256:[0-9a-f]{64}$" |
status.loadedIdentity.trainingInputDigest | string | yes | — | maxLength 71 · pattern "^sha256:[0-9a-f]{64}$" |
status.loadedIdentity.trainingResultDigest | string | yes | — | maxLength 71 · pattern "^sha256:[0-9a-f]{64}$" |
status.observedGeneration | integer | no | — | Resource generation evaluated by the controller. Compare it with metadata.generation to check whether the status covers the current spec. · format "int64" · nullable true |
status.phase | string | no | — | Current stage reported by the controller. Use the conditions or failure details to diagnose why progress stopped. · enum ["Pending","Ready","Corrupt",null] · maxLength 2048 · nullable true |
status.producerRef | object | no | — | Identifies the training run that produced the model. Use it to trace the artifact to its producer. · maxProperties 1024 · nullable true |
status.producerRef.generation | integer | yes | — | Copy the selected resource’s Kubernetes generation to pin the revision that this operation uses. · format "int64" |
status.producerRef.name | string | yes | — | Use the name of the selected resource in the workspace. · maxLength 253 |
status.producerRef.semanticDigest | string | yes | — | Use the published semantic digest to require the reviewed resource definition. · maxLength 71 · pattern "^sha256:[0-9a-f]{64}$" · self.matches('^sha256:[0-9a-f]{64}$') |
status.producerRef.uid | string | yes | — | Copy the selected resource’s Kubernetes UID to detect replacement under the same name. · maxLength 128 |
status.trainingDiagnostics | object | no | — | Diagnostics recorded for training. Inspect them to investigate the training inputs, evaluation, or model result. · maxProperties 1024 · nullable true |
status.trainingDiagnostics.attemptUid | string | yes | — | maxLength 128 |
status.trainingDiagnostics.manifest | object | yes | — | maxProperties 1024 · self.sizeBytes >= 0 && self.sizeBytes <= 9007199254740991 |
status.trainingDiagnostics.manifest.digest | string | yes | — | SHA-256 digest of the artifact contents. Compare it with the downloaded bytes to verify the artifact. · maxLength 71 · pattern "^sha256:[0-9a-f]{64}$" · self.matches('^sha256:[0-9a-f]{64}$') |
status.trainingDiagnostics.manifest.mediaType | string | yes | — | Use the recorded media type to identify the artifact representation. · maxLength 2048 |
status.trainingDiagnostics.manifest.sizeBytes | integer | yes | — | Use the published byte count when verifying a transferred artifact. · format "int64" |
status.trainingDiagnostics.manifest.uri | string | yes | — | Use this location to identify the published artifact during retrieval or diagnostics. · maxLength 2048 |
status.trainingQueryRef | object | no | — | Exact query lineage retained with the controller-verified model. · maxProperties 1024 · nullable true |
status.trainingQueryRef.generation | integer | yes | — | Copy the selected resource’s Kubernetes generation to pin the revision that this operation uses. · format "int64" |
status.trainingQueryRef.name | string | yes | — | Use the name of the selected resource in the workspace. · maxLength 253 |
status.trainingQueryRef.semanticDigest | string | yes | — | Use the published semantic digest to require the reviewed resource definition. · maxLength 71 · pattern "^sha256:[0-9a-f]{64}$" · self.matches('^sha256:[0-9a-f]{64}$') |
status.trainingQueryRef.uid | string | yes | — | Copy the selected resource’s Kubernetes UID to detect replacement under the same name. · maxLength 128 |
Specification
Identify the trained model artifact, the task it implements, and the exact training inputs associated with it.
This resource requires artifact, formatVersion, graphSnapshotDigest, queryDigest, task, trainingInputDigest, trainingResultDigest, trainingRunRef.
artifact
The controller records the trained model artifact. Inspect it to locate or verify the published model.
| Field | When to use it |
|---|---|
spec.artifact.digest | SHA-256 digest of the artifact contents. Compare it with the downloaded bytes to verify the artifact. |
spec.artifact.mediaType | Use the recorded media type to identify the artifact representation. |
spec.artifact.sizeBytes | Use the published byte count when verifying a transferred artifact. |
spec.artifact.uri | Use this location to identify the published artifact during retrieval or diagnostics. |
formatVersion
Identifies the model format used by the producer. Check it when diagnosing reader compatibility.
graphSnapshotDigest
Records the graph definition digest from the training snapshot. Compare it when checking that a scoring graph has a compatible definition.
queryDigest
Identifies the training query. Compare it when checking the requested prediction task.
task
Identifies the task learned by the model. Inspect it to interpret predictions and metrics.
trainingInputDigest
Identifies the frozen training input. Compare it when tracing how the model was produced.
trainingResultDigest
Identifies the training result that published the model. Use it to verify provenance.
trainingRunRef
Identifies the TrainingRun that produced the model. Follow it to inspect the training job.
| Field | When to use it |
|---|---|
spec.trainingRunRef.name | Workspace name of the TrainingRun. Use the UID as well when identifying a specific trial or model producer. |
spec.trainingRunRef.uid | Kubernetes UID of that TrainingRun. Use it to detect a replacement with the same name. |
Kubernetes schema for spec
Required applies when the parent is present. A dash in the default column means the CRD declares no default.
| Field | Type | Required | Default | Schema constraints and descriptions |
|---|---|---|---|---|
spec | object | yes | — | Identify the trained model artifact, the task it implements, and the exact training inputs associated with it. · maxProperties 1024 · self.formatVersion in ['prokrust.model/v1', 'prokrust.model/v2'] |
spec.artifact | object | yes | — | The controller records the trained model artifact. Inspect it to locate or verify the published model. · maxProperties 1024 · self.sizeBytes >= 0 && self.sizeBytes <= 9007199254740991 |
spec.artifact.digest | string | yes | — | SHA-256 digest of the artifact contents. Compare it with the downloaded bytes to verify the artifact. · maxLength 71 · pattern "^sha256:[0-9a-f]{64}$" · self.matches('^sha256:[0-9a-f]{64}$') |
spec.artifact.mediaType | string | yes | — | Use the recorded media type to identify the artifact representation. · maxLength 16384 |
spec.artifact.sizeBytes | integer | yes | — | Use the published byte count when verifying a transferred artifact. · format "int64" |
spec.artifact.uri | string | yes | — | Use this location to identify the published artifact during retrieval or diagnostics. · maxLength 2048 |
spec.formatVersion | string | yes | — | Identifies the model format used by the producer. Check it when diagnosing reader compatibility. · maxLength 16384 |
spec.graphSnapshotDigest | string | yes | — | Records the graph definition digest from the training snapshot. Compare it when checking that a scoring graph has a compatible definition. · maxLength 71 · pattern "^sha256:[0-9a-f]{64}$" |
spec.queryDigest | string | yes | — | Identifies the training query. Compare it when checking the requested prediction task. · maxLength 71 · pattern "^sha256:[0-9a-f]{64}$" |
spec.task | string | yes | — | Identifies the task learned by the model. Inspect it to interpret predictions and metrics. · enum ["Regression","BinaryClassification","MulticlassClassification","MultilabelClassification","CategoryRanking","StaticLinkPrediction","TemporalLinkPrediction","Forecast"] · maxLength 16384 |
spec.trainingInputDigest | string | yes | — | Identifies the frozen training input. Compare it when tracing how the model was produced. · maxLength 71 · pattern "^sha256:[0-9a-f]{64}$" |
spec.trainingResultDigest | string | yes | — | Identifies the training result that published the model. Use it to verify provenance. · maxLength 71 · pattern "^sha256:[0-9a-f]{64}$" |
spec.trainingRunRef | object | yes | — | Identifies the TrainingRun that produced the model. Follow it to inspect the training job. · maxProperties 1024 |
spec.trainingRunRef.name | string | yes | — | Workspace name of the TrainingRun. Use the UID as well when identifying a specific trial or model producer. · maxLength 253 |
spec.trainingRunRef.uid | string | yes | — | Kubernetes UID of that TrainingRun. Use it to detect a replacement with the same name. · maxLength 128 |
The validation schema matches prokrust-crds 0.23.0-rc.1.