An apply prompt may prepare an execution checklist, but approval and execution are separate capabilities. The checklist should identify the reviewed plan, target workspace, authorized operator, change window, state lock, expected actions, and stop conditions. Verify that the plan applied is the one reviewed or that a newly generated plan received fresh approval. Do not issue an auto-approve command just because the prompt says 'safe.' After apply, collect the tool's outcome, changed resource identities, and any partial failure. A model assertion that apply succeeded is not a receipt. If execution fails midway, inspect live state before deciding whether to retry or rollback.
Infrastructure apply: separate review from execution
Operational case
After Aster resolves the unrelated database drift, plan P2 contains only the 47-to-71-hour queue-retention update. The reports platform owner approves P2 for the verified production workspace. The operator checks that no other run holds the state lock, executes the reviewed plan through the controlled pipeline, and records run R-47. The pipeline reports the queue update completed, but the team still checks the queue's actual retention setting and a new plan for unexpected changes. If P2 had changed since review, the approval would not transfer automatically. The prompt can list these checks; it cannot click apply or declare success from its own prose.
Reviewed plan: P2; queue retention update only.
Target: verified production workspace and account.
Authority: reports platform owner approves; operator executes.
Receipt: pipeline run R-47 with action result and timestamp.
Postcheck: live queue setting 71h; no unexpected plan actions.Performance and operating cost
The checklist is O(A) for A reviewed actions, with extra time for locking, identity checks, and post-apply verification. A saved plan avoids silently applying a different set of proposed changes, but the artifact needs restricted storage because it may contain secrets. Postchecks are not redundant: provider completion can precede application-level readiness or reveal partial execution. Maintain a rollback or forward-fix route appropriate to the resource; changing retention back may not restore messages that already expired under an earlier policy.
Common Mistakes
- Do not confuse a plan approval with permission for any later plan.
- Do not call a model summary an apply receipt.
- Do not assume a failed apply left every resource unchanged.
Connected lessons
- Prompt engineering applications
- Prompt Engineering
- Tool calls: validate intent and arguments before an external effect
- Tool effects: reconcile receipts before retrying
- Terraform state locks: distinguish a stale lease from an active writer
- Infrastructure prompts: bind scope, owner, and environment
- Infrastructure plans: classify every action before apply
- Infrastructure prompts: quarantine state secrets and drift
- Infrastructure release: verify live state and rollback limits
- Project: review an Aster queue retention change
- Infrastructure-change prompt decisions
