test_execute_capture_at_source_offload(
self,
sandbox_backend: SandboxBackendProtocol,
sandbox_test_root: str
) -> NoneA large execute result is offloaded to a file and read back.
Drives a deep agent (fake model -> execute tool call) end-to-end and
checks that an over-budget result is not returned inline: the agent gets
a head/tail preview plus a read_file pointer, and the full output is
retrievable from the sandbox. The offload happens via capture-at-source
when the sandbox supports it, or the middleware's generic eviction
otherwise -- this asserts the outcome, not the mechanism. artifacts_root
is pinned under the writable test root so the offload file does not land
at the sandbox filesystem root.