Skip to content

feat: run Hermes inside task sandboxes - #3715

Closed
ananthsub wants to merge 1 commit into
ananthsub/episode-orchestration-09-legacy-adapterfrom
ananthsub/episode-orchestration-08-hermes-sandbox-execution
Closed

ananthsub wants to merge 1 commit into
ananthsub/episode-orchestration-09-legacy-adapterfrom
ananthsub/episode-orchestration-08-hermes-sandbox-execution

Conversation

@ananthsub

Copy link
Copy Markdown
Contributor

What does this PR do?

Runs Hermes in a task-owned sandbox when Resources supplies SandboxAccess, or creates an agent-owned sandbox from its configured provider and spec when access is absent. Both paths return sandbox-captured model and tool observations during close. Required episode tool grants are rejected because Hermes does not yet install them; optional grants may be ignored.

This replacement PR follows the legacy compatibility layer so that #3714 must merge first. Previous: #3714. Next: #3491.

No issue is linked because this is one layer of the existing Environment Server stack.

Compatibility impact

This PR also preserves reasoning_content on NeMoGymChatCompletionAssistantMessageParam. That affects all chat-completions callers that replay assistant messages, not only Hermes, and is required so thinking-model follow-up requests survive tool calls.

Sandbox mode installs Hermes at seed time. The sandbox needs outbound access to GitHub and the Python package index, and the image must match the host CPU architecture and C library because the host uv binary is copied in. The runner and terminal tool share one user and writable filesystem; the model can modify the file relay's output.json. This mode is suitable for evaluation, not RL training data, until result transport is isolated from model-written files.

Validation

  • responses_api_agents/hermes_agent/.venv/bin/pytest responses_api_agents/hermes_agent/tests/ -q — 57 passed
  • Required Direct HTTP tool-grant reproduction now fails seed explicitly instead of running without the tool.
  • Non-Hermes vLLM smoke: not run because this workspace has no configured model endpoint or credentials.

Rollouts

See the final integration PR for end-to-end rollout evidence.

Signed-off-by: Ananth Subramaniam <[email protected]>
@nemo-automation-bot
nemo-automation-bot Bot requested review from a team September 28, 2026 14:54
@ananthsub
ananthsub added this pull request to stack #3493 September 28, 2026 15:33
@yaoyu-33 yaoyu-33 added area:agent Agent harnesses and Responses API agent behavior complexity:high Cross-component or shared-contract change with a large review surface feature New capabilities, enhancements, or enablement work needs-review PR is ready for code review and waiting on a reviewer labels Sep 28, 2026
@ananthsub

Copy link
Copy Markdown
Contributor Author

Closing to recreate the remaining Environment Server work as one correctly ordered GitHub Stack. Branch commits are preserved; a replacement PR will follow.

This branch was previously deployed

1 inactive deployment
public — 86f6424f Deployed Sep 28, 2026 by copy-pr-bot[bot] via release / finalize / notify #3714
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:agent Agent harnesses and Responses API agent behavior complexity:high Cross-component or shared-contract change with a large review surface feature New capabilities, enhancements, or enablement work needs-review PR is ready for code review and waiting on a reviewer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants