Repository navigation
Model tunnel: use the chisel the OpenSandbox server mounts in every sandbox - #285
Merged
Merged
Conversation
…andbox, upload nothing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 plainpython:3.12-slim, through the proxy).--model-tunnelnow starts the sandbox-side server from that copy instead of uploading its own amd64 binary into every sandbox.scripts/harbor/model_tunnel.py:POD_BINARYis the mounted path (built from the pinnedCHISEL_VERSION, so both ends match); no upload, no sandbox architecture detection. If the mount is missing the server start fails withno 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 passesupload_fileto the tunnel.fetch_chisel.sh,docs/harbor.md,run.pyandrun_harbor_eval.shhelp: the directory holds the node's client (arm64 for GH200, amd64 for x86 nodes), not a copy for the microVMs.test_model_tunnelfollows (no uploads, the server command uses the mounted path, a sandbox without chisel fails with a clear message);test_model_tunnelandtest_harbor_runnerpass.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 withGET /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:
opensandbox-kata.breithorn): not checked for the mount. A server without it fails at tunnel start with the message above.nvmcould not be cloned from GitHub in the sandbox. Unrelated to this change.