Repository navigation
Description
Queue rank 14/48 · Difficulty 2/5 · Status on main: not_fixed
NVBug: https://nvbugspro.nvidia.com/bug/6764103 · priority: Unprioritized (reporter suggests P1) · ARB: Christian Munley
GitHub: none found (no PR/issue sets the opt-out; only #2563 introduced the harness; NMGYM-54 tracks it)
Summary
The Cline harness pins cline_version (3.0.55) but never disables Cline's background npm auto-updater. During a cline_math run, npm update --global cline upgraded the shared global install to 3.0.61 and moved the cline binary; a concurrent task spawn hit FileNotFoundError, surfaced as HTTP 500, aborting collection — zero rollouts, zero verifier controls. The update->FileNotFoundError link is correlation-supported, not yet A/B-confirmed. Note the opt-out fix cannot stop an already-running or externally triggered updater.
Reproduction
Disposable Linux box, Gym at the run commit, writable npm global prefix on PATH, a newer Cline release available, a hosted OpenAI-compatible endpoint. Keep auto-update on; the race is timing-dependent: python environments/cline_math/prepare.py -> gym env start --config environments/cline_math/config.yaml --model-type openai_model -> gym eval run --no-serve --agent cline_math_agent --input environments/cline_math/data/example.jsonl --output results/cline_math_rollouts.jsonl.
Root cause
Gym never sets CLINE_NO_AUTO_UPDATE=1, so Cline's updater can replace the pinned install mid-run. The point-in-time version check in ensure_cline cannot enforce the pin during later subprocess calls.
Status on main (not_fixed)
HEAD 75bb53e. grep -rn CLINE_NO_AUTO_UPDATE responses_api_agents/cline_agent/ -> none.
setup_cline.py:39_cline_version:subprocess.run([cline_bin, "--version"]...)— inherited env, no suppression.setup_cline.py:54_npm_install:subprocess.run([npm_bin, "install", "-g", pkg], check=True)— no suppression env.app.py:511-512_env(): mergesconfig.envthen returns; never forces the opt-out.
Only commit touching these files since d109dec is b4d3fbc (chore(server): declare Ray usage for built-in servers #3728 Ray), unrelated.
Proposed fix
Product code only (per bug: do not fix via QA extra_env).
setup_cline.py: passenv={**os.environ, "CLINE_NO_AUTO_UPDATE": "1"}to the_cline_versionprobe and_npm_install(helper_suppressed_env()).app.py_env(): after the merge, hard-setenv["CLINE_NO_AUTO_UPDATE"] = "1"(notsetdefault, so a config/inherited "0" cannot re-enable). Do not mutate globalos.environ; keep version checks.- Tests (
tests/test_setup_cline.py,tests/test_app.py): assert the override reaches version probe, npm install, auth and task subprocesses including a config.env "0"; parent env unchanged; wrong-version rejection still works.
Validation
QA testcases/environments/cline_math.py. Re-run ./run.sh test cline_math --config config/config.local.py --ref <main-sha> --ai-log with no extra_env: expect full DAPO prep, 5 real rollouts, 15 verifier controls, cleanup; Cline stays 3.0.55; no npm-update/FileNotFoundError.
Triage
Difficulty 2/5 — localized 2-file edit, exact fix pinpointed, unit-testable. Needs GPU: no (full E2E needs a hosted inference endpoint, not GPU).
Reviewer notes
Verifier confirmed all four paths exist and status not_fixed on main (HEAD 75bb53e; grep returns no matches); difficulty held at 2. Corrections applied: the update->FileNotFoundError race is correlation-supported, not A/B-confirmed (no disable-update run, traceback omits the missing path); and the opt-out fix's own limit (cannot stop an already-running/external updater) is now noted in the Summary.
Activity
fix(agents): disable Cline auto-update so the pinned CLI holds
fix(agents): disable Cline auto-update so the pinned CLI holds (NVIDI…