← All guides

Agent Policy vs robots.txt: What Is the Difference?

Published November 14, 2026 · Reviewed November 14, 2026 · Ingenious AI team

The short answer: Different questions, different files. robots.txt answers a crawler's question — 'which URLs may I fetch?' — with allow/disallow path rules, and lives at /robots.txt. An agent policy answers a transacting agent's question — 'what may I do here, within what limits, and how are purchases committed?' — with behaviours, limits, and contact, and lives at /.well-known/agent-policy.json. AXO's policy dimension credits both signals separately (a robots.txt reference earns 15; the policy reference earns 60) because a complete store publishes both and keeps them consistent. Check yours in the free audit.

Audit my store — free

What is robots.txt?

robots.txt is a plain-text file at a site's root that states the Robots Exclusion Protocol rules: which automated crawlers (by user-agent name) may fetch which paths. It governs fetching, voluntarily — it is a statement of the site's wishes about crawling, not an access control and not a statement about transacting.

Audience: crawlers versus counterparties

A crawler's relationship to your store is extractive and brief: it fetches pages to index or archive them. robots.txt speaks to that relationship in its entirety — paths and pacing. A shopping agent's relationship is transactional and extended: it reads your catalogue, prepares purchases, possibly creates orders, and answers to a customer for the outcome. It needs terms robots.txt has no vocabulary for: basket limits, commitment models, contacts, category restrictions.

Treating robots.txt as your agent policy is like treating a 'no parking' sign as a lease. The agent file exists because the agent relationship outgrew the crawler file's expressive range. Conversely, the policy file does not replace robots.txt: it says nothing about which paths may be crawled, and crawlers that never transact will never read it. Publish both, each in its register.

Content: paths versus behaviours

robots.txt content is path rules per user-agent: allow, disallow, crawl-delay where supported, and a sitemap pointer. Agent-policy content is behavioural: permitted actions, operational limits, purchase terms, contact. The overlap is thin — a policy might note crawling etiquette, robots might carry your sitemap — and the files should cross-reference rather than duplicate: your policy can point heavy enumerators at your feed; your robots file should not contradict the policy's welcome by disallowing the agent paths your policy invites agents to use.

Contradiction is the realistic failure: a store publishes a welcoming policy while its robots.txt, inherited from an SEO purge years ago, disallows /api/ or the whole site to several agent user-agents. Agents resolving the conflict default to the more restrictive reading — the safe interpretation — and the store's policy investment is silently voided by a text file nobody remembered. Audit the pair together, always.

Location and format conventions

robots.txt: root path /robots.txt, plain text, user-agent grouped rules — a 1990s convention every crawler honours. agent-policy.json: /.well-known/agent-policy.json, JSON, a 2020s convention for programmatic counterparties. AXO itself publishes the standard neighbourhood on its own pages (its robots.txt carries the sitemap pointer), and its scorer looks for references to robots.txt as one of the policy dimension's minor signals — evidence that the store maintains the classic file alongside the new one.

The /.well-known/ directory is where the modern files accumulate — policy today, security contacts, discovery manifests — inventoried in the well-known guide. Keeping the directory tidy is the same governance as keeping the root files tidy: each file owned, current, and consistent with its neighbours.

Enforcement reality for both

Neither file enforces anything technically. robots.txt is honoured voluntarily by well-behaved crawlers and ignored by bad ones; your server logs and WAF do the enforcing. The agent policy likewise binds only agents that choose to comply — which, in the agent economy, is the population that matters: the major shopping agents are operated by companies with reputations, compliance teams, and allow-lists. Your policy is how you get onto those lists on your terms.

This reframes both files correctly: they are communications to the well-behaved, priced by the value of being well-behaved-toward. A store that publishes clear, consistent, current files makes compliance cheap for the agents it wants and gives itself standing when it asks operators to correct behaviour. A store with no files has neither the compliance nor the standing.

Drafting the pair without contradictions

Work in one sitting with both files open. One: list the paths agents need (feed, API surfaces, policy, product pages) and confirm robots.txt allows them to the user-agents you welcome. Two: confirm robots disallows only what you truly protect (checkout internals are commonly disallowed for indexers — check that your intent is indexing, not agent access, and that the distinction is what you mean). Three: confirm the policy's behavioural claims match the surfaces robots permits. Four: add the sitemap pointer to robots.txt if missing.

