Skip to content

Agent regression testing: catching the release that breaks agent checkout

A release can lock AI shopping agents out of checkout and nobody notices. A CI-ready plan: fetch checks on every deploy, three buyer journeys and real agent runs.

By the ConversionVector teamUpdated 13 min read

Contents

Direct answer: Releases break agent checkout quietly. Your QA team tests in a normal browser, signed in, from the office network, so nobody sees the robots.txt edit that blocks a shopping agent, the theme update that moves product data out of the server HTML, the new captcha on the basket page or the add-to-basket button that lost its label. Agent regression testing catches these by re-running the same checks on every release, in three layers. Fetch checks run in seconds on every deploy: robots.txt rules for agent user agents, status codes, structured data and price in the raw HTML. Scripted journeys follow three buyer intents from product to the payment step, using locators based on roles and labels, the same accessibility tree many agents read. Real AI agent runs go weekly and after big releases, several times per brief, compared against your last good run. The first two layers can block a release. The third should raise an alert, because agents never behave exactly the same twice.

This guide is for QA leads, developers and engineering managers at mid-market retailers in the US, the UK, Europe and elsewhere who already have some release testing and want agents covered by it. It is the automated companion to our step-by-step simulated agent purchase: that guide shows how to watch an agent try once; this one shows how to keep checking on every release. ConversionVector is not affiliated with Microsoft, GitHub, Google, OpenAI, VTEX, Shopify, Stripe or any company named here. This is not legal or security advice.

Last verified: 2 December 2026 against Playwright's documentation (test agents, emulation, retries, API testing and CI) and the Playwright MCP README, GitHub's documentation on workflow events, Google's web.dev article on agent-friendly websites (last updated 1 April 2026), OpenAI's cloud browser allowlisting article and crawler documentation, Google's open-source robots.txt parser, a VTEX known issue published in November 2026, Shopify's and Stripe's test-payment documentation, the UCP specification (release v2026-08-25) and conformance suite, and the ACP agentic checkout RFC.

Why a release can break agent checkout without anyone noticing

A human tester and an AI shopping agent don't receive the same site. Three differences explain most silent breaks:

  • Fetching agents read the server's HTML, not the rendered page. If a release moves product data into JavaScript that runs after the page loads, a person sees no change and a fetching agent loses the price. VTEX published a known issue in November 2026 that shows exactly this: on Store Framework, settings in its structured-data app are applied only in the browser after the page loads, so the server HTML keeps the defaults. VTEX notes that "most consumers of this data read only the server HTML", and its reproduction steps tell you to inspect the raw server response, not the rendered page. Our guide to server-rendered product data explains why this matters.
  • Browsing agents read structure as well as pixels. Google's web.dev article on agent-friendly websites says agents view a site through screenshots, raw HTML and the accessibility tree, and that modern agents combine them. It recommends real <button> and <a> elements, labels linked to their inputs, no transparent overlays over interactive elements and a stable layout. A redesign that turns the add-to-basket button into an unlabelled icon looks fine to a tester and is harder for an agent to find.
  • Cloud agents meet your bot protection. Agents that run in their maker's cloud reach you from the maker's network. A new firewall rule, a changed bot-management setting or a captcha added to checkout can stop them while staff on a trusted network see nothing. Our guides to captchas and bot challenges and Know Your Agent cover how to protect checkout without blocking verified agents.

Some changes that break the agent path never go through your release process at all: a theme published from the platform admin, an app install, a CDN rule edited in a dashboard, a consent banner update from a vendor. That is why scheduled runs matter as much as deploy-triggered ones.

For scale, in our Agent Commerce Index Q4 2026 (225 UK and US retailers, measured 19 October 2026), 139 sites (62%) failed TRX-03, the check for a captcha on basket or checkout. Of the 116 stores we could basket-test, 8 let a page-fetching agent reach checkout and 96 let a browsing agent through. The Index is a single snapshot, not a release history: we have no figure for how often releases break agent checkout, and we don't invent one.

Three layers of an agent regression suite

