agentcompass run. Use run for one request. Use launch to compare models, evaluate several benchmarks, or mix harnesses and environments across multiple requests.
AgentCompass does not infer a matrix. Every request is named and declared explicitly, which keeps its parameters,
results, failures, and reuse source auditable.
Define an Orchestration
The following orchestration defines two evaluation requests. They share one global pool of 16 physical attempt-execution slots. Common model settings are defined once underdefaults, while each request selects its own k and aggregation strategy:
${MODEL_API_KEY}. AgentCompass rejects partial string
interpolation so unresolved or accidentally concatenated secrets do not silently enter a request.
What the fields mean
The request
name therefore remains stable even if its benchmark or environment configuration changes. Use
agentcompass list benchmark, agentcompass list harness, and agentcompass list env to inspect valid component IDs.
Mapping rules
The optional
version defaults to the latest supported orchestration format. Request names must be non-empty and unique. AgentCompass normalizes each name to one safe directory component and rejects names that resolve to the same output namespace, even when their run IDs differ. Requests explicitly sharing a job_group share its namespace; their normalized sub-job names must remain distinct.
Each request writes results under:
--run-id baseline creates these two directories under the default result root:
output.run_name adds an optional grouping prefix. Distinct request names keep outputs separate, including when requests use the same Model and Benchmark with different Harnesses. An explicit run ID must be unused within its request namespace.
Configure k and strategy per request
launch does not use one --k or --attempt-strategy override for every benchmark. As shown above, put attempts under requests[].execution to select k and strategy independently for each request; see agentcompass run’s “Configure Repeated Attempts” for the complete values and execution behavior.
AgentCompass resolves each request independently from the shared configuration and defaults.execution, then applies that request’s own execution fields. Requests do not inherit from or overwrite one another. Even if a later request starts while an earlier request is still running, it cannot change the earlier request’s resolved k or strategy. The requests share only the execution slots defined by the top-level task_concurrency.
When every request uses the same settings, you can put attempts under defaults.execution; any request can still override them. For an orchestration that mixes scalar and binary primary metrics, set strategy explicitly in each request so that a scalar benchmark cannot inherit an incompatible pass strategy. See Metrics and Aggregation for metric types, strategy constraints, and result semantics.
Validate Before Running
Resolve the complete orchestration before starting an evaluation:--dry-run loads configuration layers, expands environment references, resolves component defaults, validates every
request, and prints a redacted orchestration. It does not load benchmark tasks or create result directories. Review the
selected component IDs, task filters, environments, endpoint hostnames, concurrency, and reuse settings in this output.
Start the same orchestration after validation:
agentcompass launch --help for the complete option list. Common orchestration-level options include:
Understand Scheduling and Failure Isolation
All requests share one execution worker pool. Declaration order defines admission priority: tasks from an earlier request are admitted first, and later requests use idle slots after all pending tasks from earlier requests have been admitted. This ordering is deterministic, but it does not force one complete evaluation to finish before the next begins. In thetask_concurrency: 16 example under Define an Orchestration:
- AgentCompass fills available slots with tasks from
tb21first. - As
tb21tasks finish, its remaining unstarted tasks continue to receive priority. - Once all
tb21tasks have been admitted, any free slots immediately begintb2vrftasks, even if the finaltb21tasks are still running. - If
tb21contains fewer than 16 tasks, the unused slots begintb2vrfimmediately.
task_concurrency controls concurrent physical attempt executions across the orchestration, including retries and repeated attempts from the same task.
Each ungrouped request keeps its own run directory, progress files, logs, summary, and terminal outcome. A request-level failure
is recorded as failed and does not prevent later requests from running. The orchestration returns completed when
all requests complete, partial_failure when only some fail, and a terminal timeout or cancellation status when the
shared operation is stopped.
See Logs and Progress for the terminal behavior of all
three progress modes and how they interact with progress files.
Use the capacity guidance in Run Controls before raising global
concurrency.
Split a Job Across Configurations
Set the samejob_group on requests that evaluate disjoint samples of one Benchmark. Each sub-job can override its Model, Harness, Environment, analysis, and retry settings. For example, select one sample explicitly and give the remaining samples a different temperature:
sample_ids / skip_sample_ids, metric contract, aggregation settings, category hierarchy, k, and attempt strategy. Their output.run_name and output.run_id must also match. A compatibility failure marks the job and its members as failed while other jobs and ungrouped requests continue; a dry run raises the validation error. AgentCompass loads and selects every sub-job’s samples before starting inference for the job and rejects overlapping sample IDs. A dry run validates configuration and compatibility without loading tasks; overlap is checked when you launch.
The shared directory is <results_dir>/[<output.run_name>/]<job_group>/<run_id>/. Task results keep the standard details/ layout. run_info.json records every sub-job’s request, sample IDs, and terminal status; each sub-job’s params.json and progress files live under sub_jobs/<name>/. The parent progress.json combines all sub-jobs. Open the shared directory with agentcompass view to inspect parent metrics, sub-job configurations and status, and each sample’s sub-job.
The root request and params.json use the first sub-job’s actual configuration as the summary context, with sample selection replaced by the union for the job. metadata.summary_context identifies that sub-job. Use the sub_jobs records for each sample’s inference configuration; the viewer displays all member Model IDs separately. Each sub-job records its resolved reuse state and reused_from source, or reuse: false when no source exists. The parent also records reused_from only when all sub-jobs use the same source. When you rerun analysis, each sample uses its sub-job’s Model, Harness, Environment, and analysis settings; explicit CLI or configuration analysis settings apply to all selected samples.
The parent generates summary.md, metrics.json, and any analysis summary once all sub-jobs finish. In summary.md, Model lists the distinct member Model IDs, and Job group shows job_group; recomputing the summary preserves these fields. Failure semantics match an ordinary run: final FATAL issues invalidate the parent result while preserving reference metrics; ERROR issues contribute to the parent’s error counts. Retry settings can differ between sub-jobs. Infrastructure failures, cancellation, and timeout retain available artifacts and report failure or interruption rather than a successful summary.
In the SDK, set RunRequestSpec.job_group, or RunMetadata.job_group when building complete requests. OrchestrationResult.jobs[job_group] contains the parent outcome; requests retains each sub-job’s outcome and points to the shared summary.
Reuse Existing Runs
--reuse enables latest-run reuse by default for every request in the orchestration:
runtime.reuse: false. To select an exact source, set
runtime.reuse_run_id in that request or in defaults; output.run_id names the new result and is not a reuse source.
Reuse searches only within the current request’s result namespace, including its optional output.run_name prefix. Requests with distinct normalized names can independently reuse their latest runs even when their Model and Benchmark are the same. The selected source must have the same Benchmark ID and attempt plan; evaluation settings can change. Changing a request’s name changes where reuse looks.
For sub-jobs, reuse searches the parent job_group namespace and selects results only for that sub-job’s samples. Changing job_group changes the reuse namespace.
Existing result directories remain in place. Automatic reuse searches only the new request-based hierarchy; it does not discover runs in the former Benchmark/Model hierarchy. Conflicting normalized request namespaces and existing explicit output directories are rejected before task execution.
See Resume an Interrupted Run for reuse
matching and usage constraints.
