Harbor¶
harbor ¶
An environment entry, written the way a Harbor task holds it, and what the arena knows of Harbor.
A Harbor task is a folder: task.toml, instruction.md, environment/,
tests/ (run by Harbor's verifier after the agent, writing
/logs/verifier/reward.txt or reward.json), solution/ (run by the oracle
agent), and optionally steps/. A workspace's own tasks are such folders
(type: harbor_tasks datasets run them, scored by their tests).
An environments.<name>: entry is the sandbox part of a task generated from rows, task.toml's
[environment] section (with its healthcheck and mcp_servers) and,
when the entry builds its image, environment/Dockerfile. task_files
returns both, for a task to be assembled around them.
An MCP server is passed as its connection (McpServerSpec.connection());
Harbor reads stdio, sse and streamable-http, so a websocket server
is refused. Harbor's server entry is only a name, a transport and a command
or URL: a connection that needs headers (a key) or a stdio env / cwd
would reach the agent without them, so it is refused too. A stdio command
runs inside the sandbox, so the image must hold it.
Every trial runs Harbor's verifier. A task folder's own tests score it; a
task generated from rows gets the arena's default tests, which collect the
agent's answer for the dataset's reward to score on the arena's side. What
the agent did is read back from its ATIF trajectory (trajectory_messages,
final_answer) into the prediction, HarborTrajectory. agents() says where each agent runs and which
provider it calls, agent_problem refuses a model or a network it cannot
work with, and sandbox_capabilities / environment_problems an entry a
sandbox provider cannot start. environment_config is what a trial runs on:
the provider, with its own settings (ARENA_HARBOR_SANDBOX_OPTIONS).
agents ¶
Each agent a harbor: block may name: {name, runs, provider, params}.
runs is host (it calls the model from the arena, typing into the
sandbox) or sandbox (it is installed in the sandbox and calls the
model from there); provider the one provider it calls, or None for
any; params the model settings it takes of temperature,
reasoning_effort and max_tokens.
agent_problem ¶
Why agent cannot work with model_id in environment (None: a task folder's own, not known here), as one sentence, or None.
An agent bound to a provider calls only its models; one installed in the sandbox calls its model from there, so it needs the network, and a model served from the arena's machine is out of its reach.
environment_problems ¶
What of spec sandbox provider sandbox cannot give, one sentence each: every trial would fail on it.
task_files ¶
task_files(spec: EnvironmentSpec, servers: dict[str, dict[str, Any]] | None = None) -> dict[str, str]
{path in the task folder: content}: the task.toml section, and environment/Dockerfile when one is built.