Skip to main content

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.

ConditionWhat it tells you
ArtifactVerifiedReports whether training verified the model bundle identity and the artifacts required for publication.
ReadyReports 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 reasonWhat to check
True / VerifiedCheck status.artifactVerifiedAt for the verification time and status.loadedIdentity for the verified digests.

Ready​

Status and reasonWhat to check
True / ReadyThe same update sets status.phase to Ready. Check status.producerRef for the TrainingRun identity.
Condition field meanings
FieldWhat to look for
typeNames the check. Use it to select the condition you want to inspect.
statusReports whether the named condition holds. Read the reason to see why.
reasonA short identifier for this outcome. Use it when comparing observations or filtering results.
messageWhen present, gives details about this object, such as the name of a dependency.
observedGenerationCompare with metadata.generation to see which version of the spec the controller checked.
lastTransitionTimeRecords the time of the last transition for this condition.
How to read status fields
FieldWhat it tells you
status.artifactVerifiedAtTime the operator verified the model artifact. Use it with the model conditions to check verification status.
status.failureRecorded failure details. Inspect the reason and message to locate the failed operation.
status.loadedIdentityResolved model identity. Use it to verify which artifact and training inputs the model represents.
status.observedGenerationResource generation evaluated by the controller. Compare it with metadata.generation to check whether the status covers the current spec.
status.phaseCurrent stage reported by the controller. Use the conditions or failure details to diagnose why progress stopped.
status.producerRefIdentifies the training run that produced the model. Use it to trace the artifact to its producer.
status.trainingDiagnosticsDiagnostics recorded for training. Inspect them to investigate the training inputs, evaluation, or model result.
status.trainingQueryRefExact 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.

FieldTypeRequiredDefaultSchema constraints and descriptions
statusobjectno—maxProperties 1024 · nullable true
status.artifactVerifiedAtstringno—Time the operator verified the model artifact. Use it with the model conditions to check verification status. · maxLength 2048 · nullable true
status.conditionsarrayno—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[].lastTransitionTimestringyes—maxLength 2048
status.conditions[].messagestringyes—maxLength 1024
status.conditions[].observedGenerationintegeryes—format "int64"
status.conditions[].reasonstringyes—maxLength 128
status.conditions[].statusstringyes—enum ["True","False","Unknown"] · maxLength 2048
status.conditions[].typestringyes—maxLength 2048
status.failureobjectno—Recorded failure details. Inspect the reason and message to locate the failed operation. · maxProperties 1024 · nullable true
status.failure.atstringyes—maxLength 2048
status.failure.codestringyes—maxLength 128
status.failure.detailsobjectno—maxProperties 1024 · nullable true · self.sizeBytes >= 0 && self.sizeBytes <= 9007199254740991
status.failure.details.digeststringyes—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.mediaTypestringyes—Use the recorded media type to identify the artifact representation. · maxLength 2048
status.failure.details.sizeBytesintegeryes—Use the published byte count when verifying a transferred artifact. · format "int64"
status.failure.details.uristringyes—Use this location to identify the published artifact during retrieval or diagnostics. · maxLength 2048
status.failure.messagestringyes—maxLength 1024
status.failure.relatedResourceobjectno—Exact related resource identity in the same namespace as the status owner. · maxProperties 1024 · nullable true
status.failure.relatedResource.apiVersionstringyes—maxLength 2048
status.failure.relatedResource.executionDigeststringno—maxLength 71 · nullable true · pattern "^sha256:[0-9a-f]{64}$"
status.failure.relatedResource.kindstringyes—maxLength 2048
status.failure.relatedResource.namestringyes—maxLength 253
status.failure.relatedResource.recoveryOrdinalintegerno—format "int32" · nullable true
status.failure.relatedResource.uidstringyes—maxLength 128
status.failure.retryablebooleanyes—
status.failure.stagestringno—Safe execution stage identifier, when the failing stage is known. · maxLength 2048 · nullable true
status.failure.suggestedActionstringno—Actionable guidance without credentials or raw provider response bodies. · maxLength 2048 · nullable true
status.loadedIdentityobjectno—Resolved model identity. Use it to verify which artifact and training inputs the model represents. · maxProperties 1024 · nullable true
status.loadedIdentity.graphSnapshotDigeststringyes—maxLength 71 · pattern "^sha256:[0-9a-f]{64}$"
status.loadedIdentity.modelArtifactDigeststringyes—maxLength 71 · pattern "^sha256:[0-9a-f]{64}$"
status.loadedIdentity.queryDigeststringyes—maxLength 71 · pattern "^sha256:[0-9a-f]{64}$"
status.loadedIdentity.trainingInputDigeststringyes—maxLength 71 · pattern "^sha256:[0-9a-f]{64}$"
status.loadedIdentity.trainingResultDigeststringyes—maxLength 71 · pattern "^sha256:[0-9a-f]{64}$"
status.observedGenerationintegerno—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.phasestringno—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.producerRefobjectno—Identifies the training run that produced the model. Use it to trace the artifact to its producer. · maxProperties 1024 · nullable true
status.producerRef.generationintegeryes—Copy the selected resource’s Kubernetes generation to pin the revision that this operation uses. · format "int64"
status.producerRef.namestringyes—Use the name of the selected resource in the workspace. · maxLength 253
status.producerRef.semanticDigeststringyes—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.uidstringyes—Copy the selected resource’s Kubernetes UID to detect replacement under the same name. · maxLength 128
status.trainingDiagnosticsobjectno—Diagnostics recorded for training. Inspect them to investigate the training inputs, evaluation, or model result. · maxProperties 1024 · nullable true
status.trainingDiagnostics.attemptUidstringyes—maxLength 128
status.trainingDiagnostics.manifestobjectyes—maxProperties 1024 · self.sizeBytes >= 0 && self.sizeBytes <= 9007199254740991
status.trainingDiagnostics.manifest.digeststringyes—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.mediaTypestringyes—Use the recorded media type to identify the artifact representation. · maxLength 2048
status.trainingDiagnostics.manifest.sizeBytesintegeryes—Use the published byte count when verifying a transferred artifact. · format "int64"
status.trainingDiagnostics.manifest.uristringyes—Use this location to identify the published artifact during retrieval or diagnostics. · maxLength 2048
status.trainingQueryRefobjectno—Exact query lineage retained with the controller-verified model. · maxProperties 1024 · nullable true
status.trainingQueryRef.generationintegeryes—Copy the selected resource’s Kubernetes generation to pin the revision that this operation uses. · format "int64"
status.trainingQueryRef.namestringyes—Use the name of the selected resource in the workspace. · maxLength 253
status.trainingQueryRef.semanticDigeststringyes—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.uidstringyes—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.

