Skip to content

Understanding Results

WARNING

This documentation is almost entirely "vibe coded"; while a helpful resource for humans and agents to understand this codebase, it should not be considered a source of ground truth in the way documentation normally is, and the user is responsible for verifying that all instructions given here are safe.

Guide to reading benchmark output and diagnosing failures.

ABC Runner records a small set of benchmark outcomes. It does not presently try to assign richer grades such as partial credit or score vectors. Instead, it writes the result together with the logs, workspace, and metadata needed to understand how that result was produced.

Result Layout

Each benchmark run creates a directory organized by agent archive, task group, and task id:

results/
  <agent_archive_dir>/
    <task-group>/
      <task-id>/
        <timestamp>_<agent>_<task-id>/
          workspace_delta.json
          workspace_delta.tar.gz
          workspace.diff
          harness_output/
          verification/
          build_env.log
          verify.log
          prompt.md
          build_env.sh
          harness/
          models_config.yaml
          harness_config.yaml
          result.json
          metadata.json
          usage.json

Start With These Files

  • result.json: top-level benchmark outcome
  • metadata.json: expanded run metadata and file locations
  • usage.json: aggregated token and cost accounting, including prompt-cache reads and writes when reported
  • workspace.diff: what the agent changed (see Workspace Storage)
  • harness_output/ch-run.log: container process output
  • harness_output/model_proxy.log: proxied API traffic and upstream errors
  • verify.log: verification output

Workspace Storage: Compressed and Expanded Formats

By default runs are stored in the compressed format: the agent's final workspace is not kept in full. When a run finishes, ABC Runner compares it with the task's starting workspace and keeps only the difference, then deletes workspace/. A large task workspace (a Truchas checkout is about 290 MB) usually shrinks to a few hundred KB per run.

  • workspace_delta.json: names the task (task_ref) and records a tree digest of the task's starting workspace (base.tree_digest) and of the agent's final workspace (result.tree_digest), plus the added, modified, and deleted paths.
  • workspace_delta.tar.gz: every added or modified file, symlink, and directory exactly as the agent left it, including changes under .git/.
  • workspace.diff: a unified diff of text changes outside .git/, for reading. Binary and very large files are listed but not diffed.

metadata.json records "result_format": "compressed" and a workspace_delta summary. If the delta cannot be written and verified, the run fails with an error and records no result.

Runs that keep a full workspace/ are in the expanded format ("result_format": "expanded"): runs made with --keep-workspace, and runs recorded before the compressed format existed (which have no result_format field).

Restoring a Workspace

Restoring needs the full benchmark task, since the delta only holds what the agent changed:

abc-runner restore-workspace <run-dir> --dest /tmp/restored-workspace

The task named in workspace_delta.json must be installed (or found with --task-dir). Its workspace must match the recorded base digest, so restoring against a different version of the task fails instead of producing a different tree. The restored tree is checked against the recorded result digest. Use --group-map OLD=NEW if the task group has since been installed under another name.

Compressing Expanded Results

compress-results compresses expanded runs in place:

abc-runner compress-results results/ --dry-run
abc-runner compress-results results/ --group-map truchas=truchas-old --jobs 0

Each run is diffed against the task's current workspace, so compression is exact even if the task has changed since the run (the delta is just larger). The delta is verified against the full workspace before workspace/ is deleted. Every run's task must be installed, or the command fails before compressing anything. Otherwise it stops at the first run it cannot compress and leaves that run expanded. --jobs N compresses N runs at once (--jobs 0 uses all available CPUs), which is worth doing on a compute node for a large archive.

result.json

result.json is the primary machine-readable result.

Example:

{
  "task": "eos-metropolis-1953",
  "task_group": "smoke_test",
  "task_ref": "smoke_test/eos-metropolis-1953",
  "agent": "opencode-hybrid-nemotron-gemma-4-31b",
  "harness": "opencode-hybrid",
  "models": ["example-model", "example-small"],
  "status": "PASS",
  "usage": {
    "usage_available": true,
    "totals": {
      "input_tokens_standard": 18342,
      "input_tokens_cache_read": 8192,
      "input_tokens_cache_write": 2048,
      "input_tokens_cache_read_cost": 0.0006,
      "input_tokens_cache_write_cost": 0.0031,
      "input_tokens_standard_cost": 0.0183,
      "output_tokens": 2147,
      "output_cost": 0.0107,
      "reasoning_tokens": 0,
      "total_input_tokens": 28582,
      "total_tokens": 30729,
      "total_cost": 0.0327,
      "duration_seconds": 41.2,
      "tokens_per_second": 52.1
    }
  }
}