LayerWhat it catchesWhen to runFails the release?
1. Fetch checksRobots.txt rules, 403s and challenges to agent user agents, structured data or price missing from the server HTML, policy pages gone, protocol discovery files brokenEvery deploy, plus daily on productionYes
2. Scripted buyer journeysSearch, variant, basket and checkout steps that no longer work, a guest path that disappeared, a new captcha, controls that lost their accessible namesEvery deploy to staging, then a production smoke run after releaseYes, on staging
3. Real AI agent runsAn agent that now picks the wrong product, misreads the price or stalls where it used to finishWeekly and after major releasesNo: alert and investigate

If you run your own UCP or ACP endpoints, add the protocol tests described further down.

Layer 1: fetch checks on every deploy

These checks request your pages the way a fetching agent does, with no JavaScript, and assert on what comes back. They take seconds, don't need a browser and give the same answer every time, which makes them safe to block a deploy.

AssertWhyRelated score check
robots.txt allows the agents you have chosen to allow, on product, cart and checkout pathsOne edited line can block an agent from every product pageACC-01 to ACC-09
Homepage, a sample of product pages, cart and checkout return 200 to each agent user agent, with no challenge pageA new firewall or bot rule shows up here firstACC-10, ACC-11, ACC-12, TRX-02
Product JSON-LD is in the raw HTML, with a numeric price, currency and availabilityFetching agents read only the server responseLEG-01 to LEG-04, LEG-08
The JSON-LD price matches the price in the HTMLA price disagreement makes an agent distrust the offerOFF-01
Product page still serves the add-to-basket form or button in the HTMLWithout it, nothing can start a purchaseTRX-10
Delivery and returns pages are linked from product pages and return 200Agents check them before choosingLEG-09, LEG-10, TRU-02
/.well-known/ucp (if you publish one) returns valid JSONA broken profile hides your protocol checkoutTRX-04

A Playwright API test is one way to write these. Playwright's API testing sends requests "without loading a page and running js code in it", which is what you want here. A minimal sketch, with your own URLs in place of the examples:

import { test, expect } from '@playwright/test';

const AGENTS = {
  'ChatGPT-User': 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko); compatible; ChatGPT-User/1.0; +https://openai.com/bot',
  // add the other agents you allow, using each vendor's published string
};
const PRODUCTS = ['/products/example-a', '/products/example-b'];

