{
  "service": "agent-audit",
  "version": "0.2.0",
  "report_version": "0.1",
  "stages": [
    {
      "id": "find",
      "name": "Find",
      "question": "Does a general agent find and pick the product for a realistic ask, with no hint?"
    },
    {
      "id": "understand",
      "name": "Understand",
      "question": "Given only the URL, can an agent tell what it does, when to use it, and how to call it?"
    },
    {
      "id": "first_call",
      "name": "First call",
      "question": "How fast does a cold agent make its first successful call?"
    },
    {
      "id": "access",
      "name": "Get access",
      "question": "If a key is needed, can the agent get one without a person?"
    },
    {
      "id": "reliable",
      "name": "Use reliably",
      "question": "Can an agent recover from errors and keep going?"
    },
    {
      "id": "healthy",
      "name": "Stay healthy",
      "question": "Is readiness getting better or worse since the last report?"
    }
  ],
  "stage_rule": "Counted checks only. Any essential fail → fail; any other fail or partial → partial; all pass → pass, but only if the stage's core measurement ran; otherwise not_measured.",
  "stage_core": {
    "find": [
      "journey.find"
    ],
    "understand": [
      "understand.homepage-text",
      "journey.understanding"
    ],
    "first_call": [
      "first_call.replay",
      "journey.first-call"
    ],
    "access": [
      "access.ladder",
      "journey.access"
    ],
    "reliable": [
      "reliable.error-contract",
      "journey.recovery"
    ],
    "healthy": [
      "healthy.diff"
    ]
  },
  "checks": [
    {
      "id": "find.robots",
      "stage": "find",
      "tier": "essential",
      "title": "Agents are allowed in robots.txt",
      "checks": "robots.txt does not block user-triggered agent fetchers (ChatGPT-User, Claude-User, Perplexity-User, meta-externalfetcher) or the search indexes agents use (OAI-SearchBot, Claude-SearchBot, PerplexityBot, Googlebot, bingbot) from / or /llms.txt. Training crawlers are listed but not counted.",
      "needs": "none",
      "fix": "Allow agent fetchers and search indexers in robots.txt. A 5xx robots.txt reads as 'disallow all' to crawlers.",
      "same_as": [
        "robots-txt"
      ]
    },
    {
      "id": "agents.directory-ready",
      "stage": "find",
      "tier": "recommended",
      "title": "The connector meets the agent directories' rules",
      "checks": "Reads the manifest's connector block (server URL, auth, legal URLs, and the tools from your MCP tools/list) and checks it against the machine-checkable rules of the directories personal agents draw on: the Claude directory (Claude Duet), the ChatGPT plugin directory (OpenAI Dots), the Muse Connector Platform (Meta Muse) and the Cursor Marketplace (xAI Grok Bot). agent-audit never connects to the MCP server. Rules: /v0/rules.",
      "needs": "manifest",
      "fix": "Fix the listed connector problems: a title and readOnlyHint, destructiveHint and openWorldHint on every tool, an https server URL, OAuth or no auth, privacy, terms, support and docs URLs, publication countries, and a public repo for Cursor."
    },
    {
      "id": "understand.homepage-text",
      "stage": "understand",
      "tier": "essential",
      "title": "The homepage answers without JavaScript",
      "checks": "GET / returns at least 500 characters of readable text in the initial HTML.",
      "needs": "none",
      "fix": "Server-render what the product does, when to use it, and one copyable first call. Agents read the initial HTML.",
      "same_as": [
        "content-no-js"
      ]
    },
    {
      "id": "understand.markdown",
      "stage": "understand",
      "tier": "essential",
      "title": "Markdown on request",
      "checks": "GET / with Accept: text/markdown returns markdown, with Vary: Accept.",
      "needs": "none",
      "fix": "Return a markdown version of the homepage when Accept includes text/markdown, and send Vary: Accept.",
      "same_as": [
        "markdown-negotiation-vary"
      ]
    },
    {
      "id": "understand.llms-txt",
      "stage": "understand",
      "tier": "recommended",
      "title": "llms.txt index",
      "checks": "GET /llms.txt returns a text index with links to the docs, OpenAPI, and skill.",
      "needs": "none",
      "fix": "Publish /llms.txt with absolute links to your docs, OpenAPI, and SKILL.md. It is an index, not discovery: link it from the homepage.",
      "same_as": [
        "llms-txt"
      ]
    },
    {
      "id": "understand.openapi",
      "stage": "understand",
      "tier": "recommended",
      "title": "OpenAPI with described operations",
      "checks": "An OpenAPI document is published (manifest path, /openapi.json, /openapi.yaml, and other common paths) and every operation has a summary or description. Some described is partial.",
      "needs": "none",
      "fix": "Publish OpenAPI at /openapi.json or /openapi.yaml, link it from the homepage, and give every operation a summary and a when-to-use description.",
      "same_as": [
        "openapi-spec",
        "api-schema-analysis"
      ]
    },
    {
      "id": "understand.skill",
      "stage": "understand",
      "tier": "recommended",
      "title": "SKILL.md for agents",
      "checks": "A SKILL.md (Agent Skills format, with name and description frontmatter) is published.",
      "needs": "none",
      "fix": "Publish /SKILL.md: name and description frontmatter, when to use it, and the curl call. Agent Skills is read by Claude, Codex, Cursor, Copilot, and Gemini CLI."
    },
    {
      "id": "understand.docs-show-first-call",
      "stage": "understand",
      "tier": "essential",
      "title": "The front door shows the first call",
      "checks": "The homepage (or its markdown version) names the first-call path from the manifest. llms.txt or OpenAPI alone is partial.",
      "needs": "manifest",
      "fix": "Put the first call (method, path, and a copyable curl example) on the homepage itself. Docs are the agent's front door."
    },
    {
      "id": "first_call.replay",
      "stage": "first_call",
      "tier": "essential",
      "title": "The documented first call works",
      "checks": "agent-audit replays the manifest's first call (GET, no key) and checks the status, JSON, and success fields.",
      "needs": "manifest",
      "fix": "Make the documented first call return its success JSON exactly as documented, with no key, signup, or browser step."
    },
    {
      "id": "access.ladder",
      "stage": "access",
      "tier": "essential",
      "title": "How an agent gets access",
      "checks": "Places the product on the access ladder: no key needed, agent registration (auth.md or agent_auth in RFC 9728 metadata), device flow (RFC 8628), client registration, or human signup.",
      "needs": "none",
      "fix": "Offer a keyless first call, or let agents obtain credentials themselves: publish /auth.md or RFC 9728 metadata with agent registration. A dashboard-only key blocks agents."
    },
    {
      "id": "access.typed-401",
      "stage": "access",
      "tier": "recommended",
      "title": "A missing key gets a typed answer",
      "checks": "The first call without a key returns 401 or 403 JSON with a code and a fix that says how to get a key.",
      "needs": "auth",
      "fix": "Return 401 JSON with a machine code, a message, and a fix that links to the exact way an agent gets a key. Send WWW-Authenticate."
    },
    {
      "id": "access.distinct-auth-errors",
      "stage": "access",
      "tier": "recommended",
      "title": "Missing and invalid keys are told apart",
      "checks": "A missing key and an invalid key return different typed error codes.",
      "needs": "auth",
      "fix": "Use distinct codes such as api_key_missing and api_key_invalid so an agent knows whether to fetch a key or fix the one it has."
    },
    {
      "id": "agents.edge-access",
      "stage": "access",
      "tier": "essential",
      "title": "Agent traffic is let in",
      "checks": "Every response agent-audit fetched is checked for a bot wall: a challenge or block page from Cloudflare, Vercel, DataDome, Imperva, HUMAN, AWS WAF, Sucuri or Akamai. The probes come from a cloud address with a declared agent user agent, as the traffic of Muse, Dots, Duet and Grok Bot does.",
      "needs": "none",
      "fix": "Let identified agents in: allow verified bots and signed agents (Web Bot Auth) through your WAF, keep challenges off the pages and API paths agents use, and answer automated clients with JSON errors, not challenge pages."
    },
    {
      "id": "agents.human-checks",
      "stage": "access",
      "tier": "recommended",
      "title": "No CAPTCHA on the way",
      "checks": "The pages agent-audit fetched carry no CAPTCHA widget or script (hCaptcha, reCAPTCHA, Turnstile, Arkose, Friendly Captcha). Claude Duet cannot pass one; the other personal agents hand it to their user.",
      "needs": "none",
      "fix": "Keep CAPTCHAs off the task path agents use. Offer a keyless call, an API key, OAuth, or agent registration instead of a human check."
    },
    {
      "id": "reliable.error-contract",
      "stage": "reliable",
      "tier": "essential",
      "title": "A bad call returns a usable error",
      "checks": "A deliberately bad call (the first call without its inputs) returns 4xx JSON with a code, a message, retryable, and a fix hint.",
      "needs": "manifest",
      "fix": "Return 4xx JSON with code, message, retryable (boolean), and fix. Never 200 for an error, never HTML on an API path.",
      "same_as": [
        "json-error-responses"
      ]
    },
    {
      "id": "reliable.api-404",
      "stage": "reliable",
      "tier": "essential",
      "title": "Unknown API paths return JSON 404",
      "checks": "An unknown path under the API base returns 404 with a JSON body and a code.",
      "needs": "none",
      "fix": "Return 404 JSON (code, message, fix pointing to the docs) for unknown API paths. A soft 200 or an HTML page misleads agents.",
      "same_as": [
        "agent-friendly-404"
      ]
    },
    {
      "id": "reliable.rate-limit-signal",
      "stage": "reliable",
      "tier": "recommended",
      "title": "Rate limits are visible",
      "checks": "The first call's response carries RateLimit or X-RateLimit headers. agent-audit never burst-tests a host.",
      "needs": "manifest",
      "fix": "Send RateLimit-Policy and RateLimit headers (or X-RateLimit-*) on success, and 429 with Retry-After when the limit is hit."
    },
    {
      "id": "reliable.version-signal",
      "stage": "reliable",
      "tier": "recommended",
      "title": "Responses carry a version",
      "checks": "The first call's JSON has a version field, or the response has an API version header, or the path is versioned. OpenAPI info.version alone is partial.",
      "needs": "manifest",
      "fix": "Add a version field (or an api-version header) to responses and keep changes additive."
    },
    {
      "id": "reliable.stable-shape",
      "stage": "reliable",
      "tier": "recommended",
      "title": "The response shape is stable",
      "checks": "Three replays of the first call return the same status and the same top-level JSON keys. A replay that fails fails this check. A first call slower than 4 s is replayed once.",
      "needs": "manifest",
      "fix": "Keep the response envelope deterministic. Put variable data inside stable keys."
    },
    {
      "id": "reliable.latency",
      "stage": "reliable",
      "tier": "recommended",
      "title": "The first call is fast",
      "checks": "Slowest of the replays (each may take up to 11 s): pass at or under 3 s, partial at or under 10 s, fail above or when a replay fails.",
      "needs": "manifest",
      "fix": "Keep reads fast. Jobs over about 10 s should return a job id and a pollable status URL."
    },
    {
      "id": "journey.find",
      "stage": "find",
      "tier": "essential",
      "title": "Cold agents find and pick it",
      "checks": "Unhinted cold agents (full mode): found, picked, called, and cited per run. k/n with a Wilson interval only when an ask has n of at least 5.",
      "needs": "journeys",
      "fix": "Honest discovery fixes only: pages that name the job agents search for, linked docs, OpenAPI, llms.txt, and real listings."
    },
    {
      "id": "journey.understanding",
      "stage": "understand",
      "tier": "essential",
      "title": "A cold agent understands it from the docs",
      "checks": "Hinted cold agents (bare URL) fill a fixed form before calling: endpoint, methods, required inputs, key needed, rate limited. Graded by code against the manifest's understanding: the endpoint path must match, every method the agent names must be valid, required inputs must match exactly, and the two booleans must match.",
      "needs": "journeys",
      "fix": "State the endpoint, inputs, auth, and limits plainly on the front door and in SKILL.md."
    },
    {
      "id": "journey.first-call",
      "stage": "first_call",
      "tier": "essential",
      "title": "Time to first successful call",
      "checks": "Hinted cold agents: wall-clock time to first successful call (TTFC, from started_at to first_success_at), tool calls, and whether a human had to step in. Median and p90 only with at least 5 timed successful calls.",
      "needs": "journeys",
      "fix": "Shorten the path from the URL to a working call: one copyable curl on the front door, no signup before the first call."
    },
    {
      "id": "journey.access",
      "stage": "access",
      "tier": "essential",
      "title": "A cold agent gets a key without a person",
      "checks": "Hinted cold agents that need a key: obtained or not, and every human touch on the way (signup, email, captcha, dashboard, payment, approval).",
      "needs": "journeys",
      "fix": "Remove human touches from key issuance: a keyless tier, an anonymous claimable key, or agent registration."
    },
    {
      "id": "journey.recovery",
      "stage": "reliable",
      "tier": "recommended",
      "title": "A cold agent recovers from errors",
      "checks": "Hinted cold agents: errors hit vs recovered using only the error body.",
      "needs": "journeys",
      "fix": "Make every error body say what to change: code, retryable, and a fix hint."
    },
    {
      "id": "healthy.diff",
      "stage": "healthy",
      "tier": "essential",
      "title": "No regressions since the last report",
      "checks": "Compares this report with the previous one you pass: stages, checks, fixes, latency, and response shape.",
      "needs": "previous",
      "fix": "Pass the previous report (POST previous) on every run, and fix regressions before new work."
    }
  ],
  "access_ladder": [
    {
      "id": "none_needed",
      "means": "The first call needs no key.",
      "result": "pass"
    },
    {
      "id": "agent_registration",
      "means": "Agents can register or obtain a claimable key themselves (auth.md, or agent_auth in RFC 9728 metadata).",
      "result": "pass"
    },
    {
      "id": "device_flow",
      "means": "OAuth device flow (RFC 8628): headless, but a person approves once.",
      "result": "partial"
    },
    {
      "id": "client_registration",
      "means": "OAuth client registration (CIMD or DCR), then a person signs in.",
      "result": "partial"
    },
    {
      "id": "human_signup",
      "means": "A key exists, but no machine path to one was found: a person signs up.",
      "result": "fail"
    },
    {
      "id": "unknown",
      "means": "Not enough information. Publish a manifest that states the auth type.",
      "result": "not_measured"
    }
  ],
  "is_agentic": {
    "label": "Is Agentic score, by Vercel Labs/Ora",
    "how": "Read-only GET of stored reports; agent-audit never starts a scan. Failed and partial essential/recommended issues become checks. A fresh agent-audit probe of the same thing supersedes them.",
    "stage_map": {
      "brand-search-accuracy": "find",
      "json-ld": "find",
      "org-schema-completeness": "find",
      "metadata-completeness": "find",
      "trust-anchors": "find",
      "sitemap": "find",
      "robots-txt": "find",
      "content-no-js": "understand",
      "markdown-negotiation-vary": "understand",
      "openapi-spec": "understand",
      "agent-instruction": "understand",
      "api-schema-analysis": "understand",
      "agentic-search-specific": "understand",
      "developer-portal": "understand",
      "public-api-docs": "understand",
      "llms-txt": "understand",
      "public-api": "first_call",
      "function-calling-compat": "first_call",
      "cli-tool": "first_call",
      "mcp-server": "first_call",
      "agent-friendly-404": "reliable",
      "json-error-responses": "reliable"
    },
    "shown_not_counted": {
      "cli-tool": "Shown, not counted. agent-audit follows HTTP JSON plus SKILL.md first; a CLI only helps local-file, multi-step, or auth-heavy jobs. AgentReady AR-ACT-10 disagrees, and that question is open.",
      "mcp-server": "Shown, not counted. An MCP server helps chat-app users; it is not required for an agent-first HTTP API."
    }
  },
  "labels": {
    "probes": "HTTP probes sent by agent-audit from its own server. Not a consumer app and not a real agent.",
    "journeys": "generic cold agent, not the consumer app",
    "readiness": "Is Agentic score, by Vercel Labs/Ora"
  },
  "combined_score": null
}
