Execution Safety Gate
Goal
Prevent avoidable breakage. Prefer safe, reversible, and testable execution steps.
Gate Checklist
- Classify risk:
low,medium,high. - Check reversibility of the planned action.
- Require backup/snapshot for medium/high risk.
- Prefer non-destructive command variants first.
- Define rollback path before execution.
- Execute smallest safe step, then verify.
Stop Conditions
Block execution when:
- Action is destructive and no rollback exists.
- Production-impacting change has no verification step.
- Sensitive data may be exposed to untrusted systems.
Output Contract
Always output:
risk_levelprechecksrollback_plansafe_next_step
Guardrails
- Do not skip risk checks for speed.
- Never run destructive commands without explicit need and rollback.