Reviewing AI changes to migrations, infra and CI
For engineers
Agent-written database migrations, infrastructure-as-code, Dockerfiles and CI workflows, where one bad line deletes data or leaks secrets
110 questions across four stages: Understand, Apply, Solve and Judge.
Try 5 questions
Practice items, not counted towards your mastery. No account needed.
Check yourself · 1 of 5
Which statement is destructive for running code even though it looks harmless?
Check yourself · 2 of 5
In Terraform plan output, what does a line marked destroy and replace mean for a database?
Check yourself · 3 of 5
Why is pull_request_target risky when combined with checking out the pull request's code?
Check yourself · 4 of 5
A Dockerfile has no USER instruction. What does that mean at runtime?
Check yourself · 5 of 5
A diff changes a setting's default from false to true. Why does this need care?
Topics
- Destructive and locking database migrations5 min read · Dropped columns, table rewrites that lock production, missing backfills and migrations with no way back
- Reading Terraform plans from agent changes5 min read · Destroy and replace actions, open security groups, public buckets and drift hidden in plan output
- CI workflow changes and pipeline security5 min read · Over-broad tokens, risky triggers such as `pull_request_target`, unpinned actions and secrets exposed to untrusted code
- Dockerfiles and container configuration5 min read · Root users, floating tags, secrets baked into layers, bloated images and missing health checks
- Environment config and feature flags5 min read · Changed defaults, production URLs in development code, flags left on and settings that differ between environments
Start here
- strong_migrations: catch unsafe migrations in development (opens in a new tab)ToolFree
A catalogue of unsafe migration operations with the safe alternative for each.
- Parallel Change (martinfowler.com) (opens in a new tab)ArticleFree
The expand, migrate, contract pattern behind safe schema changes.
- terraform plan command (HashiCorp docs) (opens in a new tab)DocsFree
What plan output means and how to save and review a plan before apply.
Helps to know first
110 questions · last verified 2026-12