usage.json is aggregated from per-request records in harness_output/usage.jsonl. Token accounting distinguishes:

  • input_tokens_standard: input tokens billed at the normal input rate
  • input_tokens_cache_read: input tokens read from a prompt cache
  • input_tokens_cache_write: input tokens written into a prompt cache when the provider reports them separately
  • output_tokens: total output/completion tokens, including reasoning-token subsets when reported

Throughput accounting captures how fast tokens were generated:

  • duration_seconds: summed wall-clock time of the underlying upstream model requests (per request: from sending the request to reading the full response)
  • tokens_per_second: output tokens per second of request time (output_tokens / duration_seconds); 0.0 when no request duration is available

Cost accounting follows the same split:

  • input_tokens_standard_cost: cost for standard input tokens
  • input_tokens_cache_read_cost: cost to read prompt tokens from cache on cache hits
  • input_tokens_cache_write_cost: cost to write prompt tokens into cache when the provider reports and bills them separately
  • output_cost: cost for model output tokens

By default, cache-write pricing is zero unless the model config sets cache_write_input_per_1m. That keeps OpenAI-style accounting simple while also supporting providers that bill cache writes separately.

For a fuller picture, usage.json also includes:

  • by_model: the same token, cost, and throughput breakdown grouped by configured model name
  • status_counts: how many proxied requests had reported, missing, or malformed usage
  • endpoint_counts: how many requests went through each proxied endpoint

For streaming providers, ABC Runner preserves the harness-visible streaming behavior and separately parses usage from the streamed response payload when the provider includes usage information in SSE events.

metadata.json

metadata.json includes the same core identifiers plus elapsed time, failure phase, the result format and workspace delta summary, paths for logs, and host-machine metadata.

This is usually the best file for automation or postprocessing.

Result Statuses

  • PASS: verification succeeded
  • FAIL: verification failed, including verification crashes. This also covers the case where the agent exhausted the model's context window (an upstream "context length exceeded" error): running out of context is treated as the agent failing the task, not as a harness/infrastructure bug. Such runs record failure_phase: "context_length" in metadata.json.
  • ENDPOINT_ERROR: the model proxy could not obtain a complete upstream response within the 15-minute total deadline
  • HARNESS_ERROR: the benchmark failed before verification while building the task environment or while the model was working inside the harness/runtime stack. With memory_cgroup enabled, a run whose harness dies, or whose verifier fails, after the kernel OOM-killed processes at the run's memory cap records failure_phase: "memory_limit". Like every HARNESS_ERROR, it is inconclusive and is re-run when the batch resumes.

With memory_cgroup enabled, metadata.json also has a memory block: the cap (limit_bytes) and OOM-kill counts for build_env.sh, the harness, and verification. A nonzero harness_oom_kills on a graded run means one of the agent's processes (typically a build) was killed but the agent carried on.

Host-machine metadata includes:

  • hostname: the host running abc-runner
  • host_metadata.os: host OS details
  • host_metadata.cpu: host CPU model, architecture, and logical core count
  • host_metadata.memory.total_bytes: total host memory in bytes
  • host_metadata.gpus: NVIDIA GPU details when nvidia-smi is available

Verification Rule

Verification returns PASS only when both are true:

  1. the verification command exits with code 0
  2. the last PASS or FAIL line in the log is PASS

Otherwise verification returns FAIL. This avoids false positives from scripts that print PASS but fail overall.

Common Failure Triage

The agent started, then nothing useful happened

Check:

  • harness_output/model_proxy.log

This is the first place to look for:

  • TLS failures
  • authentication failures
  • provider access errors
  • upstream model errors
  • proxy retries and endpoint deadline exhaustion

The agent wrote code but the benchmark failed

Check:

  • workspace.diff
  • verify.log
  • verification/test_solution.py

The task environment failed to build

Check:

  • build_env.log

Group-Aware Aggregation

Because results include task_group and task_ref, aggregating by group is straightforward.

Example:

jq -r '"\(.task_group)\t\(.task)\t\(.status)"' results/*/*/*/*/metadata.json

Manual Verification

To rerun verification for an existing result, restore its workspace first:

RUN=results/<agent_archive_dir>/<task-group>/<task-id>/<run>
abc-runner restore-workspace "$RUN" --dest /tmp/ws
export ABC_RUNNER_WORKSPACE=/tmp/ws
"$RUN/verification/verify_solution.sh"

See Also