Skip to content

[NVBug 6900605] Re-enable pathspec for harbor_agent venv so Harbor rollouts stop silently scoring 0 #4517

Closed

Description

@qiaochuz-nv

Queue rank 29/48 · Difficulty 3/5 · Status on main: not_fixed

NVBug: https://nvbugspro.nvidia.com/bug/6900605 · Priority: Unprioritized · ARB: Ananth Subramaniam
GitHub: none found (regression from merged #4193 / r0.7.0 cherry-pick #4205; no fix PR)

Summary

r0.7.0 regression. #4193 made pathspec never-install at the repo root and re-enabled it only for terminal_bench_4 and miniswe_sandboxed_agent. harbor_agent was missed, so its venv lacks pathspec; from harbor.job import Job (app.py:162, inside the Ray task) raises ModuleNotFoundError. The exception is swallowed into a reward-0 rollout, so every Harbor-backed run (Legal Agent Bench, Terminal-Bench) silently scores 0 with no error.

Reproduction

In a venv built from current main for responses_api_agents/harbor_agent:
.venv/bin/python -c 'import harbor.job' → ModuleNotFoundError: No module named 'pathspec'.
Harbor pins dirhash → scantree → pathspec>=0.10.1, but the root override drops it.

Root cause

pyproject.toml:497 "pathspec; sys_platform == 'never'" drops pathspec from every server venv; servers must re-enable it via their own overrides.txt. harbor_agent has only requirements.txt, no overrides.txt. Secondary (pre-existing): app.py:311-319 turns any exception into reward=0.0, failure_kind=None, mask_sample=False and prints (never logged), masking the infra failure.

Status on main (not_fixed)

  • pyproject.toml:497 still "pathspec; sys_platform == 'never'".
  • Only miniswe_sandboxed_agent/overrides.txt and terminal_bench_4/overrides.txt list pathspec; harbor_agent has no overrides.txt.
  • git log 894908ee..HEAD -- responses_api_agents/harbor_agent/ shows only chore(server): request the ray extra from servers that use Ray #4301 (ray extra); no dep fix.
  • Likely also broken (hedged): harbor_agent_general (top-level from harbor.job import Job). terminus_2_sandboxed_agent affectedness is UNVERIFIED — its app.py imports only harbor.agents/llms/models/utils, not harbor.job.

Proposed fix

  • Create responses_api_agents/harbor_agent/overrides.txt (new file, single line pathspec, mirror terminal_bench_4) and add pathspec==1.1.1 to its requirements.txt. MPL-2.0, so same license sign-off as chore: never install gprof2dot/pathspec; purge dbus and gi bindings #4193.
  • harbor_agent_general: its pyproject.toml has no override-dependencies section, so ADD one re-enabling pathspec. terminus_2_sandboxed_agent (no pyproject): add a NEW overrides.txt plus a requirements.txt pathspec pin — only if confirmed affected.
  • Optional: in app.py set failure_kind/mask_sample and log via logger.
  • Add CI smoke: python -c 'import harbor.job' in each Harbor server venv.

Validation

Re-run QA testcases/environments/legal_agent_bench.py on H100. Pass: harbor_jobs/.../result.json and verifier/scores.json exist, full_task eval takes minutes not ~7s.

Triage

Difficulty 3/5 — root cause pinpointed but spans up to 3 server manifests, needs a new CI import smoke test, license sign-off, and an H100 Harbor Docker trial. Needs GPU/model: yes.

Reviewer notes

Verifier confirmed not_fixed and difficulty 3. Corrections: harbor_agent/overrides.txt is a new file to create (mirror terminal_bench_4); harbor_agent_general has no override-dependencies section, so one must be added; terminus_2_sandboxed_agent has no pyproject (fix = new overrides.txt plus a requirements pathspec pin) and its affectedness is unverified — it imports only harbor.agents/..., not harbor.job — so keep it hedged.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions