SageMaker Model Registry Operator
What this skill does
Executes SageMaker Model Registry operations correctly and
safely. Runs deterministic pre-checks before any state-changing
CLI, emits the exact create-model-package / update-model-package
sequence behind a CONFIRM gate, and verifies registry state
transitions after apply. Every registration surfaces approval
status, inference specification, and metrics wiring.
Quick navigation
| Section |
What it covers |
When to read it |
| § Quick reference |
Verdict thresholds + pre-check priority + approval-state legality |
Before any operation |
| § Mindset |
Approval-gated deployability, versioning, group vs standalone |
Understanding the safety model |
| § Pre-flight |
Artifact / image / metrics / IAM metadata gate |
Before executing any CLI |
| § Process |
Per-operation planning: create-group, register, approve, reject, model-card, projects |
When choosing which operation |
| § Common patterns |
Group-registered, standalone, Model Card, Projects CI/CD boilerplate |
Boilerplate lookup |
| § Output format |
Structured output template with VERDICT, COMMANDS, POST_VERIFY |
Formatting the response |
| § Anti-Patterns |
NEVER list — common mistakes |
Review before risky operations |
Quick reference — verdict thresholds
| Verdict |
Trigger condition |
Action |
BLOCKED |
One or more pre-checks failed (artifact S3 unreachable, inference image inaccessible, metrics S3 missing, IAM permission missing, approval-state transition illegal, group does not exist for group-registered package) |
List failures, do NOT execute |
READY |
All pre-checks passed; awaiting CONFIRM gate |
Emit exact CLI sequence, wait for operator yes |
COMPLETED |
Operation applied and post-verification passed (package registered with correct ModelApprovalStatus, package version incremented, Model Card created, approval transition reflected) |
Emit describe-model-package summary |
Priority order for pre-checks (all must pass for READY):
- Model artifact accessibility —
model.tar.gz S3 object exists and the caller's execution role has s3:GetObject on the artifact prefix.
- Inference image availability — every container image in
InferenceSpecification.Containers[].Image exists in ECR and the caller has ecr:BatchGetImage.
- Metrics S3 reachability — every
ModelMetrics S3 URI resolves and the caller has read access.
- Model package group existence (for group-registered packages) —
ModelPackageGroupName resolves to an existing group.
- IAM permissions — caller holds
sagemaker:CreateModelPackage, UpdateModelPackage, DescribeModelPackage, CreateModelPackageGroup.
- KMS key (if registry is encrypted) — caller has
kms:Decrypt and kms:GenerateDataKey on the registry's KMS key.
- Approval-state transition legality —
PendingManualApproval → Approved or Rejected is legal; Approved → PendingManualApproval requires explicit re-registration.
Approval state machine (2026):
| Current state |
Allowed transitions |
Notes |
PendingManualApproval |
Approved, Rejected |
Default for new packages when approval is manual |
Approved |
Rejected (rollback) |
Re-approval to PendingManualApproval requires a new package version |
Rejected |
Approved (rare) |
Generally re-register a new version |
AutoApproved (auto-approval mode) |
Rejected |
Set via ModelApprovalStatus on the group |
Mindset
Three Model Registry realities drive every operation:
PendingManualApproval is the safety gate, not a default.
A model package registered with ModelApprovalStatus: PendingManualApproval cannot be deployed by downstream CI/CD
(SageMaker Projects, EventBridge rules) until a human
explicitly transitions it to Approved. Setting Approved
at registration time bypasses review — only do this for
dev / sandbox registries.
Model package groups are the versioning boundary. A
group-registered package (ModelPackageGroupName set) gets
an auto-incremented ModelPackageVersion within the group.
A standalone package (no group) is a one-off with no version
lineage. Group-registered is the production pattern;
standalone is for experimentation only.
InferenceSpecification is what makes a package deployable.
A package with InferenceSpecification (containers, supported
instance types, content types) can be deployed to a SageMaker
endpoint. A package registered as a model card source only
(no inference spec) is non-deployable — useful for
documentation but not for serving.
Pre-flight: model package metadata gate
Run before classification. list-model-packages returns max
100/page (--max-results 100, paginate with --next-token).
Live-account pre-flight (skip if offline plan):
Live-account pre-flight commands 1-7 (describe-model-package-group, list-model-packages, s3api head-object on the artifact and every metrics URI, ecr describe-images, iam simulate-principal-policy, kms describe-key): references/diagnostic-commands.md.
Load on demand before executing any live-account CLI.
Malformed input: emit VERDICT: ERROR with reason and remediation.
| Attribute |
Effect on operation |
ModelPackageGroupStatus: Pending |
Group creation in progress; wait for Completed before registering |
ModelPackageGroupName missing |
Standalone package — no versioning; warn operator |
ModelApprovalStatus: Approved at registration |
Bypasses review; flag as risky for production |
InferenceSpecification missing |
Non-deployable package (documentation only) |
ModelMetrics S3 URI returns 404 |
Registration accepted but metrics unavailable; downstream Model Card incomplete |
Process — operation planning (apply in order)
Step 0: Expert knowledge — non-obvious Model Registry behaviors
The 13 non-obvious behaviors (group-registered vs standalone, approval set at registration, update-model-package as the only transition path, package immutability, Model Card auto-populate, Projects CI/CD wiring, AdditionalInferenceSpecifications, Marketplace SourceAlgorithms, ARN as canonical ID, ValidationSpecification, KMS scope, rejected-not-deleted): references/advanced-patterns.md.
Load on demand when a pre-check fails or a transition looks illegal.
Step 1: Pre-check gate — BLOCKED if any check fails
Run ALL pre-checks. If ANY fails, verdict is BLOCKED with
failures in PRE_CHECKS. Do NOT execute.
For ALL operations:
- Caller holds
sagemaker:CreateModelPackage /
UpdateModelPackage / DescribeModelPackage /
CreateModelPackageGroup.
- KMS key (if configured) decryptable by the caller.
For create-group:
3. ModelPackageGroupName unique in account-region (3-63 chars,
[a-zA-Z0-9](-[a-zA-Z0-9])*).
4. KmsKeyId (if specified) is enabled and the caller can use it.
For register-package (group-registered):
3. ModelPackageGroupName resolves to an existing group with
ModelPackageGroupStatus: Completed.
4. Model artifact S3 object (model.tar.gz) exists and the
caller's role has s3:GetObject.
5. Every inference image in InferenceSpecification.Containers
exists in ECR; caller has ecr:BatchGetImage.
6. Every ModelMetrics S3 URI resolves.
7. ModelApprovalStatus is one of PendingManualApproval,
Approved, Rejected.
For register-package (standalone):
3. ModelPackageName unique in account-region.
4. Same artifact / image / metrics checks as above.
5. Warn that standalone packages have no versioning lineage.
For approve / reject (update-model-package):
3. ModelPackageArn resolves to an existing package.
4. Current ModelApprovalStatus allows the requested transition
(see approval state machine above).
5. For Approved transitioning to deployment, the package has
an InferenceSpecification (otherwise non-deployable).
For model-card:
3. Source model package (if --source-uri-type ModelPackage)
exists and is registered.
4. ModelCardName unique in account-region.
For projects-integration:
3. SageMaker Project exists
(sagemaker describe-project --project-name <name>).
4. The project's service role has sagemaker:CreateModel and
sagemaker:CreateEndpointConfig for the deploy stage.
5. The project's designated model package group has at least one
Approved package version (or the pipeline will stall).
Step 2: READY — emit operation plan
Emit VERDICT: READY with exact CLI sequence + CONFIRM gate:
- Exact AWS CLI command with all flags populated.
- Expected next version number (for group-registered packages).
- Expected downstream effects (SageMaker Projects pipeline
trigger on
Approved, Model Card auto-population).
- CONFIRM gate prompt.
Step 3: Execute behind CONFIRM gate
- MANDATORY CONFIRMATION GATE. Before any state-changing
CLI (
create-model-package-group, create-model-package,
update-model-package, delete-model-package,
create-model-card), emit CONFIRM prompt. Do NOT execute
until confirmed.
- Snapshot current state:
describe-model-package-group --model-package-group-name <group> --output json > /tmp/<group>-backup-$(date +%s).json.
- Execute the CLI.
- For group-registered packages, capture the returned
ModelPackageArn and ModelPackageVersion.
Step 4: Post-verification — COMPLETED
ALL checks must pass for COMPLETED:
describe-model-package --model-package-arn <arn> returns
the expected ModelApprovalStatus, ModelPackageVersion,
InferenceSpecification.
- Group-registered:
list-model-packages --model-package-group-name <group>
shows the new version.
- Approval transitions: the new status is reflected in
describe-model-package.
- For Model Card operations:
describe-model-card --model-card-name <name>
returns ModelCardStatus: Draft or PendingReview, and
Content reflects the source package.
- For Projects integration: the CodePipeline execution is
triggered (or queued) on the
Approved transition; check
via codepipeline list-pipeline-executions --pipeline-name <name>.
- For packages with
ValidationSpecification: all validation
jobs reached Completed; otherwise the package is not
registered.
If ANY verification fails, emit VERDICT: ERROR — do not claim COMPLETED.
Common registry patterns (boilerplate)
Create a model package group (one-time per model lineage)
aws sagemaker create-model-package-group \
--model-package-group-name "fraud-detection-classifier" \
--model-package-group-description "Production fraud detection model lineage (XGBoost lineage)" \
--tags '[{"Key":"team","Value":"risk-platform"},{"Key":"cost-center","Value":"ml-1234"}]'
The group ARN is arn:aws:sagemaker:<region>:<account>:model-package-group/<name>.
All versioned packages registered against this group share the
lineage.
Register a versioned model package (group-registered)
aws sagemaker create-model-package \
--model-package-name "fraud-detection-2026-08-v1" \
--model-package-group-name "fraud-detection-classifier" \
--inference-specification '{
"Containers": [
{
"Image": "763104351884.dkr.ecr.us-east-1.amazonaws.com/xgboost-inference:1.7-1-cpu-py3",
"ImageDigest": "sha256:abc123...",
"ModelDataUrl": "s3://ml-models/fraud-detection/2026-08/output/model.tar.gz",
"Framework": "XGBOOST",
"FrameworkVersion": "1.7-1",
"NearestModelName": "XGBoost"
}
],
"SupportedTransformInstanceTypes": ["ml.m5.4xlarge"],
"SupportedRealtimeInferenceInstanceTypes": ["ml.m5.large", "ml.m5.xlarge", "ml.m5.2xlarge"],
"SupportedContentTypes": ["text/csv", "application/json"],
"SupportedResponseMIMETypes": ["text/csv", "application/json"]
}' \
--model-metrics '{
"ModelQuality": {"Statistics": {"ContentType": "application/json", "S3Uri": "s3://ml-metrics/fraud-detection/2026-08/quality.json"}},
"ModelDataQuality": {"Statistics": {"ContentType": "application/json", "S3Uri": "s3://ml-metrics/fraud-detection/2026-08/data-quality.json"}},
"Bias": {"Report": {"ContentType": "application/json", "S3Uri": "s3://ml-metrics/fraud-detection/2026-08/bias.json"}},
"Explainability": {"Report": {"ContentType": "application/json", "S3Uri": "s3://ml-metrics/fraud-detection/2026-08/explainability.json"}}
}' \
--approval-status PendingManualApproval \
--tags '[{"Key":"trained-by","Value":"sagemaker-training-job-fraud-2026-08"}]'
The next version number is auto-assigned (e.g., version 5 if the
latest existing version is 4). Capture the returned
ModelPackageArn for downstream operations.
Approve a model package for production
aws sagemaker update-model-package \
--model-package-arn arn:aws:sagemaker:us-east-1:111122223333:model-package/fraud-detection-classifier/5 \
--model-approval-status Approved \
--approval-description "Approved by risk-platform review board 2026-08-11. AUC=0.94, no bias drift vs 2026-07 model."
If a SageMaker Projects deployment pipeline is wired to this
group, the Approved transition triggers an EventBridge event
that the pipeline consumes — the deploy stage runs automatically.
Reject a model package
aws sagemaker update-model-package \
--model-package-arn arn:aws:sagemaker:us-east-1:111122223333:model-package/fraud-detection-classifier/5 \
--model-approval-status Rejected \
--approval-description "Rejected: precision@threshold=0.62 below 0.75 target."
A rejected package remains in the registry for audit but cannot
be deployed by the Projects pipeline.
Standalone model package (no group, no versioning)
aws sagemaker create-model-package \
--model-package-name "experimental-bert-2026-08-11" \
--inference-specification '{
"Containers": [
{"Image": "763104351884.dkr.ecr.us-east-1.amazonaws.com/huggingface-pytorch-inference:2.3.0-transformers4.39-cpu-py311-ubuntu22.04",
"ModelDataUrl": "s3://ml-models/experimental/bert-2026-08-11/model.tar.gz"}
],
"SupportedRealtimeInferenceInstanceTypes": ["ml.g5.xlarge"]
}' \
--approval-status PendingManualApproval
No ModelPackageGroupName means standalone — no version
increment, no group-level lineage. Use for experimentation;
do not use for production tracking.
Auto-populate a SageMaker Model Card from a package
aws sagemaker create-model-card \
--model-card-name "fraud-detection-2026-08-card" \
--model-card-status "PendingReview" \
--model-card-content '{"version":"1.0","model_overview":{"model_creator":"risk-platform","model_artifact":"s3://ml-models/fraud-detection/2026-08/output/model.tar.gz"},"intended_uses":{"purpose_of_model":"Real-time fraud scoring","intended_uses":"Payment fraud detection"}}' \
--source-uri arn:aws:sagemaker:us-east-1:111122223333:model-package/fraud-detection-classifier/5 \
--source-uri-type ModelPackage
The card inherits the package's InferenceSpecification, metrics
URIs, and approval status. Edit model_card_content for the
subjective sections (intended uses, risks, recommendations).
SageMaker Projects CI/CD pipeline (auto-deploy on approval)
A SageMaker Project created from the MLOps template for model deployment provisions a CodePipeline that consumes Approved
events from the project's model package group, a CodeBuild
project that runs the deploy script (deploy.py or build.py)
to create the SageMaker model / endpoint config / endpoint, and
an EventBridge rule that fires on
SageMaker Model Package Approval for the group.
Verify the wiring:
aws sagemaker describe-project --project-name "fraud-detection-deploy-proj"
aws codepipeline list-pipelines --query 'pipelines[?contains(name, `fraud-detection`)]'
aws events list-rule-names-by-target --target-arn arn:aws:codepipeline:us-east-1:111122223333:fraud-detection-deploy
When a new package version transitions to Approved, the pipeline
triggers within seconds.
Diagnostic flows
The three diagnostic flows (package stuck in PendingManualApproval, Projects pipeline did not trigger on approval, Model Card content mismatch): references/error-handling.md.
Load on demand when diagnosing a stalled approval or a silent CI/CD trigger.
Output format (per operation)
OPERATION: <create-group | register-package | approve | reject | list | describe | model-card | projects-integration>
VERDICT: READY | BLOCKED | COMPLETED
TARGET: <group-name / package-arn / version, region>
PRE_CHECKS:
- [PASS] <check description>
- [FAIL] <check description> — <reason>
STEPS:
1. <CLI command with flags populated>
2. <verify command>
POST_VERIFY:
- [PASS] <verification description>
- [FAIL] <verification description> — <reason>
STATE: <PendingManualApproval | Approved | Rejected | registered> after apply>
VERSION: <next or current ModelPackageVersion, or N/A>
NOTES: <approval rationale, versioning, downstream pipeline effects>
Worked example — register group-registered package (READY)
OPERATION: register-package
VERDICT: READY
TARGET: fraud-detection-classifier / next version 5, us-east-1
PRE_CHECKS:
- [PASS] describe-model-package-group fraud-detection-classifier exists, Status Completed
- [PASS] list-model-packages latest version 4; next version 5
- [PASS] s3api head-object s3://ml-models/fraud-detection/2026-08/output/model.tar.gz returns 200
- [PASS] ecr describe-images xgboost-inference:1.7-1-cpu-py3 imageTag exists
- [PASS] s3api head-object on all four ModelMetrics URIs returns 200
- [PASS] Caller holds sagemaker:CreateModelPackage, iam:PassRole
- [PASS] KMS key arn:aws:kms:us-east-1:111122223333:key/abc decryptable
- [PASS] Approval status PendingManualApproval — safe default for production lineage
STEPS:
1. CONFIRM: About to create-model-package fraud-detection-2026-08-v1 in group fraud-detection-classifier (version 5) in account 111122223333 region us-east-1. Approval status PendingManualApproval (requires manual approval before deployment). Proceed? (yes/no)
2. aws sagemaker create-model-package --model-package-name fraud-detection-2026-08-v1 --model-package-group-name fraud-detection-classifier --inference-specification '{"Containers":[{"Image":"763104351884.dkr.ecr.us-east-1.amazonaws.com/xgboost-inference:1.7-1-cpu-py3","ModelDataUrl":"s3://ml-models/fraud-detection/2026-08/output/model.tar.gz","Framework":"XGBOOST","FrameworkVersion":"1.7-1"}],"SupportedRealtimeInferenceInstanceTypes":["ml.m5.large","ml.m5.xlarge","ml.m5.2xlarge"],"SupportedContentTypes":["text/csv"],"SupportedResponseMIMETypes":["text/csv"]}' --model-metrics '{"ModelQuality":{"Statistics":{"ContentType":"application/json","S3Uri":"s3://ml-metrics/fraud-detection/2026-08/quality.json"}}}' --approval-status PendingManualApproval
3. aws sagemaker describe-model-package --model-package-arn <returned-arn>
POST_VERIFY:
- (pending execution) describe-model-package returns ModelPackageVersion 5, ModelApprovalStatus PendingManualApproval
- (pending execution) list-model-packages --model-package-group-name fraud-detection-classifier shows version 5
STATE: pending — will be PendingManualApproval
VERSION: 5
NOTES:
- Versioning: group-registered; version auto-incremented to 5. Standalone packages do not increment versions.
- Approval: PendingManualApproval requires explicit update-model-package to Approved before deployment.
- Downstream: if SageMaker Projects is wired, the pipeline triggers only on the Approved transition (not on registration).
Worked example — approve blocked (BLOCKED)
Full BLOCKED worked example (approve blocked — no InferenceSpecification): references/worked-examples.md.
The READY example above is the primary worked example; this one loads on demand.
STRICT output contract
Required output structure
Every response MUST begin with this block — no preamble, no
conversational opening:
OPERATION: <create-group | register-package | approve | reject | list | describe | model-card | projects-integration>
VERDICT: READY | BLOCKED | COMPLETED
TARGET: <group-name / package-arn / version, region>
PRE_CHECKS:
- [PASS] <check description>
- [FAIL] <check description> — <reason>
STEPS:
1. CONFIRM: About to <operation> on <group / package> in account <account> region <region>. This will <consequence>. Proceed? (yes/no)
2. <exact CLI command with every flag populated — no placeholders>
POST_VERIFY:
- [PASS] <verification description>
- [FAIL] <verification description> — <reason>
STATE: <PendingManualApproval | Approved | Rejected | registered | pending>
VERSION: <ModelPackageVersion or N/A>
NOTES: <approval rationale — must state PendingManualApproval | Approved | Rejected and why; versioning; downstream pipeline effects>
FORBIDDEN output patterns
- NEVER start with conversational preamble ("Let me analyze…") — the VERDICT block is the FIRST line, always. Use uppercase verdict values only (
READY, BLOCKED, COMPLETED).
- NEVER omit PRE_CHECKS — every pre-check must appear with
[PASS] or [FAIL] and a specific reason for each failure.
- NEVER register a production model package with
--approval-status Approved without flagging the bypass-review risk in NOTES.
- NEVER list a CLI command with placeholder flags in a READY plan — every flag must be populated with actual values from the input data.
- NEVER claim COMPLETED without every POST_VERIFY line showing
[PASS], and never omit the CONFIRM gate as the first STEPS entry for state-changing operations.
Anti-Patterns — NEVER do these things
- NEVER register a production model package without a
ModelPackageGroupName. Standalone packages have no versioning lineage and cannot be tracked through the approval workflow consistently. Use group-registered packages for production.
- NEVER set
--approval-status Approved at registration time for a production lineage. The default PendingManualApproval exists to gate deployment behind human review; auto-approval bypasses this safety check.
- NEVER assume a registered package is deployable without an
InferenceSpecification. Packages registered for Model Card sourcing only (documentation) cannot be deployed to an endpoint. Verify the spec before approving.
- NEVER assume
update-model-package rollbacks (Approved → Rejected) propagate automatically to deployed endpoints. The endpoint continues serving the previously-deployed version until the SageMaker Projects pipeline (or manual update) re-deploys.
- NEVER use
delete-model-package to "revert" a version. Deletion removes the package from the registry for audit purposes and the version number is not reused. To revert, register a new version pointing at the prior artifact.
Pre-flight safety checks
- MANDATORY CONFIRMATION GATE before any state-changing CLI.
- Snapshot before modification:
describe-model-package-group --model-package-group-name <group> --output json > /tmp/<group>-backup-$(date +%s).json.
- Verify model artifact S3 accessibility before registration — a 404 at registration time leaves an empty package version.
- Verify all inference images exist in ECR before registration.
- Prefer group-registered packages over standalone for any production lineage.
Expert heuristic: "Approval is a deployment gate, not a label"
The full heuristic — registration lifecycle diagram, approval-state transition matrix, group vs standalone decision table, per-operation pre-check table: references/advanced-patterns.md.
Load on demand when planning approvals or CI/CD wiring.
Recent AWS features (2024-2026)
Recent AWS features 2024-2026 (Model Cards, Model Dashboard, Registry+Projects auto-deploy, Additional Inference Specifications, registry KMS, ValidationSpecification, Customer Metadata Properties, MLflow lineage, EventBridge state change, cross-account dashboard): references/advanced-patterns.md.
Load on demand when a feature question arises.
References (load on demand)
- Advanced patterns — Step 0 expert-knowledge deep dive, the approval-as-deployment-gate heuristic (lifecycle diagram, transition matrix, per-operation pre-checks), recent AWS features (2024-2026)
- Diagnostic commands — live-account pre-flight command listing (group, versions, artifact, ECR image, metrics, IAM, KMS)
- Error handling — diagnostic flows: package stuck in PendingManualApproval, Projects pipeline not triggering, Model Card content mismatch
- Worked examples — secondary worked example (approve blocked without InferenceSpecification)
- Approval workflow and CI/CD pipeline — approval workflow and SageMaker Projects CI/CD detail
- Model cards, dashboard, and packages — Model Cards, Model Dashboard, and model package detail
Domain
AWS CloudOps / AI-ML — Model Registry & MLOps Operations.
AWS documentation
1---2name: sagemaker-model-registry-operator3description: Operates SageMaker Model Registry lifecycles safely — creates model package groups; registers versioned model packages (model artifacts, inference images, metrics, approval status); drives the manual approval workflow (PendingManualApproval to Approved or Rejected); manages model package versions within a group; and distinguishes group-registered from standalone packages. Covers SageMaker Model Cards (auto-populated from packages), the Model Dashboard, and Model Registry with SageMaker Projects for CI/CD model deployment. Runs deterministic pre-checks (artifact accessibility, image availability, metrics S3 reachability, IAM, approval-state legality), emits the exact create-model-package / update-model-package CLI behind a CONFIRM gate, and verifies registry state. Emits READY | BLOCKED | COMPLETED. Use when registering a model, approving for production, listing versions, adopting Model Cards, or wiring Model Registry with SageMaker Projects.4license: Apache-2.05compatibility: Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). No AWS CLI required for offline plan classification. Live-account operations use aws sagemaker create-model-package-group, create-model-package, update-model-package, describe-model-package, list-model-packages, delete-model-package, create-model-card, describe-model-card, list-mlflow-models, and aws sagemaker list-projects (AWS CLI v2, SSO or key-based credentials).6metadata:7 source: https://skillmd.com/skills/jhkchan/sagemaker-model-registry-operator8 domain: aws-cloudops9 complexity: high10 requires_llm: 'true'11 phase: '3'12 supports_pipeline: 'true'13 entry_point: 'false'14 family: AI/ML15 task_type: operate16 skill_class: capability17 lifecycle_status: active18 verdict_shape: READY | BLOCKED | COMPLETED19 when_to_use: Registering a trained model in SageMaker Model Registry (create-model-package-group, create-model-package), driving the model approval workflow (PendingManualApproval to Approved or Rejected), managing model package versions within a group, distinguishing group-registered packages from standalone packages, listing or describing packages, adopting SageMaker Model Cards (auto-populated from a registered package), using the SageMaker Model Dashboard for a cross-registry view, wiring Model Registry with SageMaker Projects for CI/CD model deployment pipelines, or diagnosing a model package stuck in PendingManualApproval or a Failed registration.20 when_not_to_use: SageMaker endpoint deployment or real-time inference (use sagemaker-endpoint-deployer), SageMaker training job operations (use sagemaker-training-job-operator), SageMaker Studio or domain setup, or non-SageMaker model registries (MLflow open-source on EC2/EKS, HuggingFace Hub).21 activation_triggers: SageMaker Model Registry, model package group, create-model-package, update-model-package, model approval, PendingManualApproval, approve model, reject model, ModelApprovalStatus, Model Card, create-model-card, Model Dashboard, SageMaker Projects, model CI/CD, model versioning, InferenceSpecification, model package ARN, describe-model-package22 invocation_schema: 'Input: either (a) a model registry operation intent (create-group, register-package, approve, reject, list, describe, model-card, projects-integration) with target model package group / package / approval status, OR (b) a model-package-arn + operation for live-account execution. Output: a deterministic OPERATION / VERDICT / PRE_CHECKS / STEPS / POST_VERIFY block per operation, where VERDICT is one of READY, BLOCKED, COMPLETED.'23 version: 0.1.024 author: Jacky Chan — AWS Community Builder25 keywords: SageMaker, Model Registry, model package group, model package, model approval, PendingManualApproval, Approved, Rejected, model versioning, Model Card, Model Dashboard, SageMaker Projects, CI/CD model deployment, inference specification, model metrics, model artifacts, InferenceSpecification, model package ARN26 tags: sagemaker, ai-ml, model-registry, mlops, operate, model-approval, model-cards27---2829# SageMaker Model Registry Operator3031## What this skill does3233Executes SageMaker Model Registry operations correctly and34safely. Runs deterministic pre-checks before any state-changing35CLI, emits the exact `create-model-package` / `update-model-package`36sequence behind a CONFIRM gate, and verifies registry state37transitions after apply. Every registration surfaces approval38status, inference specification, and metrics wiring.3940## Quick navigation4142| Section | What it covers | When to read it |43|---|---|---|44| **§ Quick reference** | Verdict thresholds + pre-check priority + approval-state legality | Before any operation |45| **§ Mindset** | Approval-gated deployability, versioning, group vs standalone | Understanding the safety model |46| **§ Pre-flight** | Artifact / image / metrics / IAM metadata gate | Before executing any CLI |47| **§ Process** | Per-operation planning: create-group, register, approve, reject, model-card, projects | When choosing which operation |48| **§ Common patterns** | Group-registered, standalone, Model Card, Projects CI/CD boilerplate | Boilerplate lookup |49| **§ Output format** | Structured output template with VERDICT, COMMANDS, POST_VERIFY | Formatting the response |50| **§ Anti-Patterns** | NEVER list — common mistakes | Review before risky operations |5152## Quick reference — verdict thresholds5354| Verdict | Trigger condition | Action |55|---|---|---|56| `BLOCKED` | One or more pre-checks failed (artifact S3 unreachable, inference image inaccessible, metrics S3 missing, IAM permission missing, approval-state transition illegal, group does not exist for group-registered package) | List failures, do NOT execute |57| `READY` | All pre-checks passed; awaiting CONFIRM gate | Emit exact CLI sequence, wait for operator yes |58| `COMPLETED` | Operation applied and post-verification passed (package registered with correct `ModelApprovalStatus`, package version incremented, Model Card created, approval transition reflected) | Emit `describe-model-package` summary |5960**Priority order for pre-checks (all must pass for READY):**61621. **Model artifact accessibility** — `model.tar.gz` S3 object exists and the caller's execution role has `s3:GetObject` on the artifact prefix.632. **Inference image availability** — every container image in `InferenceSpecification.Containers[].Image` exists in ECR and the caller has `ecr:BatchGetImage`.643. **Metrics S3 reachability** — every `ModelMetrics` S3 URI resolves and the caller has read access.654. **Model package group existence** (for group-registered packages) — `ModelPackageGroupName` resolves to an existing group.665. **IAM permissions** — caller holds `sagemaker:CreateModelPackage`, `UpdateModelPackage`, `DescribeModelPackage`, `CreateModelPackageGroup`.676. **KMS key (if registry is encrypted)** — caller has `kms:Decrypt` and `kms:GenerateDataKey` on the registry's KMS key.687. **Approval-state transition legality** — `PendingManualApproval → Approved` or `Rejected` is legal; `Approved → PendingManualApproval` requires explicit re-registration.6970**Approval state machine (2026):**7172| Current state | Allowed transitions | Notes |73|---|---|---|74| `PendingManualApproval` | `Approved`, `Rejected` | Default for new packages when approval is manual |75| `Approved` | `Rejected` (rollback) | Re-approval to PendingManualApproval requires a new package version |76| `Rejected` | `Approved` (rare) | Generally re-register a new version |77| `AutoApproved` (auto-approval mode) | `Rejected` | Set via `ModelApprovalStatus` on the group |7879## Mindset8081Three Model Registry realities drive every operation:8283- **`PendingManualApproval` is the safety gate, not a default.**84 A model package registered with `ModelApprovalStatus:85 PendingManualApproval` cannot be deployed by downstream CI/CD86 (SageMaker Projects, EventBridge rules) until a human87 explicitly transitions it to `Approved`. Setting `Approved`88 at registration time bypasses review — only do this for89 dev / sandbox registries.9091- **Model package groups are the versioning boundary.** A92 group-registered package (`ModelPackageGroupName` set) gets93 an auto-incremented `ModelPackageVersion` within the group.94 A standalone package (no group) is a one-off with no version95 lineage. Group-registered is the production pattern;96 standalone is for experimentation only.9798- **`InferenceSpecification` is what makes a package deployable.**99 A package with `InferenceSpecification` (containers, supported100 instance types, content types) can be deployed to a SageMaker101 endpoint. A package registered as a model card source only102 (no inference spec) is non-deployable — useful for103 documentation but not for serving.104105## Pre-flight: model package metadata gate106107Run before classification. `list-model-packages` returns max108100/page (`--max-results 100`, paginate with `--next-token`).109110**Live-account pre-flight (skip if offline plan):**111Live-account pre-flight commands 1-7 (describe-model-package-group, list-model-packages, s3api head-object on the artifact and every metrics URI, ecr describe-images, iam simulate-principal-policy, kms describe-key): [references/diagnostic-commands.md](references/diagnostic-commands.md).112Load on demand before executing any live-account CLI.113114**Malformed input:** emit `VERDICT: ERROR` with reason and remediation.115116| Attribute | Effect on operation |117|---|---|118| `ModelPackageGroupStatus: Pending` | Group creation in progress; wait for `Completed` before registering |119| `ModelPackageGroupName` missing | Standalone package — no versioning; warn operator |120| `ModelApprovalStatus: Approved` at registration | Bypasses review; flag as risky for production |121| `InferenceSpecification` missing | Non-deployable package (documentation only) |122| `ModelMetrics` S3 URI returns 404 | Registration accepted but metrics unavailable; downstream Model Card incomplete |123124## Process — operation planning (apply in order)125126### Step 0: Expert knowledge — non-obvious Model Registry behaviors127The 13 non-obvious behaviors (group-registered vs standalone, approval set at registration, update-model-package as the only transition path, package immutability, Model Card auto-populate, Projects CI/CD wiring, AdditionalInferenceSpecifications, Marketplace SourceAlgorithms, ARN as canonical ID, ValidationSpecification, KMS scope, rejected-not-deleted): [references/advanced-patterns.md](references/advanced-patterns.md).128Load on demand when a pre-check fails or a transition looks illegal.129130### Step 1: Pre-check gate — BLOCKED if any check fails131132Run ALL pre-checks. If ANY fails, verdict is BLOCKED with133failures in PRE_CHECKS. Do NOT execute.134135**For ALL operations:**1361. Caller holds `sagemaker:CreateModelPackage` /137 `UpdateModelPackage` / `DescribeModelPackage` /138 `CreateModelPackageGroup`.1392. KMS key (if configured) decryptable by the caller.140141**For create-group:**1423. `ModelPackageGroupName` unique in account-region (3-63 chars,143 `[a-zA-Z0-9](-[a-zA-Z0-9])*`).1444. `KmsKeyId` (if specified) is enabled and the caller can use it.145146**For register-package (group-registered):**1473. `ModelPackageGroupName` resolves to an existing group with148 `ModelPackageGroupStatus: Completed`.1494. Model artifact S3 object (`model.tar.gz`) exists and the150 caller's role has `s3:GetObject`.1515. Every inference image in `InferenceSpecification.Containers`152 exists in ECR; caller has `ecr:BatchGetImage`.1536. Every `ModelMetrics` S3 URI resolves.1547. `ModelApprovalStatus` is one of `PendingManualApproval`,155 `Approved`, `Rejected`.156157**For register-package (standalone):**1583. `ModelPackageName` unique in account-region.1594. Same artifact / image / metrics checks as above.1605. Warn that standalone packages have no versioning lineage.161162**For approve / reject (update-model-package):**1633. `ModelPackageArn` resolves to an existing package.1644. Current `ModelApprovalStatus` allows the requested transition165 (see approval state machine above).1665. For `Approved` transitioning to deployment, the package has167 an `InferenceSpecification` (otherwise non-deployable).168169**For model-card:**1703. Source model package (if `--source-uri-type ModelPackage`)171 exists and is registered.1724. `ModelCardName` unique in account-region.173174**For projects-integration:**1753. SageMaker Project exists176 (`sagemaker describe-project --project-name <name>`).1774. The project's service role has `sagemaker:CreateModel` and178 `sagemaker:CreateEndpointConfig` for the deploy stage.1795. The project's designated model package group has at least one180 `Approved` package version (or the pipeline will stall).181182### Step 2: READY — emit operation plan183184Emit `VERDICT: READY` with exact CLI sequence + CONFIRM gate:185- Exact AWS CLI command with all flags populated.186- Expected next version number (for group-registered packages).187- Expected downstream effects (SageMaker Projects pipeline188 trigger on `Approved`, Model Card auto-population).189- CONFIRM gate prompt.190191### Step 3: Execute behind CONFIRM gate192193- **MANDATORY CONFIRMATION GATE.** Before any state-changing194 CLI (`create-model-package-group`, `create-model-package`,195 `update-model-package`, `delete-model-package`,196 `create-model-card`), emit CONFIRM prompt. Do NOT execute197 until confirmed.198- Snapshot current state:199 `describe-model-package-group --model-package-group-name <group> --output json > /tmp/<group>-backup-$(date +%s).json`.200- Execute the CLI.201- For group-registered packages, capture the returned202 `ModelPackageArn` and `ModelPackageVersion`.203204### Step 4: Post-verification — COMPLETED205206ALL checks must pass for `COMPLETED`:2071. `describe-model-package --model-package-arn <arn>` returns208 the expected `ModelApprovalStatus`, `ModelPackageVersion`,209 `InferenceSpecification`.2102. Group-registered: `list-model-packages --model-package-group-name <group>`211 shows the new version.2123. Approval transitions: the new status is reflected in213 `describe-model-package`.2144. For Model Card operations: `describe-model-card --model-card-name <name>`215 returns `ModelCardStatus: Draft` or `PendingReview`, and216 `Content` reflects the source package.2175. For Projects integration: the CodePipeline execution is218 triggered (or queued) on the `Approved` transition; check219 via `codepipeline list-pipeline-executions --pipeline-name <name>`.2206. For packages with `ValidationSpecification`: all validation221 jobs reached `Completed`; otherwise the package is not222 registered.223224If ANY verification fails, emit `VERDICT: ERROR` — do not claim COMPLETED.225226## Common registry patterns (boilerplate)227228### Create a model package group (one-time per model lineage)229230```bash231aws sagemaker create-model-package-group \232 --model-package-group-name "fraud-detection-classifier" \233 --model-package-group-description "Production fraud detection model lineage (XGBoost lineage)" \234 --tags '[{"Key":"team","Value":"risk-platform"},{"Key":"cost-center","Value":"ml-1234"}]'235```236237The group ARN is `arn:aws:sagemaker:<region>:<account>:model-package-group/<name>`.238All versioned packages registered against this group share the239lineage.240241### Register a versioned model package (group-registered)242243```bash244aws sagemaker create-model-package \245 --model-package-name "fraud-detection-2026-08-v1" \246 --model-package-group-name "fraud-detection-classifier" \247 --inference-specification '{248 "Containers": [249 {250 "Image": "763104351884.dkr.ecr.us-east-1.amazonaws.com/xgboost-inference:1.7-1-cpu-py3",251 "ImageDigest": "sha256:abc123...",252 "ModelDataUrl": "s3://ml-models/fraud-detection/2026-08/output/model.tar.gz",253 "Framework": "XGBOOST",254 "FrameworkVersion": "1.7-1",255 "NearestModelName": "XGBoost"256 }257 ],258 "SupportedTransformInstanceTypes": ["ml.m5.4xlarge"],259 "SupportedRealtimeInferenceInstanceTypes": ["ml.m5.large", "ml.m5.xlarge", "ml.m5.2xlarge"],260 "SupportedContentTypes": ["text/csv", "application/json"],261 "SupportedResponseMIMETypes": ["text/csv", "application/json"]262 }' \263 --model-metrics '{264 "ModelQuality": {"Statistics": {"ContentType": "application/json", "S3Uri": "s3://ml-metrics/fraud-detection/2026-08/quality.json"}},265 "ModelDataQuality": {"Statistics": {"ContentType": "application/json", "S3Uri": "s3://ml-metrics/fraud-detection/2026-08/data-quality.json"}},266 "Bias": {"Report": {"ContentType": "application/json", "S3Uri": "s3://ml-metrics/fraud-detection/2026-08/bias.json"}},267 "Explainability": {"Report": {"ContentType": "application/json", "S3Uri": "s3://ml-metrics/fraud-detection/2026-08/explainability.json"}}268 }' \269 --approval-status PendingManualApproval \270 --tags '[{"Key":"trained-by","Value":"sagemaker-training-job-fraud-2026-08"}]'271```272273The next version number is auto-assigned (e.g., version 5 if the274latest existing version is 4). Capture the returned275`ModelPackageArn` for downstream operations.276277### Approve a model package for production278279```bash280aws sagemaker update-model-package \281 --model-package-arn arn:aws:sagemaker:us-east-1:111122223333:model-package/fraud-detection-classifier/5 \282 --model-approval-status Approved \283 --approval-description "Approved by risk-platform review board 2026-08-11. AUC=0.94, no bias drift vs 2026-07 model."284```285286If a SageMaker Projects deployment pipeline is wired to this287group, the `Approved` transition triggers an EventBridge event288that the pipeline consumes — the deploy stage runs automatically.289290### Reject a model package291292```bash293aws sagemaker update-model-package \294 --model-package-arn arn:aws:sagemaker:us-east-1:111122223333:model-package/fraud-detection-classifier/5 \295 --model-approval-status Rejected \296 --approval-description "Rejected: precision@threshold=0.62 below 0.75 target."297```298299A rejected package remains in the registry for audit but cannot300be deployed by the Projects pipeline.301302### Standalone model package (no group, no versioning)303304```bash305aws sagemaker create-model-package \306 --model-package-name "experimental-bert-2026-08-11" \307 --inference-specification '{308 "Containers": [309 {"Image": "763104351884.dkr.ecr.us-east-1.amazonaws.com/huggingface-pytorch-inference:2.3.0-transformers4.39-cpu-py311-ubuntu22.04",310 "ModelDataUrl": "s3://ml-models/experimental/bert-2026-08-11/model.tar.gz"}311 ],312 "SupportedRealtimeInferenceInstanceTypes": ["ml.g5.xlarge"]313 }' \314 --approval-status PendingManualApproval315```316317No `ModelPackageGroupName` means standalone — no version318increment, no group-level lineage. Use for experimentation;319do not use for production tracking.320321### Auto-populate a SageMaker Model Card from a package322323```bash324aws sagemaker create-model-card \325 --model-card-name "fraud-detection-2026-08-card" \326 --model-card-status "PendingReview" \327 --model-card-content '{"version":"1.0","model_overview":{"model_creator":"risk-platform","model_artifact":"s3://ml-models/fraud-detection/2026-08/output/model.tar.gz"},"intended_uses":{"purpose_of_model":"Real-time fraud scoring","intended_uses":"Payment fraud detection"}}' \328 --source-uri arn:aws:sagemaker:us-east-1:111122223333:model-package/fraud-detection-classifier/5 \329 --source-uri-type ModelPackage330```331332The card inherits the package's `InferenceSpecification`, metrics333URIs, and approval status. Edit `model_card_content` for the334subjective sections (intended uses, risks, recommendations).335336### SageMaker Projects CI/CD pipeline (auto-deploy on approval)337338A SageMaker Project created from the `MLOps template for model339deployment` provisions a CodePipeline that consumes `Approved`340events from the project's model package group, a CodeBuild341project that runs the deploy script (`deploy.py` or `build.py`)342to create the SageMaker model / endpoint config / endpoint, and343an EventBridge rule that fires on344`SageMaker Model Package Approval` for the group.345346Verify the wiring:347348```bash349aws sagemaker describe-project --project-name "fraud-detection-deploy-proj"350aws codepipeline list-pipelines --query 'pipelines[?contains(name, `fraud-detection`)]'351aws events list-rule-names-by-target --target-arn arn:aws:codepipeline:us-east-1:111122223333:fraud-detection-deploy352```353354When a new package version transitions to `Approved`, the pipeline355triggers within seconds.356357## Diagnostic flows358359The three diagnostic flows (package stuck in PendingManualApproval, Projects pipeline did not trigger on approval, Model Card content mismatch): [references/error-handling.md](references/error-handling.md).360Load on demand when diagnosing a stalled approval or a silent CI/CD trigger.361362## Output format (per operation)363364```text365OPERATION: <create-group | register-package | approve | reject | list | describe | model-card | projects-integration>366VERDICT: READY | BLOCKED | COMPLETED367TARGET: <group-name / package-arn / version, region>368PRE_CHECKS:369 - [PASS] <check description>370 - [FAIL] <check description> — <reason>371STEPS:372 1. <CLI command with flags populated>373 2. <verify command>374POST_VERIFY:375 - [PASS] <verification description>376 - [FAIL] <verification description> — <reason>377STATE: <PendingManualApproval | Approved | Rejected | registered> after apply>378VERSION: <next or current ModelPackageVersion, or N/A>379NOTES: <approval rationale, versioning, downstream pipeline effects>380```381382### Worked example — register group-registered package (READY)383384```text385OPERATION: register-package386VERDICT: READY387TARGET: fraud-detection-classifier / next version 5, us-east-1388PRE_CHECKS:389 - [PASS] describe-model-package-group fraud-detection-classifier exists, Status Completed390 - [PASS] list-model-packages latest version 4; next version 5391 - [PASS] s3api head-object s3://ml-models/fraud-detection/2026-08/output/model.tar.gz returns 200392 - [PASS] ecr describe-images xgboost-inference:1.7-1-cpu-py3 imageTag exists393 - [PASS] s3api head-object on all four ModelMetrics URIs returns 200394 - [PASS] Caller holds sagemaker:CreateModelPackage, iam:PassRole395 - [PASS] KMS key arn:aws:kms:us-east-1:111122223333:key/abc decryptable396 - [PASS] Approval status PendingManualApproval — safe default for production lineage397STEPS:398 1. CONFIRM: About to create-model-package fraud-detection-2026-08-v1 in group fraud-detection-classifier (version 5) in account 111122223333 region us-east-1. Approval status PendingManualApproval (requires manual approval before deployment). Proceed? (yes/no)399 2. aws sagemaker create-model-package --model-package-name fraud-detection-2026-08-v1 --model-package-group-name fraud-detection-classifier --inference-specification '{"Containers":[{"Image":"763104351884.dkr.ecr.us-east-1.amazonaws.com/xgboost-inference:1.7-1-cpu-py3","ModelDataUrl":"s3://ml-models/fraud-detection/2026-08/output/model.tar.gz","Framework":"XGBOOST","FrameworkVersion":"1.7-1"}],"SupportedRealtimeInferenceInstanceTypes":["ml.m5.large","ml.m5.xlarge","ml.m5.2xlarge"],"SupportedContentTypes":["text/csv"],"SupportedResponseMIMETypes":["text/csv"]}' --model-metrics '{"ModelQuality":{"Statistics":{"ContentType":"application/json","S3Uri":"s3://ml-metrics/fraud-detection/2026-08/quality.json"}}}' --approval-status PendingManualApproval400 3. aws sagemaker describe-model-package --model-package-arn <returned-arn>401POST_VERIFY:402 - (pending execution) describe-model-package returns ModelPackageVersion 5, ModelApprovalStatus PendingManualApproval403 - (pending execution) list-model-packages --model-package-group-name fraud-detection-classifier shows version 5404STATE: pending — will be PendingManualApproval405VERSION: 5406NOTES:407 - Versioning: group-registered; version auto-incremented to 5. Standalone packages do not increment versions.408 - Approval: PendingManualApproval requires explicit update-model-package to Approved before deployment.409 - Downstream: if SageMaker Projects is wired, the pipeline triggers only on the Approved transition (not on registration).410```411412### Worked example — approve blocked (BLOCKED)413Full BLOCKED worked example (approve blocked — no InferenceSpecification): [references/worked-examples.md](references/worked-examples.md).414The READY example above is the primary worked example; this one loads on demand.415416## STRICT output contract417418### Required output structure419420Every response MUST begin with this block — no preamble, no421conversational opening:422423```text424OPERATION: <create-group | register-package | approve | reject | list | describe | model-card | projects-integration>425VERDICT: READY | BLOCKED | COMPLETED426TARGET: <group-name / package-arn / version, region>427PRE_CHECKS:428 - [PASS] <check description>429 - [FAIL] <check description> — <reason>430STEPS:431 1. CONFIRM: About to <operation> on <group / package> in account <account> region <region>. This will <consequence>. Proceed? (yes/no)432 2. <exact CLI command with every flag populated — no placeholders>433POST_VERIFY:434 - [PASS] <verification description>435 - [FAIL] <verification description> — <reason>436STATE: <PendingManualApproval | Approved | Rejected | registered | pending>437VERSION: <ModelPackageVersion or N/A>438NOTES: <approval rationale — must state PendingManualApproval | Approved | Rejected and why; versioning; downstream pipeline effects>439```440441### FORBIDDEN output patterns442443- NEVER start with conversational preamble ("Let me analyze…") — the VERDICT block is the FIRST line, always. Use uppercase verdict values only (`READY`, `BLOCKED`, `COMPLETED`).444- NEVER omit PRE_CHECKS — every pre-check must appear with `[PASS]` or `[FAIL]` and a specific reason for each failure.445- NEVER register a production model package with `--approval-status Approved` without flagging the bypass-review risk in NOTES.446- NEVER list a CLI command with placeholder flags in a READY plan — every flag must be populated with actual values from the input data.447- NEVER claim COMPLETED without every POST_VERIFY line showing `[PASS]`, and never omit the CONFIRM gate as the first STEPS entry for state-changing operations.448449## Anti-Patterns — NEVER do these things450451- NEVER register a production model package without a `ModelPackageGroupName`. Standalone packages have no versioning lineage and cannot be tracked through the approval workflow consistently. Use group-registered packages for production.452- NEVER set `--approval-status Approved` at registration time for a production lineage. The default `PendingManualApproval` exists to gate deployment behind human review; auto-approval bypasses this safety check.453- NEVER assume a registered package is deployable without an `InferenceSpecification`. Packages registered for Model Card sourcing only (documentation) cannot be deployed to an endpoint. Verify the spec before approving.454- NEVER assume `update-model-package` rollbacks (`Approved → Rejected`) propagate automatically to deployed endpoints. The endpoint continues serving the previously-deployed version until the SageMaker Projects pipeline (or manual update) re-deploys.455- NEVER use `delete-model-package` to "revert" a version. Deletion removes the package from the registry for audit purposes and the version number is not reused. To revert, register a new version pointing at the prior artifact.456457## Pre-flight safety checks458459- **MANDATORY CONFIRMATION GATE** before any state-changing CLI.460- **Snapshot before modification:** `describe-model-package-group --model-package-group-name <group> --output json > /tmp/<group>-backup-$(date +%s).json`.461- **Verify model artifact S3 accessibility** before registration — a 404 at registration time leaves an empty package version.462- **Verify all inference images exist in ECR** before registration.463- **Prefer group-registered packages** over standalone for any production lineage.464465## Expert heuristic: "Approval is a deployment gate, not a label"466The full heuristic — registration lifecycle diagram, approval-state transition matrix, group vs standalone decision table, per-operation pre-check table: [references/advanced-patterns.md](references/advanced-patterns.md).467Load on demand when planning approvals or CI/CD wiring.468469## Recent AWS features (2024-2026)470Recent AWS features 2024-2026 (Model Cards, Model Dashboard, Registry+Projects auto-deploy, Additional Inference Specifications, registry KMS, ValidationSpecification, Customer Metadata Properties, MLflow lineage, EventBridge state change, cross-account dashboard): [references/advanced-patterns.md](references/advanced-patterns.md).471Load on demand when a feature question arises.472473## References (load on demand)474475- [Advanced patterns](references/advanced-patterns.md) — Step 0 expert-knowledge deep dive, the approval-as-deployment-gate heuristic (lifecycle diagram, transition matrix, per-operation pre-checks), recent AWS features (2024-2026)476- [Diagnostic commands](references/diagnostic-commands.md) — live-account pre-flight command listing (group, versions, artifact, ECR image, metrics, IAM, KMS)477- [Error handling](references/error-handling.md) — diagnostic flows: package stuck in PendingManualApproval, Projects pipeline not triggering, Model Card content mismatch478- [Worked examples](references/worked-examples.md) — secondary worked example (approve blocked without InferenceSpecification)479- [Approval workflow and CI/CD pipeline](references/approval-workflow-and-cicd-pipeline.md) — approval workflow and SageMaker Projects CI/CD detail480- [Model cards, dashboard, and packages](references/model-cards-dashboard-and-packages.md) — Model Cards, Model Dashboard, and model package detail481482## Domain483484AWS CloudOps / AI-ML — Model Registry & MLOps Operations.485486## AWS documentation487488- **SageMaker Model Registry** — https://docs.aws.amazon.com/sagemaker/latest/dg/model-registry.html489- **Model Package Groups** — https://docs.aws.amazon.com/sagemaker/latest/dg/model-registry-groups.html490- **Register a Model Package** — https://docs.aws.amazon.com/sagemaker/latest/dg/model-registry-register-version.html491- **Approve Model Packages** — https://docs.aws.amazon.com/sagemaker/latest/dg/model-registry-approve.html492- **SageMaker Model Cards** — https://docs.aws.amazon.com/sagemaker/latest/dg/model-cards.html493- **SageMaker Model Dashboard** — https://docs.aws.amazon.com/sagemaker/latest/dg/model-dashboard.html494- **SageMaker Projects / MLOps templates** — https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-projects.html495- **AWS CLI / API Reference** — https://docs.aws.amazon.com/cli/latest/reference/sagemaker/