This documentation is available as Markdown. For the complete index, see llms.txt. Skip to content

Failure bundles

For the complete documentation index, see llms.txt

When a run fails, unotest writes a failure bundle — everything needed to understand what happened, for you or the agent.

What’s captured

TierContentsDefault
1error + stack, console log, semantic DOM snapshot, DSL tracealways on
2screenshot (viewport + element-focused)on
3HAR (network) + videooff — not wired yet

Where it lives

Bundles are written under .unotest/failures/ (configurable), with retention (default: keep 20 runs / 7 days). The viewer renders each artifact per run; the agent reads them through the failure-artifact MCP tools.

How the agent uses it

On failure the agent calls agent_fix, which bundles the trace, console, semantic snapshot and scenario source plus a classification (rewrite-selector / add-waitfor / change-assertion). It proposes a diff — you approve it.