{"openapi":"3.1.0","info":{"title":"Airdy readiness API","version":"1.1.0","description":"Public, bounded readiness scans and evidence-based browser evaluations. No transaction completion is implied. Response contract 2026-12-04. Additive response fields may be introduced; scoring/protocol versions are distinct. Breaking contract changes require a new major version."},"servers":[{"url":"/"}],"paths":{"/api/scan":{"get":{"operationId":"scanSite","description":"Scan a website or MCP endpoint. Add stream=1 for NDJSON progress. Repeated requests return the saved report for this scanner revision, retaining its original runId and scannedAt. reused=true and executionUsage describe the free reuse; usage belongs to the original scan. Search flags do not bypass reuse. A concurrent scan returns 409 and Retry-After: 5.","security":[],"parameters":[{"name":"site","in":"query","required":true,"schema":{"type":"string"}},{"name":"stream","in":"query","required":false,"schema":{"type":"string"}},{"name":"mode","in":"query","required":false,"schema":{"type":"string"}},{"name":"search","in":"query","required":false,"schema":{"type":"string","enum":["0","1","false","true"]},"description":"Use 0 or false to disable paid search. Technical scans then make no model/search calls."}],"responses":{"200":{"description":"Successful result or streamed events.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Report"}}}},"400":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"403":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"404":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"409":{"description":"Bounded request error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"}}}},"429":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds before retrying."}}},"500":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"503":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}}}}},"/api/score":{"get":{"operationId":"getScore","description":"Read the latest saved report without scanning.","security":[],"parameters":[{"name":"site","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful result or streamed events.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Report"}}}},"400":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"403":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"404":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"429":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds before retrying."}}},"500":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"503":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}}}}},"/api/checks":{"get":{"operationId":"getChecks","description":"Read scoring definitions.","security":[],"parameters":[],"responses":{"200":{"description":"Successful result or streamed events.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"403":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"404":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"429":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds before retrying."}}},"500":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"503":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}}}}},"/api/discover":{"get":{"operationId":"discoverSites","description":"Find saved ranked sites by domain text, interface profile and declared business category.","security":[],"parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string"}},{"name":"profile","in":"query","required":false,"schema":{"type":"string"}},{"name":"category","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful result or streamed events.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"403":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"404":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"429":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds before retrying."}}},"500":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"503":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}}}},"post":{"operationId":"discoverProducts","description":"Semantic matching over recent eligible saved site evidence. Uses cached 256-dimensional text-embedding-3-small vectors and gpt-6-luna. At most twenty new documents indexed per request; partial indexing is disclosed. API estimates exclude account credits and hosting.","security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"task":{"type":"string","minLength":5,"maxLength":500}},"additionalProperties":false,"required":["task"]}}}},"responses":{"200":{"description":"Successful JSON result.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"401":{"description":"Invalid, expired, replayed or revoked proof.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"403":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"404":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"409":{"description":"Conflicting or already recorded evidence.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"422":{"description":"Outcome or quotation does not match the recorded run.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"429":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds before retrying."}}},"500":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"503":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}}}}},"/api/reports":{"get":{"operationId":"getReport","description":"Read a stable saved report.","security":[],"parameters":[{"name":"run","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful result or streamed events.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Report"}}}},"400":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"403":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"404":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"429":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds before retrying."}}},"500":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"503":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}}}}},"/api/compare":{"get":{"operationId":"compareReports","description":"Compare two to four saved domains separated by commas.","security":[],"parameters":[{"name":"sites","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful result or streamed events.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"403":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"404":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"429":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds before retrying."}}},"500":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"503":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}}}}},"/api/journeys":{"post":{"operationId":"runJourney","description":"Stream a real public browser journey. Stops before submitting data. Optional enrolled-agent proof headers bind this run to its signing key; unsigned runs cannot produce verified agent feedback.","security":[{},{"AgentId":[],"AgentChallenge":[],"AgentSignature":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"site":{"type":"string"},"task":{"type":"string","enum":["explain","pricing","api","start","support","custom","subscribe","book","buy"]},"goal":{"type":"string","minLength":10,"maxLength":500}},"additionalProperties":false,"required":["site","task"]}}}},"responses":{"200":{"description":"Successful result or streamed events.","content":{"application/x-ndjson":{"schema":{"$ref":"#/components/schemas/StreamEvent"}}}},"400":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"403":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"404":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"429":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds before retrying."}}},"500":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"503":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}}}},"get":{"operationId":"getJourney","description":"Read a saved run by id.","security":[],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Saved run.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Journey"}}}},"400":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"403":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"404":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"429":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds before retrying."}}},"500":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"503":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}}}}},"/api/evaluations":{"post":{"operationId":"runEvaluation","description":"Stream multi-goal sequential evaluations across browser and native read-tool runtimes. Up to twelve runs explicitly, six by default. Budget stops before the next run when recorded API estimates reach it; a bounded last run can exceed the estimate. Global journey limits also apply.","security":[],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"site":{"type":"string"},"task":{"type":"string"},"goal":{"type":"string"},"repeats":{"type":"integer","minimum":1,"maximum":5},"levels":{"type":"array","uniqueItems":true,"items":{"type":"string","enum":["need","brand","docs","exact"]}},"models":{"type":"array","uniqueItems":true,"items":{"type":"string","enum":["gpt-6-luna","gpt-6.1-terra"]}},"docs":{"type":"string"},"brand":{"type":"string"},"runtimes":{"type":"array","minItems":1,"uniqueItems":true,"items":{"type":"string","enum":["browser","tools"]}},"goals":{"type":"array","minItems":1,"maxItems":5,"items":{"type":"object","additionalProperties":false,"required":["task"],"properties":{"task":{"type":"string"},"goal":{"type":"string","maxLength":500}}}},"maxRuns":{"type":"integer","minimum":1,"maximum":12,"default":6},"budgetUsd":{"type":"number","minimum":0.001,"maximum":0.25,"default":0.05}},"additionalProperties":false,"required":["site"]}}}},"responses":{"200":{"description":"Successful result or streamed events.","content":{"application/x-ndjson":{"schema":{"$ref":"#/components/schemas/StreamEvent"}}}},"400":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"403":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"404":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"429":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds before retrying."}}},"500":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"503":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}}}},"get":{"operationId":"getEvaluation","description":"Read a saved run by id.","security":[],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Saved run.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Evaluation"}}}},"400":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"403":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"404":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"429":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds before retrying."}}},"500":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"503":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}}}}},"/api/protocol-checks":{"get":{"operationId":"getProtocolChecks","description":"Read supplementary protocol definitions and their verification scope. They do not change technical scoring version 2.","security":[],"responses":{"200":{"description":"Protocol definitions.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}}}},"/api/agents/enroll":{"post":{"operationId":"enrollAgent","description":"Operator-enroll a public P-256 signing key, or revoke its agentId. Private keys are rejected. Enrollment proves operator approval and key possession, not independent organizational identity.","security":[{"Operator":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"responses":{"200":{"description":"Successful JSON result.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"401":{"description":"Invalid, expired, replayed or revoked proof.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"403":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"404":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"409":{"description":"Conflicting or already recorded evidence.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"422":{"description":"Outcome or quotation does not match the recorded run.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"429":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds before retrying."}}},"500":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"503":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}}}}},"/api/agents/challenge":{"post":{"operationId":"createAgentChallenge","description":"Request a five-minute, single-use challenge. bodyDigest is base64url SHA-256 of recursively key-sorted canonical JSON. The returned message must be signed unchanged using ECDSA P-256 SHA-256 (raw 64-byte signature, base64url). Feedback challenges require a finished run owned by the enrolled agent.","security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"agentId":{"type":"string"},"action":{"type":"string","enum":["journey","feedback"]},"site":{"type":"string"},"runId":{"type":"string"},"bodyDigest":{"type":"string"}},"additionalProperties":false,"required":["agentId","action","site","bodyDigest"]}}}},"responses":{"200":{"description":"Successful JSON result.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"401":{"description":"Invalid, expired, replayed or revoked proof.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"403":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"404":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"409":{"description":"Conflicting or already recorded evidence.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"422":{"description":"Outcome or quotation does not match the recorded run.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"429":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds before retrying."}}},"500":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"503":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}}}}},"/api/feedback":{"post":{"operationId":"submitAgentFeedback","description":"Submit signed feedback for the same agent-owned run and site. Outcome and quotations must match server evidence. One feedback per agent/run. No effect on technical scores or ranking. Signed receipts use ES256; revoked keys invalidate trust.","security":[{"AgentId":[],"AgentChallenge":[],"AgentSignature":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"site":{"type":"string"},"runId":{"type":"string"},"outcome":{"type":"string","enum":["completed","blocked","incomplete","needs-approval"]},"comment":{"type":"string","minLength":10,"maxLength":1000},"evidence":{"type":"array","maxItems":6,"items":{"type":"object","properties":{"url":{"type":"string"},"quote":{"type":"string"}},"additionalProperties":false,"required":["url","quote"]}},"recommendation":{"type":"string","enum":["yes","no","unsure"]},"frictions":{"type":"array","maxItems":8,"items":{"type":"string","minLength":3,"maxLength":240}},"layers":{"type":"object","maxProperties":8,"propertyNames":{"enum":["discovery","access","content","integration","reliability","commerce","navigation","answer"]},"additionalProperties":{"type":"string","enum":["pass","friction","blocked","not-tested"]}},"dispute":{"type":"object","additionalProperties":false,"required":["scanRunId","checkId","recordedStatus","reason"],"properties":{"scanRunId":{"type":"integer","minimum":1},"checkId":{"type":"string","maxLength":100},"recordedStatus":{"type":"string"},"reason":{"type":"string","minLength":10,"maxLength":1000}}}},"additionalProperties":false,"required":["site","runId","outcome","comment","evidence"]}}}},"responses":{"201":{"description":"Successful JSON result.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"401":{"description":"Invalid, expired, replayed or revoked proof.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"403":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"404":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"409":{"description":"Conflicting or already recorded evidence.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"422":{"description":"Outcome or quotation does not match the recorded run.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"429":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds before retrying."}}},"500":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"503":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}}}},"get":{"operationId":"getAgentFeedback","description":"Read active-key feedback and source evidence for a site. Key possession and run evidence are verified; opinions are not independent endorsements.","security":[],"parameters":[{"name":"site","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Agent feedback.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"403":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"404":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"429":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds before retrying."}}},"500":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"503":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}}}}},"/api/feedback/verify":{"get":{"operationId":"verifyFeedback","description":"Verify the agent signature, issuer receipt, current key status and original run binding. Returns public proof materials for independent cryptographic verification.","security":[],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Verification result and public proofs.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"403":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"404":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"429":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds before retrying."}}},"500":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}},"503":{"description":"Request rejected, unavailable or failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":false}}}}}}},"/api/agents/keys":{"get":{"operationId":"getFeedbackReceiptKeys","description":"Public ES256 receipt verification keys. Contains no private signing material.","security":[],"responses":{"200":{"description":"Public JWK set.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}}}},"/api/docs/search":{"get":{"operationId":"searchDocs","description":"Search local documentation without model calls.","security":[],"parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Saved evidence result.","headers":{"Airdy-Contract-Version":{"schema":{"type":"string","const":"2026-12-04"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Docs"}}}},"400":{"description":"Bounded request error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Bounded request error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Bounded request error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/resources":{"get":{"operationId":"searchResources","description":"Filter observed resources from eligible saved sites. Payment advertisements do not establish execution.","security":[],"parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string"}},{"name":"kind","in":"query","required":false,"schema":{"type":"string"}},{"name":"site","in":"query","required":false,"schema":{"type":"string"}},{"name":"payable","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Saved evidence result.","headers":{"Airdy-Contract-Version":{"schema":{"type":"string","const":"2026-12-04"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Resources"}}}},"400":{"description":"Bounded request error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Bounded request error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Bounded request error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/insights":{"get":{"operationId":"getInsights","description":"Essential checks, goal/protocol groups and hypothetical non-additive gains.","security":[],"parameters":[{"name":"run","in":"query","required":false,"schema":{"type":"string"}},{"name":"site","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Saved evidence result.","headers":{"Airdy-Contract-Version":{"schema":{"type":"string","const":"2026-12-04"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Insights"}}}},"400":{"description":"Bounded request error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Bounded request error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Bounded request error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/remediation":{"get":{"operationId":"getRemediation","description":"Generate reviewable files from saved evidence without editing the target.","security":[],"parameters":[{"name":"run","in":"query","required":false,"schema":{"type":"string"}},{"name":"site","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Saved evidence result.","headers":{"Airdy-Contract-Version":{"schema":{"type":"string","const":"2026-12-04"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Remediation"}}}},"400":{"description":"Bounded request error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Bounded request error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Bounded request error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/attestations":{"get":{"operationId":"getScorecard","description":"Issuer-signed scorecard and hash projection. Canonicalize recursively key-sorted JSON; verify ES256 signature, digest, issuer and expiry.","security":[],"parameters":[{"name":"run","in":"query","required":false,"schema":{"type":"string"}},{"name":"site","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Saved evidence result.","headers":{"Airdy-Contract-Version":{"schema":{"type":"string","const":"2026-12-04"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Scorecard"}}}},"400":{"description":"Bounded request error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Bounded request error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Bounded request error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/rechecks":{"get":{"operationId":"getRecheck","description":"Read selected fresh checks saved separately from ranked scans.","security":[],"parameters":[{"name":"id","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Saved evidence result.","headers":{"Airdy-Contract-Version":{"schema":{"type":"string","const":"2026-12-04"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Recheck"}}}},"400":{"description":"Bounded request error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Bounded request error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Bounded request error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"rerunChecks","description":"Fresh technical audit for selected check results and their shared discovery dependencies. No paid search or ranked score update.","security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["runId","checks"],"properties":{"runId":{"type":"integer","minimum":1},"checks":{"type":"array","minItems":1,"maxItems":6,"uniqueItems":true,"items":{"type":"string"}}}}}}},"responses":{"200":{"description":"Result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Recheck"}}}},"400":{"description":"Bounded request error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Bounded request error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Bounded request error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Bounded request error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Bounded request error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Bounded request error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds before retrying."}}},"503":{"description":"Bounded request error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/check-catalog":{"get":{"operationId":"getCheckCatalog","description":"Read maturity/release controls; core stable scoring-v2 and advisory unscored protocol-v3. No independent calibration implied.","security":[],"parameters":[],"responses":{"200":{"description":"Saved evidence result.","headers":{"Airdy-Contract-Version":{"schema":{"type":"string","const":"2026-12-04"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Bounded request error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Bounded request error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Bounded request error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/badge":{"get":{"operationId":"getBadge","description":"SVG badge for a saved technical score and coverage. Link to the saved report; it is not an endorsement.","security":[],"parameters":[{"name":"run","in":"query","required":false,"schema":{"type":"string"}},{"name":"site","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Saved evidence result.","headers":{"Airdy-Contract-Version":{"schema":{"type":"string","const":"2026-12-04"}}},"content":{"image/svg+xml":{"schema":{"type":"string"}}}},"400":{"description":"Bounded request error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Bounded request error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Bounded request error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/agents/register":{"post":{"operationId":"registerAgent","description":"Self-service one-use signing-key proof, rate limited. Does not verify uniqueness, human/AI status or organizational identity. Revoked keys cannot reactivate themselves.","security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","additionalProperties":false,"required":["name","publicKey"],"properties":{"name":{"type":"string","minLength":2,"maxLength":100},"publicKey":{"$ref":"#/components/schemas/PublicJwk"}}},{"type":"object","additionalProperties":false,"required":["challengeId","signature"],"properties":{"challengeId":{"type":"string"},"signature":{"type":"string"}}}]}}}},"responses":{"200":{"description":"Result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Registration"}}}},"400":{"description":"Bounded request error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Bounded request error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Bounded request error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Bounded request error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Bounded request error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Bounded request error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds before retrying."}}},"503":{"description":"Bounded request error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"securitySchemes":{"Operator":{"type":"http","scheme":"bearer","description":"Operator-only agent enrollment/revocation secret."},"AgentId":{"type":"apiKey","in":"header","name":"X-Airdy-Agent"},"AgentChallenge":{"type":"apiKey","in":"header","name":"X-Airdy-Challenge"},"AgentSignature":{"type":"apiKey","in":"header","name":"X-Airdy-Signature","description":"ES256 signature of the server-issued canonical proof message. Bound to action, origin, site, body digest, run digest and five-minute one-use nonce."}},"schemas":{"PublicJwk":{"type":"object","required":["kty","crv","x","y"],"properties":{"kty":{"const":"EC"},"crv":{"const":"P-256"},"x":{"type":"string","pattern":"^[A-Za-z0-9_-]{43}$"},"y":{"type":"string","pattern":"^[A-Za-z0-9_-]{43}$"}},"not":{"anyOf":[{"required":["d"]},{"required":["k"]},{"required":["p"]},{"required":["q"]},{"required":["dp"]},{"required":["dq"]},{"required":["qi"]},{"required":["oth"]}]},"additionalProperties":true},"Error":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":true},"Check":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"category":{"type":"string"},"status":{"type":"string","enum":["pass","fail","review","skipped","not-applicable"]},"detail":{"type":"string"},"evidence":{"type":"array","items":{"type":"string"}},"scored":{"type":"boolean"},"fix":{"type":["string","null"]},"verification":{"type":"string"},"protocol":{"type":"string"}},"required":["id","name","status","detail"],"additionalProperties":true},"Summary":{"type":"object","properties":{"score":{"type":["integer","null"],"minimum":0,"maximum":100},"coverage":{"type":"integer","minimum":0,"maximum":100},"passed":{"type":"integer"},"evaluated":{"type":"integer"},"unknown":{"type":"integer"},"method":{"type":"integer"},"dimensions":{"type":"array","items":{"type":"object","additionalProperties":true}}},"required":["score","coverage","passed","evaluated","unknown"],"additionalProperties":true},"Report":{"type":"object","properties":{"site":{"type":"string"},"url":{"type":"string"},"runId":{"type":"integer"},"auditVersion":{"type":"integer"},"profile":{"type":"string"},"scannedAt":{"type":"string","format":"date-time"},"reused":{"type":"boolean"},"executionUsage":{"$ref":"#/components/schemas/Usage"},"checks":{"type":"array","items":{"$ref":"#/components/schemas/Check"}},"summary":{"$ref":"#/components/schemas/Summary"},"protocols":{"type":"object","properties":{"version":{"type":"integer"},"checks":{"type":"array","items":{"$ref":"#/components/schemas/Check"}},"affectsTechnicalScore":{"type":"boolean"},"note":{"type":"string"}},"required":[],"additionalProperties":true}},"required":["site","runId","checks","summary"],"additionalProperties":true},"Usage":{"type":"object","properties":{"estimatedUsd":{"type":"number"},"currency":{"const":"USD"},"modelCalls":{"type":"integer"},"searchRequests":{"type":"integer"},"embeddingRequests":{"type":"integer"},"inputTokens":{"type":"integer"},"outputTokens":{"type":"integer"},"browserMs":{"type":"integer"},"browserOverageUsd":{"type":"number"},"complete":{"type":"boolean"},"pricedAt":{"type":"string"},"note":{"type":"string"}},"required":["estimatedUsd","modelCalls","searchRequests","complete"],"additionalProperties":true},"Evidence":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"quote":{"type":"string"}},"required":["url","quote"],"additionalProperties":true},"Assessment":{"type":"object","properties":{"fulfilled":{"type":"boolean"},"missing":{"type":"array","items":{"type":"string"}},"unsupported":{"type":"array","items":{"type":"string"}}},"required":["fulfilled","missing","unsupported"],"additionalProperties":true},"Journey":{"type":"object","properties":{"id":{"type":"string"},"site":{"type":"string"},"task":{"type":"string"},"goal":{"type":"string"},"status":{"type":"string","enum":["running","completed","blocked","incomplete","needs-approval","error","unavailable","skipped","not-discovered"]},"message":{"type":"string"},"answer":{"type":"object","additionalProperties":false,"required":["summary","plans","notes"],"properties":{"summary":{"type":"array","minItems":1,"maxItems":4,"items":{"type":"object","additionalProperties":false,"required":["text","sources"],"properties":{"text":{"type":"string","maxLength":700},"sources":{"type":"array","minItems":1,"maxItems":6,"items":{"type":"integer","minimum":0}}}}},"plans":{"type":"array","maxItems":10,"items":{"type":"object","additionalProperties":false,"required":["name","sources","pricing","includes"],"properties":{"name":{"type":"string","maxLength":100},"sources":{"type":"array","minItems":1,"maxItems":6,"items":{"type":"integer","minimum":0}},"pricing":{"type":"array","maxItems":8,"items":{"type":"object","additionalProperties":false,"required":["text","sources"],"properties":{"text":{"type":"string","maxLength":700},"sources":{"type":"array","minItems":1,"maxItems":6,"items":{"type":"integer","minimum":0}}}}},"includes":{"type":"array","maxItems":6,"items":{"type":"object","additionalProperties":false,"required":["text","sources"],"properties":{"text":{"type":"string","maxLength":700},"sources":{"type":"array","minItems":1,"maxItems":6,"items":{"type":"integer","minimum":0}}}}}}}},"notes":{"type":"array","maxItems":8,"items":{"type":"object","additionalProperties":false,"required":["text","sources"],"properties":{"text":{"type":"string","maxLength":700},"sources":{"type":"array","minItems":1,"maxItems":6,"items":{"type":"integer","minimum":0}}}}}}},"evidence":{"type":"array","items":{"$ref":"#/components/schemas/Evidence"}},"assessment":{"$ref":"#/components/schemas/Assessment"},"usage":{"$ref":"#/components/schemas/Usage"},"trace":{"type":"array","items":{"type":"object","additionalProperties":true}},"runtime":{"type":"string","enum":["browser","tools"]},"attribution":{"type":"object","additionalProperties":true}},"required":["id","site","task","status"],"additionalProperties":true},"EvaluationRun":{"type":"object","properties":{"id":{"type":"string"},"level":{"type":"string","enum":["need","brand","docs","exact"]},"model":{"type":"string"},"runtime":{"type":"string","enum":["browser","tools"]},"task":{"type":"string"},"goal":{"type":"string"},"goalId":{"type":"integer","minimum":1},"repeat":{"type":"integer","minimum":1},"status":{"type":"string","enum":["completed","blocked","incomplete","needs-approval","error","unavailable","skipped","not-discovered"]},"message":{"type":"string"},"answer":{"type":"object","additionalProperties":false,"required":["summary","plans","notes"],"properties":{"summary":{"type":"array","minItems":1,"maxItems":4,"items":{"type":"object","additionalProperties":false,"required":["text","sources"],"properties":{"text":{"type":"string","maxLength":700},"sources":{"type":"array","minItems":1,"maxItems":6,"items":{"type":"integer","minimum":0}}}}},"plans":{"type":"array","maxItems":10,"items":{"type":"object","additionalProperties":false,"required":["name","sources","pricing","includes"],"properties":{"name":{"type":"string","maxLength":100},"sources":{"type":"array","minItems":1,"maxItems":6,"items":{"type":"integer","minimum":0}},"pricing":{"type":"array","maxItems":8,"items":{"type":"object","additionalProperties":false,"required":["text","sources"],"properties":{"text":{"type":"string","maxLength":700},"sources":{"type":"array","minItems":1,"maxItems":6,"items":{"type":"integer","minimum":0}}}}},"includes":{"type":"array","maxItems":6,"items":{"type":"object","additionalProperties":false,"required":["text","sources"],"properties":{"text":{"type":"string","maxLength":700},"sources":{"type":"array","minItems":1,"maxItems":6,"items":{"type":"integer","minimum":0}}}}}}}},"notes":{"type":"array","maxItems":8,"items":{"type":"object","additionalProperties":false,"required":["text","sources"],"properties":{"text":{"type":"string","maxLength":700},"sources":{"type":"array","minItems":1,"maxItems":6,"items":{"type":"integer","minimum":0}}}}}}},"evidence":{"type":"array","items":{"$ref":"#/components/schemas/Evidence"}},"assessment":{"$ref":"#/components/schemas/Assessment"},"usage":{"$ref":"#/components/schemas/Usage"},"trace":{"type":"array","items":{"type":"object","additionalProperties":true}},"attribution":{"type":"object","additionalProperties":true}},"required":["level","model","repeat","status"],"additionalProperties":true,"anyOf":[{"required":["id"]},{"properties":{"status":{"enum":["skipped","unavailable"]}}}]},"StreamEvent":{"type":"object","properties":{"type":{"type":"string","enum":["start","step","run","progress","result","error"]},"id":{"type":"string"},"status":{"type":"string"},"message":{"type":"string"},"report":{"$ref":"#/components/schemas/Report"},"run":{"$ref":"#/components/schemas/EvaluationRun"},"runs":{"type":"array","items":{"$ref":"#/components/schemas/EvaluationRun"}},"usage":{"$ref":"#/components/schemas/Usage"},"answer":{"type":"object","additionalProperties":false,"required":["summary","plans","notes"],"properties":{"summary":{"type":"array","minItems":1,"maxItems":4,"items":{"type":"object","additionalProperties":false,"required":["text","sources"],"properties":{"text":{"type":"string","maxLength":700},"sources":{"type":"array","minItems":1,"maxItems":6,"items":{"type":"integer","minimum":0}}}}},"plans":{"type":"array","maxItems":10,"items":{"type":"object","additionalProperties":false,"required":["name","sources","pricing","includes"],"properties":{"name":{"type":"string","maxLength":100},"sources":{"type":"array","minItems":1,"maxItems":6,"items":{"type":"integer","minimum":0}},"pricing":{"type":"array","maxItems":8,"items":{"type":"object","additionalProperties":false,"required":["text","sources"],"properties":{"text":{"type":"string","maxLength":700},"sources":{"type":"array","minItems":1,"maxItems":6,"items":{"type":"integer","minimum":0}}}}},"includes":{"type":"array","maxItems":6,"items":{"type":"object","additionalProperties":false,"required":["text","sources"],"properties":{"text":{"type":"string","maxLength":700},"sources":{"type":"array","minItems":1,"maxItems":6,"items":{"type":"integer","minimum":0}}}}}}}},"notes":{"type":"array","maxItems":8,"items":{"type":"object","additionalProperties":false,"required":["text","sources"],"properties":{"text":{"type":"string","maxLength":700},"sources":{"type":"array","minItems":1,"maxItems":6,"items":{"type":"integer","minimum":0}}}}}}},"evidence":{"type":"array","items":{"$ref":"#/components/schemas/Evidence"}}},"required":["type"],"additionalProperties":true},"Evaluation":{"type":"object","properties":{"id":{"type":"string"},"site":{"type":"string"},"status":{"type":"string","enum":["running","completed","incomplete","error"]},"task":{"type":"string"},"goal":{"type":"string"},"runs":{"type":"array","items":{"$ref":"#/components/schemas/EvaluationRun"}},"summary":{"type":"object","properties":{"planned":{"type":"integer"},"recorded":{"type":"integer"},"attempted":{"type":"integer"},"completed":{"type":"integer"},"successRate":{"type":["integer","null"]},"coverage":{"type":"integer"},"interval95":{"type":["array","null"],"items":{"type":"integer"}},"estimatedUsd":{"type":"number"},"budgetUsd":{"type":"number"},"warning":{"type":"string"},"runtimes":{"type":"object","additionalProperties":true},"goals":{"type":"object","additionalProperties":true}},"required":[],"additionalProperties":true}},"required":["id","site","status"],"additionalProperties":true},"Resource":{"type":"object","properties":{"kind":{"type":"string","enum":["website","api","mcp","skill","payment"]},"url":{"type":"string","format":"uri"},"name":{"type":"string"},"status":{"type":"string"},"evidence":{"type":"array","items":{"type":"string"}},"site":{"type":"string"},"runId":{"type":"integer"},"profile":{"type":"string"},"score":{"type":["integer","null"]},"coverage":{"type":"integer"},"paymentAdvertised":{"type":"boolean"},"description":{"type":"string"}},"required":["kind","url","status","evidence","site","runId"],"additionalProperties":true},"Resources":{"type":"object","properties":{"contractVersion":{"const":"2026-12-04"},"query":{"type":"string"},"filters":{"type":"object","additionalProperties":true},"page":{"type":"integer"},"total":{"type":"integer"},"pages":{"type":"integer"},"items":{"type":"array","items":{"$ref":"#/components/schemas/Resource"}},"corpus":{"type":"object","additionalProperties":true},"note":{"type":"string"}},"required":["contractVersion","page","total","items","corpus"],"additionalProperties":true},"Recheck":{"type":"object","properties":{"contractVersion":{"const":"2026-12-04"},"id":{"type":"string"},"site":{"type":"string"},"baselineRunId":{"type":"integer"},"checkedAt":{"type":"string","format":"date-time"},"execution":{"type":"string"},"checks":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"before":{"$ref":"#/components/schemas/Check"},"after":{"$ref":"#/components/schemas/Check"}},"required":["key","before","after"],"additionalProperties":true}},"usage":{"$ref":"#/components/schemas/Usage"}},"required":["id","site","baselineRunId","checks"],"additionalProperties":true},"Remediation":{"type":"object","properties":{"contractVersion":{"const":"2026-12-04"},"site":{"type":"string"},"runId":{"type":"integer"},"files":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"content":{"type":"string"}},"required":["path","content"],"additionalProperties":true}}},"required":["site","runId","files"],"additionalProperties":true},"Insights":{"type":"object","properties":{"contractVersion":{"const":"2026-12-04"},"runId":{"type":"integer"},"site":{"type":"string"},"profile":{"type":"string"},"summary":{"$ref":"#/components/schemas/Summary"},"scoringVersion":{"type":"integer"},"calibration":{"type":"string"},"essentials":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string"}},"required":[],"additionalProperties":true}},"fixes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string"},"fix":{"type":["string","null"]},"estimatedScoreGain":{"type":["integer","null"]},"evidence":{"type":"array","items":{"type":"string"}},"verifiedFailure":{"type":"boolean"}},"required":[],"additionalProperties":true}},"groups":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"checks":{"type":"array","items":{"$ref":"#/components/schemas/Check"}}},"required":[],"additionalProperties":true}},"gainNote":{"type":"string"}},"required":["runId","site","summary","fixes","groups"],"additionalProperties":true},"Scorecard":{"type":"object","properties":{"algorithm":{"const":"ES256"},"kid":{"type":"string"},"payload":{"type":"object","properties":{"type":{"const":"airdy-scorecard"},"version":{"const":1},"issuer":{"type":"string"},"site":{"type":"string"},"runId":{"type":"integer"},"reportDigest":{"type":"string"},"digestFields":{"type":"array","items":{"type":"string"}},"scoringVersion":{"type":"integer"},"profile":{"type":"string"},"summary":{"$ref":"#/components/schemas/Summary"},"scannedAt":{"type":"string"},"issuedAt":{"type":"string"},"expiresAt":{"type":"string"},"reportURL":{"type":"string"},"scope":{"type":"string"}},"required":["type","issuer","reportDigest","summary","issuedAt","expiresAt"],"additionalProperties":true},"report":{"type":"object","additionalProperties":true},"signature":{"type":"string"},"keyURL":{"type":"string"}},"required":["algorithm","kid","payload","report","signature","keyURL"],"additionalProperties":true},"Registration":{"type":"object","properties":{"challengeId":{"type":"string"},"message":{"type":"string"},"expiresAt":{"type":"integer"},"algorithm":{"const":"ES256"},"agentId":{"type":"string"},"status":{"type":"string"},"verification":{"type":"string"}},"required":["agentId"],"additionalProperties":true},"Docs":{"type":"object","properties":{"contractVersion":{"const":"2026-12-04"},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"text":{"type":"string"},"url":{"type":"string"}},"required":["id","title","text","url"],"additionalProperties":true}}},"required":["contractVersion","items"],"additionalProperties":true}}}}