Configuration Reference
Shipyard uses TOML manifests to define evaluation benchmarks and suites.
1. eval.toml Specification
The eval.toml manifest defines the parameters, target agent, execution sandbox, and scoring rubrics for an individual evaluation.
Complete Example
name = "fix-memory-leak"
description = "Diagnose and fix a memory leak in the Go cache manager"
version = "1.0.0"
instruction = "instruction.md"
timeout_s = 300
max_turns = 15
repeat = 3 # repeats per eval; --repeat overrides this
[[agent]]
name = "agent"
role = "target"
model = "openai/gpt-4o"
reasoning = "low" # "high" | "low" | "none"
driver = "cli" # "cli" | "api" | "langgraph" | "custom"
plugin = "claude-code" # Optional registered plugin alias
provider = "anthropic" # Optional LLM provider identifier
command = "claude --print" # Command executed for CLI drivers
entrypoint = "main.py" # Entrypoint for framework/runtime drivers
[environment]
type = "docker" # "docker" | "local" | "custom"
dockerfile = "environment/Dockerfile"
workdir = "/app"
persistent = false
container_name = "" # Optional fixed container name
env_vars = { CGO_ENABLED = "1", LOG_LEVEL = "debug" }
[tests]
rubric = "tests/rubric.py" # Path to scoring script
entrypoint = "score" # Python function or CLI entrypoint
pass_threshold = 1.0 # Normalized score needed to pass [0.0 - 1.0]
[redaction]
env_vars = ["SUPPORT_API_TOKEN", "STRIPE_SECRET_KEY"]
Configuration Fields Breakdown
Root Metadata
| Field | Type | Required | Description |
|---|---|---|---|
name |
string | Yes | Unique identifier for this evaluation. |
description |
string | No | Human-readable explanation of what is tested. |
version |
string | Yes | Semantic version string (e.g. 1.0.0). |
instruction |
string | Yes | Path to Markdown or text file containing the agent's task prompt. |
timeout_s |
integer | No | Maximum allowed execution time in seconds (defaults to engine default if unset). |
max_turns |
integer | No | Maximum interaction turns allowed before termination. |
repeat |
integer | No | Repeats per eval (default 1). --repeat overrides it; evalset.toml can set a suite-wide default. See Repeats & statistics. |
[[agent]]
Multiple agent blocks can be defined for multi-agent or evaluator-agent workflows.
| Field | Type | Description |
|---|---|---|
name |
string | Name of the agent instance (e.g. coder, evaluator). |
role |
string | Role in the evaluation: target, assistant, critic. |
model |
string | Model identifier (e.g. gpt-4o, claude-3-5-sonnet-20241022). |
reasoning |
string | Reasoning effort level (high, low, none). |
driver |
string | Execution driver mode: cli, api, langgraph, custom. |
plugin |
string | Identifier of registered Shipyard plugin. |
provider |
string | LLM provider alias (openai, anthropic, gemini, deepseek, ollama). |
command |
string | Shell command string executed for CLI agents. |
entrypoint |
string | Python or script entrypoint file. |
[environment]
Defines the isolated environment where the agent performs its actions.
| Field | Type | Description |
|---|---|---|
type |
string | docker, local, or custom. |
dockerfile |
string | Relative path to Dockerfile for building the sandbox image. |
image |
string | Pre-built container image to pull (alternative to dockerfile). |
workdir |
string | Initial working directory inside the environment. |
persistent |
bool | Whether the container persists across multiple runs. |
env_vars |
table | Environment variables injected into the container. |
[tests]
Defines the deterministic or model-graded scoring criteria.
| Field | Type | Description |
|---|---|---|
rubric |
string | Path to rubric implementation file (e.g. tests/rubric.py). |
entrypoint |
string | Scoring function name or executable entrypoint. |
pass_threshold |
float | Minimum aggregate score required to mark the eval PASSED (usually 1.0). |
[redaction]
Best-effort credential scrubbing is on by default for captured artifacts. The
patterns cover sk-* keys, GitHub tokens (ghp_, gho_, ghs_, ghu_,
ghr_, and github_pat_), AWS keys (AKIA, ASIA), Slack (xox*), Google
(AIza*), JWTs, Bearer tokens, and PEM private-key blocks. The [redaction]
block adds known values on top:
[redaction]
env_vars = ["SUPPORT_API_TOKEN", "STRIPE_SECRET_KEY"]
Every environment variable named there has its value treated as a known secret
wherever it appears in captured files. The values of environment variables
handed to the sandbox are treated the same way, as are the environment
variable names listed in SHIPYARD_REDACT_VALUES.
Redaction is best-effort: pattern gaps exist, so do not rely on it as the only
control for a secret. shipyard run --no-redact disables scrubbing entirely
when you need the raw artifact.
2. evalset.toml Specification
The evalset.toml manifest groups multiple evaluation directories into a benchmark suite.
Example
name = "swe-bench-lite"
version = "1.0.0"
description = "Software engineering benchmark suite for bug fixes"
repeat = 3 # suite-wide default; --repeat overrides it
[gate]
max_score_drop_pct = 2.0
max_cost_increase_pct = 0
block_on_flake = true
min_k_noise_floor = 3
confidence = 0.95
Shipyard automatically discovers all subdirectories containing an eval.toml under the directory with evalset.toml.
[gate] Policy
[gate] decides what blocks a comparison. It lives in evalset.toml, or in
eval.toml when a single eval is the whole target:
| Key | Default | Meaning |
|---|---|---|
max_score_drop_pct |
2.0 |
Score-drop budget in percent. Negative disables score gating. |
max_cost_increase_pct |
0 |
Cost-gate budget in percent; 0 is off. |
block_on_flake |
true |
Block when a candidate's repeats disagree. |
min_k_noise_floor |
3 |
Minimum k before the Student-t noise margin applies. |
confidence |
0.95 |
Confidence level for the noise margin: 0.90, 0.95, or 0.99. |
Full rules and worked examples are in Gate policy.
3. pricing.toml
Cost estimates use a shipped pricing table of common models. Override or
extend it with pricing.toml at the target root, or point
SHIPYARD_PRICING_FILE at a file elsewhere:
[models."claude-sonnet-4-5"]
input_per_million = 3.00
output_per_million = 15.00
[models."gpt-4o"]
input_per_million = 2.50
output_per_million = 10.00
Keys are model prefixes, matched exactly first and then by longest prefix.
Models with no match show no cost (never 0). See
Costs & tokens for the honest n/a rules and suite
partial totals.
4. Rollout Files
Every run writes rollouts/<run-id>/:
| File | Contents |
|---|---|
trajectory.json |
ATIF v1.0 steps, actions, tool calls. |
conversation.json, tool_calls.json |
Message transcript and tool invocations for rubric assertions. |
metrics.json |
v1: schema_version, run_id, repeat_index, verdict, error_kind, usage. |
rubrics.json |
Itemized scoring result. |
run.json |
Provenance: engine/CLI/Go versions and commits, plugin, resolved command, model, harness version, environment, config_hash, suite_digest, timestamps. |
aggregate.json |
k, counts, flaked, verdict, pass@k, pass^k, mean_score, sigma_score, score_ci95, usage, per-repeat records, suite_digest, definition_digest, definition_files. |
results.json |
Suite results consumed by compare and report. |
With --repeat K, the per-repeat files live in repeat-1/ ... repeat-K/
subdirectories. Schemas and consumers are documented in
Rollouts & ATIF and
Provenance.