Skip to main content
A run is one execution of a test. It tries each task several times. Each try is an attempt. ancha run output calls an attempt a trial. Running the same task many times tells you how reliable the agent is. An agent that passes 3 of 5 attempts has a problem that a single run can hide.

What each attempt gets

The seed and starting data stay the same across attempts, so every attempt starts from the same state.

Where the agent runs

The worlds themselves run on a server ancha run starts, or in your hosted workspace after ancha login. The first line of every run says which, and the run’s JSON carries workspace and target. See CLI overview.

Outcomes

Coverage gaps are reported alongside the outcome. A gap means the agent called an endpoint the replica does not implement. It does not fail the attempt unless you pass --strict.

Time limits

Each attempt has a time limit: timeout in a scene file (default 5m), or timeoutMs on a playground task (default 300,000 ms). When it runs out, Ancha stops the agent and records a timeout. ancha doctor uses a 10-second limit by default. Results report both real time (realMs) and simulated time (simMs). See Worlds.

Parallel attempts

parallel in ancha.yaml, or --parallel, sets how many trials of ancha run run at once. The default is 2 for command agents and 1 for HTTP endpoint agents. Playground runs use --concurrency (at most 10). The local container runtime admits at most three attempts of one run at a time and can run fewer when the machine is busy.

What ancha run records

Each run gets a directory under .ancha/runs/, named by its run ID, for example run_20261031-071656_195dc8894e8b58a1. ancha explain, ancha report, ancha logs and ancha run --compare read these files. ancha report <run> --html writes a self-contained report.html into the run’s directory.

Long runs

ancha run --detach keeps the run going in a background worker after the command returns. Follow it with ancha logs <run-id> --follow, ancha wait <run-id> or ancha status <run-id>. logs --follow and wait exit with the run’s original exit code. A command that may time out can pass --idempotency-key so a retry returns the same run. See ancha run.