Should a team disable an agent's network boundary just to pass a test?

Should a team disable an agent’s network boundary just to pass a test?

Why would a team keep a network restriction when it prevents an agent from finishing a test? The temptation is understandable: switch off the proxy, let the dependency download, and move on. But a test’s need to contact one service is not the same as permission for an agent session to contact any address. If those decisions are treated as interchangeable, an exception made under deadline pressure can quietly become the default way people work. A failed test can be useful evidence about the boundary, not merely an obstacle to getting the build green.

Picture a developer fixing a small bug in software used to monitor a production line. The agent edits files in the repository and starts the tests. One step wants a package registry; another reaches for an internal test service. One request fails, and the agent cannot finish. This is an illustrative scenario, not a customer incident. It forces a useful distinction: downloading a known dependency, contacting a company service and sending data to an arbitrary destination are different activities. The fact that all three involve a network connection does not make one approval suitable for all of them.

Keeping work local does not require opening the whole network

Accepted ADR-0002 in agentic-organization weighs three execution choices for developers. Running the agent directly on a laptop avoids setup, but gives a mistaken command access to much more than the project. Putting every session on a server offers central control while creating file synchronisation, latency and infrastructure work for a local development loop. The chosen approach keeps execution close to the repository, inside a local sandbox. That choice covers network routes as well as files: the project tree is not a licence for every outbound connection.

In sandbox/compose.yaml, the agent container joins an internal network. A separate egress service joins that network and an external one, acting as the filtering forward proxy. The egress documentation and base allowlist show that selected source control and package registry hosts are already permitted, with a way to add hosts for a run. This is not an air gap. It is a configured exit path. When a test fails to reach a destination, the useful question is which host it needs, why it needs it and who should be able to grant that exception. Saying that all internet access is blocked would be as misleading as assuming that all allowed traffic is safe.

The normal 3pa run path launches the compose setup. The CLI also exposes --no-egress, which uses a different runner without the proxy, and --allow, which adds hosts to the allowlist. Those controls make different decisions. One removes the network restriction from that launch path; the other widens the list of destinations. The CLI merges the supplied host list with an existing environment value. It would be inaccurate to claim that this extra list is automatically derived from a centrally approved company policy. A blocked test gives the team a reason to inspect these choices, not a reason to treat the broadest one as harmless.

Who defines what the test is allowed to reach?

The developer can identify the failing dependency and explain whether it is necessary to verify the change. IT can ask whether that destination belongs in a project-specific working arrangement, how long an exception should remain and what other tasks it might affect. A production team can distinguish a service required by the released application from one needed only by a development test. If procurement or finance is using an agent to inspect documents, an outbound connection has a different implication: what content might be sent alongside the request? HR has an even sharper reason to question an experiment involving personnel files. These examples are not claims about deployed departmental rules. They show why a network exception has to be considered alongside the work and the data, not merely the host name.

There are two easy but unsatisfying answers. Allow everything during testing, and nobody has to map the dependencies. That saves time today but makes later review of the agent’s reach much harder. Refuse every new destination, and teams may be unable to run legitimate tests or fetch necessary packages. A more workable response is to describe a narrow exception: the host, the task, its owner, the period of use and the condition for removing it. Then test both a permitted destination and a disallowed one. ADR-0010 records an end-to-end check of that filtering path. It does not claim that company and project allowlists are already centrally scoped and automatically provisioned for every run.

The boundary also has limits that should stay visible. ADR-0002 accepts the possibility of a wrongly mounted path or a container escape. ADR-0003 says a determined person with shell access on their own laptop can bypass the managed launcher. sandbox/README.md identifies the direct run.sh path as one without egress restriction. A proxy list only applies to sessions actually started through it. Nor does a permitted host make every payload appropriate: ADR-0010 still lists output scanning as a later phase. Host filtering and review of what leaves the organisation solve different problems. Neither should be substituted for the other when a test happens to pass.

A practical review can begin with the failed test itself. Record the dependency it attempted to contact and check whether that call is truly necessary. For tests that can run without an outside service, consider a local fixture or test double. If a real destination is required, add that destination only for the appropriate work and check that an unrelated destination remains blocked. Record how the agent session started: through the normal proxied 3pa run path, or through an explicit exception. Finally, read the test result with those conditions attached. The same code change produced under an unrestricted session was made with a different exposure than a change tested behind a narrow proxy rule.

For developers, the point of a local sandbox is not to make tests impossible. It is to make the cost of an exception understandable before the team takes one. ADR-0002 and ADR-0010 in agentic-organization provide a concrete way to separate the host a test actually needs from a decision to remove the entire network boundary. When a dependency fails in your own workflow, which question comes first: what destination is necessary, or how quickly can the protection be turned off?

Verification note: The design, launch paths and remaining limits here were checked against agentic-organization ADR-0002, ADR-0003 and ADR-0010, sandbox/compose.yaml, sandbox/run.sh, sandbox/egress/README.md, sandbox/egress/base-allowlist.txt, packages/cli/src/commands/run.ts, and the docs-site sandbox guide. Host filtering is not presented as content scanning or as the only possible launch path.