Agent hit the live database despite working in a repo copy
Two developers building a desktop agent copied their repo to isolate test runs, but the agent still reached the live database during pytest — environment variables had leaked from the parent process. The lesson: folder copies are not sandboxing; scrub the environment and pass only what the agent needs. A container or a dedicated test database with fake data is the real fix.