MLOps / Prediction and evidence foundations / Lesson 7
Artifact Manifests and Identity
Record and verify the identity of a model artifact and its associated evaluation evidence.
On this page
Lesson goals
- Describe the role of an artifact manifest.
- Calculate and compare a content digest for a synthetic artifact.
- Connect identity checks to evaluation and access controls.
Name the artifact and evidence
A model release contains more than a mutable filename. Record an immutable artifact identifier or content digest, preprocessing and schema versions, evaluation reference, build information, and owner. The manifest helps a reviewer connect a candidate to the evidence used to approve it. It should describe the exact bytes or registry version that will be deployed.
A digest detects a change relative to a trusted expected value; it does not by itself prove who created an artifact, whether it is safe, or whether the evaluation is valid. Protect the manifest and its approval path with the appropriate access controls.
Create a synthetic manifest
The example hashes a small byte string and stores its digest alongside illustrative schema and evaluation identifiers. It uses Pythonโs standard library and does not write a model file or contact a registry. A production manifest needs an agreed format and references to actual, access-controlled artifacts and evidence.
import hashlib
artifact = b"synthetic model artifact"
digest = hashlib.sha256(artifact).hexdigest()
manifest = {"artifact_sha256": digest, "schema": "features-v1", "evaluation": "eval-17"}
print(manifest)
The digest identifies the synthetic bytes; schema and evaluation values are example identifiers, not evidence of a real evaluation.
Compare received bytes
At a controlled handoff, calculate the digest of the received bytes and compare it with the expected digest from a trusted manifest. A mismatch means the artifact is not the one identified by that manifest and should be investigated before promotion. The example compares the same synthetic bytes on both sides.
import hashlib
artifact = b"synthetic model artifact"
expected = hashlib.sha256(artifact).hexdigest()
received = b"synthetic model artifact"
print(hashlib.sha256(received).hexdigest() == expected)
The comparison is true for identical synthetic byte strings; a mismatch would require investigation.
Link evaluation to promotion
Check that the evaluation record names the same artifact, data snapshot, metric definitions, and acceptance criteria as the release. Verify that the chosen registry version or deployment configuration points to that artifact. An alias can change over time, so record its resolved version at the approval and deployment events.
Handle a mismatch
Stop the affected promotion in the test or release workflow and preserve the manifest, identifiers, and logs for investigation. Trace where the bytes or pointer changed, then rebuild or obtain the intended artifact through the authorized process. Repeat identity and acceptance checks before proceeding; do not simply overwrite the expected digest to make the check pass.
Common errors and fixes
An evaluated model differs from the deployed model.
- Why it happens
- A mutable filename or alias was treated as an immutable identity.
- How to fix it
- Resolve and compare the artifact identifier at evaluation and deployment.
- Prevent it next time
- Record immutable identifiers in release evidence.
A digest match is described as proof of safety.
- Why it happens
- Integrity was confused with authorization and model quality.
- How to fix it
- Verify provenance, access, and evaluation separately.
- Prevent it next time
- Document what each check can establish.
A mismatch is cleared by changing the expected digest.
- Why it happens
- The source of the changed artifact was not investigated.
- How to fix it
- Trace the handoff and obtain the approved artifact.
- Prevent it next time
- Protect manifests and require reviewed updates.
2 practice exercises
1. A registry alias now points to a different artifact than the one evaluated. What should happen?
Show worked solution
Pause promotion, resolve the immutable artifact identifiers, and verify that evaluation and approval correspond to the intended candidate. Record and review any authorized change.
2. A digest matches a manifest. Does that establish that the model is suitable?
Show worked solution
No. It supports byte identity relative to the trusted expected digest. Provenance, authorization, evaluation quality, and operational suitability require separate evidence.
Key takeaways
- Identify the exact artifact linked to evaluation evidence.
- A digest checks identity relative to a trusted expectation.
- Investigate mismatches before promotion.