SSM Patch Baseline Deployer
What this skill does
Provisions SSM Patch Baselines with secure patch-management defaults —
correct operating system selection, approval rules with compliance
severity, tag-based patch group targeting, and maintenance window
integration. Enforces approval rules that auto-approve critical and
security patches within a documented window, compliance severity levels
that surface unpatched instances in the compliance dashboard, patch
groups keyed by Patch Group tag, and maintenance window tasks that
reference the correct document (AWS-RunPatchBaseline) with the correct
parameters. Runs deterministic pre-checks before any state-changing
CLI, emits the exact create-patch-baseline,
register-patch-baseline-for-patch-group, and maintenance window
registration CLIs behind a CONFIRM gate, and verifies the deployment via
describe-patch-baseline and describe-instance-patch-states. Every
baseline plan surfaces the operating system, approval rule matrix, patch
group tag key, and the default-vs-custom baseline selection.
Quick navigation
| Section |
What it covers |
When to read it |
| Quick reference |
Verdict thresholds + pre-check priority order + baseline config matrix |
Before any operation |
| Mindset |
Why defaults matter; Patch Manager silent-failure modes; overwrite traps |
Understanding the deployment model |
| Pre-flight |
Baseline metadata gate — OS, approval rules, patch group tags, instance roles |
Before executing any CLI |
| Process |
Per-operation planning: create baseline, register patch group, maintenance window |
When choosing which operation |
| Common patterns |
Amazon Linux 2023 / Windows auto-approve / macOS / maintenance window boilerplate |
Boilerplate lookup |
| STRICT output contract |
Required BASELINE/VERDICT/PRE_CHECKS/STEPS/POST_VERIFY block |
Formatting the response |
| NEVER (top 5) |
Hard rules that prevent common insecure patterns |
Review before deploy |
| Expert heuristic |
Choosing auto-approve delay (0 vs N days) per environment |
Choosing approval strategy |
Quick reference — verdict thresholds
| Verdict |
Trigger condition |
Action |
PREREQUISITES_MISSING |
Any pre-check failed (unsupported OS, approval rule missing required fields, patch group tag key not Patch Group, instance profile missing AmazonSSMManagedInstanceCore, maintenance window not found, IAM permission missing, baseline name collision on create) |
List failures, do NOT execute |
READY_TO_DEPLOY |
All pre-checks passed; awaiting CONFIRM gate |
Emit exact CLI sequence with full baseline config, wait for operator yes |
Priority order for pre-checks (apply in this sequence, all must pass for
READY_TO_DEPLOY):
- Baseline name uniqueness —
describe-patch-baselines returns no
custom baseline with the target name (for create) or matches exactly
one (for update).
- Operating system support — the
OperatingSystem is one of
AMAZON_LINUX_2023, AMAZON_LINUX_2, AMAZON_LINUX, UBUNTU_22.04,
UBUNTU_20.04, DEBIAN_11, DEBIAN_12, REDHAT_ENTERPRISE_LINUX_8,
REDHAT_ENTERPRISE_LINUX_9, WINDOWS_SERVER, MACOS, SUSE,
CENTOS_7, ORACLE_LINUX_8, ROCKY_LINUX_9, ALMA_LINUX_9,
RASPBIAN.
- Approval rule completeness — each approval rule has
ApproveAfterDays (0-100), ComplianceLevel (CRITICAL, HIGH,
MEDIUM, LOW, INFORMATIONAL, UNSPECIFIED), and at least one
PatchFilter (product, classification, severity).
- Approval rule product — the product matches the OS (e.g.,
Amazon Linux 2023 for AMAZON_LINUX_2023, Ubuntu2204 for
UBUNTU_22.04). Mismatched product = zero patches matched.
- Patch filter classification — classification values are valid for
the OS (e.g.,
Security, Bugfix, Enhancement, Recommended,
Newpackage). Invalid classifications silently match nothing.
- Patch filter severity — severity values are valid for the OS
(e.g.,
Critical, Important, Medium, Low). Windows uses
Microsoft severity; Linux uses distro severity.
- Patch group tag key — the tag key used for registration is
exactly
Patch Group (case-sensitive). AWS Patch Manager looks up
instances by this tag key only.
- Patch group tag value format — the tag value matches
[A-Za-z0-9:_-]{1,255} and does not contain spaces or special
characters.
- Instance role — the SSM instance profile attached to target
EC2/macOS instances includes
AmazonSSMManagedInstanceCore
(and AmazonSSMPatchAssociation for association execution).
- Maintenance window existence — if maintenance window integration
is requested, the window ID exists and is in the same account/region.
- Maintenance window task document — the task document is
AWS-RunPatchBaseline (or AWS-ApplyPatchBaseline for Windows
offline patching). The Operation parameter is Scan or Install.
- Compliance level consistency — the
ComplianceLevel on approval
rules is not UNSPECIFIED for production baselines (UNSPECIFIED =
no compliance reporting).
- Rejected patches — if
RejectedPatches are listed, the
RejectedPatchesAction is BLOCK_AS_PENDING (default) or
ALLOW_AS_DEPENDENCY.
- IAM permissions — the operator principal holds
ssm:CreatePatchBaseline, ssm:RegisterPatchBaselineForPatchGroup,
ssm:RegisterTargetWithMaintenanceWindow, and
ssm:RegisterTaskWithMaintenanceWindow (as applicable).
SSM Patch Manager limits (2026):
- Patch baselines per account (default): 1000 (soft limit).
- Patch groups per account: 10000 (soft limit).
- Approval rules per baseline: 1 (operating-system level) — can contain
multiple
PatchFilters entries.
- Patch filters per approval rule: 1-100.
- Rejected patches per baseline: 1-1000.
- One patch group registration per baseline (default baseline per OS
per account).
- Maintenance windows per account: 1000 (soft).
Mindset
One-line takeaway: SSM Patch Manager silently matches zero patches
when approval rules are misconfigured. A baseline for AMAZON_LINUX_2023
with a product filter of Amazon Linux 2 will deploy cleanly — but no
patches will ever be approved, and the compliance dashboard will show
every instance as compliant (zero missing patches). The skill enforces
product-OS matching at the pre-check gate.
Driven by three Patch Manager realities:
Approval rules match patches by product, classification, and
severity. If the product does not match the OS, zero patches match.
If the classification is misspelled (Security vs security), zero
patches match. The pre-flight gate verifies product-OS alignment and
classification casing.
Patch groups are looked up by the Patch Group tag key. The tag
key is case-sensitive (Patch Group, not patch-group). Instances
without the tag are never patched regardless of baseline registration.
Maintenance window tasks must use AWS-RunPatchBaseline. Using
AWS-RunShellScript or a custom document with patch parameters does
not update the compliance dashboard. The skill verifies the document
name on every maintenance window task.
Pre-flight: patch baseline metadata gate
Run before classification. Misclassifying these produces wrong plans.
Pagination: describe-patch-baselines returns at most 50 per page
(via --max-results). Use --next-token to drain.
Live-account pre-flight (skip if offline plan audit):
aws ssm describe-patch-baselines --operating-system <os> --max-results 50 — confirm the baseline name does not collide (for
create) or matches (for update).
aws ssm describe-patch-baselines --operating-system <os> --filters Key=OWNER,Values=AWS — check the default AWS baseline for
the OS (to decide default-vs-custom).
aws ec2 describe-instances --filters "Name=tag:Patch Group,Values=<patch-group>" — confirm instances exist with the tag.
aws iam list-instance-profiles — confirm the target instance
profile includes AmazonSSMManagedInstanceCore.
aws ssm describe-maintenance-windows --window-id <id> — for
maintenance window integration, confirm the window exists.
aws ssm describe-instance-patch-states --instance-ids <ids> —
baseline snapshot of current patch compliance.
Malformed input: if the baseline spec is missing required fields
(Name, OperatingSystem, or ApprovalRules), emit VERDICT: PREREQUISITES_MISSING with REASON: Baseline spec missing required field — Name, OperatingSystem, or ApprovalRules. Cannot plan. and
REMEDIATION: Provide the full baseline configuration per https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-create-baseline.html.
| Attribute |
Effect on operation |
| OS not in supported list |
API rejects. PREREQUISITES_MISSING. |
| Product mismatched to OS |
Zero patches matched. PREREQUISITES_MISSING. |
| Classification case-sensitive error |
Zero patches matched. PREREQUISITES_MISSING. |
Patch Group tag key not exact Patch Group |
Instances never patched. PREREQUISITES_MISSING. |
| Instance role missing AmazonSSMManagedInstanceCore |
SSM agent cannot register. PREREQUISITES_MISSING. |
| ComplianceLevel UNSPECIFIED |
No compliance reporting. Flag in NOTES. |
| Maintenance window task not AWS-RunPatchBaseline |
Compliance not updated. PREREQUISITES_MISSING. |
| ApproveAfterDays > 100 |
API rejects. PREREQUISITES_MISSING. |
Process — operation planning (apply in order)
Step 0: Expert knowledge — non-obvious Patch Manager behaviors
Step-0 expert behaviors moved to references/advanced-patterns.md —
load when a plan hinges on default-baseline, approval-rule, or product-filter semantics.
Step 1: Pre-check gate — PREREQUISITES_MISSING if any check fails
Run ALL of the following pre-checks. If ANY fails, the verdict is
PREREQUISITES_MISSING with the failed checks enumerated in PRE_CHECKS.
Do NOT execute.
For ALL operations:
- Baseline name is set, <= 128 chars, matches
[a-zA-Z0-9_.-]+.
OperatingSystem is in the supported list.
- IAM principal holds the relevant
ssm: permission.
For create-patch-baseline:
4. Baseline name does not collide with an existing custom baseline.
5. ApprovalRules contains at least one PatchRule.
6. Each PatchRule has ApproveAfterDays in range 0-100.
7. Each PatchRule has ComplianceLevel set to a non-UNSPECIFIED value
for production baselines.
8. Each PatchRule.PatchFilterGroup has product matching the OS.
9. Classification values are valid and correctly cased for the OS.
10. Severity values are valid for the OS.
11. RejectedPatchesAction is BLOCK_AS_PENDING or
ALLOW_AS_DEPENDENCY (if rejected patches are listed).
For register-patch-baseline-for-patch-group:
12. The Patch Group tag key is used (case-sensitive).
13. The patch group value matches [A-Za-z0-9:_-]{1,255}.
14. The baseline ID exists and is for the correct OS.
15. At least one instance exists with the Patch Group tag value
(checked via ec2:describe-instances if live).
For register-target-with-maintenance-window:
16. The maintenance window ID exists.
17. The Targets use the Patch Group tag or resource groups.
18. The OwnerInformation (if set) does not contain secrets.
For register-task-with-maintenance-window:
19. The task document is AWS-RunPatchBaseline (or
AWS-ApplyPatchBaseline for Windows offline).
20. The TaskParameters include Operation: Scan or
Operation: Install.
21. MaxConcurrency and MaxErrors are set (not omitted — defaults
may be too aggressive for production).
22. The CloudWatchOutputConfig is enabled for audit logging.
Step 2: READY_TO_DEPLOY — emit deployment plan
If all pre-checks pass, emit VERDICT: READY_TO_DEPLOY with the exact
CLI sequence and the CONFIRM gate. The plan includes:
- The exact
aws ssm create-patch-baseline CLI with the full config
(OperatingSystem, ApprovalRules, GlobalFilters, RejectedPatches,
Sources, Description, Tags).
- The follow-up
register-patch-baseline-for-patch-group CLI for each
patch group.
- The follow-up
register-target-with-maintenance-window CLI for
maintenance window integration.
- The follow-up
register-task-with-maintenance-window CLI with the
AWS-RunPatchBaseline document.
- The CONFIRM gate prompt.
Step 3: Execute behind CONFIRM gate
- MANDATORY CONFIRMATION GATE. Before any state-changing CLI
(
create-patch-baseline, register-patch-baseline-for-patch-group,
register-task-with-maintenance-window), emit:
CONFIRM: About to <operation> <resource> in account <account> region <region>. This will <consequence>. Proceed? (yes/no). Do NOT
execute until the operator confirms.
- Snapshot the current baseline config before modification:
`aws ssm describe-patch-baseline --baseline-id --output json
/tmp/-backup-$(date +%s).json`.
- Execute the CLI with the full baseline config.
Step 4: Post-verification
After the operation finishes, run post-verification:
describe-patch-baseline --baseline-id <id> returns the expected
config (OperatingSystem, ApprovalRules, ComplianceLevel).
describe-patch-groups --operating-system <os> returns the patch
group registered to this baseline.
- For maintenance window:
describe-maintenance-window-tasks --window-id <id> returns the AWS-RunPatchBaseline task with correct parameters.
- Trigger a
Scan operation on one target instance:
aws ssm send-command --document-name AWS-RunPatchBaseline --parameters '{"Operation":["Scan"]}' --targets <targets>.
- After scan completes:
describe-instance-patch-states --instance-ids <id> returns the expected patch count and compliance status.
Common baseline patterns (boilerplate)
Boilerplate patterns moved to references/worked-examples.md:
AL2023, Windows, macOS baselines; maintenance-window Install task; air-gapped custom repository.
STRICT output contract
Required output structure
Every response MUST begin with this block — no preamble, no conversational
opening:
BASELINE: <baseline-name>
VERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING
TARGET: <baseline-name> (baseline-id: <id> for updates)
PRE_CHECKS:
- [PASS] <check description>
- [FAIL] <check description> — <reason>
STEPS:
1. CONFIRM: About to <operation> <resource> in account <account> region <region>. This will <consequence>. Proceed? (yes/no)
2. <exact CLI command — no placeholders>
POST_VERIFY:
- [PASS] <verification description>
- [FAIL] <verification description> — <reason>
OPERATING_SYSTEM: AMAZON_LINUX_2023 | WINDOWS_SERVER | MACOS | UBUNTU_22.04 | ...
APPROVAL_RULES: <count> rule(s) (classifications: <list>, auto-approve: <N> days)
COMPLIANCE_LEVEL: CRITICAL | HIGH | MEDIUM | LOW
PATCH_GROUPS: <count> registered (values: <list>)
MAINTENANCE_WINDOW: <window-id> | NONE
INSTANCE_ROLE: AmazonSSMManagedInstanceCore | MISSING
NOTES: <patching posture, approval strategy, compliance caveats>
FORBIDDEN output patterns
- NEVER start with "Let me analyze…" or "I'll create…" — the VERDICT
block is the FIRST line, always. No conversational preamble.
- NEVER use lowercase verdict values — emit
READY_TO_DEPLOY or
PREREQUISITES_MISSING.
- NEVER omit PRE_CHECKS — every pre-check run must appear with
[PASS]
or [FAIL] and a specific reason for each failure.
- NEVER emit a plan with placeholder values in a READY_TO_DEPLOY plan —
every field must be populated with actual values from the input.
- NEVER omit the CONFIRM gate as the first STEPS entry for any
state-changing operation.
- NEVER claim success without verifying that the baseline was created
(via
describe-patch-baseline).
- NEVER put-update a baseline without snapshotting the existing config
first — updates to
ApprovalRules overwrite silently.
- NEVER silently allow a maintenance window task with a non-
AWS-RunPatchBaseline document — block it with a [FAIL] pre-check row.
Perfect example output
BASELINE: al2023-prod-security
VERDICT: READY_TO_DEPLOY
TARGET: al2023-prod-security
PRE_CHECKS:
- [PASS] Baseline name unique (no collision in describe-patch-baselines)
- [PASS] Operating System: AMAZON_LINUX_2023 is supported
- [PASS] Product filter Amazon Linux 2023 matches OS
- [PASS] Classification Security, Bugfix are valid for AL2023
- [PASS] Severity Critical, Important are valid
- [PASS] ApproveAfterDays: 7 (in range 0-100)
- [PASS] ComplianceLevel: CRITICAL (non-UNSPECIFIED)
- [PASS] Patch Group tag key is "Patch Group" (case-sensitive)
- [PASS] Instance role includes AmazonSSMManagedInstanceCore
- [PASS] IAM principal holds ssm:CreatePatchBaseline
STEPS:
1. CONFIRM: About to create-patch-baseline al2023-prod-security in account 111111111111 region us-east-1. This will CREATE a new baseline for AMAZON_LINUX_2023 with 7-day auto-approve on Security and Bugfix patches. Proceed? (yes/no)
2. aws ssm create-patch-baseline --name al2023-prod-security --operating-system AMAZON_LINUX_2023 --approval-rules '{"PatchRules":[{"PatchFilterGroup":{"OperatingSystem":"AMAZON_LINUX_2023","PatchFilters":[{"Key":"PRODUCT","Values":["Amazon Linux 2023"]},{"Key":"CLASSIFICATION","Values":["Security","Bugfix"]},{"Key":"SEVERITY","Values":["Critical","Important"]}]},"ApproveAfterDays":7,"ComplianceLevel":"CRITICAL","EnableNonSecurity":true}]}' --tags '[{"Key":"Environment","Value":"prod"}]'
3. aws ssm register-patch-baseline-for-patch-group --baseline-id <returned-id> --patch-group al2023-prod-web
POST_VERIFY:
- (pending execution)
- describe-patch-baseline returns OperatingSystem=AMAZON_LINUX_2023, ApproveAfterDays=7
- describe-patch-groups returns al2023-prod-web registered to this baseline
OPERATING_SYSTEM: AMAZON_LINUX_2023
APPROVAL_RULES: 1 rule (classifications: Security, Bugfix; auto-approve: 7 days)
COMPLIANCE_LEVEL: CRITICAL
PATCH_GROUPS: 1 (al2023-prod-web)
MAINTENANCE_WINDOW: NONE
INSTANCE_ROLE: AmazonSSMManagedInstanceCore
NOTES:
- ApproveAfterDays 7 means patches are approved 7 days after vendor release — balances freshness with soak time.
- EnableNonSecurity true also approves non-security updates matching the product filter.
- Register a maintenance window task (AWS-RunPatchBaseline Operation=Install) to actually install patches.
NEVER (top 5)
These are the highest-impact, most-frequent failure modes in SSM Patch
Baseline deployments. Violating any one of these is a security or
operational regression.
NEVER create a baseline with a product filter that does not match
the operating system. An AMAZON_LINUX_2023 baseline with a
product of Amazon Linux 2 matches zero patches — the compliance
dashboard shows all instances as compliant when they are not. The
pre-check gate verifies product-OS alignment.
NEVER register a patch group without verifying the instance role
includes AmazonSSMManagedInstanceCore. Instances without the role
cannot register with SSM, cannot be patched, and will silently appear
as non-compliant with no actionable error. The pre-check gate
verifies the role on at least one instance in the patch group.
NEVER set ComplianceLevel: UNSPECIFIED on a production baseline.
UNSPECIFIED means missing patches do not appear in the compliance
dashboard — you lose visibility into unpatched instances. Always use
CRITICAL, HIGH, or MEDIUM for production.
NEVER create a maintenance window task with a document other than
AWS-RunPatchBaseline for patching. Using AWS-RunShellScript to
run yum update or apt upgrade does not report to the compliance
dashboard. The skill verifies the document name on every patch task.
NEVER register a custom baseline as the default for an OS without
understanding it replaces the AWS baseline for ALL instances. The
default baseline applies to every instance of that OS in the account,
not just tagged ones. Only set a custom baseline as default when you
intend a fleet-wide override. Otherwise, register via patch groups.
Expert heuristic: choosing auto-approve delay
The right ApproveAfterDays is a function of environment, risk
tolerance, and operational maturity — not a one-size-fits-all. The
heuristic below resolves the trade-off deterministically.
Environment / risk posture
├─ Production, regulated (PCI/HIPAA/SOC2)?
│ └─ ApproveAfterDays: 3-7. Security patches soak 3-7 days in
│ pre-prod before auto-approving in prod. Pair with a
│ maintenance window for controlled installation windows.
│
├─ Production, non-regulated?
│ └─ ApproveAfterDays: 7-14. Longer soak time for stability.
│ Critical security patches may need a separate rule with
│ ApproveAfterDays: 0 for emergency response.
│
├─ Staging / pre-prod?
│ └─ ApproveAfterDays: 1-3. Short soak time — catch breakages
│ before promoting to production.
│
└─ Development?
└─ ApproveAfterDays: 0. Immediate approval — keep dev instances
on the latest patches for testing compatibility.
Decision rules:
- Default to
ApproveAfterDays: 7 for production. It is the safest
default that balances security urgency with operational stability.
- For critical security patches, consider a separate approval rule with
ApproveAfterDays: 0 and ComplianceLevel: CRITICAL — these are
emergency patches that should not wait.
- Always pair
ApproveAfterDays with a maintenance window. Without a
maintenance window, patches are approved but never installed.
ComplianceLevel should reflect operational urgency: CRITICAL for
production security patches, HIGH for important patches, MEDIUM for
the rest.
- For air-gapped environments, set
ApproveAfterDays: 0 (the mirror
controls timing) and use custom Sources for the local repository.
ALWAYS emit ComplianceLevel as a non-UNSPECIFIED value for production
baselines. Without it, the compliance dashboard is blind to missing
patches.
Recent AWS features (2024-2026)
2024-2026 feature notes (macOS Patch Manager, AL2023 dnf, Sources,
dashboard enhancements) moved to references/advanced-patterns.md.
AWS documentation
References (load on demand)
- references/baseline-config-and-approval-rules.md — Canonical per-OS baseline configurations and approval-rule patterns.
- references/patch-groups-and-maintenance-windows.md — Patch group registration and maintenance-window integration detail.
- references/worked-examples.md — Full CLI boilerplate for each OS archetype (moved from Common baseline patterns).
- references/advanced-patterns.md — Step-0 expert Patch Manager behaviors and 2024-2026 feature notes (moved from SKILL.md).
Domain
AWS CloudOps / Management & Governance — SSM Patch Baseline Provisioning.
1---2name: ssm-patch-baseline-deployer3description: Provisions SSM Patch Baselines with secure patch-management defaults — baseline creation (OS, product, classification, severity), approval rules (auto-approve after N days, compliance level), patch groups (tag-based targeting), default vs custom baseline selection, maintenance window integration, and custom repositories for Amazon Linux 2023, RHEL, Ubuntu, Windows, macOS. Runs pre-checks (OS validity, product-OS matching, Patch Group tag key, instance role AmazonSSMManagedInstanceCore, IAM permissions, maintenance window task document), emits create-patch-baseline, register-patch-baseline -for-patch-group, register-task-with-maintenance-window CLIs behind a CONFIRM gate, verifies via describe-patch-baseline. Emits READY_TO_DEPLOY | PREREQUISITES_MISSING. Use when creating patch baselines, configuring approval rules, targeting patch groups, or integrating with maintenance windows.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 ssm create-patch-baseline, update-patch-baseline, register-patch-baseline-for-patch-group, describe-patch-baseline, describe-instance-patch-states, register-target-with-maintenance-window, register-task-with-maintenance-window (AWS CLI v2, SSO or key-based credentials).6metadata:7 source: https://skillmd.com/skills/jhkchan/ssm-patch-baseline-deployer8 domain: aws-cloudops9 complexity: high10 requires_llm: 'true'11 phase: '1'12 supports_pipeline: 'true'13 entry_point: 'false'14 family: Management15 task_type: deploy16 skill_class: capability17 lifecycle_status: active18 verdict_shape: READY_TO_DEPLOY | PREREQUISITES_MISSING19 version: 0.1.020 author: Jacky Chan — AWS Community Builder21 tags: ssm, patch-baseline, management, patch-manager, maintenance-window, deploy, compliance, os-patching22 dependencies: aws-orchestrator23 keywords: SSM Patch Manager, Patch Baseline, patch baseline, approval rule, auto-approve, compliance level, patch group, tag-based targeting, maintenance window, operating system, Amazon Linux 2023, macOS patching, Windows Server, Ubuntu, RHEL, custom repository, SSM, Systems Manager, patch compliance, AmazonSSMManagedInstanceCore24 when_to_use: Creating or updating an SSM Patch Baseline (approval rules, operating system, classification, severity), registering a patch group for tag-based targeting, setting default vs custom baseline selection, integrating a patch baseline with a maintenance window (register targets and tasks), or configuring custom repositories for Amazon Linux 2023, RHEL, Ubuntu, Windows, or macOS patching.25 activation_triggers: create patch baseline, provision SSM patch baseline, deploy patch baseline, approval rule patching, auto-approve patches, patch group, register patch baseline, maintenance window patching, Amazon Linux 2023 patches, macOS patching SSM, Windows Server patch baseline, Ubuntu patch baseline, RHEL patch baseline, custom repository patching, patch compliance severity, ssm create-patch-baseline, register-patch-baseline-for-patch-group, default patch baseline26 invocation_schema: 'Input: either (a) a patch baseline deployment intent (create or update) with target operating system, approval rules (classification, severity, auto-approve days, compliance level), patch group, and optional maintenance window integration; OR (b) a baseline ID for live-account update or validation. Output: deterministic BASELINE/VERDICT/PRE_CHECKS/STEPS/POST_VERIFY block per operation, where VERDICT is one of READY_TO_DEPLOY, PREREQUISITES_MISSING.'27---2829# SSM Patch Baseline Deployer3031## What this skill does3233Provisions SSM Patch Baselines with secure patch-management defaults —34correct operating system selection, approval rules with compliance35severity, tag-based patch group targeting, and maintenance window36integration. Enforces approval rules that auto-approve critical and37security patches within a documented window, compliance severity levels38that surface unpatched instances in the compliance dashboard, patch39groups keyed by `Patch Group` tag, and maintenance window tasks that40reference the correct document (`AWS-RunPatchBaseline`) with the correct41parameters. Runs deterministic pre-checks before any state-changing42CLI, emits the exact `create-patch-baseline`,43`register-patch-baseline-for-patch-group`, and maintenance window44registration CLIs behind a CONFIRM gate, and verifies the deployment via45`describe-patch-baseline` and `describe-instance-patch-states`. Every46baseline plan surfaces the operating system, approval rule matrix, patch47group tag key, and the default-vs-custom baseline selection.4849## Quick navigation5051| Section | What it covers | When to read it |52|---|---|---|53| **Quick reference** | Verdict thresholds + pre-check priority order + baseline config matrix | Before any operation |54| **Mindset** | Why defaults matter; Patch Manager silent-failure modes; overwrite traps | Understanding the deployment model |55| **Pre-flight** | Baseline metadata gate — OS, approval rules, patch group tags, instance roles | Before executing any CLI |56| **Process** | Per-operation planning: create baseline, register patch group, maintenance window | When choosing which operation |57| **Common patterns** | Amazon Linux 2023 / Windows auto-approve / macOS / maintenance window boilerplate | Boilerplate lookup |58| **STRICT output contract** | Required BASELINE/VERDICT/PRE_CHECKS/STEPS/POST_VERIFY block | Formatting the response |59| **NEVER (top 5)** | Hard rules that prevent common insecure patterns | Review before deploy |60| **Expert heuristic** | Choosing auto-approve delay (0 vs N days) per environment | Choosing approval strategy |6162## Quick reference — verdict thresholds6364| Verdict | Trigger condition | Action |65|---|---|---|66| `PREREQUISITES_MISSING` | Any pre-check failed (unsupported OS, approval rule missing required fields, patch group tag key not `Patch Group`, instance profile missing AmazonSSMManagedInstanceCore, maintenance window not found, IAM permission missing, baseline name collision on create) | List failures, do NOT execute |67| `READY_TO_DEPLOY` | All pre-checks passed; awaiting CONFIRM gate | Emit exact CLI sequence with full baseline config, wait for operator yes |6869**Priority order for pre-checks (apply in this sequence, all must pass for70READY_TO_DEPLOY):**71721. **Baseline name uniqueness** — `describe-patch-baselines` returns no73 custom baseline with the target name (for create) or matches exactly74 one (for update).752. **Operating system support** — the `OperatingSystem` is one of76 `AMAZON_LINUX_2023`, `AMAZON_LINUX_2`, `AMAZON_LINUX`, `UBUNTU_22.04`,77 `UBUNTU_20.04`, `DEBIAN_11`, `DEBIAN_12`, `REDHAT_ENTERPRISE_LINUX_8`,78 `REDHAT_ENTERPRISE_LINUX_9`, `WINDOWS_SERVER`, `MACOS`, `SUSE`,79 `CENTOS_7`, `ORACLE_LINUX_8`, `ROCKY_LINUX_9`, `ALMA_LINUX_9`,80 `RASPBIAN`.813. **Approval rule completeness** — each approval rule has82 `ApproveAfterDays` (0-100), `ComplianceLevel` (`CRITICAL`, `HIGH`,83 `MEDIUM`, `LOW`, `INFORMATIONAL`, `UNSPECIFIED`), and at least one84 `PatchFilter` (product, classification, severity).854. **Approval rule product** — the product matches the OS (e.g.,86 `Amazon Linux 2023` for `AMAZON_LINUX_2023`, `Ubuntu2204` for87 `UBUNTU_22.04`). Mismatched product = zero patches matched.885. **Patch filter classification** — classification values are valid for89 the OS (e.g., `Security`, `Bugfix`, `Enhancement`, `Recommended`,90 `Newpackage`). Invalid classifications silently match nothing.916. **Patch filter severity** — severity values are valid for the OS92 (e.g., `Critical`, `Important`, `Medium`, `Low`). Windows uses93 Microsoft severity; Linux uses distro severity.947. **Patch group tag key** — the tag key used for registration is95 exactly `Patch Group` (case-sensitive). AWS Patch Manager looks up96 instances by this tag key only.978. **Patch group tag value format** — the tag value matches98 `[A-Za-z0-9:_-]{1,255}` and does not contain spaces or special99 characters.1009. **Instance role** — the SSM instance profile attached to target101 EC2/macOS instances includes `AmazonSSMManagedInstanceCore`102 (and `AmazonSSMPatchAssociation` for association execution).10310. **Maintenance window existence** — if maintenance window integration104 is requested, the window ID exists and is in the same account/region.10511. **Maintenance window task document** — the task document is106 `AWS-RunPatchBaseline` (or `AWS-ApplyPatchBaseline` for Windows107 offline patching). The `Operation` parameter is `Scan` or `Install`.10812. **Compliance level consistency** — the `ComplianceLevel` on approval109 rules is not `UNSPECIFIED` for production baselines (UNSPECIFIED =110 no compliance reporting).11113. **Rejected patches** — if `RejectedPatches` are listed, the112 `RejectedPatchesAction` is `BLOCK_AS_PENDING` (default) or113 `ALLOW_AS_DEPENDENCY`.11414. **IAM permissions** — the operator principal holds115 `ssm:CreatePatchBaseline`, `ssm:RegisterPatchBaselineForPatchGroup`,116 `ssm:RegisterTargetWithMaintenanceWindow`, and117 `ssm:RegisterTaskWithMaintenanceWindow` (as applicable).118119**SSM Patch Manager limits (2026):**120121- Patch baselines per account (default): 1000 (soft limit).122- Patch groups per account: 10000 (soft limit).123- Approval rules per baseline: 1 (operating-system level) — can contain124 multiple `PatchFilters` entries.125- Patch filters per approval rule: 1-100.126- Rejected patches per baseline: 1-1000.127- One patch group registration per baseline (default baseline per OS128 per account).129- Maintenance windows per account: 1000 (soft).130131## Mindset132133**One-line takeaway:** SSM Patch Manager silently matches zero patches134when approval rules are misconfigured. A baseline for `AMAZON_LINUX_2023`135with a product filter of `Amazon Linux 2` will deploy cleanly — but no136patches will ever be approved, and the compliance dashboard will show137every instance as compliant (zero missing patches). The skill enforces138product-OS matching at the pre-check gate.139140Driven by three Patch Manager realities:141142- **Approval rules match patches by product, classification, and143 severity.** If the product does not match the OS, zero patches match.144 If the classification is misspelled (`Security` vs `security`), zero145 patches match. The pre-flight gate verifies product-OS alignment and146 classification casing.147148- **Patch groups are looked up by the `Patch Group` tag key.** The tag149 key is case-sensitive (`Patch Group`, not `patch-group`). Instances150 without the tag are never patched regardless of baseline registration.151152- **Maintenance window tasks must use `AWS-RunPatchBaseline`.** Using153 `AWS-RunShellScript` or a custom document with patch parameters does154 not update the compliance dashboard. The skill verifies the document155 name on every maintenance window task.156157## Pre-flight: patch baseline metadata gate158159Run before classification. Misclassifying these produces wrong plans.160161**Pagination:** `describe-patch-baselines` returns at most 50 per page162(via `--max-results`). Use `--next-token` to drain.163164**Live-account pre-flight (skip if offline plan audit):**1651. `aws ssm describe-patch-baselines --operating-system <os>166 --max-results 50` — confirm the baseline name does not collide (for167 create) or matches (for update).1682. `aws ssm describe-patch-baselines --operating-system <os>169 --filters Key=OWNER,Values=AWS` — check the default AWS baseline for170 the OS (to decide default-vs-custom).1713. `aws ec2 describe-instances --filters "Name=tag:Patch172 Group,Values=<patch-group>"` — confirm instances exist with the tag.1734. `aws iam list-instance-profiles` — confirm the target instance174 profile includes `AmazonSSMManagedInstanceCore`.1755. `aws ssm describe-maintenance-windows --window-id <id>` — for176 maintenance window integration, confirm the window exists.1776. `aws ssm describe-instance-patch-states --instance-ids <ids>` —178 baseline snapshot of current patch compliance.179180**Malformed input:** if the baseline spec is missing required fields181(`Name`, `OperatingSystem`, or `ApprovalRules`), emit `VERDICT:182PREREQUISITES_MISSING` with `REASON: Baseline spec missing required183field — Name, OperatingSystem, or ApprovalRules. Cannot plan.` and184`REMEDIATION: Provide the full baseline configuration per185https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-create-baseline.html.`186187| Attribute | Effect on operation |188|---|---|189| OS not in supported list | API rejects. PREREQUISITES_MISSING. |190| Product mismatched to OS | Zero patches matched. PREREQUISITES_MISSING. |191| Classification case-sensitive error | Zero patches matched. PREREQUISITES_MISSING. |192| Patch Group tag key not exact `Patch Group` | Instances never patched. PREREQUISITES_MISSING. |193| Instance role missing AmazonSSMManagedInstanceCore | SSM agent cannot register. PREREQUISITES_MISSING. |194| ComplianceLevel UNSPECIFIED | No compliance reporting. Flag in NOTES. |195| Maintenance window task not AWS-RunPatchBaseline | Compliance not updated. PREREQUISITES_MISSING. |196| ApproveAfterDays > 100 | API rejects. PREREQUISITES_MISSING. |197198## Process — operation planning (apply in order)199200### Step 0: Expert knowledge — non-obvious Patch Manager behaviors201202Step-0 expert behaviors moved to [references/advanced-patterns.md](references/advanced-patterns.md) —203load when a plan hinges on default-baseline, approval-rule, or product-filter semantics.204205### Step 1: Pre-check gate — PREREQUISITES_MISSING if any check fails206207Run ALL of the following pre-checks. If ANY fails, the verdict is208PREREQUISITES_MISSING with the failed checks enumerated in PRE_CHECKS.209Do NOT execute.210211**For ALL operations:**2121. Baseline name is set, <= 128 chars, matches `[a-zA-Z0-9_.-]+`.2132. `OperatingSystem` is in the supported list.2143. IAM principal holds the relevant `ssm:` permission.215216**For create-patch-baseline:**2174. Baseline name does not collide with an existing custom baseline.2185. `ApprovalRules` contains at least one `PatchRule`.2196. Each `PatchRule` has `ApproveAfterDays` in range 0-100.2207. Each `PatchRule` has `ComplianceLevel` set to a non-UNSPECIFIED value221 for production baselines.2228. Each `PatchRule.PatchFilterGroup` has product matching the OS.2239. Classification values are valid and correctly cased for the OS.22410. Severity values are valid for the OS.22511. `RejectedPatchesAction` is `BLOCK_AS_PENDING` or226 `ALLOW_AS_DEPENDENCY` (if rejected patches are listed).227228**For register-patch-baseline-for-patch-group:**22912. The `Patch Group` tag key is used (case-sensitive).23013. The patch group value matches `[A-Za-z0-9:_-]{1,255}`.23114. The baseline ID exists and is for the correct OS.23215. At least one instance exists with the `Patch Group` tag value233 (checked via `ec2:describe-instances` if live).234235**For register-target-with-maintenance-window:**23616. The maintenance window ID exists.23717. The `Targets` use the `Patch Group` tag or resource groups.23818. The `OwnerInformation` (if set) does not contain secrets.239240**For register-task-with-maintenance-window:**24119. The task document is `AWS-RunPatchBaseline` (or242 `AWS-ApplyPatchBaseline` for Windows offline).24320. The `TaskParameters` include `Operation: Scan` or244 `Operation: Install`.24521. `MaxConcurrency` and `MaxErrors` are set (not omitted — defaults246 may be too aggressive for production).24722. The `CloudWatchOutputConfig` is enabled for audit logging.248249### Step 2: READY_TO_DEPLOY — emit deployment plan250251If all pre-checks pass, emit `VERDICT: READY_TO_DEPLOY` with the exact252CLI sequence and the CONFIRM gate. The plan includes:253254- The exact `aws ssm create-patch-baseline` CLI with the full config255 (OperatingSystem, ApprovalRules, GlobalFilters, RejectedPatches,256 Sources, Description, Tags).257- The follow-up `register-patch-baseline-for-patch-group` CLI for each258 patch group.259- The follow-up `register-target-with-maintenance-window` CLI for260 maintenance window integration.261- The follow-up `register-task-with-maintenance-window` CLI with the262 `AWS-RunPatchBaseline` document.263- The CONFIRM gate prompt.264265### Step 3: Execute behind CONFIRM gate266267- **MANDATORY CONFIRMATION GATE.** Before any state-changing CLI268 (`create-patch-baseline`, `register-patch-baseline-for-patch-group`,269 `register-task-with-maintenance-window`), emit:270 `CONFIRM: About to <operation> <resource> in account <account>271 region <region>. This will <consequence>. Proceed? (yes/no)`. Do NOT272 execute until the operator confirms.273- Snapshot the current baseline config before modification:274 `aws ssm describe-patch-baseline --baseline-id <id> --output json275 > /tmp/<baseline-name>-backup-$(date +%s).json`.276- Execute the CLI with the full baseline config.277278### Step 4: Post-verification279280After the operation finishes, run post-verification:2812821. `describe-patch-baseline --baseline-id <id>` returns the expected283 config (OperatingSystem, ApprovalRules, ComplianceLevel).2842. `describe-patch-groups --operating-system <os>` returns the patch285 group registered to this baseline.2863. For maintenance window: `describe-maintenance-window-tasks --window-id287 <id>` returns the `AWS-RunPatchBaseline` task with correct parameters.2884. Trigger a `Scan` operation on one target instance:289 `aws ssm send-command --document-name AWS-RunPatchBaseline290 --parameters '{"Operation":["Scan"]}' --targets <targets>`.2915. After scan completes: `describe-instance-patch-states --instance-ids292 <id>` returns the expected patch count and compliance status.293294## Common baseline patterns (boilerplate)295296Boilerplate patterns moved to [references/worked-examples.md](references/worked-examples.md):297AL2023, Windows, macOS baselines; maintenance-window Install task; air-gapped custom repository.298299## STRICT output contract300301### Required output structure302303Every response MUST begin with this block — no preamble, no conversational304opening:305306```text307BASELINE: <baseline-name>308VERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING309TARGET: <baseline-name> (baseline-id: <id> for updates)310PRE_CHECKS:311 - [PASS] <check description>312 - [FAIL] <check description> — <reason>313STEPS:314 1. CONFIRM: About to <operation> <resource> in account <account> region <region>. This will <consequence>. Proceed? (yes/no)315 2. <exact CLI command — no placeholders>316POST_VERIFY:317 - [PASS] <verification description>318 - [FAIL] <verification description> — <reason>319OPERATING_SYSTEM: AMAZON_LINUX_2023 | WINDOWS_SERVER | MACOS | UBUNTU_22.04 | ...320APPROVAL_RULES: <count> rule(s) (classifications: <list>, auto-approve: <N> days)321COMPLIANCE_LEVEL: CRITICAL | HIGH | MEDIUM | LOW322PATCH_GROUPS: <count> registered (values: <list>)323MAINTENANCE_WINDOW: <window-id> | NONE324INSTANCE_ROLE: AmazonSSMManagedInstanceCore | MISSING325NOTES: <patching posture, approval strategy, compliance caveats>326```327328### FORBIDDEN output patterns329330- NEVER start with "Let me analyze…" or "I'll create…" — the VERDICT331 block is the FIRST line, always. No conversational preamble.332- NEVER use lowercase verdict values — emit `READY_TO_DEPLOY` or333 `PREREQUISITES_MISSING`.334- NEVER omit PRE_CHECKS — every pre-check run must appear with `[PASS]`335 or `[FAIL]` and a specific reason for each failure.336- NEVER emit a plan with placeholder values in a READY_TO_DEPLOY plan —337 every field must be populated with actual values from the input.338- NEVER omit the CONFIRM gate as the first STEPS entry for any339 state-changing operation.340- NEVER claim success without verifying that the baseline was created341 (via `describe-patch-baseline`).342- NEVER put-update a baseline without snapshotting the existing config343 first — updates to `ApprovalRules` overwrite silently.344- NEVER silently allow a maintenance window task with a non-345 `AWS-RunPatchBaseline` document — block it with a [FAIL] pre-check row.346347### Perfect example output348349```text350BASELINE: al2023-prod-security351VERDICT: READY_TO_DEPLOY352TARGET: al2023-prod-security353PRE_CHECKS:354 - [PASS] Baseline name unique (no collision in describe-patch-baselines)355 - [PASS] Operating System: AMAZON_LINUX_2023 is supported356 - [PASS] Product filter Amazon Linux 2023 matches OS357 - [PASS] Classification Security, Bugfix are valid for AL2023358 - [PASS] Severity Critical, Important are valid359 - [PASS] ApproveAfterDays: 7 (in range 0-100)360 - [PASS] ComplianceLevel: CRITICAL (non-UNSPECIFIED)361 - [PASS] Patch Group tag key is "Patch Group" (case-sensitive)362 - [PASS] Instance role includes AmazonSSMManagedInstanceCore363 - [PASS] IAM principal holds ssm:CreatePatchBaseline364STEPS:365 1. CONFIRM: About to create-patch-baseline al2023-prod-security in account 111111111111 region us-east-1. This will CREATE a new baseline for AMAZON_LINUX_2023 with 7-day auto-approve on Security and Bugfix patches. Proceed? (yes/no)366 2. aws ssm create-patch-baseline --name al2023-prod-security --operating-system AMAZON_LINUX_2023 --approval-rules '{"PatchRules":[{"PatchFilterGroup":{"OperatingSystem":"AMAZON_LINUX_2023","PatchFilters":[{"Key":"PRODUCT","Values":["Amazon Linux 2023"]},{"Key":"CLASSIFICATION","Values":["Security","Bugfix"]},{"Key":"SEVERITY","Values":["Critical","Important"]}]},"ApproveAfterDays":7,"ComplianceLevel":"CRITICAL","EnableNonSecurity":true}]}' --tags '[{"Key":"Environment","Value":"prod"}]'367 3. aws ssm register-patch-baseline-for-patch-group --baseline-id <returned-id> --patch-group al2023-prod-web368POST_VERIFY:369 - (pending execution)370 - describe-patch-baseline returns OperatingSystem=AMAZON_LINUX_2023, ApproveAfterDays=7371 - describe-patch-groups returns al2023-prod-web registered to this baseline372OPERATING_SYSTEM: AMAZON_LINUX_2023373APPROVAL_RULES: 1 rule (classifications: Security, Bugfix; auto-approve: 7 days)374COMPLIANCE_LEVEL: CRITICAL375PATCH_GROUPS: 1 (al2023-prod-web)376MAINTENANCE_WINDOW: NONE377INSTANCE_ROLE: AmazonSSMManagedInstanceCore378NOTES:379 - ApproveAfterDays 7 means patches are approved 7 days after vendor release — balances freshness with soak time.380 - EnableNonSecurity true also approves non-security updates matching the product filter.381 - Register a maintenance window task (AWS-RunPatchBaseline Operation=Install) to actually install patches.382```383384## NEVER (top 5)385386These are the highest-impact, most-frequent failure modes in SSM Patch387Baseline deployments. Violating any one of these is a security or388operational regression.3893901. **NEVER create a baseline with a product filter that does not match391 the operating system.** An `AMAZON_LINUX_2023` baseline with a392 product of `Amazon Linux 2` matches zero patches — the compliance393 dashboard shows all instances as compliant when they are not. The394 pre-check gate verifies product-OS alignment.3953962. **NEVER register a patch group without verifying the instance role397 includes `AmazonSSMManagedInstanceCore`.** Instances without the role398 cannot register with SSM, cannot be patched, and will silently appear399 as non-compliant with no actionable error. The pre-check gate400 verifies the role on at least one instance in the patch group.4014023. **NEVER set `ComplianceLevel: UNSPECIFIED` on a production baseline.**403 UNSPECIFIED means missing patches do not appear in the compliance404 dashboard — you lose visibility into unpatched instances. Always use405 CRITICAL, HIGH, or MEDIUM for production.4064074. **NEVER create a maintenance window task with a document other than408 `AWS-RunPatchBaseline` for patching.** Using `AWS-RunShellScript` to409 run `yum update` or `apt upgrade` does not report to the compliance410 dashboard. The skill verifies the document name on every patch task.4114125. **NEVER register a custom baseline as the default for an OS without413 understanding it replaces the AWS baseline for ALL instances.** The414 default baseline applies to every instance of that OS in the account,415 not just tagged ones. Only set a custom baseline as default when you416 intend a fleet-wide override. Otherwise, register via patch groups.417418## Expert heuristic: choosing auto-approve delay419420The right `ApproveAfterDays` is a function of environment, risk421tolerance, and operational maturity — not a one-size-fits-all. The422heuristic below resolves the trade-off deterministically.423424```425Environment / risk posture426 ├─ Production, regulated (PCI/HIPAA/SOC2)?427 │ └─ ApproveAfterDays: 3-7. Security patches soak 3-7 days in428 │ pre-prod before auto-approving in prod. Pair with a429 │ maintenance window for controlled installation windows.430 │431 ├─ Production, non-regulated?432 │ └─ ApproveAfterDays: 7-14. Longer soak time for stability.433 │ Critical security patches may need a separate rule with434 │ ApproveAfterDays: 0 for emergency response.435 │436 ├─ Staging / pre-prod?437 │ └─ ApproveAfterDays: 1-3. Short soak time — catch breakages438 │ before promoting to production.439 │440 └─ Development?441 └─ ApproveAfterDays: 0. Immediate approval — keep dev instances442 on the latest patches for testing compatibility.443```444445**Decision rules:**446- Default to `ApproveAfterDays: 7` for production. It is the safest447 default that balances security urgency with operational stability.448- For critical security patches, consider a separate approval rule with449 `ApproveAfterDays: 0` and `ComplianceLevel: CRITICAL` — these are450 emergency patches that should not wait.451- Always pair `ApproveAfterDays` with a maintenance window. Without a452 maintenance window, patches are approved but never installed.453- `ComplianceLevel` should reflect operational urgency: CRITICAL for454 production security patches, HIGH for important patches, MEDIUM for455 the rest.456- For air-gapped environments, set `ApproveAfterDays: 0` (the mirror457 controls timing) and use custom `Sources` for the local repository.458459ALWAYS emit `ComplianceLevel` as a non-UNSPECIFIED value for production460baselines. Without it, the compliance dashboard is blind to missing461patches.462463## Recent AWS features (2024-2026)4644652024-2026 feature notes (macOS Patch Manager, AL2023 dnf, Sources,466dashboard enhancements) moved to [references/advanced-patterns.md](references/advanced-patterns.md).467468## AWS documentation469470- **SSM Patch Manager Developer Guide** — https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-patch.html471- **Create a patch baseline** — https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-create-baseline.html472- **About patch groups** — https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-patch-patchgroups.html473- **Maintenance windows** — https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-maintenance.html474- **AWS-RunPatchBaseline document** — https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-ssm-documents.html475- **SSM CLI reference** — https://docs.aws.amazon.com/cli/latest/reference/ssm/476477## References (load on demand)478479- [references/baseline-config-and-approval-rules.md](references/baseline-config-and-approval-rules.md) — Canonical per-OS baseline configurations and approval-rule patterns.480- [references/patch-groups-and-maintenance-windows.md](references/patch-groups-and-maintenance-windows.md) — Patch group registration and maintenance-window integration detail.481- [references/worked-examples.md](references/worked-examples.md) — Full CLI boilerplate for each OS archetype (moved from Common baseline patterns).482- [references/advanced-patterns.md](references/advanced-patterns.md) — Step-0 expert Patch Manager behaviors and 2024-2026 feature notes (moved from SKILL.md).483484## Domain485486AWS CloudOps / Management & Governance — SSM Patch Baseline Provisioning.