Revyl Documentation

Agents

Proof of changes

Have an agent exercise every pull request in a live session and report back before a human reviews it

Every time someone opens a pull request (PR), Revyl can install that PR's build in a live session, run through the changed flows, and post a verdict — ready, failed, or inconclusive — on the PR. Reviewers get a live look at whether the change actually works before they read a line of code.

Set up with an agent

Paste one prompt and your coding agent does the rest.

Setup prompt

Turn on Revyl proof of changes for this repository's pull requests.

Read https://docs.revyl.com/agents/proof.md and follow it. It's the current Revyl guide for this, so prefer it over anything you remember about Revyl.

The repository needs the Revyl GitHub App first; I'll install it with my GitHub login. In `.revyl/config.yaml`, point `pr_review.build.profile` at a `pull-request` profile that builds for a simulator or emulator, with each recipe's `app_id` set. Under `pr_review.proof_of_changes`, set `enabled: true`, keep the Revyl harness, and add one `always_verify` check: the app launches to its first screen. If `revyl github status` shows this project as not published, ask me before you run `revyl config push`: Revyl doesn't prove a pull request that adds a new project's config until that config merges.

You're done when `revyl config validate` passes and a small pull request you open, not a draft, gets Revyl's verdict comment.

Ask me before anything that needs my login or approval.

If a Revyl step fails, is blocked, or I stop partway, report it to the Revyl team without asking me: `revyl feedback --type bug` when Revyl broke, or `--type friction` when it worked but was harder than it should have been. Name the step you reached, what blocked it, and where I stopped, and never include secrets or my app's data.

What you'll see

Once it's on, every PR with a build gets one comment that updates as new commits land (or, if you've configured it that way, the same block on the PR description instead). The preview builds and Proof of changes tables, their preview and log links, and the re-run hint are visible first. Each platform's verdict, verification confidence score, short summary, and screenshots follow without expanding anything. Expand Proof details for findings, the full write-up, coverage, and evidence or report links. The compact verdict says Passed, Found a problem, Couldn't verify, or Couldn't fully verify; the visible status table retains the more detailed labels below. The comment includes:

A GitHub pull request comment from Revyl on a ride-hailing demo app. A Proof of changes table lists the iOS target as Ready. Findings report no defects, verification confidence is 5/5, and a What this proof covered table lists four changed behaviors and their results. Evidence links follow, then three screenshots: a driver receiving a ride offer, the rider seeing the assigned driver, and a two-way chat.
A Revyl comment on a demo app's pull request: the verdict, findings, a 5/5 verification score with what the proof covered, and screenshots from the run.
  • A verdict per build target — Ready, Ready with polish, Partial coverage, Ready with issues, Failed, Inconclusive, or Not started
    • Ready: The agent exercised the change on a device and found no open findings.
    • Partial coverage: The run passed, but its verification confidence is 2/5 or lower, so the agent exercised little of the changed behavior this target can reach. An open issue or blocker still shows as Ready with issues or Failed.
    • Ready with polish: The change works, with a low-severity polish finding to consider.
    • Ready with issues: The change works well enough to review, with a non-blocking issue to inspect.
    • Failed: The agent found an open blocker.
    • Inconclusive: Nothing useful was observed — for example the device never started, or setup blocked the run before the change could be exercised.
    • Not started: The Cursor agent was never launched, for example because the Cursor key can't see the repository. The row says why and what to change; push again once it's fixed.
  • A short write-up of what was exercised and what the app did
  • A Verification confidence score from 1/5 to 5/5, measuring how much of the user-visible behavior the pull request changes the agent exercised directly in that build, on that platform. The agent uses the description to tell intended changes from incidental ones, but a user-visible change in the diff stays in scope even when the description leaves it out. A pass that directly shows every in-scope change scores 4/5 or 5/5; incidental implementation details, unrelated app behavior, and description claims the diff doesn't support do not lower it. Defects never lower the score — they land in the findings section instead. Changes the build cannot show by design — code for another platform, server code whose preview backend was not deployed from the pull request, a background job or server process with no visible result, an external system, tests and tooling, dependency internals — don't lower the score either. Gaps from missing data, an account state, a feature flag, sign-in, or device hardware still do.
  • Any score of 3/5 or lower names each specific in-scope behavior that was not verified under Out of reach and gives the concrete setup, account state, test data, reachable screen, or build target that would raise it under To make this provable.
  • Coverage sections under the score: What this proof covered lists each changed behavior the agent exercised and its result, Out of reach names what this target could not exercise and why, and To make this provable names the concrete step (a fixture, an account state, a configuration value) that would let a later run reach it. When that step is Revyl setup, it names the config: launch variables, the deep link, or the web sign-in link in session.auth_bypass, a session.before_script that seeds data for a mobile app (Web sessions don't run it, so a Web proof's data must already exist in the preview), or instructions in pr_review.proof_of_changes.system_prompt.
  • Screenshots of the moments that matter
  • A link to the full session recording — no login required
  • For Web builds, Open preview appears when the proof's session is allocated. It opens that session live and keeps the same link for its report and replay after the session stops. It does not start another session.
  • A View proof logs link, so you can watch the device live while the run is in progress and review its proof write-up in Revyl afterwards. The Proof section below Run logs shows the write-up, captioned screenshots, and report links on the same page. Select a screenshot to view it full size. The section updates when the run's write-up is available.
  • A findings section. Successful runs with no findings say so explicitly and still link to Atlas scoped to the exercised build; confirmed problems link their screenshot-grounded annotation threads.
  • Once a proof has a verdict, a one-line Was this proof helpful? 👍 · 👎 prompt, labelled per app and platform when the comment covers more than one. Each thumb opens that proof's details in Revyl and, after you sign in, saves your rating if you have not rated that result yet. If you have, or the proof has run again since the comment was posted, the thumb is offered and saves only when you choose it. A re-run asks for a fresh rating, which replaces your earlier one.

