Policies for the Three Phases
Task commands run in the task Environment. The Benchmark chooses how verification works: it can verify directly on the host, reuse the task Environment, or create a clean verifier Environment.verifier_network_policy affects only the latter two approaches.
| Field | Where it applies |
|---|---|
network_policy | The baseline policy. It covers Environment startup, preparation, artifact collection, and other in-Environment operations outside the agent-run and verification contexts. |
run_network_policy | Processes inside the Environment while the agent is running. |
verifier_network_policy | Verification in either the reused task Environment or a newly created verifier Environment. It does not affect a verifier process running on the host. |
network_policy defaults to public. If run_network_policy or verifier_network_policy is omitted, that phase inherits network_policy. A recipe may also supply settings required by its Benchmark. When defining a custom policy, setting all three fields explicitly is the clearest approach.
AgentCompass switches to
run_network_policy only after Environment preparation. Trusted dependencies can therefore be installed under the baseline policy before the agent runs under a stricter policy.Network Modes
Write
public and no-network as strings. An allowlist is an object:
- a hostname, such as
api.example.com; - a hostname with the
*.prefix, such as*.assets.example.com; - an IP address; or
- a CIDR range.
https://api.example.com/v1 is invalid. A CIDR must use its canonical network address: use 203.0.113.0/24, not 203.0.113.10/24. Providers also differ in the address types and number of entries they support; see the support table and provider pages below.
Which Requests Are Controlled
Whether a request is restricted depends on whether the process making it runs on the host or in an Environment.
A model, search, or grading endpoint needs to be allowlisted only when a process inside an Environment calls it. Requests that AgentCompass makes from the host to create or close an Environment are outside this policy.
The policy controls outbound access only. It does not restrict connections entering the Environment from the host or a provider control plane.
Provider Support
AgentCompass manages Docker’s auxiliary egress proxy automatically. It enforces the allowlist and is not a separate Environment that you need to configure. On an offline host, make sure Docker can access the proxy image in advance.
Daytona accepts at most 20 domain entries or 10 IPv4 network entries. See each provider page for its exact formats, mutually exclusive settings, and prerequisites.
Configure a Policy
The following CLI example passes all three fields through--env-params. See Configure an Environment for configuration-file, Python SDK, and orchestration-file forms. This example permits network access during preparation and disables it during the agent and verification phases:
allowlist object:
Verify the Policy
Run a test task with predictable behavior and--file-log-level DEBUG. These log fields show the final resolved shared policies for setup, the agent run, and verification:
setup_network_moderun_network_modeverifier_network_mode
Troubleshoot Network Problems
For errors not specific to network access, see Troubleshooting Runs.
