Inspect

Verification agent

Verification agent checks that a pull request from an Inspect session does what it claims. It runs as a subagent in the session's sandbox, starts your app locally from the pull request's pushed commit, exercises each changed UI or backend behavior, and captures screenshots, recordings, or API responses as evidence. It publishes the result as a comment on the pull request and in the session's Slack thread. Inspect keeps one verification comment per pull request and updates it on each run.

Verification agent runs your repository's local development stack. It does not test against production.

Using verification results on a pull request

Set up a repository

Verification agent runs only in repositories that have .inspect/verification/config.yml. To create it, ask Inspect to "set up the Verification agent for this repo", or run the /setup-verification-agent skill. Inspect writes the config and a repository skill that explains how to start the app, sign in, seed data, and capture evidence, tests them, and opens a pull request.

skill: .agents/skills/verify-web/SKILL.md
paths:
  - 'src/**'
model: auto
instructions: Cover empty and error states for changed screens.
FieldTypeRequiredDefaultDescription
skillstringYesRepository-relative path to the SKILL.md Verification agent follows. It cannot start with '/' or contain '..'.
pathsstring[]NoGlobs that limit automatic runs to pushes that change a matching file. A pattern also matches files under a matching directory. Without paths, every push starts a run.
modelstringNoautoModel ID to run on. auto, the default, uses the session's model.
instructionsstringNoWhat to verify and how thoroughly.

Inspect reads the config from the pull request's head commit, so a pull request that adds or fixes it is verified with its own version. The model is the exception: Inspect fixes it when the session is created, from the config on the default branch. If the session owner cannot use that model, Verification agent runs on the session's model instead.

When it runs

Verification agent runs automatically when a session opens a pull request and after every later push to it, including pushes made outside Inspect. A transcript row marks each request. A push skips automatic verification when:

  • The session owner turned off Run Verification agent on Pull Requests in Settings → Agent. It is on by default.
  • No one has used the session in the last 7 days (sent a message, opened it, or created it). Each run resumes the sandbox at the owner's expense.
  • The config is missing or invalid, or paths matches no changed file.
  • The session is read-only.
  • A newer push has already arrived. A newer push supersedes evidence from older commits and starts its own run.

When a run reports issues_found, the session's agent is asked to fix the failed claims, and the next push is verified again. After 3 such fix attempts since the last pass, Verification agent stops asking for fixes and the agent tells you verification is still failing.

Run it manually

In a session with a pull request, open Reviews in the Changes bar and select Verification agent. Use Verify again for a fresh run or Retry verification after an error. Manual runs work even when the setting is off or the session is inactive. If a run is already in progress for the current head, Inspect reuses it.

The agent verifies one exact pushed commit, so avoid changing files in the workspace while it runs.

From the API

Send POST /api/v2/sessions/{session_id}/verification with an API key. The optional JSON body {"repository": "owner/name"} is required only when the session has pull requests in more than one repository. The key's user must own the session or have created it through the API.

  • 202: status is started or already_running.
  • 409: code is one of the values below.

| code is one of the values below. |

codeMeaning
verification_no_pull_requestThe session has no pull request to verify.
verification_not_configuredThe pull request's head has no .inspect/verification/config.yml.
verification_readonlyThe session is read-only.
verification_no_runtimeThe session's runtime has not started yet.
verification_session_predates_verifierThe session started before Verification agent was available. Start a new session.

Results

Each result has one verdict, and each claim it checked has one status. The value is what Verification agent writes to its result.json; the label is what the pull request comment shows.

TypeValueLabelMeaning
VerdictpassPassedAt least one claim was verified and none failed. Skipped claims do not change this.
Verdictissues_foundIssues foundAt least one claim failed.
VerdictskippedSkippedNo claim failed, but none could be verified.
Verdictinfra_errorCould not runThe app or local environment could not be brought up.
Claim statusverifiedVerifiedThe behavior was exercised and matched the claim.
Claim statusfailedFailedThe behavior was exercised and did not match.
Claim statusskippedSkippedThe behavior could not be reached locally, for example because it needs real third-party credentials. The claim states what was tried.

Verification agent creates missing local data before it gives up on a claim. A result can include a Not verified list of what was skipped. Changes with no observable behavior, such as docs, tests, or CI configuration, produce no result.

Comparing verification results across commits