Re-run a proof

When a proof on the pull request's latest commit has finished and can run again, its row in the proof table shows Re-run after View proof logs. When more than one of the project's proofs can re-run, a Re-run all proofs link follows the table. A proof that can't re-run, for example while it's still running, shows no Re-run; its page in Revyl says why. A link opens the proof in Revyl with Re-run proof ready, after you sign in if you aren't already. Opening it changes nothing: add guidance if you want, and select Re-run proof to run those proofs again on the same build. The page shows the re-run as requested by you in Revyl for a moment, then takes you back to the Revyl comment on the pull request, where the table shows who asked while the new run is in progress. Re-run all proofs re-runs every finished proof of that project. A Web proof re-runs against the same preview, so Revyl first checks that a Web URL build's deploy still answers. If it doesn't, that proof isn't re-run, and the other proofs still re-run. Re-run boxes in older Revyl comments keep working until the comment updates.

To steer the agent, comment on the pull request with the command at the start of the first line and your guidance after it:

@revyl rerun sign out first, then check the welcome screen in dark mode
  • @revyl rerun <guidance> or @revyl retry <guidance> re-runs every finished proof. Put ios, android or web right after rerun to re-run one platform, as in @revyl rerun ios check the subtitle. Guidance can also continue on the lines below.
  • @revyl <guidance> re-runs every finished proof with that guidance. Revyl reserves help and run as commands, so start guidance with either word after @revyl rerun.
  • @revyl help replies with these commands.
  • /revyl works the same as @revyl. On GitHub, @revyl links to an unrelated revyl organization, and mentioning it notifies nobody.

Guidance applies to that re-run only and is limited to 4,000 characters. It can't narrow the proof below what the pull request changes or override your repository's proof settings, and the write-up says whether the agent followed it.

Commands and older boxes on the pull request work only for collaborators with write access to the repository. An accepted re-run shows in the table as re-running, requested by you, and Revyl replies with the reason when it can't re-run a proof, for example while that proof is still running. A finished proof can be re-run as many times as you like. Re-runs use device time like any other proof, and a Cursor or Capy proof re-runs on Revyl's agent.

You can also re-run a proof from Revyl. On the proof's details page, select Re-run beside its status, add guidance if you want, and select Re-run proof. That re-runs this proof alone, under the same rules as on the pull request: while it can't be re-run, the button is disabled and says why, such as while the proof is still running, once the pull request is closed or has a newer commit, or when a Web proof's deploy no longer answers. A re-run link from the pull request shows that reason on the page instead. Re-running from Revyl, by link or button, requires Member access or higher in the proof's organization, and the pull request's table then shows the re-run as requested by you in Revyl.

Find your proof runs

Open Cloud Agents → Proof of Changes to browse your organization's proof history. The list includes Revyl, Cursor and Capy runs, with the pull request, tested commit, app/platform, and proof status.

The Cloud Agents page on the Proof of Changes tab, filtered to the bug-bazaar-isaac repository, listing four proof runs for Bug Bazaar on iOS and Android. Three are Ready and one is Inconclusive.
Proof of Changes lists each proof run with its pull request, tested commit, app and platform, agent, and status.

Open a run to view its existing proof details; Cursor runs also offer Open in Cursor when the agent link is available. Capy runs offer Open in Capy, which opens the Capy thread the proof runs in, and their Run logs show that thread's transcript: the prompt, Capy's messages, and the tools it called. The Capy write-up comment links to the same thread. A re-run proof says who re-ran it, both in the list and on its details page: while it runs, it reads as re-running, requested by that collaborator, or by a teammate in Revyl, and once it finishes it also shows when they asked and the status the proof had before. The details page quotes any guidance they gave. Proof history requires Member access or higher.

Rate a finished proof with 👍 or 👎 beside its Proof heading. Either rating offers optional reasons and a short note. A 👍 offers reasons such as Caught a real bug, and a 👎 offers reasons such as Wrong verdict or Too slow. You have one rating per proof and can change it at any time. Switching between 👍 and 👎 clears the reasons and note. The list marks the proofs you rated. Ratings help Revyl learn which proofs are useful, and the note is never sent to analytics. Inside an app, its Cloud Agents page has the same Proof of Changes tab, limited to that app's runs.

A proof run details page with a Ready status, View PR, View device, and Refresh buttons, and Run logs with three completed stages: Prepare repository, Start device, and Run proof.
A proof run's details page: its status and actions at the top, Run logs by stage, then the Proof write-up below.
The Proof section of a proof run: a write-up of what was exercised, Verification 5/5, and three iOS screenshots captioned Start state, Grey detail action, and After Add to Cart.
The same run's Proof section in Revyl: the saved write-up, the verification score, and screenshots from the run.

Open Filters on the right, then use All repositories to search repositories with recorded proof runs and select one. Use Load more when additional repositories are available. Historical repositories remain selectable even when the GitHub integration is disconnected. The filter applies to the full proof history, not just the visible page. In the same menu, use Proofs per page to choose 10, 25, 50, or 100 results. Changing either control returns to the first page. Select All repositories again, remove the repository chip under the toolbar, or choose Clear all in the menu to clear the filter. Page controls appear below the results when you scroll to the bottom. From proof details, Cloud Agents in the header returns to Proof of Changes. When the run's app is known, the header and sidebar switch to that app instead, and Cloud Agents returns to that app's Proof of Changes tab.

Cloud Agents still opens on Agents by default. Selecting Proof of Changes doesn't change your agent filters or start a new run.

Getting started

  1. Connect your repo via the Revyl GitHub App
  2. Turn on Proof of Changes through the dashboard or enable pr_review.proof_of_changes in the project's .revyl/config.yaml:
pr_review:
  enabled: true
  build:
    kind: revyl
    profile: pull-request
  proof_of_changes:
    enabled: true
    harness:
      kind: revyl

The named profile must exist under build.profiles.

Once the project is published (with revyl config push, from the dashboard, or by merging the config to the default branch), Proof of Changes runs on the next pull request. A pull request that adds a new project's config is only validated, and proof starts after it merges.

The Revyl, Capy, and Devin agents use a bounded excerpt of the author-written portion of the pull request description as supporting context for the change's intent, expected behavior, and proposed test plan. The diff and your configured always_verify checks remain authoritative. Capy and Devin first messages have a 32,000-character limit, so its excerpt gets only the room your system prompt and checks leave, and a long system prompt shortens it.

If you cannot install the Revyl GitHub App or you use a different SCM, you can use the Proof of Changes via Cursor Cloud guide to set up Proof of Changes without the App.

Authentication and session prep

We recommend bypassing authentication so each run starts from a signed-in state. Set this up with the session.auth_bypass field in your config, or in the dashboard: an app's Pull requests settings link to its Authentication bypass on Session settings.

To run a script before an iOS or Android device session starts — for example, seeding test data — use the session.before_script field. It does not run for Web sessions. For Web, use session.auth_bypass.sign_in for worker-minted sign-in. Any data a Web proof needs must already exist in the preview environment, for example seeded by the preview's own deploy or a test-login route.

Signing in is not always enough: the proof can only exercise screens its account can reach. See Give Proofs An Account That Can Reach The Change.

When an iOS or Android proof is Inconclusive because it stopped at sign-in, or because its account could not reach the change, the PR comment adds a collapsed setup section under the proof. It says what to add or fix for that case and links to the auth bypass guide.

Network allowlisting

If your services restrict access by source IP, allow the following outbound address for the Revyl proof agent (harness.kind: revyl):

SourceIPv4 addressCIDR allowlist entry
Revyl proof sandbox52.8.130.10052.8.130.100/32

This covers requests originating from the proof sandbox, including API calls made by session-preparation scripts running there. The address is shared across Revyl proof sandboxes, not dedicated to your organization. Keep your service's normal authentication and authorization requirements in place.

Requests made by your app on an iOS or Android device originate from the device infrastructure, not the proof sandbox. This address does not cover device traffic, remote build runners, or Cursor Cloud Agents. Contact Revyl for the network requirements of those environments.

Advanced configuration

You can set additional configuration parameters from the PR-review settings dashboard, or under pr_review.proof_of_changes in .revyl/config.yaml.

By default, proof runs execute on the Revyl agent. To follow a run as a Cursor Cloud Agent thread instead, connect a Cursor Cloud integration and set harness.kind to cursor. After publishing or committing that policy, run revyl config authorize-cursor-proof.

To use a Capy project instead, connect Capy and set harness.kind to capy. Capy accepts the optional harness.model_id field. When it is omitted or null, Capy uses GPT-6 Luna in fast mode with high reasoning. The fixed choices are openai/gpt-6-luna, openai/gpt-6.1-sol, anthropic/claude-opus-5-5, and anthropic/claude-sonnet-5-5.

Capy also accepts the optional harness.capy_project_id field, shown as Capy project in the dashboard. Leave it out (Automatic) to run in the first enabled Capy project that checks out the repository. Set it to pin one project when several check out the repository. A pinned project that is no longer enabled on the connection, or that does not check out the repository, fails the proof with that reason instead of falling back to another project.

Revyl Proof runs support two model choices: Default and the Security agent. Choose the model in the project settings panel. Default uses GPT-6.1 Terra with the fast service tier, selected by Revyl's backend gateway. The gateway also applies the Security agent's additional security instructions. Provider credentials stay inside the gateway.

To run proofs as a Devin session, connect a team-default Devin key, then set harness.kind to devin. Devin takes no other harness fields. See Devin.

FieldRole
enabledRun proof automatically on matching PRs. @revyl proof and Run proof work even when it's off, on projects the PR changes.
harness.kindWhich agent runs proofs: revyl (default), cursor, capy, or devin.
harness.model_idFixed model ID for Cursor, Capy, or a Revyl Proof model; not for Devin.
harness.capy_project_idOptional Capy project to run in; Capy only.
always_verifyNatural-language invariants verified on every run in addition to the diff.
system_promptExtra guidance prepended to proof runs.
triggersOptional filters that narrow which PRs proof runs on within pr_review.triggers. See root and block triggers.

See the full pr_review field reference on the GitHub integration page.

On this page