Task boundary
The first lines define one outcome and the environment in which it must be achieved.
The interactive tools could not load. Reload this page; the guides and source links are still available.
Data / Original task brief
Verify schema transition, compatibility window, backfill behavior, locking, idempotency, observability, and recovery before production.
A release changes tables, constraints, indexes, data representation, or code assumptions across deploy boundaries.
Task
Review {{migration}} for {{database}} under this deployment sequence:
{{deployment_sequence}}
Method
1. Inspect the migration and every application read/write path affected by the old and new schema.
2. Determine whether mixed application versions remain compatible during rollout and rollback.
3. Evaluate locks, table rewrites, index build behavior, transaction boundaries, timeouts, retries, and expected data volume.
4. Verify backfills are bounded, resumable, observable, and idempotent. Test interruption and rerun behavior.
5. Define preflight queries, rollout checkpoints, abort thresholds, and recovery actions.
Evidence to return
- Compatibility matrix for old code/new code against old schema/new schema.
- Estimated operational risks supported by database behavior or rehearsal.
- Dry-run or staging output, including interruption/retry results.
- Exact rollback or forward-recovery plan and the point after which rollback is unsafe.
Stop conditions
Block rollout when destructive changes precede compatible code, the backfill cannot resume safely, lock impact is unknown on production-scale data, or recovery has not been rehearsed.Variables
{{migration}}{{database}}{{deployment_sequence}}Keep unknowns explicit. Remove a section only when it truly does not apply; do not replace evidence requirements with a request for confidence.
Why this prompt is structured this way
The first lines define one outcome and the environment in which it must be achieved.
The method asks the coding agent to inspect and execute rather than jump directly to a plausible patch.
The result must include paths, commands, measurements, or browser observations that another person can check.
The agent is told when not to guess, broaden scope, weaken a guard, or overstate completion.
Related prompts
Inspect the actual diff in repository context and report only actionable defects with severity, evidence, and a concrete failure scenario.
Use when: A branch or working tree is ready for an independent correctness, security, and maintainability review.
Open promptExercise a real user flow with semantic, focus, state, contrast, target-size, and responsive evidence rather than a static checklist alone.
Use when: A web interface has a form, dialog, menu, custom control, upload, or task flow that must work beyond pointer input.
Open prompt