Record the pair-review in the same monthly spot-check as the feed and policy fetch: three small files, one sitting, total consistency. The review's deliverable is a sentence you can say with confidence — 'our published files agree with each other and with our store' — which is rarer than it should be and entirely within your control.

What AXO sees, and what to fix first

In the audit, robots.txt appears twice in spirit: as a reference worth 15 policy points when your pages mention it, and as part of the machine-layer furniture your store is expected to maintain (AXO's own robots.txt response models it). The policy file's 60 points dwarf it, correctly — behaviours outrank paths for transacting agents. Fix in that order: policy file first, readable policy page second, robots consistency third.

Then read the pair once more as an agent would — fetch robots, fetch policy, compare against the store — before your next audit records the dimension. The exercise takes minutes and is the closest a merchant gets to standing where the agent stands.

The 5-action two-file consistency pass

  1. Open both files together: /robots.txt and /.well-known/agent-policy.json, side by side, every review.
  2. Confirm robots allows the agent paths your policy invites (feed, APIs, policy, products) for the user-agents you welcome.
  3. Confirm the policy's claims match reality and match what robots permits — no welcoming policy voided by a legacy disallow.
  4. Keep the sitemap pointer in robots.txt and behavioural terms only in the policy; cross-reference, never duplicate.
  5. Review the pair monthly with the feed/policy spot-check, and after every SEO or platform change that touches either file.

Worked example: the welcome that robots.txt quietly vetoed

Example — fictional, for illustration. A tools store publishes a thoughtful agent policy and celebrates its policy dimension rising. Agent traffic, however, does not move. An operator, answering the policy's contact address (the system working as designed), mentions their crawlers honour the store's robots.txt — which, since an SEO cleanup years earlier, disallows /api/ and /feeds/ to a broad user-agent group that includes their enumeration bot. The policy invited; the robots file vetoed; the agents obeyed the stricter text.

The fix is ten minutes in robots.txt, narrowing the old disallows to the indexing contexts they were meant for. Enumeration begins within the week. The store adds the pair-review to its monthly routine with a rueful note: 'Our files were each maintained. They were never introduced to each other.' Governance of small text files is not beneath a store's attention — in the agent era, those files are the store's foreign policy, and contradictions in foreign policy are paid for in trade.

Related guides and the standing invitation

Companion reading for this topic: What Is /.well-known/agent-policy.json? · How Do You Write an Agent Policy File for Your Store? · What Belongs in Your Store's /.well-known/ Directory? · How Do You Write a Human-Readable Agent Policy Page?.

Whatever this guide led you to change, prove it the way every guide in this series ends: re-run the free audit on the same page and compare the dimension it names, read how the audit works if a finding is unclear, and see plans if you want the full guidance report and re-audit history while you work. A change you have not re-measured is a hope, not a fix.

Run the free audit · All guides

Sources

Frequently asked questions

What is the core difference between robots.txt and an agent policy?

robots.txt governs fetching: which crawlers may fetch which paths. An agent policy governs transacting: what agents may do (browse, cart, order), within what limits, under what commitment model, with what contact. Different audiences, content, locations, and formats — publish both.

Can robots.txt serve as my agent policy?

No. It has no vocabulary for behaviours, basket limits, commitment models, or contacts, and shopping agents do not read it for terms. Conversely, a policy file says nothing about crawl paths. Each file does its own job.

Which earns more in AXO's policy dimension?

The policy reference earns 60 points; a robots.txt reference earns 15. The weighting mirrors agent reality: behavioural terms matter more to a transacting agent than path rules. Both are worth publishing, in that order.

What if the two files contradict each other?

Agents resolve contradictions conservatively — the more restrictive reading wins. A welcoming policy voided by a legacy robots disallow is the classic case. Review the pair together monthly and after any SEO or platform change.

Does either file actually enforce anything?

No — both are voluntary communications. Their value is with the well-behaved majority: major agents are run by operators with compliance incentives, and clear, consistent files make compliance cheap and give you standing to raise issues.

← Back