task.toml file specifies the task configuration and metadata.
[environment] vs. environment/
By default, Harbor defers as much configuration as possible into the environment/ spec rather than the task.toml. A lot of engineering effort has gone into designing environment/ specs (like Dockerfile) and they provide conventions for common use cases.
Only when absolutely necessary does Harbor require configuration in the task.toml.
A few fields in task.toml are due to lack of convention or common pitfalls:
Field reference
General
How to derive the trial-level reward from per-step verifier results. Only applies when [[steps]] is set; leave unset for single-step tasks (defaults to “mean” on multi-step). See Multi-step tasks.
[task]
Optional [task] section for registry package metadata. When present, task.name is required.
Package name in org/name format (e.g., “harbor/hello-world”). Required when [task] is declared.
List of task authors. Each entry has a required name and optional email (for example,
[{ name = "Jane", email = "jane@example.com" }]).[metadata]
[verifier]
Optional override during verify(). Applied only when set and different from the verifier baseline. See Network policy.
Username or UID to run the verifier as. When set, the environment’s default user is configured accordingly before verification. If not set, the environment’s container default (typically root) is used.
Where the verifier runs. “shared” (default when no [verifier.environment] is declared) reuses the agent’s container; “separate” launches a dedicated verifier container with its own image. Omitting this field while declaring [verifier.environment] implies “separate”. Declaring “shared” alongside [verifier.environment] is a validation error.
Optional [verifier.environment] section (same schema as the top-level [environment]). Defines a dedicated container the verifier runs in. When set, the task’s tests/ directory becomes the verifier image’s build context — the image must provide /tests/test.sh (Linux) or /tests/test.bat (Windows) at runtime; Harbor does not upload tests for separate envs. When environment_mode=“separate” is declared without this section, a fresh copy of the top-level [environment] is used.
Separate verifier env baseline when [verifier.environment] is set. Same modes as environment.network_mode.
Allowlist hostnames when verifier.environment.network_mode is allowlist.
[agent]
Optional override during agent.run(). Applied only when set and different from [environment]. See Network policy.
Username or UID to run the agent as. When set, the environment’s default user is configured accordingly before agent setup and execution. If not set, the environment’s container default (typically root) is used.
[solution]
[environment]
Agent env baseline. Also the shared verifier baseline when no separate verifier env overrides it. See Network policy.
A pre-built Docker image to use for the environment. When set, environment/Dockerfile is optional for supported environment types.
Target operating system for the task container. “linux” (default) or “windows”. When “windows”, Harbor uses Windows-style paths, cmd.exe execution, tar-over-exec file transfer, and filters script discovery to .bat only. The Docker daemon mode and image OS are validated against this value at start; mismatches fail fast.
Number of CPUs requested by the task. When omitted, Harbor leaves CPU sizing to the selected provider.
Amount of RAM requested by the task in megabytes. When omitted, Harbor leaves memory sizing to the selected provider.
Amount of storage requested by the task in megabytes. When omitted, Harbor leaves storage sizing to the selected provider.
Number of GPUs requested by the task. When omitted, Harbor does not request GPUs.
List of acceptable GPU types (e.g., [‘H100’, ‘A100’, ‘T4’]). None means any GPU type is acceptable.
TPU slice specification (type + topology). When set, the environment requests a TPU node matching this spec; per-pod chip count is derived from the topology. Singular because a task allocates exactly one TPU slice per pod. Only supported on TPU-capable environments (currently GKE).
TPU accelerator type. Accepts either a user-friendly alias (e.g., ‘v6e’, ‘trillium’, ‘v4’) or a canonical GKE label (e.g., ‘tpu-v6e-slice’, ‘tpu7x’).
TPU topology as ‘NxM’ or ‘NxMxK’ (e.g., ‘2x4’, ‘2x2x1’). Required — GKE’s implicit default topology is not part of a stable contract, so omitting it would make Harbor runs non-reproducible across GKE versions. Per-pod TPU chip count is computed as the product of dimensions (e.g. ‘2x2x1’ → 4 chips, ‘2x4’ → 8 chips). Each dimension must be a positive integer (no leading zeros).
Deprecated compatibility field. Prefer [environment].network_mode. When set and [environment].network_mode is omitted, false maps to no-network and true maps to public.
Environment variables required for the task, resolved from the host at runtime. Supports
${VAR} and ${VAR:-default} template syntax.Unique name for each MCP server entry (declare servers as [[environment.mcp_servers]] in TOML). Compatible agents register them automatically. See Environment — MCPs.
How the agent connects to the server. “sse” and “streamable-http” require url; “stdio” requires command. Legacy value “http” is normalized to “streamable-http”.
Endpoint URL when transport is “sse” or “streamable-http” (e.g. http://mcp-server:8000/mcp for a Compose sidecar). Required for those transports.
Path to a skills directory in the environment. Contents are registered with compatible agents.
Optional healthcheck block run after environment start (omit the whole [environment.healthcheck] section to disable). When set, command is required; other fields use the defaults below.
Shell command to run as a healthcheck after environment start. Exit 0 means healthy. Required when [environment.healthcheck] is present.
Default working directory for command execution in the environment. Overrides the container WORKDIR when set.
Artifacts
Root-level paths to snapshot from the environment into the trial artifacts directory. Single-step: collected once after verification. Multi-step: included in every step’s collection pass (step-level paths use [[steps]].artifacts — see Multi-step tasks). Each entry is a container path string or a table with source / destination / exclude.
Container path to download (file or directory). Required for table entries; a bare string in the artifacts list is shorthand for source only.
Relative path under the trial artifacts directory. When omitted, Harbor derives the host path from source.
Glob patterns to exclude when source is a directory (passed as tar —exclude flags).
Provenance
Multi-step configuration
The field reference above covers single-step and shared task-root settings. Multi-step tasks add[[steps]] entries with per-step agent, verifier, healthcheck, min_reward, and artifacts overrides. Step fields, workdir/setup.sh, and trial-level reward rollup are documented on multi-step tasks.
TOML templates
During task creation, you can pass a--metadata-template flag with a path to a TOML file to pre-populate task.toml with metadata fields and config defaults:

