For the complete documentation index, see llms.txt. This page is also available as Markdown.

How it works

Verify replaces line-by-line code review with verification of what the change is supposed to do. You work with your agent locally. Aviator captures your intent through a CLI call, runs every acceptance criterion against the running code, and produces a review document with verdicts and evidence.

Four-stage Verify workflow: build, submit intent, verify, review
The end-to-end Verify loop

The full loop:

  1. Build with your agent. Implement the task with Cursor, Claude, Copilot, or anything else you use today. No new tooling, no behavior change.

  2. Submit intent with the Aviator CLI. When you're done, the agent runs /verify-submit, which reads the change and submits it through the Aviator CLI. It captures the intent you and the agent agreed on and the acceptance criteria from what was built.

  3. Aviator verifies end to end. Every criterion runs through the verification pipeline. Code-scan handles structural checks against the diff — this works out of the box. Runtime checks run against a preview environment if you've configured one (optional; see Concepts: Previews). Matching invariants apply automatically.

  4. Review the behavior and the decisions. The reviewer sees the intent, the verdict per criterion, the evidence behind each verdict, and the decisions behind the change. They can approve, waive with reason, ask for another scenario on the spot, or reopen a decision.

What gets submitted

The submission carries two things:

  • Intent — a short statement of what this change is for. It carries the constraints that aren't visible from the diff alone.

  • Acceptance criteria — verifiable assertions the change must satisfy. Each criterion is independent and has a clear pass/fail shape.

The agent generates both from what was actually built. You submit after implementing, not before — there is no separate "approve the spec first" step.

The verification pipeline

Every criterion runs through exactly one verifier. A classifier picks the verifier based on the criterion text and the files the change touched.

Verification pipeline: criterion is classified and routed to one of two verifier paths
Each criterion is classified and routed to a single verifier path
Verifier
Used for
Evidence captured

Code-scan

Structural assertions — file scope, dependency surface, function signatures

Diff or AST snippets that demonstrate the assertion

Runtime

Behavioral assertions — endpoint contracts, error shapes, side effects, UI behavior

Screenshots, console logs, DOM snapshots, API responses, full traces

Invariants in the loop

Acceptance criteria are what this change should do. Invariants are what every change should respect — your team's standing rules. They're a major part of the flow once you start using Verify seriously.

Four phases:

  1. Catalog. Invariants live in an account-level catalog. Anyone can author them manually. Three of the AI sources worth knowing about:

    • PR-comment mining. AI reads your team's actual PR review comments and proposes invariants from the patterns. The highest-leverage source — you're already enforcing these in review, this just encodes them.

    • Docs extraction. Your CONTRIBUTING.md, LLM.md, or similar guidance files are read and proposed as invariants.

    • Repo-signal synthesis. AI looks at the shape of the codebase and proposes rules that fit.

    All AI drafts wait in pending status and need approval before they start producing verdicts.

  2. Selection. When a review is submitted, an LLM selector reads the intent, the acceptance criteria, and the change set, and picks which eligible invariants legitimately apply to this change. Eligibility is gated by optional conditions on the invariant (e.g. file_path_glob: src/**/*.py); among the eligible, the selector decides what actually fits.

  3. Materialization. Selected invariants are materialized as acceptance criteria on the review, tagged with source: baseline_invariant. From here they flow through the same verifier pipeline as user criteria — code-scan or runtime — and produce verdicts on the same review surface.

  4. Review and waivers. Reviewers see invariant verdicts alongside user criteria. Invariant-sourced criteria can't be edited per review (they're catalog-managed), but they can be waived with a category:

    Waiver category
    When to use it

    false_positive

    The invariant fired but misjudged this case.

    doesnt_apply

    The rule is valid but isn't relevant to this PR.

    accepted_risk

    The failure is real but the author accepts the trade-off.

    fix_in_followup

    The failure is real and will be addressed in a separate PR.

    Every waiver is attributed and reasoned, and shows up in the audit trail.

The first invariant you add changes the value of every future change going through Verify — because that rule now applies automatically, forever, without anyone having to remember it.

→ Concepts: Invariants

Why previews matter (and why they're optional)

Previews are optional. Verify works on day one with code-scan alone — the classifier routes every criterion to code-scan when no preview is configured, and you get verdicts on structural assertions from the start.

A preview unlocks runtime verification: behavioral criteria — endpoint contracts, UI flows, error shapes — need the code to actually run. Aviator builds an ephemeral preview environment per run: it loads your image, injects secrets, runs a setup script, and exposes the port the scenarios hit. The reviewer can also open the preview from the review document to explore it manually.

Most teams start without a preview and add one when behavioral criteria start mattering. A repo can declare multiple previews — staging, sandbox, prod-mirror — and tag scenarios to the one they need.

The review document

The review document is the surface reviewers actually use. It has four parts:

  1. Intent — what you and the agent agreed to build.

  2. Evidence — every criterion with its verdict and the proof.

  3. Decisions — the calls behind the change, each with its outcome, its reason, and whether a person or an agent made it.

  4. Actions — request another scenario, open the preview, approve, or waive with reason.

The reviewer is judging behavior, intent, and the calls behind the change. The diff is still there if you want it, but it's not the primary surface.

The same verdicts are available on the pull request itself. With the Aviator Chrome extension, a Verify tab on the PR mirrors the verdicts and carries the rerun, waive and remove actions. Decisions are on the review document only. See Review verification on the pull request.

Decisions in the loop

Verification can show that a change does what was agreed. It can't say whether what was agreed was the right call, so those calls get recorded as decisions.

/verify-submit drafts the choices, risks, and questions from the session along with the criteria, and records them on the review once you confirm. Each entry is credited to whoever made that call, a person or an agent. Reviewers read them, comment, and reopen the ones they disagree with, and the author or their agent answers.

Decisions don't affect the Verify check.

→ How Verify reviews a change

Audit and compliance

Every step is recorded as an immutable event: intent submitted, who submitted it, criteria generated, verifier and verdict per criterion, evidence captured, reviewer actions, exceptions and waivers. Decisions are kept alongside these, with a version for every change. Compliance teams export this log as a single audit trail per change.

→ Audit trails and compliance

Running with remote agents

If you'd rather not run the agent locally, Aviator Runbooks runs the implementing agent inside a sandbox, submits the same way, and waits for verification. The verification path is identical — only the agent's location changes. Useful for batch work, off-hours runs, or non-developer-driven changes.

See also

Last updated

Was this helpful?