> ## Documentation Index
> Fetch the complete documentation index at: https://www.testmuai.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Kane CLI Evidence Packs Explained

> Every kane-cli run seals an evidence pack: a portable .evidence file with the test definition, per-step screenshots, console and network logs, and failures.

Each Kane CLI run produces an **evidence pack**: one sealed `.evidence` file that holds everything you need to understand the run, from the test definition to the screenshots, logs, and failure details of every step.

The pack is a self-contained zip file. You can open it in the hosted viewer, share it with a teammate, archive it in CI, validate it, or merge several packs into one.

## What's inside a pack

Whether you open a pack in the viewer or unzip it, you find:

* **The test definition**: what was asked of the agent.
* **A result summary**: status, duration, per-step outcomes, tags, who ran it (user name/email), a share link, and the environment (browser resolution, OS version).
* **Per-step screenshots**: the page as the agent saw it, plus an **annotated** copy highlighting the element the agent acted on.
* **Browser console and network logs**: captured for the whole run and attributed to the step that produced them.
* **Run logs**: the CLI and runner logs for the execution.
* **Failure records**: on failed runs, a per-step record with the error message, the page state at failure, and references into the console/network logs.

Mobile runs add two things. The result summary records the **device** and the **app** in the run environment, such as the device model, OS version, and the app id or build file name. The per-step logs also include **device logs**, next to the usual browser logs.

On a [real device](https://www.testmuai.com/docs/kane-cli-mobile-real-device.md), `device` is the device the device hub (the cloud service that hands out real devices) allocated, never the name or pattern you requested, and `device_slug` is derived from it. The environment also records `target: android|ios`.

> [!NOTE]
>
> Run artifacts live **only** in the pack. Kane CLI does not keep a separate log directory for each run on disk.

## Where packs live

Every run except `testrun run` seals its pack in the session directory:

```text theme={null}
~/.testmuai/kaneai/sessions/<session-id>/evidence/<execution_id>.evidence
```

Runs you keep are also copied into the **project store**, a folder in your working directory:

```text theme={null}
<cwd>/.testmuai/evidence/<execution_id>.evidence
```

Whether a pack is copied to the project store depends on how you ran the test:

| How you ran it | Copied to `.testmuai/evidence/`? |
| - | - |
| `kane-cli run` / TUI session | Only when the session is **named** (`--name`, `/name` in the TUI, or the save prompt at exit) |
| `kane-cli testmd run` | Always |
| `kane-cli testrun run` | Always (the pack is created directly in the store) |
| `kane-cli testrun run --remote` | Always. The suite's pack is sealed on the grid and downloaded into the store when the job ends, alongside the members' `output-<stem>/` recordings. See [Remote Runs](https://www.testmuai.com/docs/kane-cli-remote-execution.md) |

An interactive TUI session produces one pack. The pack collects every run in the session and is sealed when you `/exit` or start over with `/new`.

If Kane CLI crashes during a run, it removes incomplete or orphaned packs automatically the next time it starts. Packs that belong to other Kane CLI processes still running are left alone. You never need to clean up by hand.

## The `kane-cli evidence` commands

| Command | What it does |
| - | - |
| [`evidence serve`](https://www.testmuai.com/docs/kane-cli-evidence-viewing) | Serve one or more sealed packs to the hosted viewer from a localhost-only server |
| [`evidence validate`](https://www.testmuai.com/docs/kane-cli-evidence-validate) | Check a pack's integrity and completeness against a profile |
| [`evidence merge`](https://www.testmuai.com/docs/kane-cli-evidence-merge) | Combine several packs into one |

## Publishing to the dashboard

When a run uploads to Test Manager, its sealed pack is attached automatically. Replayed `testmd` runs and `testrun` executions also publish their packs to your project. The dashboard therefore shows execution evidence even for runs that replay from cache, where the agent does not author the steps again.

## Next steps

* [Pack structure](https://www.testmuai.com/docs/kane-cli-evidence-pack-structure.md): every file inside a pack and what it is for.
* [Viewing evidence](https://www.testmuai.com/docs/kane-cli-evidence-viewing.md): open a pack in the viewer.
* [Debugging a failed run](https://www.testmuai.com/docs/kane-cli-evidence-debugging.md): the fastest path from a red run to a cause.
* [The .evidence format](https://www.testmuai.com/docs/kane-cli-evidence-format.md): the open format behind the pack.
* [Batch runs with testrun](https://www.testmuai.com/docs/kane-cli-testrun.md): many tests, one execution, one pack.
* [Running test.md files](https://www.testmuai.com/docs/kane-cli-testmd-running.md): the testmd command family.
* [Troubleshooting](https://www.testmuai.com/docs/kane-cli-troubleshooting.md): debugging flows and escape hatches.

## Terminal First Testing With Kane CLI

Natural language browser & mobile app tests right from terminal.

Book a Demo

![Kane CLI terminal](https://assets.testmu.ai/resources/images/Terminal-KaneCLI.png)

×

Schedule Your Personal Demo

<form>
  Select Product

  Schedule Demo
</form>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.