Skip to content

Model tunnel: use the chisel the OpenSandbox server mounts in every sandbox - #285

Merged
mzueri merged 1 commit into
mainfrom
chisel-preinstalled
Nov 30, 2026
Merged

mzueri merged 1 commit into
mainfrom
chisel-preinstalled

Conversation

@mzueri

@mzueri mzueri commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

The OpenSandbox server mounts chisel 1.12.0 read-only in every sandbox at /opt/rl-tools/chisel/1.12.0/chisel (checked in a SWE-bench task image and in plain python:3.12-slim, through the proxy). --model-tunnel now starts the sandbox-side server from that copy instead of uploading its own amd64 binary into every sandbox.

  • scripts/harbor/model_tunnel.py: POD_BINARY is the mounted path (built from the pinned CHISEL_VERSION, so both ends match); no upload, no sandbox architecture detection. If the mount is missing the server start fails with no chisel at <path>: this OpenSandbox server does not mount it. Only the node's client binary still comes from --chisel-dir.
  • opensandbox_environment.py: no longer passes upload_file to the tunnel.
  • fetch_chisel.sh, docs/harbor.md, run.py and run_harbor_eval.sh help: the directory holds the node's client (arm64 for GH200, amd64 for x86 nodes), not a copy for the microVMs.
  • Tests: test_model_tunnel follows (no uploads, the server command uses the mounted path, a sandbox without chisel fails with a clear message); test_model_tunnel and test_harbor_runner pass.

Verified end to end (Clariden, this commit, OpenSandbox proxy osb-gw-ka): OpenCode with --model-tunnel, 2 SWE-bench Verified tasks, Qwen3.6-35B-A3B on the Swiss AI API reached through a plain-HTTP forwarder on the node (the tunnel forwards raw TCP, so it cannot target an https URL directly). In all 6 trials over three runs the tunnel came up in 0.7-0.8s with GET /health: HTTP/1.0 200 OK. In the last run (job 4074925, 35 min, both trials scored) the agent made real model calls through it, no 401s: pylint-7080 62 steps / 64 tool calls, django-11734 106 steps / 107 tool calls. Both rewards are 0.0: the model did not solve either task, which is the model's result, not the tunnel's.

Not verified:

  • The direct Kata endpoint (opensandbox-kata.breithorn): not checked for the mount. A server without it fails at tunnel start with the message above.
  • Only OpenCode was run through the tunnel; OpenHands was not.
  • One OpenCode trial (in an earlier run) failed installing it: nvm could not be cloned from GitHub in the sandbox. Unrelated to this change.

@mzueri
mzueri merged commit ee11522 into main Nov 30, 2026
3 checks passed
@mzueri
mzueri deleted the chisel-preinstalled branch November 30, 2026 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant