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

UsageWhat 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.jsonCompares 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

FlagDefaultMeaning
--urlnoneAddress of the target: ws://host/v1/ws, host:port for gRPC, or http://host for SSE or discovery. Required.
--agentnoneThe agent to talk to. Required.
--transportemptyws, grpc or sse. Empty means discover the transports the target offers.
--token-envROBOTELOS_E2E_TOKENName of the environment variable that holds the token.
--environment (alias --env)localThe 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-urlemptyThe http address of the target’s /.well-known/robotelos, for a gRPC target. The document must list the target’s own address.
--inspect-urlemptyHTTP address of the target’s inspection. Criteria about the state of the system are judged from it.
--effects-urlemptyHTTP address of the provider’s record of what it did (GET /v1/effects), such as the sandbox of robotelos dev up.

Selection

FlagDefaultMeaning
--specsemptyA directory of spec files. Give this or --catalog with --tier, not both.
--catalogemptyThe scenario catalog. With --tier, it chooses the specs.
--catalog-rootruntime/internalThe directory that the catalog’s spec paths are relative to.
--tieremptysmoke or full: which scenarios of the catalog to run.
--profileemptyscripted or live: which criteria apply. Empty means only criteria that name no profile.
--evidenceemptyL0 to L4: how strong the proof of this run is. Empty means from the profile (live L3, scripted L2).
--quiet0Silence of the agent that ends a turn. 0 means 4 s, or 15 s with --profile live.
--first-wait0How long to wait for the agent’s first answer to a message. 0 means the spec’s own limit.

Repetition, output and jobs

FlagDefaultMeaning
--k1Runs per spec. 1 is a check, more is an evaluation.
--parallel1How many runs are under way at once (text channel only).
--job-diremptyStores every trial in this directory so that an interrupted job can be continued. Text channel only.
--outemptyWrites the report here.
--sweepfalseSwitch. Runs the specs as they are and with each perturbation, and reports the fall in the pass rate.
--sweep-outemptyWrites the sweep report here. Needs --sweep.

Baselines, tolerances and budgets

FlagDefaultMeaning
--baselineemptyCompares with this report and exits 1 on a regression.
--storeemptyA directory that keeps every run’s report under --suite, the profile and the channel.
--suiteemptyThe name the reports are kept under. Lower-case letters, digits, dot, dash, underscore. Goes with --store.
--baseline-latestfalseSwitch. Compares with the latest report in the store of the same suite, profile and channel.
--tol-failed0Allowed extra failing runs.
--tol-errors0Allowed extra runs that could not be made.
--tol-unrunnable0Allowed extra runs in which nothing could be judged.
--tol-incomplete0Allowed extra runs in which a required criterion could not be judged.
--tol-latency-pct0Allowed percent by which the P95 of the time to the first answer may be above the baseline’s. 0 means not gated.
--tol-stage-pct0Allowed percent by which the P95 of a stage of the call may be above the baseline’s. 0 means not gated.
--budgetsemptyA file of quality thresholds per environment. The run fails when it is over a ceiling of its environment.

Voice and channel

FlagDefaultMeaning
--channeltexttext: the user types. voice: the user speaks into a call through the voice caller.
--caller-urlemptyThe voice caller service. Required with --channel voice, refused with text.
--caller-token-envROBOTELOS_E2E_CALLER_TOKENName of the variable that holds the voice caller’s token.
--voice-robotelos-urlemptyThe address of the target as the voice gateway reaches it. Empty means --url.
--languageemptyThe language of the user’s speech, such as de or en.
--listen0How long the speaking user listens for the agent’s spoken answer after each utterance. 0 means not at all.

Models and personas

FlagDefaultMeaning
--user-modelemptyThe 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-urlemptyThe address of that Ollama server, never the target. Falls back to ROBOTELOS_E2E_USER_MODEL_URL.
--user-seed0The seed of the model user. If not given, one is made and recorded in the job.
--user-budget0The most characters of requests and answers of the model user in one trial. 0 means no limit.
--user-prompt-fileemptyA UTF-8 file with behaviour rules in place of the built-in ones. Falls back to ROBOTELOS_E2E_USER_PROMPT_FILE.
--user-temperature0Temperature of the model user, 0 to 2. Above 0 every repeat has its own seed.
--personaemptyA 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-modelemptyThe Ollama model that judges specs with a judge criterion. Advisory. Falls back to ROBOTELOS_E2E_JUDGE_MODEL.
--judge-model-urlemptyThe 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

CommandFlagDefaultMeaning
test diff--regrade0Compares regrades/N on each side that has it. By default the latest regrade of a side, otherwise its result.json.
test regrade--baselineemptyCompares with this report and exits 1 on a regression.
both--tol-failed, --tol-errors, --tol-unrunnable, --tol-incomplete, --tol-latency-pct, --tol-stage-pct0As for test run.

Controls (devtools build only)

FlagDefaultMeaning
--profilelivelive or scripted.
--controlallA control to run. Repeat for several.

Exit codes

Codetest run, test resume, test regrade
0Every spec passed, or no regression against the baseline.
1A spec failed, a budget was exceeded, or a regression was found.
2Wrong usage or a refused run. For regrade, also a trial that cannot be graded again.
3Nothing failed, but a run was unrunnable or a required criterion could not be judged.
4An error: a run could not be made, or a trial is UNKNOWN.
5The run was cancelled.
6Another 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.

CommandCodes
test diff0 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-agreement0 the labels could be compared, 2 they could not.
test lint0 no issue, 1 issues found, 2 a spec cannot be read or decoded, or wrong usage.
test controls0 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.

File formats

FormatWhere it appears
robotelos.job-dir/1job.json of a job directory.
e2e-report/2The 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/1meta.json of DIR/regrades/N.
robotelos.grading-record/1evidence.json of an attempt.
robotelos.judge-labels/1The labels file of test judge-agreement.

Environment variables

VariableUsed for
ROBOTELOS_E2E_TOKENDefault token of test run. Change the name with --token-env. A report and job.json never hold the token.
ROBOTELOS_E2E_CALLER_TOKENDefault token of the voice caller.
ROBOTELOS_E2E_USER_MODEL, ROBOTELOS_E2E_USER_MODEL_URLStand in for --user-model and --user-model-url.
ROBOTELOS_E2E_USER_PROMPT_FILEStands in for --user-prompt-file.
ROBOTELOS_E2E_JUDGE_MODEL, ROBOTELOS_E2E_JUDGE_MODEL_URLStand in for --judge-model and --judge-model-url.
ROBOTELOS_GATEWAY_AGENTRead 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_CAPABILITIESRead 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