Checklist for agents
This page is for an AI agent or a script that runs scenario tests and reports the result. Follow it in order. Do not skip a step because it looks unnecessary. You decide pass or fail only from the exit code and the printed summary, never from a guess.
Rules that always apply
- Never print, log, echo or store the token. Set it in the environment of the command and nothing else.
- Never point
--user-model-urlor--judge-model-urlat the target. The runner refuses it. - Use one new job directory per run. Never reuse a directory.
- Never edit a spec to make it pass.
- Never raise a
--tol-*flag or lower a budget to make a run pass. - Never report a run as passed when the exit code is not 0.
- Never claim a run passed when a trial is
UNKNOWN.
Check the preconditions
Check the binary. In bash:
./robotelos --helpIn PowerShell:
.\robotelos.exe --helpSuccess is a usage text and exit code 0. If the command is not found, build it as in Quickstart. The goal agent, the sandbox, the model user and
test controlsneed a binary built with-tags devtools.Check that the stack is up:
./robotelos dev statusIt shows only the state of the database container. It does not check the gateway, and the container keeps running after you stop
dev up. To check the gateway, requesthttp://127.0.0.1:8787withcurland expect an answer. If there is none, start the stack withrobotelos dev upin another terminal and leave that terminal open. See Local stack and database.Set the token without printing it. In PowerShell:
$env:ROBOTELOS_E2E_TOKEN = (Get-Content -Raw "$HOME\.robotelos\dev\token").Trim()In bash:
export ROBOTELOS_E2E_TOKEN="$(tr -d '\r\n' < "$HOME/.robotelos/dev/token")"Do not run a command that shows the value. The token file exists after
robotelos dev up.For a live run with a model user or judge, check that Ollama answers at its address (the default is
http://127.0.0.1:11434). See Test against a real agent.Check the specs before you run them:
./robotelos test lint runtime/internal/e2e/testdata/specsThe last line is
N specs, M issues. Exit 0 means no issue. Exit 1 means weak specs: report them and do not edit them. Exit 2 means a spec could not be read.
Run the specs
This run uses the specs’ own scripted users. The live profile grades what does not depend on the exact words of the agent, so it fits concierge with its real model. The scripted profile expects the exact words of a scripted model and fits only an agent that has one.
Make a new job directory name. In PowerShell:
$job = Join-Path $env:TEMP "robotelos-job-$(Get-Date -Format yyyyMMdd-HHmmss)"In bash:
job="${TMPDIR:-/tmp}/robotelos-job-$(date +%Y%m%d-%H%M%S)"Run. In PowerShell:
.\robotelos.exe test run runtime/internal/e2e/testdata/specs ` --url http://127.0.0.1:8787 --agent concierge --profile live ` --inspect-url http://127.0.0.1:8787 --effects-url http://127.0.0.1:8793 ` --k 3 --job-dir $job --out "$job.report.json" $code = $LASTEXITCODEIn bash:
./robotelos test run runtime/internal/e2e/testdata/specs \ --url http://127.0.0.1:8787 --agent concierge --profile live \ --inspect-url http://127.0.0.1:8787 --effects-url http://127.0.0.1:8793 \ --k 3 --job-dir "$job" --out "$job.report.json" code=$?Use the agent ID that your stack serves. With the goal agent it is
concierge. Four specs needROBOTELOS_ENGINE_TEST_CAPABILITIES=truewhen the stack starts. Without it their result says nothing about the agent.Read the exit code and decide with the table below.
Run a live run with a model user
A live run uses a model to play the user. It needs a devtools build, a stack started with ROBOTELOS_GATEWAY_AGENT=goal, and Ollama.
.\robotelos.exe test run runtime/internal/e2e/testdata/model-user `
--url http://127.0.0.1:8787 --agent concierge `
--inspect-url http://127.0.0.1:8787 --effects-url http://127.0.0.1:8793 `
--profile live --job-dir $job --out "$job.report.json" `
--user-model qwen3:8b --user-model-url http://127.0.0.1:11434
./robotelos test run runtime/internal/e2e/testdata/model-user \
--url http://127.0.0.1:8787 --agent concierge \
--inspect-url http://127.0.0.1:8787 --effects-url http://127.0.0.1:8793 \
--profile live --job-dir "$job" --out "$job.report.json" \
--user-model qwen3:8b --user-model-url http://127.0.0.1:11434
The model user and the target must have different addresses.
Decide pass or fail
Read the exit code first. Then read the printed summary.
| Exit code | Meaning | What you do |
|---|---|---|
| 0 | Every spec passed, or no regression against the baseline. | Report passed. Include the summary counts. |
| 1 | A spec failed, a budget was exceeded, or a regression was found. | Report failed. Quote the failing spec lines and the criterion lines. Do not retry until it passes. |
| 2 | Wrong usage or a refused run. | Read the one-line message on stderr, fix the command, run again in a new job directory. Nothing was measured. |
| 3 | Nothing failed, but a run could not be judged. | Report incomplete, not passed. |
| 4 | An error, or a trial is UNKNOWN. | Do not claim success. See the next section. |
| 5 | The run was cancelled. | Report cancelled. Continue with robotelos test resume. |
| 6 | Another runner holds the job directory. | Wait or use a new directory. Do not delete the lock file. |
The summary has one line per spec with the shape VERDICT spec-id P of N runs passed. The last line counts specs that passed in every run. If the exit code is 0 but a spec line shows a verdict other than a pass, report both and do not round up.
Treat UNKNOWN and exit 4
An UNKNOWN trial is one that started and left no result, so the target may have been touched.
Do not claim success. Do not report the run as passed.
Continue the job once, with the same environment as before:
./robotelos test resume "$job"Read the output. If a line says
stays UNKNOWN, the reason is on the same line. A trial with anUNKNOWNattempt staysUNKNOWNeven if a retry passes.If the exit code is still 4, report it as unresolved with the job directory path. Do not delete the attempt directory and do not run the specs again in the same directory.
Compare with an earlier run
If you have an earlier job directory, compare:
./robotelos test diff "$earlier_job" "$job"
Exit 0 means no regression. Exit 1 means a regression. Exit 2 means the jobs cannot be compared (for example a different k). Exit 4 means an UNKNOWN trial, and it wins over 1.
Report back
Report these items, and nothing that contains the token:
- The spec IDs that ran.
- The persona, if one was used (
as-writtenif none was named). k, and how many runs passed of how many for each spec.- The exit code.
- The path of the report (
--out) and of the job directory. - Any
UNKNOWN,INCOMPLETEor error line, copied as printed. - The advisory judge results, if any, marked as advisory.
What not to do
- Do not edit a spec, a persona or an expected effect to make a run pass.
- Do not change
--tol-*flags,--budgetsor a baseline to hide a regression. - Do not run
test runagainstprod. It is refused. - Do not use a target whose effects are real with
--kabove 1. It is refused. - Do not delete
lock,intent.jsonor an attempt directory. - Do not treat the advisory judge as a verdict. It never changes an exit code.
Next steps
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.