for (const [name, ua] of Object.entries(AGENTS)) {
  for (const path of PRODUCTS) {
    test(`${name} receives ${path} with product data`, async ({ request }) => {
      const res = await request.get(path, { headers: { 'User-Agent': ua } });
      expect(res.status()).toBe(200);
      const html = await res.text();
      expect(html).toContain('application/ld+json');   // structured data in the server HTML
      expect(html).toMatch(/"price"\s*:\s*"?\d/);      // a numeric price in it
    });
  }
}

For robots.txt, test the file the release will serve against the paths that matter. Google publishes the robots.txt parser Googlebot uses as an open-source library, with a small tool that checks one URL and user agent against a file and exits with 0 for allowed and 1 for disallowed, which drops straight into a CI step. Python's standard library also has urllib.robotparser. Parsers can differ at the edges, so keep your rules simple; our AI user agents and robots.txt reference lists the agent names.

Two limits to keep in mind:

  • A user-agent string is not the agent. It tests rules that match on the string. It doesn't test rules based on IP ranges or verified signatures. OpenAI says its cloud browser signs requests under RFC 9421, with a Signature-Agent header set to "https://chatgpt.com", and CDNs such as Cloudflare, Akamai and HUMAN recognise it as a named, verified agent. Your CI can't produce that signature. Add a production alert instead: a rise in 403s or challenges for requests your CDN labels as a verified agent. Our measuring AI agent traffic guide covers where to find them.
  • Your CI runner is not the agent's network. A runner in a cloud data centre may itself be challenged by your bot protection. Decide in advance: either allow your runner on staging and test agent rules separately, or treat a challenge as a finding.

Layer 2: three buyer journeys, scripted

Fetch checks prove the parts are there. Journeys prove they still connect. Script three buyer intents and run them in a real browser, stopping before payment. Three is enough to cover the main ways agents shop without making the suite slow.

IntentExample briefWhat the test asserts
Known itemA specific product in a specific size or colour, delivered to an address in your main marketSearch or category finds it; the variant can be selected and the price and stock update; it goes into the basket; a guest checkout opens with no login wall or captcha; delivery cost appears before payment
Constrained choiceSomething in a category under a budget, needed by a dateListing or filter pages work; delivery date is shown on the product page; the basket total including delivery is shown before payment and matches the product price plus delivery
Policy checkA gift sent to another address, or another country you sell to, with a returns questionThe returns policy is reachable from the product page; delivery to that destination is offered or clearly refused; the currency is explicit

Write the steps with locators based on roles and visible labels, such as Playwright's getByRole('button', { name: 'Add to basket' }), rather than CSS classes. This is our recommendation, not a Playwright rule, and the reason is practical: a role-and-name locator fails when a release strips the accessible name from a control, which is the kind of change web.dev says makes a site harder for agents. Run the journey once as a normal browser and once with an agent user agent, using Playwright's userAgent option, so the same steps also test any rules keyed on the string.

import { test, expect } from '@playwright/test';

test('known item: product to payment step as a guest', async ({ page }) => {
  await page.goto('/products/example-a');
  await page.getByRole('radio', { name: 'Medium' }).check();   // or the control your variant picker uses
  await page.getByRole('button', { name: 'Add to basket' }).click();
  await page.getByRole('link', { name: 'Checkout' }).click();
  await expect(page.getByRole('button', { name: /continue as guest|guest checkout/i })).toBeVisible();
  await expect(page.locator('iframe[src*="captcha"]')).toHaveCount(0);
  // fill a test address, check delivery cost and total, then stop: no payment on production
});

On payment, keep production and testing apart:

  • On production, stop at the payment step. Never let a scheduled test place a real order.
  • Test payment on staging or a development store. Shopify tells merchants to place a test order whenever they change payment settings, and warns that customers can't place live orders while payment providers are in test mode. Don't switch a live store into test mode for a test run.
  • Use test cards, never real ones. Stripe's testing documentation gives test numbers for successful and declined payments and says its services agreement prohibits testing in live mode with real payment details.

If your checkout talks to agents through an API rather than pages, add the order-safety tests from our duplicate orders and idempotency guide to this layer.

Layer 3: real AI agent runs

Scripted journeys only find the failures you thought of. A real AI agent given the same three briefs shows whether it still finds the right product, reads the offer correctly and gets to the payment step, and where it stalls if not. The stages and failure types from our simulated agent purchase guide work as the scoring: landed, found product, confirmed offer, added to basket, reached checkout, ready to pay.

Two Playwright tools are designed for AI-driven browsing:

  • Playwright MCP is a Model Context Protocol server that lets an AI model drive a browser through structured accessibility snapshots rather than screenshots. It accepts a --user-agent setting. Connected to the model of your choice, it can follow a buyer brief on your staging or live site and report each step.
  • Playwright test agents come in three parts: a planner that explores the app and writes a Markdown test plan (Playwright's example request is "Generate a plan for guest checkout"), a generator that turns the plan into test files and a healer that runs failing tests and repairs them. They are a quick way to draft the layer 2 journeys.

Treat the healer with care in a regression suite. Playwright's documentation says it suggests patches such as a locator update, a wait adjustment or a data fix, and can return "a skipped test if the healer believes that functionality is broken". A release that breaks checkout should fail loudly, not get healed or skipped. Our recommendation: let the healer propose changes as a pull request for a person to review, and never let it run unattended against your release gate.

Because agents don't behave the same way twice, judge layer 3 on counts, not single runs:

  • Run each brief several times, for example three, and record the stage each run reached.
  • Compare with the last good baseline. A brief that reached the payment step three times out of three last week and once this week is a regression worth investigating, even though one run passed.
  • Don't let retries hide a pattern. Playwright's retries are off by default; when enabled, a test that fails and then passes is reported as "flaky". That label is useful for scripted tests. For agent runs, count passes out of runs instead.
  • Record the agent's reasoning at the stall. It usually points to the cause: "couldn't find a size selector", "delivery cost not shown", "page asked me to verify I'm human".

Agents running in your own CI don't meet your bot protection the way cloud agents do. Every few weeks, and after any firewall or bot-management change, repeat one brief with a cloud agent such as ChatGPT's cloud browser, as described in our simulated purchase guide, and check your CDN events for the signed requests.

Wiring it into CI

Most CI tools can start a job after a deployment and on a timetable. On GitHub Actions, the deployment_status event runs a workflow when a deployment service reports a deployment's status (GitHub notes that a status of inactive doesn't trigger a run), and the schedule event runs on a cron timetable, in UTC by default with an optional time zone, at most every 5 minutes and only on the default branch. In a public repository, GitHub disables scheduled workflows after 60 days with no repository activity, so check that yours are still running.

name: Agent regression
on:
  deployment_status:
  schedule:
    - cron: '0 6 * * *'        # daily production check
jobs:
  agent-checks:
    if: github.event_name == 'schedule' || github.event.deployment_status.state == 'success'
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v6
      - uses: actions/setup-node@v6
        with:
          node-version: lts/*
      - run: npm ci
      - run: npx playwright install --with-deps
      - run: npx playwright test tests/agent    # layers 1 and 2

Run layer 3 as a separate weekly workflow, because it is slower, costs model usage and shouldn't block a release.

If your store runs on a hosted platform, many changes happen outside your repository. Our recommendation is a daily scheduled run of layers 1 and 2 against production, plus a manual run whenever someone publishes a theme, installs an app or changes CDN or bot settings.

If you run UCP or ACP endpoints

Where an assistant checks out through an API rather than your pages, browser journeys don't test that route. Both protocols give you something to test against:

  • UCP publishes a conformance suite: language-agnostic integration tests that run against a running UCP merchant server. You seed the server with test data, describe your products and expectations in a configuration file, and tests for capabilities your profile doesn't advertise are skipped. The checkout tests include idempotency. UCP's getting-started guide tells implementers to run it against their server. Run it against staging on every release that touches checkout. Our guide to Google's Universal Commerce Protocol explains the protocol.
  • ACP's agentic checkout RFC ends with a conformance checklist covering, among other things, integer amounts in minor units, the create, update, retrieve, complete and cancel operations, a required Idempotency-Key on every POST with defined error codes, and order webhooks. We did not find a separate public ACP test suite, so turn the checklist into your own tests.

If a platform or provider hosts the protocol checkout for you, it owns these tests. You still own the hooks and webhooks it calls, and the checks in layers 1 and 2.

The agent regression test plan

CheckLayerTriggerOn failure
robots.txt allows chosen agents on product, cart and checkout paths1Every deploy, dailyBlock
200 to each agent user agent on homepage, product sample, cart and checkout1Every deploy, dailyBlock
Product JSON-LD with price, currency and availability in the server HTML1Every deploy, dailyBlock
JSON-LD price matches the HTML price1Every deploy, dailyBlock
Add-to-basket control in the HTML; delivery and returns pages linked1Every deploy, dailyBlock
/.well-known/ucp valid, if published1Every deploy, dailyBlock
Known-item journey to the payment step as a guest, no captcha2Every staging deploy; production smoke after releaseBlock on staging, alert on production
Constrained-choice journey: delivery date and full total before payment2Every staging deployBlock
Policy journey: returns reachable, destination offered or refused, currency explicit2Every staging deployBlock
Same journeys with an agent user agent2Every staging deployBlock
UCP conformance suite or your ACP checklist tests2Releases touching checkoutBlock
Three briefs, several runs each, with an AI agent; stage reached compared with baseline3Weekly, after major releasesAlert and investigate
One brief with a cloud agent; CDN events for signed agent requests3Every few weeks, after firewall changesAlert and investigate

What our score and services cover

The free Agent Conversion Score is a quick check after a release rather than a CI gate. It reads your pages, basket and checkout as a real browser and as several AI agents, and runs the 49 checks in specification v0.6, including most of layer 1 and a basket test (TRX-10). It never logs in, enters payment details or places an order, so it doesn't replace layer 2 or 3.

If you'd rather not build layer 3 yourself, the Agent Path Audit + Fix Plan runs instrumented agents through your purchase path with real buyer intents and returns a prioritised fix list. Our Simulated Agent Buyer page describes an agent regression option that repeats the same runs on every deploy or weekly; get in touch if that is what you need.

Common mistakes

  • Testing only the rendered page. A browser test passes while the server HTML has lost its price. Layer 1 exists because fetching agents never run your JavaScript.
  • Treating a user-agent string as the real agent. It tests string-based rules only. Watch production CDN events for verified agents too.
  • Letting an AI healer fix the release gate. A healed or skipped test can hide the exact break you were looking for. Review its changes.
  • Judging agent runs on one attempt. Use several runs per brief and compare with a baseline.
  • Putting live payments in test mode. Shopify warns it stops real customers from ordering. Test payment on staging.
  • Testing only deploys. Theme publishes, apps, CDN rules and consent tools change the site outside your release process. Schedule a daily run.
  • Writing locators on CSS classes. They break on harmless restyles and miss the accessibility changes that matter to agents.

What to watch next

  • Agent vendors publishing test guidance. We have not found a merchant test harness published by any of the main assistants. We will update this guide if one appears.
  • Playwright's agent tooling. Test agents and Playwright MCP change with each Playwright release, and Playwright says the agent definitions should be regenerated whenever it updates.
  • UCP and ACP releases. Each new version can change what the conformance suite and checklist expect.

If you want help adding agents to your release testing, get in touch. The quickest first step is the free Agent Conversion Score, and our agent checkout friction audit lists the checkout issues worth testing for.

Sources

Method

Tool behaviour and quotations come from each project's or company's own documentation, read on 2 December 2026. Protocol details come from the UCP release v2026-08-25 and its conformance repository, and from the ACP agentic checkout RFC as published on its main branch on the same day. The code samples are minimal sketches for illustration, not tested against any particular store, and need your own URLs, labels and agent list. Items marked as our recommendation are ours, not a requirement of any tool or protocol. Index figures come from the Agent Commerce Index Q4 2026 (225 scored retailers, measured 19 October 2026). We ran no new scan for this guide, and we have no data on how often releases break agent checkout. This is not legal or security advice.

Questions

What is agent regression testing?
Re-running the same checks on every release to confirm AI shopping agents can still reach, read and buy from your store. It covers what an agent receives from your server (robots.txt, status codes, structured data in the raw HTML), whether a scripted shopper can still get from product to payment, and, less often, whether a real AI agent still completes the same buyer briefs. The aim is to catch the release that breaks the agent path before customers' agents find it.
How do I test checkout with an AI agent in CI?
Split it into layers. Fast fetch checks and scripted browser journeys are deterministic, so run them on every deploy and let them block a bad release. Real AI agent runs vary from run to run, so schedule them weekly and after big releases, run each brief several times and compare how far the agent gets against your last good baseline. Stop every run before payment on production, and use your payment provider's test mode on staging.
Can Playwright test agents or Playwright MCP do this for me?
They help, but they don't replace a fixed test suite. Playwright's test agents can plan, write and repair tests from a prompt such as "Generate a plan for guest checkout", and Playwright MCP lets an AI model drive a browser through the page's accessibility tree. Use them to draft the journeys and to run exploratory agent checks, then review what they produce. Playwright's own documentation says the healer agent may skip a test if it believes the functionality is broken, and in a regression suite that is a failure you want to see, not hide.
Does setting a bot's user agent in my tests show what the real agent gets?
Only partly. A user-agent string tests rules that match on the string, such as robots.txt groups and simple firewall rules. It doesn't test rules based on IP ranges or verified signatures. OpenAI's cloud browser, for example, signs its requests (RFC 9421) with a Signature-Agent header of "https://chatgpt.com", which your CI cannot imitate. Check your CDN's security events for real agent traffic as well.
Should I put my live store's payments into test mode for automated tests?
No. Shopify warns that customers can't place live orders while your payment providers are in test mode. Run payment tests on a staging or development store with test cards, and stop production tests at the payment step. Stripe's documentation also says not to use real card details for testing, because its services agreement prohibits testing in live mode with real payment details.
Does the free Agent Conversion Score work as a regression test?
It works as a quick check after a release, not as a CI gate. The score reads your site as a real browser and as several AI agents, runs 49 checks including a basket test (TRX-10) and a captcha check on cart and checkout (TRX-03), and gives you a score in about a minute. Running it after a major release, or when a theme or app changes, shows whether anything the score measures has slipped.

Published . Last updated . More in Agent checkout and the guide library.