← All guides

What Belongs in Your Store's /.well-known/ Directory?

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

The short answer: The files programs fetch by convention rather than by link: for a store, chiefly agent-policy.json (your terms for agents), a security contact file (security.txt, so researchers can reach you), your agent discovery manifest if you publish one, and platform files your stack already places there (payment and app-association files). AXO's endpoint scan treats /.well-known/ references as agent-infrastructure signals, because that is what they are: a store with a kept well-known directory is a store whose machine layer has an address. Publish deliberately, keep every file current, and inventory the drawer in your monthly check. See the whole layer scored in the free audit.

Audit my store — free

What is the /.well-known/ directory?

/.well-known/ is a standardised URI prefix (RFC 8615) reserved for site-wide metadata documents that programs fetch at fixed conventional paths: /.well-known/agent-policy.json, /.well-known/security.txt, and similar. Because the paths are conventional, a program needs no link or prior knowledge to find them — the directory is the web's agreed drawer for 'things machines should know about this site'.

Why a fixed drawer matters

Discovery by convention removes the weakest link in every other discovery mechanism: somebody remembering to link the thing. A file at a well-known path can be found by any conforming program forever, across redesigns that drop footer links and migrations that shuffle page URLs. That permanence is why the agent policy lives there, and why your inventory of the drawer deserves the same seriousness as your DNS: it is infrastructure other people's systems address directly.

The corollary is that stale files in the drawer are addressed directly too. A well-known file is never 'just an old page'; it is a standing statement at a standard address, read by exactly the systematic consumers who act on statements. The drawer's tidiness standard is therefore higher than your blog's, and its review belongs on the infrastructure calendar, not the content calendar.

The store's core files

agent-policy.json — your terms for agents: behaviours, limits, commitment model, contact (covered in its own guide). security.txt — the standardised security-contact file: a Contact line (mailto) and a Policy link, so vulnerability researchers reach a human instead of a void; AXO itself serves one, pointing at its security page, as should you. Your agent discovery manifest (agent.json), if you publish it at the well-known path rather than the root — one canonical location, cross-linked from the developers page either way.

Beyond those, publish what your stack's conventions genuinely use: payment-network and app-association files your platforms require (they typically self-manage), and a change-password URL file if your account system supports the standard. The test for adding a file: is there a class of programs that fetches this exact path by convention? If yes, it may belong. If the file is merely 'machine-readable and important', it belongs in your docs structure with links, not in the drawer.

What does not belong

Marketing documents, API dumps, backups, configuration exports, and anything containing secrets or internal paths — the drawer is public by design, fetched by strangers as its purpose. Also excluded: duplicates of files whose canonical home is elsewhere, published 'just in case' (two policy statements in two places will diverge, and well-known divergence is the worst kind). And abandoned experiments: the discovery format you trialled in a workshop two years ago is still answering at its standard address, stating terms you no longer hold.

Prune with the same care as publishing: when a file retires, remove it and note the removal in your infrastructure changelog. A 404 at a well-known path is an honest answer; a stale 200 is a false one. Consumers cache these files, so expect a tail of readers on old versions — another reason version fields and updated dates inside the files themselves matter.

Consistency across the drawer

The files corroborate each other: the policy's contact and the security contact need not be identical (different audiences) but must both be live; the manifest's pointers must match the policy's location; the identity facts (store name, canonical URL) must be one story everywhere. An agent assembling your store from the drawer should get a coherent organisation, because that assembly is increasingly how your store is known to the systems that route business.

Run the drawer as one review unit in the monthly spot-check: fetch every file, click every pointer, compare the identity facts, confirm the contacts answer. Five files, ten minutes, and the store's machine lobby is swept. The metaphor is apt — this directory is a lobby, and lobbies are judged in seconds by everyone who enters professionally.

Platform realities

Some platforms restrict what you can serve under /.well-known/ or reserve parts of it for their own files. Work within it: serve your policy at the exact path if at all possible (it is the drawer's most valuable file for agent commerce); if the platform truly blocks it, publish the policy at the closest conventional alternative, reference it from every surface, and record the platform limitation as a weighted item in your next platform evaluation — the same treatment as a missing cart API.

Where the platform does serve its own well-known files (payment association files are the usual case), leave them untouched and inventory them as platform-owned in your runbook, so your monthly review distinguishes your files (your responsibility) from theirs (your verification only).

The signal the drawer sends

Step back and consider what a kept drawer communicates to the systematic reader: this store maintains its machine-facing statements deliberately, at standard addresses, currently. That reader — an agent operator's diligence process, a partner's integration review — generalises from the drawer to the operation, fairly or not. In a channel where trust is assembled from artefacts, the drawer is among the cheapest trust you can buy: a handful of small files, each true, each current, each where convention says it should be.

Build it in that spirit: policy, security contact, manifest, platform files verified, nothing else. Then let the audit and the monthly drawer review keep it true.

The 5-action well-known drawer pass

  1. Publish the core files: agent-policy.json, security.txt with a live contact, and your discovery manifest at one canonical path.
  2. Verify platform files your stack places there; inventory them as platform-owned and never edit them by hand.
  3. Exclude everything else: no marketing, no dumps, no duplicates of documents whose home is elsewhere, nothing with secrets.
  4. Cross-check identity and contacts across all files: one store name, one canonical URL, every contact live.
  5. Review the drawer as one unit monthly: fetch each file, click each pointer, prune retirements to honest 404s.

Worked example: the security.txt that paid for the whole drawer

Example — fictional, for illustration. A fashion store tidies its well-known drawer as part of its policy launch: agent-policy.json published, manifest placed, and — almost as an afterthought — a security.txt with a monitored contact, replacing a three-year-old file pointing at a departed employee's inbox. Four months later a researcher finds a genuine vulnerability in the store's checkout integration and reports it to the security contact, privately, with a proof of concept. The store patches within the week. The researcher notes the working security.txt as why the report came to them instead of going to a disclosure forum.

The drawer review that quarter writes itself: the policy file opened agent relationships, the manifest shortened an integration, and the 'afterthought' file quietly prevented the worst week in the store's year. Small files at standard addresses are not bureaucracy. They are how a store is reachable by every class of professional stranger — including the ones you most need to hear from.

Related guides and the standing invitation

Companion reading for this topic: What Is /.well-known/agent-policy.json? · What Are agent.json and agents.json Discovery Files? · How Do You Write an Agent Policy File for Your Store? · Agent Policy vs robots.txt: What Is the Difference?.

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 /.well-known/ directory for?

It is the standardised prefix (RFC 8615) for site-wide documents that programs fetch at fixed conventional paths — no links or prior knowledge needed. For a store: agent policy, security contact, discovery manifests, and platform-required association files.

Which files should a store publish there?

agent-policy.json (terms for agents), security.txt (a live security contact and policy link), your agent discovery manifest at one canonical path, and the change-password file if your account system supports it. Verify, but do not hand-edit, platform-placed files.

What should never go in the drawer?

Anything secret or internal (it is public by design), marketing material, backups and dumps, and duplicates of documents whose canonical home is elsewhere. Retired files should be removed — an honest 404 beats a stale 200 at a standard address.

What if my platform restricts /.well-known/?

Serve the agent policy at the exact path if at all possible. If genuinely blocked, publish at the closest conventional alternative, reference it from every surface, and record the limitation as a scored item for your next platform evaluation.

How often should the directory be reviewed?

Monthly, as one unit, alongside the feed and policy checks: fetch every file, click every pointer, confirm contacts are live and identity facts agree across files.

← Back