Skip to content

fix(miniswe): AUT-2562 isolate native LiteLLM runtime from Gym MCP - #4735

Merged
ko3n1g merged 1 commit into
NVIDIA-NeMo:mainfrom
svcnemo-autobot:fix/miniswe-litellm-compat
Oct 19, 2026
Merged

ko3n1g merged 1 commit into
NVIDIA-NeMo:mainfrom
svcnemo-autobot:fix/miniswe-litellm-compat

Conversation

@svcnemo-autobot

Copy link
Copy Markdown
Contributor

Background

The mini-SWE failure in run 39159328234 reproduces as an MCP import error wrapped in APIConnectionError: LiteLLM 1.106.0 imports CacheableResult, unavailable in Gym's MCP v1 environment. This directly addresses the reported failure; no separate issue is needed.

What changed

  • Retain LiteLLM 1.106.0 and pin its native CLI environment with mini-SWE 2.4.6 and MCP 2.2.0.
  • Upload the runtime requirements during sandbox setup.
  • Run integration tests in that same isolated environment and verify dependency isolation.

Details

flowchart LR
  G[Gym and task MCP clients: v1] --> H[Sandbox setup]
  H --> N[Native mini-SWE: LiteLLM 1.106.0 + MCP v2]
  N --> M[Gym Responses endpoint]
Loading

Changes stay within this server. Shared dependencies, task MCP clients, model routing, and trajectory behavior remain unchanged. This pins the conflicting packages, not the entire transitive dependency graph.

Tested

  • Debug suite: 126 passed before annotation-only finalization.
  • Final head: 4 bootstrap/isolation tests passed; pre-commit exited 0 (private guardwords catalog unavailable); diff check clean.
  • Managed CPU inventory refused: checkpoint consumer supports only gcp-h100. No GPU allocated.
  • Canonical lint wrapper blocked at hook installation by platform-owned core.hooksPath; configured checks ran separately without changing it.
  • Required GitHub CI pending. Real-provider rollout not run; native CLI exercised local HTTP model fixtures and real subprocess/tool behavior.

@copy-pr-bot

copy-pr-bot Bot commented Oct 19, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@svcnvidia-nemo-ci svcnvidia-nemo-ci added area:agent Agent harnesses and Responses API agent behavior area:build Packaging, dependencies, containers, and releases labels Oct 19, 2026
@svcnvidia-nemo-ci

Copy link
Copy Markdown
Contributor

/ok to test fcf5aff

Copy link
Copy Markdown
Contributor Author

CI results for fcf5aff19ce697efd864660f7d7c9fb30dd6fe81:

  • Unit tests / Test succeeded, including 126 passed for miniswe_sandboxed_agent with LiteLLM 1.106.0 and the new dependency-isolation regression.
  • Nemo_CICD_Test succeeded.
  • Overall CI remains failed on Pi, Codex, and OpenCode conformance and their P0 aggregate. Comparing downloaded artifacts against protected-base run 39234021658, every scenario execution outcome and failed check/reason matches. Those adapters and shared conformance code are unchanged by this PR.

No checks were bypassed or failures retried as flaky. This PR retains the newer LiteLLM and stays confined to the mini-SWE server.

@ko3n1g
ko3n1g added this pull request to the merge queue Oct 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/39256115594

Merged via the queue into NVIDIA-NeMo:main with commit bd2d373 Oct 19, 2026
42 of 47 checks passed
reinainblood pushed a commit to reinainblood/Gym that referenced this pull request Oct 19, 2026
…VIDIA-NeMo#4735)

## Background

The mini-SWE failure in [run
39159328234](https://github.com/NVIDIA-NeMo/Gym/actions/runs/39159328234/job/117974394719)
reproduces as an MCP import error wrapped in `APIConnectionError`:
LiteLLM 1.106.0 imports `CacheableResult`, unavailable in Gym's MCP v1
environment. This directly addresses the reported failure; no separate
issue is needed.

## What changed

- Retain LiteLLM 1.106.0 and pin its native CLI environment with
mini-SWE 2.4.6 and MCP 2.2.0.
- Upload the runtime requirements during sandbox setup.
- Run integration tests in that same isolated environment and verify
dependency isolation.

## Details

```mermaid
flowchart LR
  G[Gym and task MCP clients: v1] --> H[Sandbox setup]
  H --> N[Native mini-SWE: LiteLLM 1.106.0 + MCP v2]
  N --> M[Gym Responses endpoint]
```
Changes stay within this server. Shared dependencies, task MCP clients,
model routing, and trajectory behavior remain unchanged. This pins the
conflicting packages, not the entire transitive dependency graph.

## Tested

- Debug suite: 126 passed before annotation-only finalization.
- Final head: 4 bootstrap/isolation tests passed; pre-commit exited 0
(private guardwords catalog unavailable); diff check clean.
- Managed CPU inventory refused: checkpoint consumer supports only
gcp-h100. No GPU allocated.
- Canonical lint wrapper blocked at hook installation by platform-owned
`core.hooksPath`; configured checks ran separately without changing it.
- Required GitHub CI pending. Real-provider rollout not run; native CLI
exercised local HTTP model fixtures and real subprocess/tool behavior.

Signed-off-by: svcnemo-autobot <[email protected]>
(cherry picked from commit bd2d373)
Signed-off-by: Kirsten Ruge <[email protected]>

This branch was previously deployed

1 inactive deployment
public — fcf5aff1 Deployed Oct 19, 2026 by copy-pr-bot[bot] via release / finalize / notify #5742
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 area:build Packaging, dependencies, containers, and releases

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants