ancha traces lists the traces in your workspace, newest run first. ancha traces show previews the test one trace makes: what the agent is told, the world, the checks with what production did, and the questions one trace cannot settle. Nothing is saved until you run ancha pull.
ancha traces show takes a trace’s id, its first 8 characters, or the trace id your tracing tool shows. Sign in with ancha login first, or set ANCHA_SERVER_URL and ANCHA_API_KEY. With --json, both print the workspace’s data as one JSON object.
Example
not rebuilt yet is left out of the test. A note under what arrived says what a trace is missing, such as response bodies or what the agent was told, and how to send it. See From a production trace to a failing test.
Compare an attempt with production
When a test doesn’t fail the way production did, compare the calls.ancha traces diff reads a trace file and one attempt of a finished run on this computer:
Output
:id. The attempt is <run id or latest>/<trial directory>; a run alone means its first attempt. With --json, the result has production and attempt (each with its call count), onlyInProduction and onlyInAttempt (each call with its count) and firstDifference (index, production and attempt), which is null when the orders match. It exits 0 either way.
A call production made and the attempt didn’t, such as labels created at setup or a settings read, usually points at what the seed lacks. For the agent’s own tools, ancha explain <run> --trial <n> lists every answer that was not production’s.