How the new database branching preview gives AI coding agents and pull requests an isolated, copy-on-write copy of production data, and how to lock it down with TTLs, tags and IAM
The problem: code moves at agent speed, the database does not
AI coding agents are now good at writing migrations. They add a column, backfill it, create an index and update the ORM model in one pull request. The weak point is not writing the change. It is testing it against data that looks like production.
Most teams still have one shared staging database. Agents and developers queue for it, step on each other's schema changes, or test against a small seed dataset that hides the real problems: a slow index build on a large table, a NOT NULL constraint that fails on old rows, or a query plan that changes once real data volumes are present.
On 2 December 2026 AWS announced a preview of database branching for Amazon Aurora PostgreSQL .…