FieldWhen to use it
spec.artifact.digestSHA-256 digest of the artifact contents. Compare it with the downloaded bytes to verify the artifact.
spec.artifact.mediaTypeUse the recorded media type to identify the artifact representation.
spec.artifact.sizeBytesUse the published byte count when verifying a transferred artifact.
spec.artifact.uriUse 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.

FieldWhen to use it
spec.trainingRunRef.nameWorkspace name of the TrainingRun. Use the UID as well when identifying a specific trial or model producer.
spec.trainingRunRef.uidKubernetes 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.

FieldTypeRequiredDefaultSchema constraints and descriptions
specobjectyes—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.artifactobjectyes—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.digeststringyes—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.mediaTypestringyes—Use the recorded media type to identify the artifact representation. · maxLength 16384
spec.artifact.sizeBytesintegeryes—Use the published byte count when verifying a transferred artifact. · format "int64"
spec.artifact.uristringyes—Use this location to identify the published artifact during retrieval or diagnostics. · maxLength 2048
spec.formatVersionstringyes—Identifies the model format used by the producer. Check it when diagnosing reader compatibility. · maxLength 16384
spec.graphSnapshotDigeststringyes—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.queryDigeststringyes—Identifies the training query. Compare it when checking the requested prediction task. · maxLength 71 · pattern "^sha256:[0-9a-f]{64}$"
spec.taskstringyes—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.trainingInputDigeststringyes—Identifies the frozen training input. Compare it when tracing how the model was produced. · maxLength 71 · pattern "^sha256:[0-9a-f]{64}$"
spec.trainingResultDigeststringyes—Identifies the training result that published the model. Use it to verify provenance. · maxLength 71 · pattern "^sha256:[0-9a-f]{64}$"
spec.trainingRunRefobjectyes—Identifies the TrainingRun that produced the model. Follow it to inspect the training job. · maxProperties 1024
spec.trainingRunRef.namestringyes—Workspace name of the TrainingRun. Use the UID as well when identifying a specific trial or model producer. · maxLength 253
spec.trainingRunRef.uidstringyes—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.