Checklist for agents

Run Robotelos scenario tests line by line as an AI agent or a script: preconditions, the command sequence, how to decide pass or fail from the exit code, and what to report.

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-url or --judge-model-url at 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

  1. Check the binary. In bash:

    ./robotelos --help
    

    In PowerShell:

    .\robotelos.exe --help
    

    Success 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 controls need a binary built with -tags devtools.

  2. Check that the stack is up:

    ./robotelos dev status
    

    It 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, request http://127.0.0.1:8787 with curl and expect an answer. If there is none, start the stack with robotelos dev up in another terminal and leave that terminal open. See Local stack and database.

  3. 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.

  4. 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.

  5. Check the specs before you run them:

    ./robotelos test lint runtime/internal/e2e/testdata/specs
    

    The 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.

  1. 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)"
    
  2. 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 = $LASTEXITCODE
    

    In 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 need ROBOTELOS_ENGINE_TEST_CAPABILITIES=true when the stack starts. Without it their result says nothing about the agent.

  3. 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 codeMeaningWhat you do
0Every spec passed, or no regression against the baseline.Report passed. Include the summary counts.
1A 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.
2Wrong 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.
3Nothing failed, but a run could not be judged.Report incomplete, not passed.
4An error, or a trial is UNKNOWN.Do not claim success. See the next section.
5The run was cancelled.Report cancelled. Continue with robotelos test resume.
6Another 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.

  1. Do not claim success. Do not report the run as passed.

  2. Continue the job once, with the same environment as before:

    ./robotelos test resume "$job"
    
  3. Read the output. If a line says stays UNKNOWN, the reason is on the same line. A trial with an UNKNOWN attempt stays UNKNOWN even if a retry passes.

  4. 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:

  1. The spec IDs that ran.
  2. The persona, if one was used (as-written if none was named).
  3. k, and how many runs passed of how many for each spec.
  4. The exit code.
  5. The path of the report (--out) and of the job directory.
  6. Any UNKNOWN, INCOMPLETE or error line, copied as printed.
  7. 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, --budgets or a baseline to hide a regression.
  • Do not run test run against prod. It is refused.
  • Do not use a target whose effects are real with --k above 1. It is refused.
  • Do not delete lock, intent.json or an attempt directory.
  • Do not treat the advisory judge as a verdict. It never changes an exit code.

Next steps