Skip to content

feat: support task sandbox access - #3545

Merged
ananthsub merged 1 commit into
mainfrom
ananthsub/environment-server-sandbox-access
Sep 22, 2026
Merged

ananthsub merged 1 commit into
mainfrom
ananthsub/environment-server-sandbox-access

Conversation

@ananthsub

@ananthsub ananthsub commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Defines SandboxAccess in the sandbox subsystem and adds borrower disconnect support. Task/Resources Servers retain owner shutdown authority.

Single-agent interaction flow

This diagram shows the built-in single-agent use case. Other Environment Server protocols may coordinate different participants and use different request, result, and lifecycle flows.

sequenceDiagram
    participant C as Rollout collector
    participant E as Environment Server
    participant R as Task / Resources Server
    participant A as Agent Server
    participant M as Model Server
    participant S as Task sandbox

    C->>E: POST /run
    E->>R: Seed task session
    R-->>E: Tool access and optional SandboxAccess
    E->>A: Seed agent session
    A->>S: Connect as borrower when supplied
    E->>A: Invoke /v1/responses
    A->>M: Model and capture requests
    A-->>E: Agent response
    E->>A: Close agent session
    E->>R: Verify response
    E->>R: Close task session
    E-->>C: Episode result
Loading

The Environment Server coordinates ordering and the final result. Agent and Task/Resources Servers retain ownership of the state and resources they create.

This is part 5 of 13 in the Environment Server stack. Previous: #3543. Next: #3485.

Validation

  • uv run pytest tests/unit_tests/test_sandbox_access.py tests/unit_tests/test_docker_provider.py -q

Rollouts

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

Compatibility and benchmark impact

Existing sandbox owner lifecycle remains unchanged.

@copy-pr-bot

copy-pr-bot Bot commented Sep 18, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@ananthsub
ananthsub added this pull request to stack #3546 September 18, 2026 22:11
@ananthsub
ananthsub marked this pull request as ready for review September 18, 2026 22:12
@nemo-automation-bot
nemo-automation-bot Bot requested a review from a team September 18, 2026 22:12
@ananthsub
ananthsub force-pushed the ananthsub/environment-server-sandbox-access branch from fc4b240 to 77db194 Compare September 18, 2026 22:23
@ananthsub
ananthsub force-pushed the ananthsub/environment-server-sandbox-access branch from 77db194 to e33b215 Compare September 18, 2026 22:27
@ananthsub
ananthsub force-pushed the ananthsub/environment-server-sandbox-access branch from e33b215 to 9c8bfb7 Compare September 18, 2026 22:37
marta-sd
marta-sd previously approved these changes Sep 21, 2026
@ananthsub
ananthsub force-pushed the ananthsub/environment-server-sandbox-access branch from 2ac71cf to 4de5793 Compare September 21, 2026 13:38
@ananthsub
ananthsub force-pushed the ananthsub/environment-server-sandbox-access branch from 4de5793 to d0bfc29 Compare September 21, 2026 17:19
@github-actions github-actions Bot added the sla:review-overdue Review response is over the one-business-day SLA label Sep 21, 2026
@ananthsub
ananthsub force-pushed the ananthsub/environment-server-sandbox-access branch from d0bfc29 to 77bc5af Compare September 22, 2026 13:13
@ananthsub
ananthsub force-pushed the ananthsub/environment-server-sandbox-access branch from 77bc5af to cfdf947 Compare September 22, 2026 13:18
Signed-off-by: Ananth Subramaniam <[email protected]>

This branch was previously deployed

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

Labels

area:sandbox Sandbox providers, isolation, and sandbox runtime contracts complexity:low Localized change in one scope with a small, straightforward review surface feature New capabilities, enhancements, or enablement work needs-review PR is ready for code review and waiting on a reviewer sla:review-overdue Review response is over the one-business-day SLA

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants