Browser checks in deploy verify
A verify step can send an agent to drive a browser against your deployed app. It signs in without ever seeing the password, takes screenshots, and returns a verdict. How to write one and what it cannot do.
A browser check sends an agent to your deployed app. It opens pages, clicks, reads what renders and returns a verdict with screenshots. Use it for what a command cannot see: does the new tab show up, does the page look broken.
Why it matters: a command proves a behaviour by exit code. A browser check proves nothing alone. It is a judgment, so a behaviour proven only by one stays unproven and the session does not complete on it. Pair it with a command check that does prove the behaviour.
Write one
A browser check is a verify step with uses: verify/browse. It takes guidance (what to check) and, if the app needs a sign-in, a login: block. It takes no commands and no env.
verify:
environment: development
steps:
- name: look
service: web
uses: verify/browse
guidance: >-
Sign in, open Settings, and confirm the new Billing tab shows the plan
name and a Manage button. Report anything that looks broken.
login:
url: /login
username: ${{ secrets.E2E_EMAIL }}
password: ${{ secrets.E2E_PASSWORD }}
totp: ${{ secrets.E2E_TOTP_SEED }}
fields:
username: 'input[name=email]'
password: 'input[type=password]'
totp: 'input[name=code]'
submit: 'button[type=submit]'
Rules:
- One browser step per verify block. Put every check in its
guidance. guidanceis required, up to 2,000 characters. Write what you would tell a person doing a smoke test. The plan's acceptance criteria that cite this step (verify:look) are added to the brief, up to 20.- The service must be hosted: public HTTPS. A service only a runner reaches holds with "Browser checks need a hosted service". Put the browser check in its own verify block for a hosted service.
- The browser reaches the step's service hosts and nothing else, on port 443. A page that loads from a host that is not in the service's
hostsis blocked.
Signing in
The agent never sees a password, a username secret or a one-time code. A harness next to the browser signs in for it.
| Field | Meaning |
|---|---|
login.url | A path on the service, starting with a single /. Never a host. |
login.username | A literal, or ${{ secrets.NAME }}. |
login.password | ${{ secrets.NAME }} only. A password is never written in the repository. |
login.totp | ${{ secrets.NAME }} holding the authenticator seed (base32). Only a reference is accepted. |
login.fields.username, .password, .totp | CSS selector of each input. Required for each value you declare. Up to 200 characters, no < or >. |
login.fields.submit | CSS selector of the submit button. Optional. |
Declare at least one of username, password, totp.
How it works:
- The agent asks to sign in, by naming the step. It passes no value.
- The harness opens
login.urlon the service, fills the declared fields from the round's secrets, computes the one-time code from the seed, submits, and clears the form. - The agent is told
filled, orlogin failed. Nothing else comes back, so no page text or error can carry a value.
The secrets follow the verify secret rules: granted to the repository, the service host in Allowed hosts, 8 characters or more. The harness refuses to fill a password into an input that is not a real password field, and shows filled text fields as dots. Screenshots and page snapshots are refused until the form is empty again.
What the agent can do
- Open pages on the step's service hosts and navigate, click, hover, type, press keys, handle dialogs.
- Read the page: an accessibility snapshot, console messages, and the list of network requests (URL and status, no headers or bodies).
- Resize the window, and take screenshots. Each screenshot is stored with the session as evidence: up to 30 per round, 2 MB each.
- Finish with a verdict:
pass,failorunsure, with up to 20 short plain-text findings. No verdict counts asunsure.
What the agent cannot do
- See a secret. Text it types or fills is refused if it contains any form of a round secret. Every result is masked, and a result that still holds a secret form is replaced by "withheld".
- Run script on the page or upload files. Evaluating script, file upload, request bodies, traces, performance audits and heap snapshots are not available.
- Leave the service's hosts. The browser's only way out is a proxy that allows the step's service hosts. A redirect to another host is blocked.
- Read your repository or workspace. The browser pod has no source, no git credential, no workspace data and no platform MCP.
- Be told what to do by a page. Everything a page renders is untrusted data. The agent's instructions come only from your
guidance.
A screenshot can show what the page itself renders, including a signed-in username. It never shows the password or the one-time code.
Verdicts and fix forward
| Verdict | Counts as |
|---|---|
pass | A passing judgment. Not proof of a behaviour on its own. |
fail | A failed step. The session fixes forward with the findings and screenshots. |
unsure | A failed step. Treated like fail. |
The session timeline shows "Browser judgment" with the verdict, the findings and the screenshots. See Fix forward and attribution.
Cost and credentials
A browser check runs a model turn. It bills as session spend on, in order: the session owner's license for the engine's provider; workspace credits under the review-fallback setting; otherwise the session holds with "Verify could not start". A license that exists but is not usable holds. It never falls through quietly (dec-149, dec-324).
How it runs
The browser runs in its own pod beside the commands part, with two containers: a harness with Chromium, and the agent, which can reach the harness only through a filtered tool socket. Chromium runs without its own sandbox because a pod has no user namespace, so the pod's isolation is what contains it: non-root users, every capability dropped, a network policy and the egress proxy. If Chromium cannot start, the round fails and counts toward the "Verify did not run" hold.
Playwright tests you write yourself are separate: see Playwright browsers.
Not supported yet
- A Cloudflare Access-protected environment. The browser cannot present Access credentials.
- A service only a runner reaches.
- More than one browser step in a block.
Related Documentation
Continue exploring