Run against a real agent
The mock agent only echoes. To test the goal agent, the one that interprets each turn with a model, plans, and books through providers, you start the stack with that agent and run the scenarios against it. This guide uses Ollama on your machine. Every command is given for PowerShell and for bash.
Before you start
- You finished Run your first scenario, so Docker and the build work on your machine.
- Ollama is running on
http://127.0.0.1:11434. - A
devtoolsbuild. The goal agent needs the sandbox of the table and the taxi, which a release build does not carry. With a release build,ROBOTELOS_GATEWAY_AGENT=goalis refused with a message that names-tags devtools.
Step 1: Build with devtools and pull the model
PowerShell:
go build -tags devtools -o robotelos-dev.exe ./runtime/cmd/robotelos
ollama pull qwen3:8b
bash:
go build -tags devtools -o robotelos-dev ./runtime/cmd/robotelos
ollama pull qwen3:8b
Step 2: Start the stack with the goal agent
In the first terminal. Without ROBOTELOS_GATEWAY_AGENT, dev up serves the mock agent, whatever else you set.
PowerShell:
$env:ROBOTELOS_GATEWAY_AGENT = "goal"
$env:ROBOTELOS_MODELS_OLLAMA_URL = "http://127.0.0.1:11434"
$env:ROBOTELOS_MODELS_INTERPRETER = "qwen3:8b"
$env:ROBOTELOS_MODELS_NARRATOR = "qwen3:8b"
$env:ROBOTELOS_MODELS_PLANNER = "qwen3:8b"
.\robotelos-dev.exe dev up
bash:
export ROBOTELOS_GATEWAY_AGENT=goal
export ROBOTELOS_MODELS_OLLAMA_URL=http://127.0.0.1:11434
export ROBOTELOS_MODELS_INTERPRETER=qwen3:8b
export ROBOTELOS_MODELS_NARRATOR=qwen3:8b
export ROBOTELOS_MODELS_PLANNER=qwen3:8b
./robotelos-dev dev up
The gateway serves on 127.0.0.1:8787 and the sandbox provider on 127.0.0.1:8793. The goal agent is addressed as concierge. ROBOTELOS_MODELS_TIMEOUT is also read, if you need to give a slow model more time. If you set ROBOTELOS_GATEWAY_AGENT=goal without the models, dev up refuses to start and names what is missing.
Four shipped specs need capabilities that exist for tests only. Set this variable in the same terminal before dev up if you want to run them (see step 5):
PowerShell: $env:ROBOTELOS_ENGINE_TEST_CAPABILITIES = "true". bash: export ROBOTELOS_ENGINE_TEST_CAPABILITIES=true.
Step 3: Run a scenario with the live profile
In the second terminal, read the token (as in the first guide) and put the booking spec in its own folder.
PowerShell:
$env:ROBOTELOS_E2E_TOKEN = (Get-Content -Raw "$HOME\.robotelos\dev\token").Trim()
New-Item -ItemType Directory real-specs | Out-Null
Copy-Item runtime/internal/e2e/testdata/specs/reserve-table-en.json real-specs/
.\robotelos-dev.exe test run real-specs --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
echo $LASTEXITCODE
bash:
export ROBOTELOS_E2E_TOKEN="$(tr -d '\r\n' < "$HOME/.robotelos/dev/token")"
mkdir real-specs
cp runtime/internal/e2e/testdata/specs/reserve-table-en.json real-specs/
./robotelos-dev test run real-specs --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
echo $?
--agent conciergeis the goal agent.mockis the echo agent.--profile liveapplies the criteria that do not depend on exact words, and lets a turn end after 15 seconds of silence instead of 4, because a local model can take longer than 4 seconds to plan. A criterion that names no profile applies to both.--inspect-urlgives the runner the system’s counters.--effects-urlgives the runner the provider’s own record of what it did (GET /v1/effects). The spec’sexpected_effectsentry is judged on it. Only adevtoolsbuild runs that sandbox, so only there is the address valid.
Success is PASS for reserve-table-en and exit code 0. A model may fail a scenario that it passed a minute ago. To see how often, repeat the run: Repeat, resume and compare.
Step 4: Let a model play the user
Some specs have a user block with mode model. A second model decides what the user says after the first message, from the persona and facts of the spec. The shipped folder runtime/internal/e2e/testdata/model-user holds two such specs. Run it with --user-model, its Ollama address, and a fresh --job-dir.
PowerShell:
$job = "$env:TEMP\robotelos-job-$(Get-Date -Format yyyyMMdd-HHmmss)"
.\robotelos-dev.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 `
--user-model qwen3:8b --user-model-url http://127.0.0.1:11434
echo $LASTEXITCODE
bash:
job="${TMPDIR:-/tmp}/robotelos-job-$(date +%Y%m%d-%H%M%S)"
./robotelos-dev 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" \
--user-model qwen3:8b --user-model-url http://127.0.0.1:11434
echo $?
--user-modelneeds--job-dir, and the job directory must not hold a job already. A target that states real effects is refused: the model user runs against a sandbox only.- The user model is Ollama only.
ROBOTELOS_E2E_USER_MODELandROBOTELOS_E2E_USER_MODEL_URLcan stand in for the two flags. - The seed of the user model is made and recorded in the job.
--user-seedsets it. - The two specs are graded by the provider’s record of effects and by the system’s counters, never by words.
The command prints user model qwen3:8b, seed N and job directory ... before the result. When the job directory is in use by another runner, the exit code is 6.
Step 5: Run the specs that need test capabilities
Four specs need capabilities that the engine offers only when ROBOTELOS_ENGINE_TEST_CAPABILITIES=true.
| Spec | Needs |
|---|---|
approval-yes.json | test.ride, test.walk |
approval-no-fallback.json | test.ride, test.walk |
replan-while-waiting.json | test.ride, test.walk |
cancel-while-running.json | test.hold |
Set the variable before you start the stack (step 2). Without it the result of these specs says nothing about the agent: it was not offered what the spec asks for. Run them like step 3, from a folder that holds copies of these files.
What a failing run teaches
- Check the exit code first:
1is a failed criterion,3is a criterion that could not be judged,4is a run that could not be made or anUNKNOWNtrial. - Read the lines under the spec in the summary. Each failed criterion shows its kind and a detail, such as the counter that was off.
- Decide whether the agent or the spec is wrong. A live model that says the right thing in other words fails an
agent_saidcheck. Prefer counters and effects for the live profile. - Open the report written with
--out FILEor, for a job,result.jsonin the job directory, for the full findings. - Run again with
--k 3before you change anything. One failure of a model is a sample, not a rate.
Safety
- The address of the user model is never the target. The runner refuses
--user-model-urlequal to--urlwith exit code2. The judge model of--judge-model-urlfollows the same rule. - A target that states
prodis refused, and a target with real effects allows one run per spec. - Never print the token. Read it into a variable as shown, and use
--token-env NAMEto use another variable. A job records the name of the variable, not its value. - The sandbox listens on a loopback address only, because it confirms every booking it is asked for.
Voice runs
A voice run speaks the scenario into a call instead of typing it. It needs Docker and the voice services, and is not covered here. The header of voice/scripts/chain-e2e.sh describes the stack it starts (up, run, down) and how a run targets a real agent. The flags for it are --channel voice and --caller-url of robotelos-e2e and robotelos test run.
Stop
Ctrl-C in the first terminal stops the gateway, the engine and the sandbox. Then run dev down as in the first guide, with the devtools build you used for dev up.
Next steps
- Personas to try the same scenario with different users.
- Repeat, resume and compare to measure a pass rate and keep a baseline.
- Reference for every flag.
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.