Inspiration

Every agent demo I see can talk. Almost none of them can be checked.

That matters most for boring, exact work. Auditing a receipt is not a reasoning problem: the lines are printed, the total is printed, and either they agree or they don't. A language model is the wrong tool for that, because a wrong answer looks exactly like a right one. Arithmetic does not have that failure mode.

So instead of building another receipt app, I published the audit itself as a capability — one page, one network, one function, callable by any agent.

What it does

The site is an agentic website in the sense of the Worldwide Agentic Web MVP profile: a normal web page that also declares, in a machine-readable file, what it can do and how to call it.

agent-manifest.json declares one agent network, receipt_audit, one front agent (receipt_auditor), and three typed tools:

  • read_site (read) — what this page actually is
  • audit_receipt (read) — the audit
  • show_audit (write) — render a result on the page so a human can see it

audit_receipt takes line items and returns: the item sum, the printed total, the difference, any item name that appears more than once, and the amount plausibly overcharged from those duplicates.

Judgment call that shapes everything: it refuses to guess. It never estimates a fair market price, never infers a "should have cost", and cannot read an image. Ask it whether 45 yuan is fair for twelve cartons of milk and it says that is outside what it does. A capability that lies confidently is worse than one with a narrow, stated edge.

How another agent calls it

The audit is shared through the site's action bridge with callerOrigins: ["*"]. That looks reckless and is deliberate: audit_receipt is a pure function over the caller's own arguments. It reads no page state, returns nothing about any visitor, and holds no session. Sharing it with every origin costs nothing and is the whole reason the capability is worth publishing.

Everything else stays closed. peer_policy is closed, the site imports no peer networks, and read_site / show_audit are not bridged. An outside agent gets exactly one thing: the arithmetic.

How it is built

Standard open web technology only. No framework, no build step in the browser, no server session.

  • The page is plain HTML/CSS/JS. js/audit-core.js is a single audit implementation used by both the page and the bridge, so a human and an agent get bit-identical results.
  • The runtime is a self-contained static bundle, served from the same origin. There is no server process to scrape, because there is no server state.
  • agent-manifest.json and receipt_audit.network.json are served with Access-Control-Allow-Origin: * so any agent site can read the descriptor, and /.well-known/nsdeploy.json is present for discovery.
  • Deployed on GitHub Pages, which serves static files with permissive CORS and no cold start.

Verification, not assertion: the official check_partner.mjs from the reference repo reports "OK: can be called from other sites" against the live URL. The site also passes the local conformance gate — descriptor loads, capabilities are grounded in the page, external access is scoped.

Challenges

The first honest version was too closed to be useful. My initial build declared the capability but bridged nothing, so another agent could read the manifest and then discover it could call nothing. The reference tool warned me exactly that: the bridge had no shared action. Fixing it meant deciding what is safe to share, not just how to share it — which is why the answer is one pure function rather than the whole site.

Static hosting and CORS pull in opposite directions. A spec that requires cross-origin descriptor reads is not satisfied by a static host that sets no CORS headers. GitHub Pages happens to allow *, so I moved the deployment there instead of a host that would have quietly broken the one property the spec is about.

The temptation to make the audit smarter. Adding price comparison would have made the demo flashier and the capability worse, because it would have introduced a second, unverifiable claim into a tool whose value is that it can be re-checked. I kept the refusal and wrote it into the manifest description and the page copy.

Reproduction path

Fully reproducible in two minutes:

  1. Open https://qq-exe.github.io/receipt-audit-network/ and press Audit — five lines, total 128.50, duplicate eggs flagged, 18.50 overcharged.
  2. Fetch agent-manifest.json and receipt_audit.network.json from the same origin with curl to confirm CORS and the declared tools.
  3. Run the reference partner checker against https://qq-exe.github.io/receipt-audit-network/receipt_audit — it should report the network as callable.
  4. Clone the repo, python -m http.server, and diff the audit output against js/audit-core.js run directly in Node.

What's next

  • Publish a second capability on the same network (read_receipt_image, vision-based) and let the manifest show an agent choosing between a cheap exact path and an expensive fuzzy one.
  • Build one peer site that consumes this audit, so peer_policy stops being closed and the network demonstrates both directions.
  • Extract the audit as a reusable building block other sites can import, which is the part of the mission that compounds.

Auditing should be a utility, not an app.

Built With

Share this project:

Updates

Submission history