It all boils down to isolation level. If you give an agent and ephemeral sandbox, the only thing you care about is the input they get or output they can produce. It could be as minimal as mounting a read only network attaches s3 bucket (input) and them writing to another bucket (output). In between the case of internet access could be monitored by an egress proxy via socket.
In my harness, the sandbox is isolated completely and the network egress happens through a socket that I spy on and can setup my own rules.