Test command reference
Every robotelos test subcommand, the flags of test run with their defaults, exit codes per subcommand, file formats, environment variables and the robotelos-eval kit.
This page lists the facts of the scenario test commands. For steps, start with Run your first scenario. A flag written --name takes a value unless this page says it is a switch.
Subcommands
| Usage | What it does |
|---|
robotelos test run [PATH] [flags] | Runs scenario specs against a target. PATH is a spec directory and stands in for --specs. |
robotelos test lint PATH... | Finds specs that a silent agent can pass. Contacts no target. |
robotelos test resume DIR [--parallel N] [--baseline FILE] [--out FILE] | Continues a job directory made by test run --job-dir. Takes only the flags listed under Resume. |
robotelos test regrade DIR [--baseline FILE] | Grades the stored conversations of a job again with the current specs. Contacts no target. Results go to DIR/regrades/N. Also takes the --tol-* flags. |
robotelos test diff BASE DIR [--regrade N] | Compares two stored jobs. Also takes the --tol-* flags. |
robotelos test judge-agreement LABELS.json | Compares the advisory model judge of stored reports with the labels of people. |
robotelos test controls PATH [--profile live|scripted] [--control NAME ...] | Runs negative controls in process. Needs a build with -tags devtools. A release build exits with 2. |
Flags of test run
Target
| Flag | Default | Meaning |
|---|
--url | none | Address of the target: ws://host/v1/ws, host:port for gRPC, or http://host for SSE or discovery. Required. |
--agent | none | The agent to talk to. Required. |
--transport | empty | ws, grpc or sse. Empty means discover the transports the target offers. |
--token-env | ROBOTELOS_E2E_TOKEN | Name of the environment variable that holds the token. |
--environment (alias --env) | local | The environment you expect the target to state: local, dev, stg or prod. If you do not give it, the run takes what the target states. prod is refused. |
--discovery-url | empty | The http address of the target’s /.well-known/robotelos, for a gRPC target. The document must list the target’s own address. |
--inspect-url | empty | HTTP address of the target’s inspection. Criteria about the state of the system are judged from it. |
--effects-url | empty | HTTP address of the provider’s record of what it did (GET /v1/effects), such as the sandbox of robotelos dev up. |
Selection
| Flag | Default | Meaning |
|---|
--specs | empty | A directory of spec files. Give this or --catalog with --tier, not both. |
--catalog | empty | The scenario catalog. With --tier, it chooses the specs. |
--catalog-root | runtime/internal | The directory that the catalog’s spec paths are relative to. |
--tier | empty | smoke or full: which scenarios of the catalog to run. |
--profile | empty | scripted or live: which criteria apply. Empty means only criteria that name no profile. |
--evidence | empty | L0 to L4: how strong the proof of this run is. Empty means from the profile (live L3, scripted L2). |
--quiet | 0 | Silence of the agent that ends a turn. 0 means 4 s, or 15 s with --profile live. |
--first-wait | 0 | How long to wait for the agent’s first answer to a message. 0 means the spec’s own limit. |
Repetition, output and jobs
| Flag | Default | Meaning |
|---|
--k | 1 | Runs per spec. 1 is a check, more is an evaluation. |
--parallel | 1 | How many runs are under way at once (text channel only). |
--job-dir | empty | Stores every trial in this directory so that an interrupted job can be continued. Text channel only. |
--out | empty | Writes the report here. |
--sweep | false | Switch. Runs the specs as they are and with each perturbation, and reports the fall in the pass rate. |
--sweep-out | empty | Writes the sweep report here. Needs --sweep. |
Baselines, tolerances and budgets
| Flag | Default | Meaning |
|---|
--baseline | empty | Compares with this report and exits 1 on a regression. |
--store | empty | A directory that keeps every run’s report under --suite, the profile and the channel. |
--suite | empty | The name the reports are kept under. Lower-case letters, digits, dot, dash, underscore. Goes with --store. |
--baseline-latest | false | Switch. Compares with the latest report in the store of the same suite, profile and channel. |
--tol-failed | 0 | Allowed extra failing runs. |
--tol-errors | 0 | Allowed extra runs that could not be made. |
--tol-unrunnable | 0 | Allowed extra runs in which nothing could be judged. |
--tol-incomplete | 0 | Allowed extra runs in which a required criterion could not be judged. |
--tol-latency-pct | 0 | Allowed percent by which the P95 of the time to the first answer may be above the baseline’s. 0 means not gated. |
--tol-stage-pct | 0 | Allowed percent by which the P95 of a stage of the call may be above the baseline’s. 0 means not gated. |
--budgets | empty | A file of quality thresholds per environment. The run fails when it is over a ceiling of its environment. |
Voice and channel
| Flag | Default | Meaning |
|---|
--channel | text | text: the user types. voice: the user speaks into a call through the voice caller. |
--caller-url | empty | The voice caller service. Required with --channel voice, refused with text. |
--caller-token-env | ROBOTELOS_E2E_CALLER_TOKEN | Name of the variable that holds the voice caller’s token. |
--voice-robotelos-url | empty | The address of the target as the voice gateway reaches it. Empty means --url. |
--language | empty | The language of the user’s speech, such as de or en. |
--listen | 0 | How long the speaking user listens for the agent’s spoken answer after each utterance. 0 means not at all. |
Models and personas
| Flag | Default | Meaning |
|---|
--user-model | empty | The Ollama model that plays the user of specs whose user block has mode model. Needs --job-dir and a sandbox target. Falls back to ROBOTELOS_E2E_USER_MODEL. |
--user-model-url | empty | The address of that Ollama server, never the target. Falls back to ROBOTELOS_E2E_USER_MODEL_URL. |
--user-seed | 0 | The seed of the model user. If not given, one is made and recorded in the job. |
--user-budget | 0 | The most characters of requests and answers of the model user in one trial. 0 means no limit. |
--user-prompt-file | empty | A UTF-8 file with behaviour rules in place of the built-in ones. Falls back to ROBOTELOS_E2E_USER_PROMPT_FILE. |
--user-temperature | 0 | Temperature of the model user, 0 to 2. Above 0 every repeat has its own seed. |
--persona | empty | A persona file for every spec, or a comma-separated list of files and as-written. A list needs --job-dir. See Personas and mock users. |
--judge-model | empty | The Ollama model that judges specs with a judge criterion. Advisory. Falls back to ROBOTELOS_E2E_JUDGE_MODEL. |
--judge-model-url | empty | The address of that server, never the target. Falls back to ROBOTELOS_E2E_JUDGE_MODEL_URL. |
Resume
test resume DIR takes the target, specs, run count and profile from job.json. It accepts only --parallel, --out, --baseline, --baseline-latest, --store, --suite, --budgets, the six --tol-* flags, and the model user, persona and judge flags, the last three only as the job has them.
Diff and regrade
| Command | Flag | Default | Meaning |
|---|
test diff | --regrade | 0 | Compares regrades/N on each side that has it. By default the latest regrade of a side, otherwise its result.json. |
test regrade | --baseline | empty | Compares with this report and exits 1 on a regression. |
| both | --tol-failed, --tol-errors, --tol-unrunnable, --tol-incomplete, --tol-latency-pct, --tol-stage-pct | 0 | As for test run. |
| Flag | Default | Meaning |
|---|
--profile | live | live or scripted. |
--control | all | A control to run. Repeat for several. |
Exit codes
| Code | test run, test resume, test regrade |
|---|
| 0 | Every spec passed, or no regression against the baseline. |
| 1 | A spec failed, a budget was exceeded, or a regression was found. |
| 2 | Wrong usage or a refused run. For regrade, also a trial that cannot be graded again. |
| 3 | Nothing failed, but a run was unrunnable or a required criterion could not be judged. |
| 4 | An error: a run could not be made, or a trial is UNKNOWN. |
| 5 | The run was cancelled. |
| 6 | Another runner holds the job directory. |
Never read 0 as success unless you also read the printed summary. A run with a baseline that has an UNKNOWN trial never exits 0. It exits 4, or 1 when a regression or a failed budget is found as well.
| Command | Codes |
|---|
test diff | 0 no regression, 1 regression, 2 not comparable or a run is missing, 4 an UNKNOWN trial on either side. 4 wins over 1. |
test judge-agreement | 0 the labels could be compared, 2 they could not. |
test lint | 0 no issue, 1 issues found, 2 a spec cannot be read or decoded, or wrong usage. |
test controls | 0 passed, 1 weak spec, 2 usage, 3 no cell proven by content, 4 error, 5 cancelled. |
robotelos-e2e (older command) | 0 passed, 1 a spec failed, a regression, or anything that is not a pass, 2 wrong usage. It does not tell cancelled or incomplete runs apart. |
| Format | Where it appears |
|---|
robotelos.job-dir/1 | job.json of a job directory. |
e2e-report/2 | The report written by --out and in result.json. The reader still accepts e2e-report/1. A report with another format is refused as a baseline. |
robotelos.regrade/1 | meta.json of DIR/regrades/N. |
robotelos.grading-record/1 | evidence.json of an attempt. |
robotelos.judge-labels/1 | The labels file of test judge-agreement. |
Environment variables
| Variable | Used for |
|---|
ROBOTELOS_E2E_TOKEN | Default token of test run. Change the name with --token-env. A report and job.json never hold the token. |
ROBOTELOS_E2E_CALLER_TOKEN | Default token of the voice caller. |
ROBOTELOS_E2E_USER_MODEL, ROBOTELOS_E2E_USER_MODEL_URL | Stand in for --user-model and --user-model-url. |
ROBOTELOS_E2E_USER_PROMPT_FILE | Stands in for --user-prompt-file. |
ROBOTELOS_E2E_JUDGE_MODEL, ROBOTELOS_E2E_JUDGE_MODEL_URL | Stand in for --judge-model and --judge-model-url. |
ROBOTELOS_GATEWAY_AGENT | Read when you start the stack: goal serves the goal agent, mock the mock agent. A release build refuses goal. Not read by test run. |
ROBOTELOS_ENGINE_TEST_CAPABILITIES | Read when you start the stack: true makes the engine offer the test-only capabilities that four specs in runtime/internal/e2e/testdata/specs need. |
The classification kit: robotelos-eval
robotelos-eval is a separate command that measures the language-model steps of the engine against labelled cases on a live model. It is not a scenario test.
robotelos-eval interpreter|narrator|planner|chooser --url URL --model NAME [--data FILE] [--set dev|held] [--k N] [--out FILE] [--baseline FILE]
--url is the address of an Ollama server. Write a report with --out and compare a later run with --baseline. Exit codes: 0 no regression, 1 regression against the baseline, 2 wrong usage or an error. Tune on the dev set and judge on the held set.
Next steps