Agent-Readiness Testing for Your Own Site

Agent-Readiness Testing for Your Own Site

Agents do not file bug reports, so untested readiness decays silently. A four-layer check inventory, scanner scores as smoke tests, and merge gates versus scheduled probes.

Every layer of an agent-ready site is a served surface, and served surfaces regress — a template change breaks markdown parity, a content-model edit breaks markup, a key rotation breaks verification. Agents do not file bug reports, so untested readiness decays silently. This guide gives you a four-layer check inventory (legibility, data, access, capabilities), explains why third-party readiness scores are smoke tests rather than goals, and splits the checks between deterministic merge gates and scheduled probes against the deployed site.

Test like the visitor you built for

The principle is the same one that governs any served surface: if it is not tested, it will regress. What makes agent-facing surfaces different is how they fail. A human-facing regression produces complaints — a broken checkout button generates support tickets. An agent-facing regression produces absence. The markdown route starts returning template chrome, the JSON-LD stops parsing, the MCP tool list goes empty, and the visiting agent quietly gets less, falls back to scraping, or leaves. Nobody files a ticket. The first sign can be a flat line in a log view nobody was watching.

Before writing a single test, there is a probe set anyone can run from a terminal, and it already catches several kinds of breakage:

bash
# What a scriptless agent receives
curl -s https://example.com/docs/pricing | head -n 40

# Markdown parity: the same URL, asking for markdown
curl -s -H "Accept: text/markdown" -D - https://example.com/docs/pricing -o /dev/null

# The feed
curl -s https://example.com/feed.xml | head -n 20

# Well-known paths the access and capability layers publish
curl -s -o /dev/null -w "%{http_code}\n" https://example.com/.well-known/oauth-protected-resource

The first request shows whether content-bearing sections survive without script execution. The second shows whether the parity route answers with Content-Type: text/markdown and the right Vary header. The third and fourth confirm that the surfaces other layers advertise actually respond. Run against a staging deploy, these four requests are a quick way to discover that a release removed something machines depended on.

One scope sentence keeps this article honest: it tests the site's agent surface. Testing code written by coding agents, and the guardrails around delegated changes, is a separate craft owned by the AI-assisted-development literature.

The check inventory by layer

The probe set becomes a check inventory once each layer's invariants are written down. The inventory is the stable definition of "agent-ready" for your site — the thing you maintain, version, and argue about:

LayerWhat to checkFailure it catches
LegibilityParity output exists for in-scope templates; parity contains the content invariants (H1, tables intact, no navigation or cookie chrome); served HTML carries content without script executionTemplate changes that silently strip or pollute machine-readable content
DataJSON-LD parses and validates against the chosen types; the same entity facts match across page, markup, and feed; feeds validate with stable GUIDs and sane timestampsMarkup rot and the cross-envelope drift where page, markup, and feed disagree
AccessWell-known paths respond correctly; signature verification behaves per the designed failure semantics; identification logs capture the designed fieldsBroken verification paths and logging gaps that blind the identification layer
CapabilitiesMCP endpoint lists the intended tools with intact descriptions; sample calls return bounded, structured results; a packaged conversational surface answers a fixed set of real questions correctlyEmpty or degraded tool surfaces and answer quality drifting after corpus or model changes

Two rows deserve emphasis. The cross-envelope drift check is a valuable data-layer test and one that is easy to leave out: generate the page, the JSON-LD, and the feed entry for the same content record, and assert that title, price, date, and availability agree. Disagreement between envelopes is the failure that no single-surface validator can see. When schema.org announced the Schema Markup Validator in May 2021, it described the tool as checking that JSON-LD, RDFa, and Microdata are used in widely understood ways and warning about unusual combinations of Schema.org types and properties; only your own test checks that the markup tells the truth.

The fixed evaluation set is the capability layer's equivalent. If you run a packaged conversational surface, keep a short list of real questions with known correct answers and rerun it whenever the corpus, the model, or the retrieval configuration changes. Answer-quality evaluation belongs in the suite, not in a launch-day demo. That set is scoped to the conversational surface; search relevance evaluation for the site's own search feature is the site-search literature's methodology.

For the access layer, the checks assert behavior rather than reimplement mechanics: a request with a valid signature is tagged with the operator, an unsigned request passes with downgraded confidence, an invalid signature is flagged. RFC 9421 defines the output of verifying a signature as either a positive verification or an error (Section 3.2); what the site does in each case — tagging the operator, letting unsigned requests through with lower confidence, flagging invalid signatures — is your own policy. How verification is implemented belongs to the Web Bot Auth treatment; the test only cares that the designed outcomes still happen.

Scanners and scores, read honestly

Outside-in scanners exist, and they are useful: they fetch your site and report what they find. Cloudflare's Agent Readiness score, for example, groups its checks into discoverability, content, bot access control, and capabilities, and lists agentic-commerce standards as informational checks outside the score (Cloudflare blog, April 17, 2026, accessed October 2026; named as market reality, not ranked). A scan like that is a cheap way to spot obvious gaps — a missing well-known path, a markdown route that never answers.

What a score cannot see is fidelity. It can confirm that a markdown representation exists, not that it matches the page. It can confirm that JSON-LD is present, not that the price in it is current. It can confirm that an MCP endpoint answers, not that its tools return good results. Scores check presence; your inventory checks truth. Treating a score as the goal is the classic metric-gaming trap — you end up shipping surfaces that satisfy the scanner and mislead the agents.

Scanner criteria also move with the protocol landscape. The same Cloudflare post notes that several of the standards it checks are still drafts or early proposals with very little adoption. When a scanner adds a check, your score can drop without anything on your site changing. A score change after a scanner update is not a regression; it is the scanner's definition moving. Pin your own check inventory as the stable definition and read scanner output against it.

One more boundary: visual and functional regression testing of the human-facing site — baselines, thresholds, diff review — is the visual-regression-testing literature's territory. This article tests the machine-facing surface.

CI placement and monitoring

The inventory splits cleanly into two kinds of check, and the split follows determinism.

Merge gates run on your own build artifacts with no network dependence: generate parity output for sample templates and assert the content invariants; validate generated JSON-LD; validate the generated feed; assert that the tool schema the MCP adapter will publish contains the intended tools with non-empty descriptions. These are fast and deterministic, so they can block a merge. A failure means the change broke a machine-facing surface, and the author is the right person to fix it.

Scheduled probes exercise the deployed surface: well-known path responses, signature-verification behavior with a test signer, an MCP connection check and a sample tool call, the packaged surface's evaluation set. In the MCP protocol version that is current as of Nov 2026 (2026-07-28), servers must implement a server/discover request, while earlier protocol revisions established a connection-scoped session with an initialize handshake — probe whichever your server's protocol version uses. These probes depend on the network, the CDN, and third-party components, so they belong on a schedule and after every deploy, alerting rather than blocking. A failure here may be your release, your provider, or a protocol change — the alert starts the investigation.

Monitoring closes the loop. The identification layer's views of agent traffic double as regression signals. If verified-agent fetches of the markdown route fall off a cliff right after a template release, that is a test the schedule missed — and a prompt to add one. Read the logs as part of the suite.

And the maintenance ledger, stated plainly: the inventory itself churns. Draft specifications bump revisions, header names change, packaged surfaces evolve, and scanner criteria shift. Review the inventory when a spec your site implements publishes a new revision, and retire checks along with the surfaces they tested. An inventory that only grows becomes noise; one that is curated stays the most precise description of what your site promises to the machines that read it.

Project Inquiry