---
title: "Verification Agent"
description: "Checks each pull request against its ticket and design, tests the running preview environment in a browser, and gives every requirement a verdict with evidence."
canonical: "https://baz.ai/docs/agents/deploy/verification-agent"
---

# Verification Agent

Checks each pull request against its ticket and design, tests the running preview environment in a browser, and gives every requirement a verdict with evidence.

The Verification Agent answers the question code review cannot: does this change do what the ticket asked for? It extracts the requirements from the linked ticket and design, checks the implementation in the code, opens the preview environment in a browser to see the result, and compares screens with the Figma design. Each requirement gets a verdict: **Met**, **Partially met**, **Not met**, or **Unverifiable**.

## What it catches

- Requirements in the ticket that the pull request does not implement, or implements only in part
- UI that drifts from the Figma design: layout, copy, states
- Behavior that works in code but fails in the running app, such as a route that does not render or a form that does not submit
- Requirements already delivered in another related pull request

It records only requirements stated in the source material. It does not invent acceptance criteria.

## Why you can trust it

Baz reads the ticket linked to the pull request (by key, such as `ABC-123`) from your [ticketing integration](/docs/integrations), with its attachments and linked [Figma](/docs/integrations/design-and-docs/figma) frames. Every verdict comes with evidence: the file and line that implements the requirement, or a screenshot from the running app. When a [preview environment](/docs/integrations/preview-environments) is connected, the agent signs in and tries the flows the way a user would, so you see what actually shipped, not just what the code suggests.

Verification runs only in the preview environment. Code review itself never executes your code.

## What you see

A **Baz Spec Reviewer** check run, and a report comment on the pull request:

```markdown title="PR comment"
Spec Reviewer Report

🟠  1 unmet requirement:
  1. Empty state shows "No invoices yet" with a Create invoice button
     The empty state renders the button, but the heading reads "Nothing here".
     Evidence: src/invoices/EmptyState.tsx:14, screenshot invoices-empty.png

❓  1 requirement could not be verified:
  2. Export downloads a CSV of the filtered rows

✅  2 met requirements:
  3. Invoices list paginates 25 rows per page
  4. Status filter persists in the URL

---
Used resources:
Hash: 1a2b3c4d | Ticket: [Invoices list v2](https://example.atlassian.net/browse/ABC-123)
To rerun the Spec Reviewer, comment "baz rerun spec review".
```

Other sections are **missing requirements**, **out-of-scope requirements**, and **requirements recognized in other relevant PRs**. If the ticket has no requirements, the report says so and asks you to add them and rerun. In the app, the PR page **Overview** shows **How it meets requirements** and **Ticket requirements met**, and [Sessions](/docs/work/sessions) lists the run with the verdicts.

## When it runs

- Automatically, when **Automatic Spec Review** is on in [Configurations](/docs/admin/configurations)
- When a preview environment URL appears on the pull request
- On demand: comment `Baz spec review` on the pull request

## Prerequisites

The Verification Agent needs a ticketing integration, such as Jira, Linear, or Notion, because the ticket is where it reads the requirements. Add Figma to compare the UI with the design, and a preview environment to test the change in a browser. Until one is connected, the agent row shows a status such as **Ticketing integration required**.

Only a ticketing integration is required. The setup steps in the agent's row are **Ticketing system**, **Integrate designs**, and **Connect preview environment**.

## Settings

Select the row on **Software Factory → Deploy** to see integration status and choose **Operating repositories**. The row reads "Test each change in a preview environment and flag where it drifts from the spec."

## Related

<CardGroup cols={2}>
  <Card title="Preview environments" href="/docs/integrations/preview-environments" icon="globe">
    Connect previews and sign-in.
  </Card>
  <Card title="Figma" href="/docs/integrations/design-and-docs/figma" icon="figma">
    Compare screens with designs.
  </Card>
  <Card title="Merger" href="/docs/agents/deploy/merger" icon="git-merge">
    Decide when the PR is ready to merge.
  </Card>
  <Card title="Pull requests" href="/docs/work/pull-requests" icon="git-pull-request">
    Read the report on the PR page.
  </Card>
</CardGroup>
