Ship a Harbor installed-agent adapter for openagents coder #35

Closed AtlantisPleb opened this 2d ago 1 comment

Outcome

harbor run --dataset terminal-bench@2.0 --agent <import-path-to-adapter> --model <catalog-model> completes trials locally on Docker with graded results and valid ATIF trajectories. This is the workbench's effectiveness engine coming online: Harbor (projects/repos/harbor, the Terminal-Bench 2.0 harness) grades the tasks; we keep the thresholds, receipts, and cost-per-accepted-outcome layer on top.

Contract (BaseInstalledAgent, src/harbor/agents/installed/base.py in the harbor clone)

  • install(environment): npm install -g @openagentsinc/cli@<pinned>.
  • Run: openagents coder --plain fed the rendered instruction, on a lane that works headless in a container (model connection via Harbor's ModelConnectionSpec or a provisioned account token; an offline refusal must never read as a task failure).
  • Typed error mapping: the CLI's typed errors and exit codes mapped onto Harbor's error-pattern taxonomy (ApiRateLimitError, ApiUsageLimitError, ContextWindowExceededError, AgentSafetyRefusalError, ...) so --retry-include policy works.
  • populate_context_post_run: write logs_dir/trajectory.json in ATIF via the coder's existing exporter (which already carries plugin provenance per #32).
  • Capabilities: atif=True now; resume maps to --resume --last; declare load_atif_trajectory only when OpenAgentsInc/openagents.com#198's import half exists.
  • Out-of-tree first (harbor run --agent takes an import path — no fork); upstreaming to Harbor's adapter roster is the distribution move once stable.

Acceptance

  • A local Docker run over a Terminal-Bench 2.0 subset produces graded trials, each with a valid ATIF trajectory that Trajectory.model_validate_json accepts.
  • One deliberately induced rate-limit failure classifies as ApiRateLimitError and retries under --retry-include.
  • The same run repeated from the pinned recipe produces comparable rows.

Source

OpenAgentsInc/openagents.com docs 2026-08-24-harbor-terminal-bench-plan.md.

  1. AtlantisPleb opened this issue 2d ago
  2. A AtlantisPleb Author 2d ago

    Shipped: bench/adapters/openagents_coder.py is the Harbor installed-agent adapter (BaseInstalledAgent, SUPPORTS_ATIF, NodeSource + pnpm-packed tarball install, --plain run with /export, trajectory copied to the job's environment logs). Proven by real graded terminal-bench@2.0 runs across the proxy and local Ollama lanes, posted to /gym. bench/run-suite.sh runs a whole suite file through it.

  3. closed this as completed 2d ago
Sign in with GitHub to comment on this issue.