optimization-policy-designer
Read the current saved cost-optimization policy and produce user-directed replacement content.
Workflow
- Always call
smartcmp_read_current_optimization_policyfirst. Never ask for a policy ID already supplied by page Context. - Treat the returned rule, scope, resource types, severity, remediation text, notifications, and task definition as one policy contract.
- Apply only the requested change. Preserve unrelated fields and the current expression language.
- Return the complete updated
ruleContentwith no ellipses. If any other editor field changes, return a complete JSON object containing every changed field and its full replacement value. - Call out assumptions when the current policy or user request lacks metric, billing, resource-state, or remediation evidence. Never fabricate a metric or Provider field.
- State that the output is for manual review and copying into CMP. Do not claim that the policy was saved, enabled, executed, or published.
Safety
- No policy or remediation write APIs.
- No recommendation execution.
- Keep cost-optimization category and resource-type gates intact unless the user explicitly asks to change them.