Operate DevOps
Workflow
- Read repository and environment guidance before changing configuration.
- Identify the target environment, current state, owning tool, blast radius, and approval boundary.
- Separate diagnosis, proposed change, apply, verification, and rollback.
- Prefer a dry run, plan, diff, render, lint, or local build before any apply step.
- Make the smallest reversible change.
- Validate configuration syntax and policy.
- Test failure behavior and rollback in the safest available environment.
- Review the diff for secrets, broad permissions, unpinned behavior, and unintended targets.
Guardrails
- Confirm account, cluster, subscription, region, namespace, and environment before state-changing commands.
- Keep credentials out of code, command output, and generated artifacts.
- Use least-privilege identities and scoped approvals.
- Do not silently apply infrastructure because a plan succeeded.
- Do not delete, force-replace, rotate, deploy, or migrate live resources without explicit authorization.
- Preserve a recovery path for availability, routing, storage, and identity changes.
- Do not weaken security controls merely to make automation pass.
- Treat third-party actions, base images, and pipeline dependencies as supply-chain inputs.
Change safety
Read references/change-safety.md for deployment, infrastructure, CI, secret, permission, or data-path changes.
Verification
Use repository-native commands in this order:
format/lint → validate/render → plan/diff → policy tests → staged rollout check
Report exactly which environment was inspected and which commands were not run.
Acceptance criteria
- Target and blast radius are explicit.
- A preview or equivalent validation was inspected.
- Credentials and permissions follow least privilege.
- Rollback or roll-forward steps are concrete.
- Monitoring proves success and detects regression.
- The final report separates proposed, executed, and unverified actions.
1---2name: operate-devops3description: Plan and implement infrastructure, CI/CD, container, deployment, observability, and operational configuration changes with least privilege, staged validation, and rollback awareness. Use for pipelines, infrastructure as code, Kubernetes, containers, release automation, monitoring, and production-readiness work; do not use to perform destructive production actions without explicit authorization.4---56# Operate DevOps78## Workflow9101. Read repository and environment guidance before changing configuration.112. Identify the target environment, current state, owning tool, blast radius, and approval boundary.123. Separate diagnosis, proposed change, apply, verification, and rollback.134. Prefer a dry run, plan, diff, render, lint, or local build before any apply step.145. Make the smallest reversible change.156. Validate configuration syntax and policy.167. Test failure behavior and rollback in the safest available environment.178. Review the diff for secrets, broad permissions, unpinned behavior, and unintended targets.1819## Guardrails2021- Confirm account, cluster, subscription, region, namespace, and environment before state-changing commands.22- Keep credentials out of code, command output, and generated artifacts.23- Use least-privilege identities and scoped approvals.24- Do not silently apply infrastructure because a plan succeeded.25- Do not delete, force-replace, rotate, deploy, or migrate live resources without explicit authorization.26- Preserve a recovery path for availability, routing, storage, and identity changes.27- Do not weaken security controls merely to make automation pass.28- Treat third-party actions, base images, and pipeline dependencies as supply-chain inputs.2930## Change safety3132Read [references/change-safety.md](references/change-safety.md) for deployment, infrastructure, CI, secret, permission, or data-path changes.3334## Verification3536Use repository-native commands in this order:3738```text39format/lint → validate/render → plan/diff → policy tests → staged rollout check40```4142Report exactly which environment was inspected and which commands were not run.4344## Acceptance criteria4546- Target and blast radius are explicit.47- A preview or equivalent validation was inspected.48- Credentials and permissions follow least privilege.49- Rollback or roll-forward steps are concrete.50- Monitoring proves success and detects regression.51- The final report separates proposed, executed, and unverified actions.