Skip to content

Session harnesses: close the gaps with the deprecated sandboxed agents for evaluation frameworks #5552

Open

Description

@gwarmstrong

Use cases, pain points, and background

#5222 deprecates the /run path of pi_sandboxed_agent, opencode_sandboxed_agent and hermes_sandboxed_agent. It names the session harnesses as their replacements. Evaluation frameworks that run benchmarks without task sandboxes, such as HLE with and without search, compose these agents into their own configs. An internal reasoning-evaluation framework does this for Nemotron reasoning evaluations, and it cannot move to the session harnesses yet.

Running HLE and HLE Diamond through all six session harnesses (pi_agent, opencode_agent, codex_agent, openclaw_agent, hermes_agent, claude_code_agent) surfaced these gaps:

  1. No benchmark profile. The deprecated agents ship configs/benchmark.yaml, which composes the agent onto a benchmark with its Resources Server left unset. The session harnesses have none.
  2. No search. The Environment Server grants only the episode Resources Server's tools. The deprecated agents seed their tool_servers (Tavily, for the HLE search presets) themselves on /run.
  3. No egress control. The deprecated agents' profiles set network_access: model_only. The session harnesses have no network_access, so a sandbox they create gets the provider's default network. On our OpenSandbox cell that default reached GitHub, Hugging Face and package registries.
  4. Bugs found along the way:
    • Claude Code turns are empty (Anthropic Messages calls are not read into turns).
    • OpenCode answers start with the reasoning that Gym's chat endpoint puts in <think> tags, a regression from the deprecated agent.
    • Claude Code rollouts stay open after the final answer when the model backgrounds Bash commands.

Description:

Close these gaps so the session harnesses can replace the deprecated agents for these evaluations:

Design:

Each item is a separate PR with its own tests. The egress PRs reuse the existing restricted_network_policy helper. Once #5363 (SandboxSpec.egress_rules) lands, they can map onto it instead of OpenSandbox's network_policy.

Out of scope:

  • Changing the deprecated sandboxed agents.
  • Returning reasoning in a separate field from the model server's chat completions endpoint instead of <think> tags.
  • Pairing configs under benchmarks/ for the session harnesses.

Acceptance Criteria:

  • All six session harnesses run HLE through the benchmark profiles, with healthy rollouts.
  • HLE with search runs through tool_servers for the harnesses that consume MCP grants.
  • Sandboxes created by session harnesses can be limited to the model server, or the model and tool servers, as the deprecated agents' are.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions