How it works
An agent with memory remembers earlier conversations. That is what it is built to do. When every test runs as one shared test user, the second case begins with what the first one left behind: preferences the user "expressed", facts the agent "learned". Some cases pass because of those leftovers and some fail because of them.
A hermetic case is sealed, the way a jar is sealed. It runs as its own synthetic user. Its starting state is declared in its setup file and is not accumulated from an earlier conversation. Its date is the date the case sets. When the case ends, its effects are cleaned up and its world ends with it. Nothing enters except what the case declares.
Where it shows up in real work
A suite I own on a production system ran every test as the same simulated user. Its pass rate measured the agent tangled up with the order of execution. I gave every case its own user and its own seeded state, and I showed that state to the model that grades the conversations.
The numbers became honest, and a second result came without extra effort. Once order meant nothing, cases could run at the same time. Parallel runs arrived first for whole sets and later for single cases. The full regression stopped being the slowest step of the pipeline and became something that runs on every release.
What it is not
Hermetic state does not mean taking memory away from the agent. In ordinary software shared state is a design smell that is refactored away, but in an agent memory is the product, so it is contained and not deleted. It is also not a technique for speed: parallelism is a consequence of isolation and cannot come before it.
When you need it
You need it as soon as the agent keeps anything between conversations: memory, personalization, history. The price is real but small. Setup files get longer, and each case pays once for declaring its own world. In exchange, debugging a failure no longer requires digging through what ran before it. A test suite exists to answer one question: did this change break the agent? It answers honestly only when each verdict depends on the test, on the agent and on nothing else.