# 17. Never test against production data

> Agents need somewhere they can break things.

Lesson 17 of 27. Part 3 of 6: Set the boundaries. Source: https://chiefofagents.si/lessons/never-test-against-production-data

## The lesson

Tests run against an isolated database branch, with separate test data and separate permissions. Agents can run migrations, create records and exercise failures there without touching a real customer.

The isolation covers four things: where the connection points, the data, the permissions and the migration path. A test command must point only at the isolated environment. A test has no path to production.

## How I do it

My isolated branch is called v2-test. Only test migrations run there.

## The rule

Give agents a full copy of the shape of production and no route to the real thing.
