{"openapi":"3.1.0","info":{"title":"ora Public API","version":"1.0.0","license":{"name":"Proprietary"}},"jsonSchemaDialect":"https://json-schema.org/draft/2020-12/schema","servers":[{"url":"https://api.ora.ai"}],"x-ora-scopes":{"actions:read":"Read a site's actions: the tools agents can call, their versions and source","actions:write":"Write, edit and try a site's actions, give them apps, turn them on or off and publish them","activity:read":"Read the organization activity log","addons:read":"Read the add-on catalog","analytics:read":"Read analytics overviews and exports","audits:read":"Read Ora Score audits","audits:write":"Run Ora Score audits","autopilot:export:write":"Export Autopilot research datasets","autopilot:read":"Read Autopilot teams, missions, events and streams","autopilot:write":"Configure Autopilot teams and send them tasks and messages","benchmarks:read":"Read skill benchmarks","benchmarks:write":"Create and manage skill benchmarks","domains:read":"Read tracked organization domains","domains:write":"Add and remove tracked organization domains","front.access:read":"Read which agents may visit your Fronts, the agents that visit, and denials","front.access:write":"Allow and block agents on your Fronts","front.actions:read":"Read your Fronts' actions and their apps, the templates request actions start from, and tool setups","front.actions:write":"Add, change and delete your Fronts' request actions and tool actions' apps, turn actions on or off, and set up tools","front.connect:read":"Read your Fronts' address, website connection and its transmitter credentials, protocols, MCP server and WebMCP","front.connect:write":"Change your Fronts' address, website connection, protocols, MCP server and WebMCP, and revoke transmitter credentials","front.pages:read":"Read your Fronts' pages, their agent versions and screenshots, agent files and serving","front.pages:write":"Edit your Fronts' agent versions, agent files and serving","front.requests:read":"Read the requests agents made through your Fronts' actions","front.requests:write":"Mark the requests agents made through your Fronts' actions handled","front.secrets:reveal":"Create transmitter keys and reveal webhook signing keys","front.sites:read":"Read your Front sites, their setup and status stream, reader access, Ora Score and usage","front.sites:write":"Create Front sites, retry a failed setup and check reader access again","front.traffic:read":"Read your Fronts' agent traffic, feedback and the questions agents asked","images:read":"Read image build status and history","images:write":"Submit and manage image builds, and launch runs from images","intents:read":"Read intents, prompts, and measurements","intents:write":"Create and manage intents and prompts","journeys:read":"Read agentic journeys","journeys:write":"Launch agentic journeys","mcp:read":"Read the org's registered MCP servers and their catalog snapshots","runs:read":"Read runs, trajectories, and run streams","runs:write":"Create and manage runs","secrets:read":"Read an org's secret metadata (never the decrypted value)","secrets:write":"Create, update, and delete an org's secrets","sessions:read":"Read dedicated sessions","sessions:write":"Create and manage dedicated sessions","skills:read":"Read skills","skills:write":"Create and manage skills","study.addons:read":"Read the Study product's add-on catalog","study.studies:read":"Read skill studies","study.studies:write":"Create and manage skill studies","tunnels:read":"List and inspect the organization's tunnels","tunnels:write":"Create, revoke and delete the organization's tunnels","usage:read":"Read usage and plan limits"},"x-ora-command-groups":{"audit":"Ora Score audits: scan a site for agent readiness and read its score","front":"Ora Front: set up a site, connect it, and operate what agents get from it"},"components":{"schemas":{"Def_0f52adfddc63c1c2862af461b851e029b5a453bd5fc4d3373ecde1dcc23a16b6":{"oneOf":[{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms. Values are exactly \"baseline\" and \"skill\" (\"skill\" is the treatment/subject arm). An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — a baseline arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to both arms.","type":"array","items":{"type":"string","enum":["baseline","skill"]}},"kind":{"type":"string","const":"mcp_tool_called","description":"An MCP tool was invoked. Matched on the canonical `steps[].mcp` stamp, never a tool-name grep, so it works across every harness dialect."},"server":{"description":"MCP server name (e.g. \"tavily\"). Omit to match the tool on any server.","type":"string"},"tool":{"type":"string","description":"The MCP tool name as the server exposes it (e.g. \"search\"). Exact match."},"arguments":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"minCalls":{"type":"number"}},"required":["kind","tool"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms. Values are exactly \"baseline\" and \"skill\" (\"skill\" is the treatment/subject arm). An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — a baseline arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to both arms.","type":"array","items":{"type":"string","enum":["baseline","skill"]}},"kind":{"type":"string","const":"tool_not_called","description":"A RESTRAINT check: the named tool was never invoked. Beware vacuous passes — if the tool could never appear on this surface, use a positive check instead."},"tool":{"type":"string"},"mcp":{"type":"object","properties":{"server":{"type":"string"},"tool":{"type":"string"}},"required":["tool"]},"pattern":{"type":"string"}},"required":["kind"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms. Values are exactly \"baseline\" and \"skill\" (\"skill\" is the treatment/subject arm). An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — a baseline arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to both arms.","type":"array","items":{"type":"string","enum":["baseline","skill"]}},"kind":{"type":"string","const":"command_ran","description":"A shell command matching `pattern` was executed."},"pattern":{"type":"string","description":"Regex tested against the command text. Length-capped; backreferences and nested quantifiers are rejected as catastrophic-backtracking risks."}},"required":["kind","pattern"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms. Values are exactly \"baseline\" and \"skill\" (\"skill\" is the treatment/subject arm). An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — a baseline arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to both arms.","type":"array","items":{"type":"string","enum":["baseline","skill"]}},"kind":{"type":"string","const":"skill_loaded","description":"The agent loaded a skill. Observable ONLY under POINTER delivery — authoring this expectation auto-forces it; under inline delivery the body is embedded so no harness emits a skill step."},"slug":{"type":"string","description":"The skill slug, e.g. \"web-research\"."}},"required":["kind","slug"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms. Values are exactly \"baseline\" and \"skill\" (\"skill\" is the treatment/subject arm). An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — a baseline arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to both arms.","type":"array","items":{"type":"string","enum":["baseline","skill"]}},"kind":{"type":"string","const":"file_operation","description":"A file was read, written or edited."},"op":{"description":"Restrict to one verb. Omit to match any file operation.","type":"string","enum":["read","write","edit"]},"path":{"description":"The file path: a literal for exact match, or a matcher such as {\"$contains\":\"report\"} / {\"$pattern\":\"\\\\.md$\"}."}},"required":["kind","path"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms. Values are exactly \"baseline\" and \"skill\" (\"skill\" is the treatment/subject arm). An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — a baseline arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to both arms.","type":"array","items":{"type":"string","enum":["baseline","skill"]}},"kind":{"type":"string","const":"web_fetched","description":"A URL was fetched. Give urlHost for an exact host, urlSite for a host and its subdomains, or urlPattern for a regex over the full URL."},"urlHost":{"description":"Exact host, e.g. \"example.com\".","type":"string"},"urlSite":{"description":"A site: this host or any subdomain of it, e.g. \"example.com\" also matches \"docs.example.com\".","type":"string"},"urlPattern":{"description":"Regex over the whole URL. Same safety limits as command_ran.pattern.","type":"string"}},"required":["kind"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms. Values are exactly \"baseline\" and \"skill\" (\"skill\" is the treatment/subject arm). An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — a baseline arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to both arms.","type":"array","items":{"type":"string","enum":["baseline","skill"]}},"kind":{"type":"string","const":"response_contains","description":"The agent's final answer contains this literal text (case-sensitive substring)."},"text":{"type":"string","description":"Literal substring to find in the answer."},"normalize":{"description":"Compare by meaning rather than by glyph: 'prose' lower-cases BOTH sides, drops URLs, folds unicode dashes and typographic quotes, reads 'N to M' as 'N-M', turns hyphens/underscores into spaces and collapses whitespace. Omit for the literal, case-sensitive comparison.","type":"string","enum":["prose"]}},"required":["kind","text"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms. Values are exactly \"baseline\" and \"skill\" (\"skill\" is the treatment/subject arm). An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — a baseline arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to both arms.","type":"array","items":{"type":"string","enum":["baseline","skill"]}},"kind":{"type":"string","const":"response_matches","description":"The agent's final answer matches this regex."},"pattern":{"type":"string","description":"Regex tested against the answer text. Same safety limits as command_ran.pattern."},"ignoreCase":{"description":"Match case-insensitively. Omit (or false) for the case-sensitive default.","type":"boolean"}},"required":["kind","pattern"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms. Values are exactly \"baseline\" and \"skill\" (\"skill\" is the treatment/subject arm). An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — a baseline arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to both arms.","type":"array","items":{"type":"string","enum":["baseline","skill"]}},"kind":{"type":"string","const":"token_budget","description":"The run stayed within a token budget. ABSTAINS when usage is absent (telemetry-dark) — never fails for missing data."},"maxOutputTokens":{"description":"Ceiling on output tokens.","type":"number"},"maxTotalTokens":{"description":"Ceiling on input+output tokens.","type":"number"}},"required":["kind"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms. Values are exactly \"baseline\" and \"skill\" (\"skill\" is the treatment/subject arm). An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — a baseline arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to both arms.","type":"array","items":{"type":"string","enum":["baseline","skill"]}},"kind":{"type":"string","const":"sequence","description":"CONJUNCTION with ORDER: every branch must match, in this order. Members must be POSITIONAL (step-based) kinds — mcp_tool_called, command_ran, skill_loaded, file_operation, web_fetched. That rule is enforced by the check registry, not by this schema, so a response_* or token_budget member parses here and is refused at create."},"of":{"type":"array","items":{"$ref":"#/components/schemas/Def_0f52adfddc63c1c2862af461b851e029b5a453bd5fc4d3373ecde1dcc23a16b6"}}},"required":["kind","of"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms. Values are exactly \"baseline\" and \"skill\" (\"skill\" is the treatment/subject arm). An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — a baseline arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to both arms.","type":"array","items":{"type":"string","enum":["baseline","skill"]}},"kind":{"type":"string","const":"any_of","description":"DISJUNCTION: passes if ANY branch passes. Use it when one goal has more than one legitimate route (e.g. an MCP tool called directly OR through a proxy tool). ABSTAINS — never fails — when no branch is measurable."},"of":{"type":"array","items":{"$ref":"#/components/schemas/Def_0f52adfddc63c1c2862af461b851e029b5a453bd5fc4d3373ecde1dcc23a16b6"}}},"required":["kind","of"]}]},"Def_26d352818b18ffcffa9084470c21870bbd6d71f896ab324495d53628841d52f3":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/components/schemas/Def_26d352818b18ffcffa9084470c21870bbd6d71f896ab324495d53628841d52f3"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/Def_26d352818b18ffcffa9084470c21870bbd6d71f896ab324495d53628841d52f3"}}]},"Def_4975a12648488d3d46762436c0ae8cd0af7198cbf511b60762f0d476b2f12107":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/components/schemas/Def_4975a12648488d3d46762436c0ae8cd0af7198cbf511b60762f0d476b2f12107"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/Def_4975a12648488d3d46762436c0ae8cd0af7198cbf511b60762f0d476b2f12107"}}]},"Def_6fce9a86f0dd33be979a26093aa1a234bf15d6830cfd19d6900c6b49eac125cb":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/components/schemas/Def_6fce9a86f0dd33be979a26093aa1a234bf15d6830cfd19d6900c6b49eac125cb"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/Def_6fce9a86f0dd33be979a26093aa1a234bf15d6830cfd19d6900c6b49eac125cb"}}]},"Error":{"type":"object","title":"Error","description":"The error body every ora service returns. Emitted by @ora/service's createJsonErrorHandler and by @ora/auth's guards, which share this shape.","required":["error","code"],"properties":{"error":{"type":"string","description":"Human-readable message. Generic (\"Internal server error\") for any 5xx — internals are never leaked."},"code":{"type":"string","description":"Machine-readable error code, e.g. UNAUTHORIZED, FORBIDDEN, VALIDATION_ERROR, NOT_FOUND, LIMIT_EXCEEDED, INTERNAL_ERROR. Not an enum: a few service-local errors still emit lower_snake codes (e.g. intent_not_found), so clients must treat this as an open string."},"details":{"type":"object","additionalProperties":true,"description":"Optional structured context. Present only when the underlying error carried one — e.g. {\"errors\":{\"body\":[...]}} from request validation, {\"missing\":[...]} from the scope guard."}}},"Problem":{"type":"object","title":"Problem","description":"RFC 9457 problem details. `code` is the machine-readable reason; `retryable` and `outcome` say whether the same request may be sent again and whether anything was applied. Code-specific fields ride along (e.g. `ids` on 409 SITE_AMBIGUOUS, `dimension`, `limit` and `used` on 402 LIMIT_EXCEEDED).","required":["type","title","status","code","requestId","retryable","outcome"],"properties":{"type":{"type":"string","format":"uri","description":"about:blank (RFC 9457's default): an error links to no documentation page. Identify the error by `code`; `title` and `detail` explain it."},"title":{"type":"string","description":"A short, human-readable summary of the problem type."},"status":{"type":"integer","description":"The HTTP status code."},"detail":{"type":"string","description":"What went wrong with THIS request, written to be shown as is."},"code":{"type":"string","description":"Machine-readable reason, SCREAMING_SNAKE (e.g. SITE_NOT_FOUND)."},"requestId":{"type":"string","description":"Quote it when asking for help."},"errors":{"type":"array","description":"Per-field problems of an invalid request.","items":{"type":"object","required":["path","message"],"properties":{"path":{"type":"string","description":"Where in the request, e.g. body.hostname or query.limit."},"message":{"type":"string","description":"What is wrong there, written to be shown as is."}}}},"nextSteps":{"type":"array","description":"Steps that would resolve the problem, when there are any.","items":{"type":"object","required":["id","done","title","operation"],"properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it."},"done":{"type":"boolean","description":"True for a step already taken: listed for context, not to do."},"title":{"type":"string","description":"The step in a sentence, to show as is."},"operation":{"type":"string","description":"The operation that takes the step, e.g. front.connection.update."}}}},"retryable":{"type":"boolean","description":"Whether sending the same request again may succeed."},"retryAfter":{"type":"integer","description":"Seconds to wait before retrying, when known."},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change happened, although the answer is an error. unknown: a mutation may have committed: read the state before acting again. The same Idempotency-Key replays this answer, so retry with a new key once you know it did not apply."},"reuseIdempotencyKey":{"type":"boolean","description":"When true, retry with the SAME Idempotency-Key (never a new one): the first request with it is still running."}},"additionalProperties":true}},"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"An ora_sk_ API key or an OAuth access token from the ora CLI device sign-in, sent directly. Credential conversion happens server-side; callers do not need to manage token exchange. Every operation also names the scope it needs (x-ora-scope)."}}},"paths":{"/auth/identity":{"get":{"operationId":"auth.identity","summary":"Verify an API key or an ora CLI sign-in and return its identity, scopes and products. No token is issued.","responses":{"200":{"description":"Verify an API key or an ora CLI sign-in and return its identity, scopes and products. No token is issued.","content":{"application/json":{"schema":{"type":"object","properties":{"sub":{"type":"string"},"type":{"type":"string"},"organizationId":{"type":"string"},"organizationName":{"type":"string"},"email":{"type":"string"},"name":{"type":"string"},"role":{"type":"string"},"scopes":{"default":[],"type":"array","items":{"type":"string"}},"products":{"default":[],"type":"array","items":{"type":"string"}}},"required":["sub","organizationId","scopes","products"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-service":"auth-service"}},"/auth/token":{"post":{"operationId":"auth.token","summary":"Exchange a credential for a short-lived RS256 access token. Present the credential as \"Authorization: Bearer <credential>\" — never in the request body. Two credential shapes are accepted: an api-key secret (ora_sk_...), which responds with {token, expiresIn, tokenType}; or a workload-identity ServiceAccount token (service callers only), which responds with just {token} and may optionally pass {onBehalfOf} in the body. This is the bootstrap entry point — it authenticates the raw credential itself, so no prior token is required and it carries no api-key scope requirement.","responses":{"200":{"description":"Exchange a credential for a short-lived RS256 access token. Present the credential as \"Authorization: Bearer <credential>\" — never in the request body. Two credential shapes are accepted: an api-key secret (ora_sk_...), which responds with {token, expiresIn, tokenType}; or a workload-identity ServiceAccount token (service callers only), which responds with just {token} and may optionally pass {onBehalfOf} in the body. This is the bootstrap entry point — it authenticates the raw credential itself, so no prior token is required and it carries no api-key scope requirement.","content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string"},"expiresIn":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"tokenType":{"type":"string","const":"Bearer"}},"required":["token"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-product":"platform","x-ora-service":"auth-service"}},"/experiment/v1/addons":{"get":{"operationId":"addons.list","summary":"The add-on catalog (harness/surface-filtered)","parameters":[{"name":"harness","in":"query","required":false,"schema":{"type":"string","minLength":1}},{"name":"surface","in":"query","required":false,"schema":{"type":"string","enum":["run","session","managed"]}}],"responses":{"200":{"description":"The add-on catalog (harness/surface-filtered)","content":{"application/json":{"schema":{"type":"object","properties":{"addons":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["capability","tool","skill"]},"category":{"type":"string"},"displayName":{"type":"string"},"description":{"type":"string"},"configSchema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"surfaces":{"type":"array","items":{"type":"string","enum":["run","session","managed"]}},"harnesses":{"type":"array","items":{"type":"string"}},"multiInstance":{"type":"boolean"},"externalContent":{"type":"boolean"}},"required":["id","kind","displayName","description","configSchema","surfaces","harnesses"],"additionalProperties":false}}},"required":["addons"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"addons:read","x-ora-product":"experiment","x-ora-service":"experiments-service"}},"/experiment/v1/autopilot/presets":{"get":{"operationId":"autopilot.presets.list","summary":"List system and organization-saved presets","responses":{"200":{"description":"List system and organization-saved presets","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"version":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"ref":{"type":"string"},"system":{"type":"boolean"},"body":{"type":"object","properties":{"axes":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"key":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9-]{0,63}@[1-9][0-9]*$"},"config":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["key","config"],"additionalProperties":false}},"positions":{"maxItems":32,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"grants":{"default":[],"maxItems":32,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}},"brief":{"default":"","type":"string","maxLength":8000}},"required":["name","grants","brief"],"additionalProperties":false}}},"required":["axes"],"additionalProperties":false},"createdAt":{"type":"string"}},"required":["id","name","version","ref","system","body","createdAt"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"autopilot:read","x-ora-product":"experiment","x-ora-stability":"beta","x-ora-service":"experiments-service"},"post":{"operationId":"autopilot.presets.create","summary":"Save an organization preset; saving an existing name creates its next version","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,62}$"},"body":{"type":"object","properties":{"axes":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"key":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9-]{0,63}@[1-9][0-9]*$"},"config":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["key"]}},"positions":{"maxItems":32,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"grants":{"default":[],"maxItems":32,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}},"brief":{"default":"","type":"string","maxLength":8000}},"required":["name"]}}},"required":["axes"]}},"required":["name","body"],"additionalProperties":false}}}},"responses":{"201":{"description":"Save an organization preset; saving an existing name creates its next version","content":{"application/json":{"schema":{"type":"object","properties":{"preset":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"version":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"ref":{"type":"string"},"system":{"type":"boolean"},"body":{"type":"object","properties":{"axes":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"key":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9-]{0,63}@[1-9][0-9]*$"},"config":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["key","config"],"additionalProperties":false}},"positions":{"maxItems":32,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"grants":{"default":[],"maxItems":32,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}},"brief":{"default":"","type":"string","maxLength":8000}},"required":["name","grants","brief"],"additionalProperties":false}}},"required":["axes"],"additionalProperties":false},"createdAt":{"type":"string"}},"required":["id","name","version","ref","system","body","createdAt"],"additionalProperties":false}},"required":["preset"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"A field or an axis path is invalid (POLICY_INVALID names it), or PRESET_NAME_RESERVED: the name is a built-in playbook's; choose another.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"autopilot:write","x-ora-product":"experiment","x-ora-stability":"beta","x-ora-service":"experiments-service"}},"/experiment/v1/autopilot/presets/{preset}":{"get":{"operationId":"autopilot.presets.get","summary":"Get a preset by name@version","parameters":[{"name":"preset","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}}],"responses":{"200":{"description":"Get a preset by name@version","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"version":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"ref":{"type":"string"},"system":{"type":"boolean"},"body":{"type":"object","properties":{"axes":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"key":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9-]{0,63}@[1-9][0-9]*$"},"config":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["key","config"],"additionalProperties":false}},"positions":{"maxItems":32,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"grants":{"default":[],"maxItems":32,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}},"brief":{"default":"","type":"string","maxLength":8000}},"required":["name","grants","brief"],"additionalProperties":false}}},"required":["axes"],"additionalProperties":false},"createdAt":{"type":"string"}},"required":["id","name","version","ref","system","body","createdAt"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"autopilot:read","x-ora-product":"experiment","x-ora-stability":"beta","x-ora-service":"experiments-service"}},"/experiment/v1/autopilot/secret-holders":{"get":{"operationId":"autopilot.secrets.holders","summary":"The teams whose data can hold each of the named org secrets (bound today, or held by their workspaces and missions; archived teams included): rotating it makes their history unreadable","parameters":[{"name":"secretIds","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The teams whose data can hold each of the named org secrets (bound today, or held by their workspaces and missions; archived teams included): rotating it makes their history unreadable","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"secretId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"teams":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slug":{"type":"string"},"name":{"type":"string"}},"required":["id","slug","name"],"additionalProperties":false}}},"required":["secretId","teams"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"autopilot:read","x-ora-product":"experiment","x-ora-stability":"beta","x-ora-service":"experiments-service"}},"/experiment/v1/autopilot/strategies":{"get":{"operationId":"autopilot.strategies.list","summary":"The strategy catalog: axes → strategies → key, version, config JSON Schema, display, requires, provides","responses":{"200":{"description":"The strategy catalog: axes → strategies → key, version, config JSON Schema, display, requires, provides","content":{"application/json":{"schema":{"type":"object","properties":{"axes":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"required":{"type":"boolean"},"defaultStrategy":{"anyOf":[{"type":"string"},{"type":"null"}]},"display":{"type":"object","properties":{"label":{"type":"string"},"summary":{"type":"string"}},"required":["label","summary"],"additionalProperties":false},"strategies":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"version":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"ref":{"type":"string"},"schema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"display":{"type":"object","properties":{"label":{"type":"string"},"summary":{"type":"string"}},"required":["label","summary"],"additionalProperties":false},"requires":{"type":"array","items":{"type":"string"}},"provides":{"type":"object","properties":{"capabilities":{"type":"array","items":{"type":"string"}},"tools":{"type":"array","items":{"type":"string"}},"commandKinds":{"type":"array","items":{"type":"string"}},"eventKinds":{"type":"array","items":{"type":"string"}},"alwaysResolves":{"type":"boolean"}},"required":["capabilities","tools","commandKinds","eventKinds","alwaysResolves"],"additionalProperties":false},"deprecated":{"type":"boolean"}},"required":["key","version","ref","schema","display","requires","provides","deprecated"],"additionalProperties":false}}},"required":["key","required","defaultStrategy","display","strategies"],"additionalProperties":false}}},"required":["axes"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"autopilot:read","x-ora-product":"experiment","x-ora-stability":"beta","x-ora-service":"experiments-service"}},"/experiment/v1/autopilot/teams":{"get":{"operationId":"autopilot.teams.list","summary":"List the organization's teams with coarse state","parameters":[{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":500}},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":200}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["active","pausing","paused","stopping","stopped","archived"]}}],"responses":{"200":{"description":"List the organization's teams with coarse state","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"slug":{"type":"string"},"status":{"type":"string","enum":["active","pausing","paused","stopping","stopped","archived"]},"researchUse":{"type":"string","enum":["internal_only","publishable_after_review","excluded"]},"activeMissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"queuedMissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"budget":{"type":"object","properties":{"reservedUsd":{"type":"number"},"settledUsd":{"type":"number"},"inputTokens":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"outputTokens":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"warnedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"trippedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"tripReason":{"anyOf":[{"type":"string","enum":["usd","tokens","turns","wall_clock","unpriced_model"]},{"type":"null"}]}},"required":["reservedUsd","settledUsd","inputTokens","outputTokens","warnedAt","trippedAt","tripReason"],"additionalProperties":false},"eventSeq":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"roster":{"type":"array","items":{"type":"object","properties":{"handle":{"type":"string"},"harness":{"type":"string"}},"required":["handle","harness"],"additionalProperties":false}},"activeMissionRefs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"startedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","title","startedAt"],"additionalProperties":false}},"sessionSlots":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["id","name","slug","status","researchUse","activeMissions","queuedMissions","budget","eventSeq","createdAt","updatedAt","roster","activeMissionRefs","sessionSlots"],"additionalProperties":false}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["items","nextCursor"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"autopilot:read","x-ora-product":"experiment","x-ora-stability":"beta","x-ora-service":"experiments-service"},"post":{"operationId":"autopilot.teams.create","summary":"Create a standing team from a team file (roster, squads, positions, preset, axes, budgets, resources)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"slug":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,62}$"},"researchUse":{"default":"internal_only","type":"string","enum":["internal_only","publishable_after_review","excluded"]},"members":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"object","properties":{"handle":{"type":"string","pattern":"^[a-z0-9][a-z0-9_-]{0,31}$"},"harness":{"type":"string","minLength":1,"maxLength":100},"model":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"tier":{"default":"core","type":"string","const":"core"},"position":{"type":"string","minLength":1,"maxLength":64},"kit":{"type":"object","properties":{"addons":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"boolean","const":false}]}}},"additionalProperties":false}},"required":["handle","harness"]}},"squads":{"default":[],"maxItems":50,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[a-z0-9][a-z0-9_-]{0,62}$"},"members":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"string","pattern":"^[a-z0-9][a-z0-9_-]{0,31}$"}}},"required":["name","members"]}},"positions":{"default":[],"maxItems":32,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"grants":{"default":[],"maxItems":32,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}},"brief":{"default":"","type":"string","maxLength":8000}},"required":["name"]}},"preset":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,62}@[1-9][0-9]*$"},"axes":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"key":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9-]{0,63}@[1-9][0-9]*$"},"config":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["key"]}},"budgets":{"default":{"onTrip":"pause","team":{},"mission":{},"member":{}},"type":"object","properties":{"onTrip":{"default":"pause","type":"string","enum":["pause","stop"]},"team":{"default":{},"type":"object","properties":{"usd":{"type":"number","exclusiveMinimum":0},"tokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}}},"mission":{"default":{},"type":"object","properties":{"usd":{"type":"number","exclusiveMinimum":0},"tokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"turns":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"wallClockMin":{"type":"number","exclusiveMinimum":0}}},"member":{"default":{},"type":"object","properties":{"turnWallClockSec":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}}}}},"resources":{"default":{"repos":[]},"type":"object","properties":{"repos":{"default":[],"maxItems":20,"type":"array","items":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"ref":{"type":"string","minLength":1,"maxLength":250},"credential":{"type":"object","properties":{"secretRef":{"type":"string","minLength":1,"maxLength":200}},"required":["secretRef"],"additionalProperties":false}},"required":["url","ref"],"additionalProperties":false}}},"additionalProperties":false},"kit":{"default":{"addons":{}},"type":"object","properties":{"addons":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}},"additionalProperties":false},"clientKey":{"type":"string","minLength":1,"maxLength":200}},"required":["name","members"]}}}},"responses":{"201":{"description":"Create a standing team from a team file (roster, squads, positions, preset, axes, budgets, resources)","content":{"application/json":{"schema":{"type":"object","properties":{"team":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"slug":{"type":"string"},"status":{"type":"string","enum":["active","pausing","paused","stopping","stopped","archived"]},"researchUse":{"type":"string","enum":["internal_only","publishable_after_review","excluded"]},"activeMissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"queuedMissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"budget":{"type":"object","properties":{"reservedUsd":{"type":"number"},"settledUsd":{"type":"number"},"inputTokens":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"outputTokens":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"warnedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"trippedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"tripReason":{"anyOf":[{"type":"string","enum":["usd","tokens","turns","wall_clock","unpriced_model"]},{"type":"null"}]}},"required":["reservedUsd","settledUsd","inputTokens","outputTokens","warnedAt","trippedAt","tripReason"],"additionalProperties":false},"eventSeq":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"roster":{"type":"array","items":{"type":"object","properties":{"handle":{"type":"string"},"harness":{"type":"string"}},"required":["handle","harness"],"additionalProperties":false}},"activeMissionRefs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"startedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","title","startedAt"],"additionalProperties":false}},"sessionSlots":{"type":"integer","minimum":0,"maximum":9007199254740991},"ownerUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"config":{"type":"object","properties":{"preset":{"anyOf":[{"type":"string"},{"type":"null"}]},"axes":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"key":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9-]{0,63}@[1-9][0-9]*$"},"config":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["key","config"],"additionalProperties":false}},"positions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"grants":{"default":[],"maxItems":32,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}},"brief":{"default":"","type":"string","maxLength":8000}},"required":["name","grants","brief"],"additionalProperties":false}}},"required":["preset","axes","positions"],"additionalProperties":false},"budgets":{"type":"object","properties":{"onTrip":{"default":"pause","type":"string","enum":["pause","stop"]},"team":{"default":{},"type":"object","properties":{"usd":{"type":"number","exclusiveMinimum":0},"tokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"additionalProperties":false},"mission":{"default":{},"type":"object","properties":{"usd":{"type":"number","exclusiveMinimum":0},"tokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"turns":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"wallClockMin":{"type":"number","exclusiveMinimum":0}},"additionalProperties":false},"member":{"default":{},"type":"object","properties":{"turnWallClockSec":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"additionalProperties":false}},"required":["onTrip","team","mission","member"],"additionalProperties":false},"resources":{"type":"object","properties":{"repos":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"ref":{"type":"string","minLength":1,"maxLength":250},"credential":{"type":"object","properties":{"secretRef":{"type":"string","minLength":1,"maxLength":200}},"required":["secretRef"],"additionalProperties":false}},"required":["url","ref"],"additionalProperties":false}}},"required":["repos"],"additionalProperties":false},"kit":{"type":"object","properties":{"addons":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}},"required":["addons"],"additionalProperties":false},"members":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"handle":{"type":"string"},"harness":{"type":"string"},"model":{"anyOf":[{"type":"string"},{"type":"null"}]},"tier":{"type":"string","enum":["core","worker"]},"position":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string","enum":["active","removed"]},"livenessState":{"type":"string","enum":["ok","degraded"]},"degradedReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"doorState":{"type":"string"},"residency":{"type":"string"},"executionEpoch":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"contextEpoch":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"dedicatedSessionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"kit":{"type":"object","properties":{"addons":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"boolean","const":false}]}},"chips":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"addonId":{"type":"string"},"kind":{"type":"string","enum":["capability","tool","skill"]},"label":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"envNames":{"type":"array","items":{"type":"string"}}},"required":["key","addonId","kind","label"],"additionalProperties":false}},"revision":{"anyOf":[{"type":"string","pattern":"^[0-9a-f]{12}$"},{"type":"null"}]},"desiredRevision":{"type":"string","pattern":"^[0-9a-f]{12}$"},"pending":{"type":"boolean"},"modelPending":{"type":"boolean"},"state":{"type":"string","enum":["ok","refused","boot_failed"]},"appliedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["addons","chips","revision","desiredRevision","pending","modelPending","state","appliedAt"],"additionalProperties":false}},"required":["id","handle","harness","model","tier","position","status","livenessState","degradedReason","doorState","residency","executionEpoch","contextEpoch","dedicatedSessionId","kit"],"additionalProperties":false}},"squads":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"members":{"type":"array","items":{"type":"string"}}},"required":["id","name","members"],"additionalProperties":false}},"missions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"status":{"type":"string"}},"required":["id","title","status"],"additionalProperties":false}}},"required":["id","name","slug","status","researchUse","activeMissions","queuedMissions","budget","eventSeq","createdAt","updatedAt","roster","activeMissionRefs","sessionSlots","ownerUserId","config","budgets","resources","kit","members","squads","missions"],"additionalProperties":false},"eventSeq":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["team","eventSeq"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The roster does not fit the organization's remaining session slots.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"KIT_BIND_AUTHORITY_REQUIRED: the change adds code (a stdio MCP server, a git skill) or a new destination to a member that holds secrets; it needs the secret-binding authority (binding an org secret needs any organization role except Viewer; an api key also needs the secrets:bind scope (or secrets:reveal)).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"SLUG_TAKEN.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"A field or an axis path is invalid (POLICY_INVALID names it). KIT_INVALID (an add-on refused its config, details.cause), KIT_RESERVED_NAME, KIT_LITERAL_CREDENTIAL, KIT_TOO_LARGE (details.limit), or INVALID_INPUT for a kit secret that cannot be bound.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"autopilot:write","x-ora-product":"experiment","x-ora-stability":"beta","x-ora-service":"experiments-service"}},"/experiment/v1/autopilot/teams/stream":{"get":{"operationId":"autopilot.teams.feed","summary":"SSE: the organization's coarse team state (status, mission counts, budget), a snapshot then live frames","responses":{"200":{"description":"SSE: the organization's coarse team state (status, mission counts, budget), a snapshot then live frames","content":{"application/json":{"schema":{}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"autopilot:read","x-ora-product":"experiment","x-ora-stability":"beta","x-ora-service":"experiments-service"}},"/experiment/v1/autopilot/teams/{team}":{"get":{"operationId":"autopilot.teams.get","summary":"Get a team: roster, squads, non-terminal missions, counters","parameters":[{"name":"team","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}}],"responses":{"200":{"description":"Get a team: roster, squads, non-terminal missions, counters","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"slug":{"type":"string"},"status":{"type":"string","enum":["active","pausing","paused","stopping","stopped","archived"]},"researchUse":{"type":"string","enum":["internal_only","publishable_after_review","excluded"]},"activeMissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"queuedMissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"budget":{"type":"object","properties":{"reservedUsd":{"type":"number"},"settledUsd":{"type":"number"},"inputTokens":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"outputTokens":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"warnedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"trippedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"tripReason":{"anyOf":[{"type":"string","enum":["usd","tokens","turns","wall_clock","unpriced_model"]},{"type":"null"}]}},"required":["reservedUsd","settledUsd","inputTokens","outputTokens","warnedAt","trippedAt","tripReason"],"additionalProperties":false},"eventSeq":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"roster":{"type":"array","items":{"type":"object","properties":{"handle":{"type":"string"},"harness":{"type":"string"}},"required":["handle","harness"],"additionalProperties":false}},"activeMissionRefs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"startedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","title","startedAt"],"additionalProperties":false}},"sessionSlots":{"type":"integer","minimum":0,"maximum":9007199254740991},"ownerUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"config":{"type":"object","properties":{"preset":{"anyOf":[{"type":"string"},{"type":"null"}]},"axes":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"key":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9-]{0,63}@[1-9][0-9]*$"},"config":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["key","config"],"additionalProperties":false}},"positions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"grants":{"default":[],"maxItems":32,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}},"brief":{"default":"","type":"string","maxLength":8000}},"required":["name","grants","brief"],"additionalProperties":false}}},"required":["preset","axes","positions"],"additionalProperties":false},"budgets":{"type":"object","properties":{"onTrip":{"default":"pause","type":"string","enum":["pause","stop"]},"team":{"default":{},"type":"object","properties":{"usd":{"type":"number","exclusiveMinimum":0},"tokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"additionalProperties":false},"mission":{"default":{},"type":"object","properties":{"usd":{"type":"number","exclusiveMinimum":0},"tokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"turns":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"wallClockMin":{"type":"number","exclusiveMinimum":0}},"additionalProperties":false},"member":{"default":{},"type":"object","properties":{"turnWallClockSec":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"additionalProperties":false}},"required":["onTrip","team","mission","member"],"additionalProperties":false},"resources":{"type":"object","properties":{"repos":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"ref":{"type":"string","minLength":1,"maxLength":250},"credential":{"type":"object","properties":{"secretRef":{"type":"string","minLength":1,"maxLength":200}},"required":["secretRef"],"additionalProperties":false}},"required":["url","ref"],"additionalProperties":false}}},"required":["repos"],"additionalProperties":false},"kit":{"type":"object","properties":{"addons":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}},"required":["addons"],"additionalProperties":false},"members":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"handle":{"type":"string"},"harness":{"type":"string"},"model":{"anyOf":[{"type":"string"},{"type":"null"}]},"tier":{"type":"string","enum":["core","worker"]},"position":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string","enum":["active","removed"]},"livenessState":{"type":"string","enum":["ok","degraded"]},"degradedReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"doorState":{"type":"string"},"residency":{"type":"string"},"executionEpoch":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"contextEpoch":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"dedicatedSessionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"kit":{"type":"object","properties":{"addons":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"boolean","const":false}]}},"chips":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"addonId":{"type":"string"},"kind":{"type":"string","enum":["capability","tool","skill"]},"label":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"envNames":{"type":"array","items":{"type":"string"}}},"required":["key","addonId","kind","label"],"additionalProperties":false}},"revision":{"anyOf":[{"type":"string","pattern":"^[0-9a-f]{12}$"},{"type":"null"}]},"desiredRevision":{"type":"string","pattern":"^[0-9a-f]{12}$"},"pending":{"type":"boolean"},"modelPending":{"type":"boolean"},"state":{"type":"string","enum":["ok","refused","boot_failed"]},"appliedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["addons","chips","revision","desiredRevision","pending","modelPending","state","appliedAt"],"additionalProperties":false}},"required":["id","handle","harness","model","tier","position","status","livenessState","degradedReason","doorState","residency","executionEpoch","contextEpoch","dedicatedSessionId","kit"],"additionalProperties":false}},"squads":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"members":{"type":"array","items":{"type":"string"}}},"required":["id","name","members"],"additionalProperties":false}},"missions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"status":{"type":"string"}},"required":["id","title","status"],"additionalProperties":false}}},"required":["id","name","slug","status","researchUse","activeMissions","queuedMissions","budget","eventSeq","createdAt","updatedAt","roster","activeMissionRefs","sessionSlots","ownerUserId","config","budgets","resources","kit","members","squads","missions"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such team (id or slug) in the caller's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"autopilot:read","x-ora-product":"experiment","x-ora-stability":"beta","x-ora-service":"experiments-service"},"put":{"operationId":"autopilot.teams.apply","summary":"Create the team, or converge it to the file: roster diffs become member events; strategy changes apply from the next mission","parameters":[{"name":"team","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"slug":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,62}$"},"researchUse":{"default":"internal_only","type":"string","enum":["internal_only","publishable_after_review","excluded"]},"members":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"object","properties":{"handle":{"type":"string","pattern":"^[a-z0-9][a-z0-9_-]{0,31}$"},"harness":{"type":"string","minLength":1,"maxLength":100},"model":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"tier":{"default":"core","type":"string","const":"core"},"position":{"type":"string","minLength":1,"maxLength":64},"kit":{"type":"object","properties":{"addons":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"boolean","const":false}]}}},"additionalProperties":false}},"required":["handle","harness"]}},"squads":{"default":[],"maxItems":50,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[a-z0-9][a-z0-9_-]{0,62}$"},"members":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"string","pattern":"^[a-z0-9][a-z0-9_-]{0,31}$"}}},"required":["name","members"]}},"positions":{"default":[],"maxItems":32,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"grants":{"default":[],"maxItems":32,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}},"brief":{"default":"","type":"string","maxLength":8000}},"required":["name"]}},"preset":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,62}@[1-9][0-9]*$"},"axes":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"key":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9-]{0,63}@[1-9][0-9]*$"},"config":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["key"]}},"budgets":{"default":{"onTrip":"pause","team":{},"mission":{},"member":{}},"type":"object","properties":{"onTrip":{"default":"pause","type":"string","enum":["pause","stop"]},"team":{"default":{},"type":"object","properties":{"usd":{"type":"number","exclusiveMinimum":0},"tokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}}},"mission":{"default":{},"type":"object","properties":{"usd":{"type":"number","exclusiveMinimum":0},"tokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"turns":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"wallClockMin":{"type":"number","exclusiveMinimum":0}}},"member":{"default":{},"type":"object","properties":{"turnWallClockSec":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}}}}},"resources":{"default":{"repos":[]},"type":"object","properties":{"repos":{"default":[],"maxItems":20,"type":"array","items":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"ref":{"type":"string","minLength":1,"maxLength":250},"credential":{"type":"object","properties":{"secretRef":{"type":"string","minLength":1,"maxLength":200}},"required":["secretRef"],"additionalProperties":false}},"required":["url","ref"],"additionalProperties":false}}},"additionalProperties":false},"kit":{"default":{"addons":{}},"type":"object","properties":{"addons":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}},"additionalProperties":false},"clientKey":{"type":"string","minLength":1,"maxLength":200}},"required":["name","members"]}}}},"responses":{"200":{"description":"Create the team, or converge it to the file: roster diffs become member events; strategy changes apply from the next mission","content":{"application/json":{"schema":{"type":"object","properties":{"team":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"slug":{"type":"string"},"status":{"type":"string","enum":["active","pausing","paused","stopping","stopped","archived"]},"researchUse":{"type":"string","enum":["internal_only","publishable_after_review","excluded"]},"activeMissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"queuedMissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"budget":{"type":"object","properties":{"reservedUsd":{"type":"number"},"settledUsd":{"type":"number"},"inputTokens":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"outputTokens":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"warnedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"trippedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"tripReason":{"anyOf":[{"type":"string","enum":["usd","tokens","turns","wall_clock","unpriced_model"]},{"type":"null"}]}},"required":["reservedUsd","settledUsd","inputTokens","outputTokens","warnedAt","trippedAt","tripReason"],"additionalProperties":false},"eventSeq":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"roster":{"type":"array","items":{"type":"object","properties":{"handle":{"type":"string"},"harness":{"type":"string"}},"required":["handle","harness"],"additionalProperties":false}},"activeMissionRefs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"startedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","title","startedAt"],"additionalProperties":false}},"sessionSlots":{"type":"integer","minimum":0,"maximum":9007199254740991},"ownerUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"config":{"type":"object","properties":{"preset":{"anyOf":[{"type":"string"},{"type":"null"}]},"axes":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"key":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9-]{0,63}@[1-9][0-9]*$"},"config":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["key","config"],"additionalProperties":false}},"positions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"grants":{"default":[],"maxItems":32,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}},"brief":{"default":"","type":"string","maxLength":8000}},"required":["name","grants","brief"],"additionalProperties":false}}},"required":["preset","axes","positions"],"additionalProperties":false},"budgets":{"type":"object","properties":{"onTrip":{"default":"pause","type":"string","enum":["pause","stop"]},"team":{"default":{},"type":"object","properties":{"usd":{"type":"number","exclusiveMinimum":0},"tokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"additionalProperties":false},"mission":{"default":{},"type":"object","properties":{"usd":{"type":"number","exclusiveMinimum":0},"tokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"turns":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"wallClockMin":{"type":"number","exclusiveMinimum":0}},"additionalProperties":false},"member":{"default":{},"type":"object","properties":{"turnWallClockSec":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"additionalProperties":false}},"required":["onTrip","team","mission","member"],"additionalProperties":false},"resources":{"type":"object","properties":{"repos":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"ref":{"type":"string","minLength":1,"maxLength":250},"credential":{"type":"object","properties":{"secretRef":{"type":"string","minLength":1,"maxLength":200}},"required":["secretRef"],"additionalProperties":false}},"required":["url","ref"],"additionalProperties":false}}},"required":["repos"],"additionalProperties":false},"kit":{"type":"object","properties":{"addons":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}},"required":["addons"],"additionalProperties":false},"members":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"handle":{"type":"string"},"harness":{"type":"string"},"model":{"anyOf":[{"type":"string"},{"type":"null"}]},"tier":{"type":"string","enum":["core","worker"]},"position":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string","enum":["active","removed"]},"livenessState":{"type":"string","enum":["ok","degraded"]},"degradedReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"doorState":{"type":"string"},"residency":{"type":"string"},"executionEpoch":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"contextEpoch":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"dedicatedSessionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"kit":{"type":"object","properties":{"addons":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"boolean","const":false}]}},"chips":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"addonId":{"type":"string"},"kind":{"type":"string","enum":["capability","tool","skill"]},"label":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"envNames":{"type":"array","items":{"type":"string"}}},"required":["key","addonId","kind","label"],"additionalProperties":false}},"revision":{"anyOf":[{"type":"string","pattern":"^[0-9a-f]{12}$"},{"type":"null"}]},"desiredRevision":{"type":"string","pattern":"^[0-9a-f]{12}$"},"pending":{"type":"boolean"},"modelPending":{"type":"boolean"},"state":{"type":"string","enum":["ok","refused","boot_failed"]},"appliedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["addons","chips","revision","desiredRevision","pending","modelPending","state","appliedAt"],"additionalProperties":false}},"required":["id","handle","harness","model","tier","position","status","livenessState","degradedReason","doorState","residency","executionEpoch","contextEpoch","dedicatedSessionId","kit"],"additionalProperties":false}},"squads":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"members":{"type":"array","items":{"type":"string"}}},"required":["id","name","members"],"additionalProperties":false}},"missions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"status":{"type":"string"}},"required":["id","title","status"],"additionalProperties":false}}},"required":["id","name","slug","status","researchUse","activeMissions","queuedMissions","budget","eventSeq","createdAt","updatedAt","roster","activeMissionRefs","sessionSlots","ownerUserId","config","budgets","resources","kit","members","squads","missions"],"additionalProperties":false},"eventSeq":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["team","eventSeq"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"KIT_BIND_AUTHORITY_REQUIRED: the change adds code (a stdio MCP server, a git skill) or a new destination to a member that holds secrets; it needs the secret-binding authority (binding an org secret needs any organization role except Viewer; an api key also needs the secrets:bind scope (or secrets:reveal)).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"CREDENTIAL_IN_USE: a repo credential change while core members' workspaces hold the current ones. KIT_SECRET_IN_USE: a secret a member's current workspace holds would no longer be bound; remove or swap it with members.applyKit {kit}.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"KIT_INVALID (an add-on refused its config, details.cause), KIT_RESERVED_NAME, KIT_LITERAL_CREDENTIAL, KIT_TOO_LARGE (details.limit), or INVALID_INPUT for a kit secret that cannot be bound.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"autopilot:write","x-ora-product":"experiment","x-ora-stability":"beta","x-ora-service":"experiments-service"},"patch":{"operationId":"autopilot.teams.update","summary":"Patch a team's name, research use, positions, preset, axes, budgets, resources or kit","parameters":[{"name":"team","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"researchUse":{"type":"string","enum":["internal_only","publishable_after_review","excluded"]},"positions":{"maxItems":32,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"grants":{"default":[],"maxItems":32,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}},"brief":{"default":"","type":"string","maxLength":8000}},"required":["name"]}},"preset":{"anyOf":[{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,62}@[1-9][0-9]*$"},{"type":"null"}]},"axes":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"key":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9-]{0,63}@[1-9][0-9]*$"},"config":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["key"]}},"budgets":{"type":"object","properties":{"onTrip":{"type":"string","enum":["pause","stop"]},"team":{"type":"object","properties":{"usd":{"type":"number","exclusiveMinimum":0},"tokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"additionalProperties":false},"mission":{"type":"object","properties":{"usd":{"type":"number","exclusiveMinimum":0},"tokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"turns":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"wallClockMin":{"type":"number","exclusiveMinimum":0}},"additionalProperties":false},"member":{"type":"object","properties":{"turnWallClockSec":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"additionalProperties":false}},"additionalProperties":false},"resources":{"type":"object","properties":{"repos":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"ref":{"type":"string","minLength":1,"maxLength":250},"credential":{"type":"object","properties":{"secretRef":{"type":"string","minLength":1,"maxLength":200}},"required":["secretRef"],"additionalProperties":false}},"required":["url","ref"],"additionalProperties":false}}},"required":["repos"],"additionalProperties":false},"kit":{"type":"object","properties":{"addons":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}},"additionalProperties":false}},"additionalProperties":false}}}},"responses":{"200":{"description":"Patch a team's name, research use, positions, preset, axes, budgets, resources or kit","content":{"application/json":{"schema":{"type":"object","properties":{"team":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"slug":{"type":"string"},"status":{"type":"string","enum":["active","pausing","paused","stopping","stopped","archived"]},"researchUse":{"type":"string","enum":["internal_only","publishable_after_review","excluded"]},"activeMissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"queuedMissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"budget":{"type":"object","properties":{"reservedUsd":{"type":"number"},"settledUsd":{"type":"number"},"inputTokens":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"outputTokens":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"warnedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"trippedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"tripReason":{"anyOf":[{"type":"string","enum":["usd","tokens","turns","wall_clock","unpriced_model"]},{"type":"null"}]}},"required":["reservedUsd","settledUsd","inputTokens","outputTokens","warnedAt","trippedAt","tripReason"],"additionalProperties":false},"eventSeq":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"roster":{"type":"array","items":{"type":"object","properties":{"handle":{"type":"string"},"harness":{"type":"string"}},"required":["handle","harness"],"additionalProperties":false}},"activeMissionRefs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"startedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","title","startedAt"],"additionalProperties":false}},"sessionSlots":{"type":"integer","minimum":0,"maximum":9007199254740991},"ownerUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"config":{"type":"object","properties":{"preset":{"anyOf":[{"type":"string"},{"type":"null"}]},"axes":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"key":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9-]{0,63}@[1-9][0-9]*$"},"config":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["key","config"],"additionalProperties":false}},"positions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"grants":{"default":[],"maxItems":32,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}},"brief":{"default":"","type":"string","maxLength":8000}},"required":["name","grants","brief"],"additionalProperties":false}}},"required":["preset","axes","positions"],"additionalProperties":false},"budgets":{"type":"object","properties":{"onTrip":{"default":"pause","type":"string","enum":["pause","stop"]},"team":{"default":{},"type":"object","properties":{"usd":{"type":"number","exclusiveMinimum":0},"tokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"additionalProperties":false},"mission":{"default":{},"type":"object","properties":{"usd":{"type":"number","exclusiveMinimum":0},"tokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"turns":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"wallClockMin":{"type":"number","exclusiveMinimum":0}},"additionalProperties":false},"member":{"default":{},"type":"object","properties":{"turnWallClockSec":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"additionalProperties":false}},"required":["onTrip","team","mission","member"],"additionalProperties":false},"resources":{"type":"object","properties":{"repos":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"ref":{"type":"string","minLength":1,"maxLength":250},"credential":{"type":"object","properties":{"secretRef":{"type":"string","minLength":1,"maxLength":200}},"required":["secretRef"],"additionalProperties":false}},"required":["url","ref"],"additionalProperties":false}}},"required":["repos"],"additionalProperties":false},"kit":{"type":"object","properties":{"addons":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}},"required":["addons"],"additionalProperties":false},"members":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"handle":{"type":"string"},"harness":{"type":"string"},"model":{"anyOf":[{"type":"string"},{"type":"null"}]},"tier":{"type":"string","enum":["core","worker"]},"position":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string","enum":["active","removed"]},"livenessState":{"type":"string","enum":["ok","degraded"]},"degradedReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"doorState":{"type":"string"},"residency":{"type":"string"},"executionEpoch":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"contextEpoch":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"dedicatedSessionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"kit":{"type":"object","properties":{"addons":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"boolean","const":false}]}},"chips":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"addonId":{"type":"string"},"kind":{"type":"string","enum":["capability","tool","skill"]},"label":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"envNames":{"type":"array","items":{"type":"string"}}},"required":["key","addonId","kind","label"],"additionalProperties":false}},"revision":{"anyOf":[{"type":"string","pattern":"^[0-9a-f]{12}$"},{"type":"null"}]},"desiredRevision":{"type":"string","pattern":"^[0-9a-f]{12}$"},"pending":{"type":"boolean"},"modelPending":{"type":"boolean"},"state":{"type":"string","enum":["ok","refused","boot_failed"]},"appliedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["addons","chips","revision","desiredRevision","pending","modelPending","state","appliedAt"],"additionalProperties":false}},"required":["id","handle","harness","model","tier","position","status","livenessState","degradedReason","doorState","residency","executionEpoch","contextEpoch","dedicatedSessionId","kit"],"additionalProperties":false}},"squads":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"members":{"type":"array","items":{"type":"string"}}},"required":["id","name","members"],"additionalProperties":false}},"missions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"status":{"type":"string"}},"required":["id","title","status"],"additionalProperties":false}}},"required":["id","name","slug","status","researchUse","activeMissions","queuedMissions","budget","eventSeq","createdAt","updatedAt","roster","activeMissionRefs","sessionSlots","ownerUserId","config","budgets","resources","kit","members","squads","missions"],"additionalProperties":false},"eventSeq":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["team","eventSeq"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"KIT_BIND_AUTHORITY_REQUIRED: the change adds code (a stdio MCP server, a git skill) or a new destination to a member that holds secrets; it needs the secret-binding authority (binding an org secret needs any organization role except Viewer; an api key also needs the secrets:bind scope (or secrets:reveal)).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such team (id or slug) in the caller's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"CREDENTIAL_IN_USE: a repo credential change while core members' workspaces hold the current ones. KIT_SECRET_IN_USE: a secret a member's current workspace holds would no longer be bound; remove or swap it with members.applyKit {kit}.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"KIT_INVALID (an add-on refused its config, details.cause), KIT_RESERVED_NAME, KIT_LITERAL_CREDENTIAL, KIT_TOO_LARGE (details.limit), or INVALID_INPUT for a kit secret that cannot be bound.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"autopilot:write","x-ora-product":"experiment","x-ora-stability":"beta","x-ora-service":"experiments-service"}},"/experiment/v1/autopilot/teams/{team}/archive":{"post":{"operationId":"autopilot.teams.archive","summary":"Archive a team and release its session slots; refused while a mission is non-terminal","parameters":[{"name":"team","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}}],"responses":{"200":{"description":"Archive a team and release its session slots; refused while a mission is non-terminal","content":{"application/json":{"schema":{"type":"object","properties":{"teamId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["active","pausing","paused","stopping","stopped","archived"]},"eventSeq":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["teamId","status","eventSeq"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"TEAM_HAS_ACTIVE_MISSIONS.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"autopilot:write","x-ora-product":"experiment","x-ora-stability":"beta","x-ora-service":"experiments-service"}},"/experiment/v1/autopilot/teams/{team}/events":{"get":{"operationId":"autopilot.events.list","summary":"Page the durable team event log by seq (afterSeq + limit ≤ 500)","parameters":[{"name":"team","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"missionId","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"messageId","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"exportId","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"afterSeq","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}},{"name":"limit","in":"query","required":false,"schema":{"default":100,"type":"integer","minimum":1,"maximum":500}},{"name":"kinds","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Page the durable team event log by seq (afterSeq + limit ≤ 500)","content":{"application/json":{"schema":{"type":"object","properties":{"events":{"type":"array","items":{"type":"object","properties":{"seq":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","pattern":"^[a-z][a-z0-9_]*\\.[a-z][a-z0-9_.]*$"},"schemaVersion":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"missionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"occurredAt":{"type":"string"},"recordedAt":{"type":"string"},"clockSource":{"type":"string","enum":["db","pod","provider","operator_client"]},"causedByEventId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"actor":{"type":"object","properties":{"kind":{"type":"string","enum":["operator","member","system"]},"memberId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"handle":{"type":"string"}},"required":["kind"],"additionalProperties":false},"summary":{"type":"string"},"payload":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["seq","id","kind","schemaVersion","missionId","occurredAt","recordedAt","clockSource","causedByEventId","actor","summary","payload"],"additionalProperties":false}},"nextAfterSeq":{"type":"integer","minimum":0,"maximum":9007199254740991},"hasMore":{"type":"boolean"}},"required":["events","nextAfterSeq","hasMore"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"autopilot:read","x-ora-product":"experiment","x-ora-stability":"beta","x-ora-service":"experiments-service"}},"/experiment/v1/autopilot/teams/{team}/exports":{"get":{"operationId":"autopilot.exports.list","summary":"List a team's exports, newest first","parameters":[{"name":"team","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":500}},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":200}}],"responses":{"200":{"description":"List a team's exports, newest first","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"exportId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["requested","completed","failed"]},"datasetId":{"anyOf":[{"type":"string"},{"type":"null"}]},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"completedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["exportId","status","datasetId","reason","createdAt","completedAt"],"additionalProperties":false}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["items","nextCursor"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"autopilot:export:write","x-ora-product":"experiment","x-ora-stability":"beta","x-ora-service":"experiments-service"},"post":{"operationId":"autopilot.exports.create","summary":"Request a research dataset export of terminal missions; completes asynchronously","parameters":[{"name":"team","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"missionIds":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"from":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"to":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"clientKey":{"type":"string","minLength":1,"maxLength":200}},"additionalProperties":false}}}},"responses":{"202":{"description":"Request a research dataset export of terminal missions; completes asynchronously","content":{"application/json":{"schema":{"type":"object","properties":{"exportId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["requested","completed","failed"]},"eventSeq":{"type":"integer","minimum":0,"maximum":9007199254740991},"streamUrl":{"type":"string"}},"required":["exportId","status","eventSeq","streamUrl"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"autopilot:export:write","x-ora-product":"experiment","x-ora-stability":"beta","x-ora-service":"experiments-service"}},"/experiment/v1/autopilot/teams/{team}/exports/{export}":{"get":{"operationId":"autopilot.exports.get","summary":"An export's manifest, redaction report and a fresh 15-minute signed artifactUrl (never a JSONL body)","parameters":[{"name":"team","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"export","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}}],"responses":{"200":{"description":"An export's manifest, redaction report and a fresh 15-minute signed artifactUrl (never a JSONL body)","content":{"application/json":{"schema":{"type":"object","properties":{"exportId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["requested","completed","failed"]},"datasetId":{"anyOf":[{"type":"string"},{"type":"null"}]},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"completedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"manifest":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"artifactUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"redactionReport":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]}},"required":["exportId","status","datasetId","reason","createdAt","completedAt","manifest","artifactUrl","expiresAt","redactionReport"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"autopilot:export:write","x-ora-product":"experiment","x-ora-stability":"beta","x-ora-service":"experiments-service"}},"/experiment/v1/autopilot/teams/{team}/members":{"get":{"operationId":"autopilot.members.list","summary":"List a team's members","parameters":[{"name":"team","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}}],"responses":{"200":{"description":"List a team's members","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"handle":{"type":"string"},"harness":{"type":"string"},"model":{"anyOf":[{"type":"string"},{"type":"null"}]},"tier":{"type":"string","enum":["core","worker"]},"position":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string","enum":["active","removed"]},"livenessState":{"type":"string","enum":["ok","degraded"]},"degradedReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"doorState":{"type":"string"},"residency":{"type":"string"},"executionEpoch":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"contextEpoch":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"dedicatedSessionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"kit":{"type":"object","properties":{"addons":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"boolean","const":false}]}},"chips":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"addonId":{"type":"string"},"kind":{"type":"string","enum":["capability","tool","skill"]},"label":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"envNames":{"type":"array","items":{"type":"string"}}},"required":["key","addonId","kind","label"],"additionalProperties":false}},"revision":{"anyOf":[{"type":"string","pattern":"^[0-9a-f]{12}$"},{"type":"null"}]},"desiredRevision":{"type":"string","pattern":"^[0-9a-f]{12}$"},"pending":{"type":"boolean"},"modelPending":{"type":"boolean"},"state":{"type":"string","enum":["ok","refused","boot_failed"]},"appliedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["addons","chips","revision","desiredRevision","pending","modelPending","state","appliedAt"],"additionalProperties":false}},"required":["id","handle","harness","model","tier","position","status","livenessState","degradedReason","doorState","residency","executionEpoch","contextEpoch","dedicatedSessionId","kit"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"autopilot:read","x-ora-product":"experiment","x-ora-stability":"beta","x-ora-service":"experiments-service"},"post":{"operationId":"autopilot.members.add","summary":"Add a core member; it joins later missions, never an active lane","parameters":[{"name":"team","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"handle":{"type":"string","pattern":"^[a-z0-9][a-z0-9_-]{0,31}$"},"harness":{"type":"string","minLength":1,"maxLength":100},"model":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"tier":{"default":"core","type":"string","const":"core"},"position":{"type":"string","minLength":1,"maxLength":64},"kit":{"type":"object","properties":{"addons":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"boolean","const":false}]}}},"additionalProperties":false}},"required":["handle","harness"]}}}},"responses":{"201":{"description":"Add a core member; it joins later missions, never an active lane","content":{"application/json":{"schema":{"type":"object","properties":{"teamId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"member":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"handle":{"type":"string"},"harness":{"type":"string"},"model":{"anyOf":[{"type":"string"},{"type":"null"}]},"tier":{"type":"string","enum":["core","worker"]},"position":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string","enum":["active","removed"]},"livenessState":{"type":"string","enum":["ok","degraded"]},"degradedReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"doorState":{"type":"string"},"residency":{"type":"string"},"executionEpoch":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"contextEpoch":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"dedicatedSessionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"kit":{"type":"object","properties":{"addons":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"boolean","const":false}]}},"chips":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"addonId":{"type":"string"},"kind":{"type":"string","enum":["capability","tool","skill"]},"label":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"envNames":{"type":"array","items":{"type":"string"}}},"required":["key","addonId","kind","label"],"additionalProperties":false}},"revision":{"anyOf":[{"type":"string","pattern":"^[0-9a-f]{12}$"},{"type":"null"}]},"desiredRevision":{"type":"string","pattern":"^[0-9a-f]{12}$"},"pending":{"type":"boolean"},"modelPending":{"type":"boolean"},"state":{"type":"string","enum":["ok","refused","boot_failed"]},"appliedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["addons","chips","revision","desiredRevision","pending","modelPending","state","appliedAt"],"additionalProperties":false}},"required":["id","handle","harness","model","tier","position","status","livenessState","degradedReason","doorState","residency","executionEpoch","contextEpoch","dedicatedSessionId","kit"],"additionalProperties":false},"eventSeq":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["teamId","member","eventSeq"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"LIMIT_EXCEEDED: no session slot left.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"KIT_BIND_AUTHORITY_REQUIRED: the change adds code (a stdio MCP server, a git skill) or a new destination to a member that holds secrets; it needs the secret-binding authority (binding an org secret needs any organization role except Viewer; an api key also needs the secrets:bind scope (or secrets:reveal)).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"HANDLE_TAKEN.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"KIT_INVALID (an add-on refused its config, details.cause), KIT_RESERVED_NAME, KIT_LITERAL_CREDENTIAL, KIT_TOO_LARGE (details.limit), or INVALID_INPUT for a kit secret that cannot be bound.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"autopilot:write","x-ora-product":"experiment","x-ora-stability":"beta","x-ora-service":"experiments-service"}},"/experiment/v1/autopilot/teams/{team}/members/{member}":{"patch":{"operationId":"autopilot.members.update","summary":"Change a member's model, position or kit (a position change is logged as member.position_assigned; a model or kit change is pending until a fresh workspace applies it)","parameters":[{"name":"team","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"member","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"model":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"position":{"type":"string","minLength":1,"maxLength":64},"kit":{"type":"object","properties":{"addons":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"boolean","const":false}]}}},"additionalProperties":false}},"additionalProperties":false}}}},"responses":{"200":{"description":"Change a member's model, position or kit (a position change is logged as member.position_assigned; a model or kit change is pending until a fresh workspace applies it)","content":{"application/json":{"schema":{"type":"object","properties":{"teamId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"member":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"handle":{"type":"string"},"harness":{"type":"string"},"model":{"anyOf":[{"type":"string"},{"type":"null"}]},"tier":{"type":"string","enum":["core","worker"]},"position":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string","enum":["active","removed"]},"livenessState":{"type":"string","enum":["ok","degraded"]},"degradedReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"doorState":{"type":"string"},"residency":{"type":"string"},"executionEpoch":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"contextEpoch":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"dedicatedSessionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"kit":{"type":"object","properties":{"addons":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"boolean","const":false}]}},"chips":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"addonId":{"type":"string"},"kind":{"type":"string","enum":["capability","tool","skill"]},"label":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"envNames":{"type":"array","items":{"type":"string"}}},"required":["key","addonId","kind","label"],"additionalProperties":false}},"revision":{"anyOf":[{"type":"string","pattern":"^[0-9a-f]{12}$"},{"type":"null"}]},"desiredRevision":{"type":"string","pattern":"^[0-9a-f]{12}$"},"pending":{"type":"boolean"},"modelPending":{"type":"boolean"},"state":{"type":"string","enum":["ok","refused","boot_failed"]},"appliedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["addons","chips","revision","desiredRevision","pending","modelPending","state","appliedAt"],"additionalProperties":false}},"required":["id","handle","harness","model","tier","position","status","livenessState","degradedReason","doorState","residency","executionEpoch","contextEpoch","dedicatedSessionId","kit"],"additionalProperties":false},"eventSeq":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["teamId","member","eventSeq"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"KIT_BIND_AUTHORITY_REQUIRED: the change adds code (a stdio MCP server, a git skill) or a new destination to a member that holds secrets; it needs the secret-binding authority (binding an org secret needs any organization role except Viewer; an api key also needs the secrets:bind scope (or secrets:reveal)).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"KIT_SECRET_IN_USE: a secret a member's current workspace holds would no longer be bound; remove or swap it with members.applyKit {kit}.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"KIT_INVALID (an add-on refused its config, details.cause), KIT_RESERVED_NAME, KIT_LITERAL_CREDENTIAL, KIT_TOO_LARGE (details.limit), or INVALID_INPUT for a kit secret that cannot be bound.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"autopilot:write","x-ora-product":"experiment","x-ora-stability":"beta","x-ora-service":"experiments-service"},"delete":{"operationId":"autopilot.members.remove","summary":"Remove a member: its pending recipients fail and its workspace is released","parameters":[{"name":"team","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"member","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}}],"responses":{"200":{"description":"Remove a member: its pending recipients fail and its workspace is released","content":{"application/json":{"schema":{"type":"object","properties":{"teamId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"memberId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","const":"removed"},"eventSeq":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["teamId","memberId","status","eventSeq"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"autopilot:write","x-ora-product":"experiment","x-ora-stability":"beta","x-ora-service":"experiments-service"}},"/experiment/v1/autopilot/teams/{team}/members/{member}/kit/apply":{"post":{"operationId":"autopilot.members.applyKit","summary":"Apply a member's kit and model on a fresh workspace (the disk is replaced; replaceDisk must be true); with kit, set it and apply it in one call","parameters":[{"name":"team","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"member","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","enum":["fresh-workspace"]},"replaceDisk":{"type":"boolean","const":true},"kit":{"type":"object","properties":{"addons":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"boolean","const":false}]}}},"additionalProperties":false},"clientKey":{"type":"string","minLength":1,"maxLength":200}},"required":["mode","replaceDisk"],"additionalProperties":false}}}},"responses":{"202":{"description":"Apply a member's kit and model on a fresh workspace (the disk is replaced; replaceDisk must be true); with kit, set it and apply it in one call","content":{"application/json":{"schema":{"type":"object","properties":{"teamId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"member":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"handle":{"type":"string"},"harness":{"type":"string"},"model":{"anyOf":[{"type":"string"},{"type":"null"}]},"tier":{"type":"string","enum":["core","worker"]},"position":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string","enum":["active","removed"]},"livenessState":{"type":"string","enum":["ok","degraded"]},"degradedReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"doorState":{"type":"string"},"residency":{"type":"string"},"executionEpoch":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"contextEpoch":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"dedicatedSessionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"kit":{"type":"object","properties":{"addons":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"boolean","const":false}]}},"chips":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"addonId":{"type":"string"},"kind":{"type":"string","enum":["capability","tool","skill"]},"label":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"envNames":{"type":"array","items":{"type":"string"}}},"required":["key","addonId","kind","label"],"additionalProperties":false}},"revision":{"anyOf":[{"type":"string","pattern":"^[0-9a-f]{12}$"},{"type":"null"}]},"desiredRevision":{"type":"string","pattern":"^[0-9a-f]{12}$"},"pending":{"type":"boolean"},"modelPending":{"type":"boolean"},"state":{"type":"string","enum":["ok","refused","boot_failed"]},"appliedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["addons","chips","revision","desiredRevision","pending","modelPending","state","appliedAt"],"additionalProperties":false}},"required":["id","handle","harness","model","tier","position","status","livenessState","degradedReason","doorState","residency","executionEpoch","contextEpoch","dedicatedSessionId","kit"],"additionalProperties":false},"commandId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"eventSeq":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["teamId","member","commandId","eventSeq"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"KIT_BIND_AUTHORITY_REQUIRED: the change adds code (a stdio MCP server, a git skill) or a new destination to a member that holds secrets; it needs the secret-binding authority (binding an org secret needs any organization role except Viewer; an api key also needs the secrets:bind scope (or secrets:reveal)).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"KIT_APPLY_IN_MISSION: the member is in the lane of a queued or running mission (queued, active, draining, pausing, paused or stopping).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"KIT_INVALID (an add-on refused its config, details.cause), KIT_RESERVED_NAME, KIT_LITERAL_CREDENTIAL, KIT_TOO_LARGE (details.limit), or INVALID_INPUT for a kit secret that cannot be bound.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"autopilot:write","x-ora-product":"experiment","x-ora-stability":"beta","x-ora-service":"experiments-service"}},"/experiment/v1/autopilot/teams/{team}/members/{member}/segments/{batch}":{"get":{"operationId":"autopilot.segments.get","summary":"One closed segment's stored trajectory","parameters":[{"name":"team","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"member","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"batch","in":"path","required":true,"schema":{"type":"string","pattern":"^(batch|self)-[A-Za-z0-9_-]{1,120}$"}}],"responses":{"200":{"description":"One closed segment's stored trajectory","content":{"application/json":{"schema":{"type":"object","properties":{"memberId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"batchId":{"type":"string"},"sessionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"traceRef":{"type":"string"},"trajectoryRef":{"type":"string"},"spansDropped":{"type":"integer","minimum":0,"maximum":9007199254740991},"stepsDropped":{"type":"integer","minimum":0,"maximum":9007199254740991},"trajectory":{}},"required":["memberId","batchId","sessionId","traceRef","trajectoryRef","spansDropped","stepsDropped","trajectory"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"autopilot:read","x-ora-product":"experiment","x-ora-stability":"beta","x-ora-service":"experiments-service"}},"/experiment/v1/autopilot/teams/{team}/members/{member}/transcript/stream":{"get":{"operationId":"autopilot.members.transcript","summary":"SSE: one frame per closed session-trace segment of a core member","parameters":[{"name":"team","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"member","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"after","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}}],"responses":{"200":{"description":"SSE: one frame per closed session-trace segment of a core member","content":{"application/json":{"schema":{}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"autopilot:read","x-ora-product":"experiment","x-ora-stability":"beta","x-ora-service":"experiments-service"}},"/experiment/v1/autopilot/teams/{team}/messages":{"post":{"operationId":"autopilot.messages.send","summary":"Message members of an active mission (interrupt: true is operator authority); never creates a mission","parameters":[{"name":"team","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"to":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":100}},"text":{"type":"string","minLength":1,"maxLength":100000},"interrupt":{"default":false,"type":"boolean"},"missionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"clientKey":{"type":"string","minLength":1,"maxLength":200}},"required":["to","text"]}}}},"responses":{"201":{"description":"Message members of an active mission (interrupt: true is operator authority); never creates a mission","content":{"application/json":{"schema":{"type":"object","properties":{"messageId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"missionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"recipients":{"type":"array","items":{"type":"object","properties":{"memberId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"handle":{"type":"string"},"status":{"type":"string","enum":["queued","delivering","consumed","blocked_by_policy","cancelled","expired","failed"]},"interruptDegraded":{"type":"boolean"}},"required":["memberId","handle","status","interruptDegraded"],"additionalProperties":false}},"eventSeq":{"type":"integer","minimum":0,"maximum":9007199254740991},"streamUrl":{"type":"string"}},"required":["messageId","missionId","recipients","eventSeq","streamUrl"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"NO_ACTIVE_MISSION (names the recipient), BUDGET_EXCEEDED.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"RECIPIENTS_SPAN_MISSIONS, RECIPIENT_NOT_IN_MISSION, RECIPIENT_IS_WORKER.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"autopilot:write","x-ora-product":"experiment","x-ora-stability":"beta","x-ora-service":"experiments-service"}},"/experiment/v1/autopilot/teams/{team}/missions":{"get":{"operationId":"autopilot.missions.list","summary":"List a team's missions, newest first","parameters":[{"name":"team","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":500}},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":200}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["queued","active","draining","pausing","paused","stopping","done","failed_to_converge","failed","stopped"]}}],"responses":{"200":{"description":"List a team's missions, newest first","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"status":{"type":"string","enum":["queued","active","draining","pausing","paused","stopping","done","failed_to_converge","failed","stopped"]},"outcome":{"anyOf":[{"type":"string"},{"type":"null"}]},"endedBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"target":{"type":"object","properties":{"kind":{"type":"string","enum":["team","squad","member"]},"id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["kind","id"],"additionalProperties":false},"epoch":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"epochsMixed":{"type":"boolean"},"measurable":{"type":"boolean"},"turns":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"reservedUsd":{"type":"number"},"settledUsd":{"type":"number"},"startedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"endedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"costNullReason":{"anyOf":[{"type":"string","enum":["unpriced_model","telemetry_dark","truncated"]},{"type":"null"}]},"unmeasuredReasons":{"type":"array","items":{"type":"string"}},"axes":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"key":{"type":"string"}},"required":["key"],"additionalProperties":false}},"workspaceMode":{"anyOf":[{"type":"string"},{"type":"null"}]},"liveWorkers":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["id","title","status","outcome","endedBy","target","epoch","epochsMixed","measurable","turns","reservedUsd","settledUsd","startedAt","endedAt","createdAt","costNullReason","unmeasuredReasons","axes","workspaceMode","liveWorkers"],"additionalProperties":false}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["items","nextCursor"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"autopilot:read","x-ora-product":"experiment","x-ora-stability":"beta","x-ora-service":"experiments-service"},"post":{"operationId":"autopilot.missions.create","summary":"Send a task to the team, a squad or one member; the Scheduling axis starts, queues or adds it","parameters":[{"name":"team","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"target":{"type":"object","properties":{"kind":{"type":"string","enum":["team","squad","member"]},"id":{"type":"string","minLength":1,"maxLength":100}},"required":["kind"]},"title":{"type":"string","minLength":1,"maxLength":500},"instructions":{"type":"string","minLength":1,"maxLength":100000},"overrides":{"type":"object","properties":{"preset":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,62}@[1-9][0-9]*$"},"budgets":{"type":"object","properties":{"onTrip":{"type":"string","enum":["pause","stop"]},"mission":{"type":"object","properties":{"usd":{"type":"number","exclusiveMinimum":0},"tokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"turns":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"wallClockMin":{"type":"number","exclusiveMinimum":0}}},"member":{"type":"object","properties":{"turnWallClockSec":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}}}},"additionalProperties":false}},"additionalProperties":false},"clientKey":{"type":"string","minLength":1,"maxLength":200}},"required":["target","instructions"]}}}},"responses":{"201":{"description":"Send a task to the team, a squad or one member; the Scheduling axis starts, queues or adds it","content":{"application/json":{"schema":{"type":"object","properties":{"missionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"outcome":{"type":"string","enum":["started","queued","added"]},"queuePosition":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"boardTaskId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"eventSeq":{"type":"integer","minimum":0,"maximum":9007199254740991},"streamUrl":{"type":"string"}},"required":["missionId","outcome","queuePosition","boardTaskId","eventSeq","streamUrl"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"BUDGET_EXCEEDED, TEAM_NOT_ACCEPTING.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"UNPRICED_MODEL, POLICY_INVALID.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"autopilot:write","x-ora-product":"experiment","x-ora-stability":"beta","x-ora-service":"experiments-service"}},"/experiment/v1/autopilot/teams/{team}/missions/{mission}":{"get":{"operationId":"autopilot.missions.get","summary":"Get a mission: lane, frozen snapshot, counters","parameters":[{"name":"team","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"mission","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}}],"responses":{"200":{"description":"Get a mission: lane, frozen snapshot, counters","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"status":{"type":"string","enum":["queued","active","draining","pausing","paused","stopping","done","failed_to_converge","failed","stopped"]},"outcome":{"anyOf":[{"type":"string"},{"type":"null"}]},"endedBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"target":{"type":"object","properties":{"kind":{"type":"string","enum":["team","squad","member"]},"id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["kind","id"],"additionalProperties":false},"epoch":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"epochsMixed":{"type":"boolean"},"measurable":{"type":"boolean"},"turns":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"reservedUsd":{"type":"number"},"settledUsd":{"type":"number"},"startedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"endedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"costNullReason":{"anyOf":[{"type":"string","enum":["unpriced_model","telemetry_dark","truncated"]},{"type":"null"}]},"unmeasuredReasons":{"type":"array","items":{"type":"string"}},"axes":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"key":{"type":"string"}},"required":["key"],"additionalProperties":false}},"workspaceMode":{"anyOf":[{"type":"string"},{"type":"null"}]},"liveWorkers":{"type":"integer","minimum":0,"maximum":9007199254740991},"instructions":{"type":"string"},"lane":{"type":"array","items":{"type":"object","properties":{"memberId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"handle":{"type":"string"},"positionAtStart":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["memberId","handle","positionAtStart"],"additionalProperties":false}},"snapshot":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]}},"required":["id","title","status","outcome","endedBy","target","epoch","epochsMixed","measurable","turns","reservedUsd","settledUsd","startedAt","endedAt","createdAt","costNullReason","unmeasuredReasons","axes","workspaceMode","liveWorkers","instructions","lane","snapshot"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"autopilot:read","x-ora-product":"experiment","x-ora-stability":"beta","x-ora-service":"experiments-service"},"patch":{"operationId":"autopilot.missions.update","summary":"Change a live mission's budgets (a kernel-reserved budget change, logged as mission.budget_changed)","parameters":[{"name":"team","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"mission","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"budgets":{"type":"object","properties":{"onTrip":{"type":"string","enum":["pause","stop"]},"mission":{"type":"object","properties":{"usd":{"type":"number","exclusiveMinimum":0},"tokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"turns":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"wallClockMin":{"type":"number","exclusiveMinimum":0}}},"member":{"type":"object","properties":{"turnWallClockSec":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}}}},"additionalProperties":false}},"required":["budgets"],"additionalProperties":false}}}},"responses":{"200":{"description":"Change a live mission's budgets (a kernel-reserved budget change, logged as mission.budget_changed)","content":{"application/json":{"schema":{"type":"object","properties":{"missionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"budgets":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"eventSeq":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["missionId","budgets","eventSeq"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"autopilot:write","x-ora-product":"experiment","x-ora-stability":"beta","x-ora-service":"experiments-service"}},"/experiment/v1/autopilot/teams/{team}/missions/{mission}/board":{"get":{"operationId":"autopilot.board.list","summary":"A mission's board tasks","parameters":[{"name":"team","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"mission","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}}],"responses":{"200":{"description":"A mission's board tasks","content":{"application/json":{"schema":{"type":"object","properties":{"missionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"body":{"type":"string"},"status":{"type":"string","enum":["open","claimed","in_progress","blocked","done"]},"assigneeMemberId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"assigneeHandle":{"anyOf":[{"type":"string"},{"type":"null"}]},"creatorKind":{"type":"string","enum":["member","operator","system"]},"creatorMemberId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"parentTaskId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","title","body","status","assigneeMemberId","assigneeHandle","creatorKind","creatorMemberId","parentTaskId","createdAt","updatedAt"],"additionalProperties":false}}},"required":["missionId","items"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"autopilot:read","x-ora-product":"experiment","x-ora-stability":"beta","x-ora-service":"experiments-service"}},"/experiment/v1/autopilot/teams/{team}/missions/{mission}/pause":{"post":{"operationId":"autopilot.missions.pause","summary":"Pause a mission (mode graceful or immediate); finishes asynchronously","parameters":[{"name":"team","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"mission","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"mode","in":"query","required":false,"schema":{"default":"graceful","type":"string","enum":["graceful","immediate"]}}],"responses":{"202":{"description":"Pause a mission (mode graceful or immediate); finishes asynchronously","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"eventSeq":{"type":"integer","minimum":0,"maximum":9007199254740991},"streamUrl":{"type":"string"},"stillPausedMissionIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["status","eventSeq","streamUrl"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"MISSION_DRAINING, INVALID_TRANSITION.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"autopilot:write","x-ora-product":"experiment","x-ora-stability":"beta","x-ora-service":"experiments-service"}},"/experiment/v1/autopilot/teams/{team}/missions/{mission}/resume":{"post":{"operationId":"autopilot.missions.resume","summary":"Resume a paused mission (bumps its epoch)","parameters":[{"name":"team","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"mission","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}}],"responses":{"202":{"description":"Resume a paused mission (bumps its epoch)","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"eventSeq":{"type":"integer","minimum":0,"maximum":9007199254740991},"streamUrl":{"type":"string"},"stillPausedMissionIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["status","eventSeq","streamUrl"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"BUDGET_EXHAUSTED while a tripped cap is still below spend; INVALID_TRANSITION.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"autopilot:write","x-ora-product":"experiment","x-ora-stability":"beta","x-ora-service":"experiments-service"}},"/experiment/v1/autopilot/teams/{team}/missions/{mission}/stop":{"post":{"operationId":"autopilot.missions.stop","summary":"Stop a mission (mode graceful or immediate); finishes asynchronously","parameters":[{"name":"team","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"mission","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"mode","in":"query","required":false,"schema":{"default":"graceful","type":"string","enum":["graceful","immediate"]}}],"responses":{"202":{"description":"Stop a mission (mode graceful or immediate); finishes asynchronously","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"eventSeq":{"type":"integer","minimum":0,"maximum":9007199254740991},"streamUrl":{"type":"string"},"stillPausedMissionIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["status","eventSeq","streamUrl"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"autopilot:write","x-ora-product":"experiment","x-ora-stability":"beta","x-ora-service":"experiments-service"}},"/experiment/v1/autopilot/teams/{team}/notes":{"get":{"operationId":"autopilot.notes.list","summary":"The team's notes (agent-written, attributed)","parameters":[{"name":"team","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":500}},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":200}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["active","quarantined","superseded"]}}],"responses":{"200":{"description":"The team's notes (agent-written, attributed)","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"body":{"type":"string"},"status":{"type":"string","enum":["active","quarantined","superseded"]},"creatorKind":{"type":"string","enum":["member","operator","system"]},"creatorMemberId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"missionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"turnId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"supersedesNoteId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","title","body","status","creatorKind","creatorMemberId","missionId","turnId","supersedesNoteId","createdAt"],"additionalProperties":false}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["items","nextCursor"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"autopilot:read","x-ora-product":"experiment","x-ora-stability":"beta","x-ora-service":"experiments-service"}},"/experiment/v1/autopilot/teams/{team}/notes/{note}":{"get":{"operationId":"autopilot.notes.get","summary":"Get one note","parameters":[{"name":"team","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"note","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}}],"responses":{"200":{"description":"Get one note","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"body":{"type":"string"},"status":{"type":"string","enum":["active","quarantined","superseded"]},"creatorKind":{"type":"string","enum":["member","operator","system"]},"creatorMemberId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"missionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"turnId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"supersedesNoteId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","title","body","status","creatorKind","creatorMemberId","missionId","turnId","supersedesNoteId","createdAt"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"autopilot:read","x-ora-product":"experiment","x-ora-stability":"beta","x-ora-service":"experiments-service"}},"/experiment/v1/autopilot/teams/{team}/notes/{note}/quarantine":{"post":{"operationId":"autopilot.notes.quarantine","summary":"Quarantine a note: it is never served to agents again","parameters":[{"name":"team","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"note","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}}],"responses":{"200":{"description":"Quarantine a note: it is never served to agents again","content":{"application/json":{"schema":{"type":"object","properties":{"note":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"body":{"type":"string"},"status":{"type":"string","enum":["active","quarantined","superseded"]},"creatorKind":{"type":"string","enum":["member","operator","system"]},"creatorMemberId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"missionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"turnId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"supersedesNoteId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","title","body","status","creatorKind","creatorMemberId","missionId","turnId","supersedesNoteId","createdAt"],"additionalProperties":false},"eventSeq":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["note","eventSeq"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"autopilot:write","x-ora-product":"experiment","x-ora-stability":"beta","x-ora-service":"experiments-service"}},"/experiment/v1/autopilot/teams/{team}/notes/{note}/rollback":{"post":{"operationId":"autopilot.notes.rollback","summary":"Roll a note back to the version it superseded","parameters":[{"name":"team","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"note","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}}],"responses":{"200":{"description":"Roll a note back to the version it superseded","content":{"application/json":{"schema":{"type":"object","properties":{"note":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"body":{"type":"string"},"status":{"type":"string","enum":["active","quarantined","superseded"]},"creatorKind":{"type":"string","enum":["member","operator","system"]},"creatorMemberId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"missionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"turnId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"supersedesNoteId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","title","body","status","creatorKind","creatorMemberId","missionId","turnId","supersedesNoteId","createdAt"],"additionalProperties":false},"eventSeq":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["note","eventSeq"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"NOTE_HAS_NO_PREVIOUS.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"autopilot:write","x-ora-product":"experiment","x-ora-stability":"beta","x-ora-service":"experiments-service"}},"/experiment/v1/autopilot/teams/{team}/pause":{"post":{"operationId":"autopilot.teams.pause","summary":"Pause every active mission and close admission","parameters":[{"name":"team","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"mode","in":"query","required":false,"schema":{"default":"graceful","type":"string","enum":["graceful","immediate"]}}],"responses":{"202":{"description":"Pause every active mission and close admission","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"eventSeq":{"type":"integer","minimum":0,"maximum":9007199254740991},"streamUrl":{"type":"string"},"stillPausedMissionIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["status","eventSeq","streamUrl"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"autopilot:write","x-ora-product":"experiment","x-ora-stability":"beta","x-ora-service":"experiments-service"}},"/experiment/v1/autopilot/teams/{team}/resume":{"post":{"operationId":"autopilot.teams.resume","summary":"Resume a paused team, or re-open admission on a stopped one","parameters":[{"name":"team","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}}],"responses":{"202":{"description":"Resume a paused team, or re-open admission on a stopped one","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"eventSeq":{"type":"integer","minimum":0,"maximum":9007199254740991},"streamUrl":{"type":"string"},"stillPausedMissionIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["status","eventSeq","streamUrl"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"autopilot:write","x-ora-product":"experiment","x-ora-stability":"beta","x-ora-service":"experiments-service"}},"/experiment/v1/autopilot/teams/{team}/squads":{"get":{"operationId":"autopilot.squads.list","summary":"List a team's squads","parameters":[{"name":"team","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}}],"responses":{"200":{"description":"List a team's squads","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"members":{"type":"array","items":{"type":"string"}}},"required":["id","name","members"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"autopilot:read","x-ora-product":"experiment","x-ora-stability":"beta","x-ora-service":"experiments-service"},"post":{"operationId":"autopilot.squads.create","summary":"Create a squad (a named subset of members a mission can target)","parameters":[{"name":"team","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","pattern":"^[a-z0-9][a-z0-9_-]{0,62}$"},"members":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"string","pattern":"^[a-z0-9][a-z0-9_-]{0,31}$"}}},"required":["name","members"]}}}},"responses":{"201":{"description":"Create a squad (a named subset of members a mission can target)","content":{"application/json":{"schema":{"type":"object","properties":{"teamId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"squad":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"members":{"type":"array","items":{"type":"string"}}},"required":["id","name","members"],"additionalProperties":false},"eventSeq":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["teamId","squad","eventSeq"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"SQUAD_NAME_TAKEN.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"autopilot:write","x-ora-product":"experiment","x-ora-stability":"beta","x-ora-service":"experiments-service"}},"/experiment/v1/autopilot/teams/{team}/squads/{squad}":{"patch":{"operationId":"autopilot.squads.update","summary":"Replace a squad's members","parameters":[{"name":"team","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"squad","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"members":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"string","pattern":"^[a-z0-9][a-z0-9_-]{0,31}$"}}},"required":["members"],"additionalProperties":false}}}},"responses":{"200":{"description":"Replace a squad's members","content":{"application/json":{"schema":{"type":"object","properties":{"teamId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"squad":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"members":{"type":"array","items":{"type":"string"}}},"required":["id","name","members"],"additionalProperties":false},"eventSeq":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["teamId","squad","eventSeq"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"autopilot:write","x-ora-product":"experiment","x-ora-stability":"beta","x-ora-service":"experiments-service"},"delete":{"operationId":"autopilot.squads.delete","summary":"Delete a squad; refused while a non-terminal mission targets it","parameters":[{"name":"team","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"squad","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}}],"responses":{"200":{"description":"Delete a squad; refused while a non-terminal mission targets it","content":{"application/json":{"schema":{"type":"object","properties":{"teamId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"squadId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"eventSeq":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["teamId","squadId","eventSeq"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"SQUAD_IN_USE.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"autopilot:write","x-ora-product":"experiment","x-ora-stability":"beta","x-ora-service":"experiments-service"}},"/experiment/v1/autopilot/teams/{team}/stop":{"post":{"operationId":"autopilot.teams.stop","summary":"Stop every non-terminal mission","parameters":[{"name":"team","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"mode","in":"query","required":false,"schema":{"default":"graceful","type":"string","enum":["graceful","immediate"]}}],"responses":{"202":{"description":"Stop every non-terminal mission","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"eventSeq":{"type":"integer","minimum":0,"maximum":9007199254740991},"streamUrl":{"type":"string"},"stillPausedMissionIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["status","eventSeq","streamUrl"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"autopilot:write","x-ora-product":"experiment","x-ora-stability":"beta","x-ora-service":"experiments-service"}},"/experiment/v1/autopilot/teams/{team}/stream":{"get":{"operationId":"autopilot.teams.stream","summary":"SSE: replay the team log after `after` (≤ 1,000 events), then tail it live; optionally scoped to a mission, message or export","parameters":[{"name":"team","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"after","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}},{"name":"missionId","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"messageId","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"exportId","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"until","in":"query","required":false,"schema":{"type":"string","enum":["settled","paused","resumed","stopped"]}}],"responses":{"200":{"description":"SSE: replay the team log after `after` (≤ 1,000 events), then tail it live; optionally scoped to a mission, message or export","content":{"application/json":{"schema":{}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"autopilot:read","x-ora-product":"experiment","x-ora-stability":"beta","x-ora-service":"experiments-service"}},"/experiment/v1/benchmarks":{"get":{"operationId":"benchmarks.list","summary":"List the org's studies (id, status, verdict, subject)","responses":{"200":{"description":"List the org's studies (id, status, verdict, subject)","content":{"application/json":{"schema":{"type":"object","properties":{"studies":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"executiveSummary":{"anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryDraft":{"description":"A PUBLISHED study's summary held for review, never shown on the public page: what `studies.regenerateSummary` writes on a published study (and the first summary of a published study nothing asked for). `studies.publish` makes exactly this text the published `executiveSummary`, while the readout it was written from is still current; otherwise publish regenerates. Absent where the product has no review drafts.","anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryRequest":{"description":"A summary an explicit act asked for and not yet written: 'live' — a publish, a re-open, or a regenerate on an UNPUBLISHED completed study owes the summary in place (the public page, once published); 'draft' — a regenerate on a published study owes the review draft one. Null once the request is answered — poll `studies.get` until it is: by the written summary (`executiveSummary` or `executiveSummaryDraft`), by a later act that superseded it (a publish, a newer regenerate — its own write answers it), or as unavailable (`executiveSummaryUnavailableAt` set). While the automatic retries back off after a failed attempt it stays pending. Absent where the product has no review drafts.","anyOf":[{"type":"string","enum":["live","draft"]},{"type":"null"}]},"executiveSummaryRequestedAt":{"description":"When `executiveSummaryRequest` was made.","anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryUnavailableAt":{"description":"When the last summary request was answered as UNAVAILABLE: every attempt the retry policy allows on the study's readout failed, so no summary will be written for it until the readout changes (runs added, a re-run, a regrade) or someone regenerates or publishes again. Null otherwise; cleared by a new request or a written summary. Absent where the product has no review drafts.","anyOf":[{"type":"string"},{"type":"null"}]},"plannedRunCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The exact number of runs `launch` will fan out (taskCount × variantsPerTask × repeats × matrix cells × arms). Check this BEFORE launching."},"organizationId":{"type":"string"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"slug":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillRef":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillSlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillName":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillPromise":{"type":"string"},"subjectKind":{"type":"string","enum":["skill","tools","addon","custom","benchmark","site"],"description":"What the study measures. 'skill': an agent skill (requires skillRef; the treatment arm runs with the skill attached). 'tools': the run's tool policy (web tools on vs off). 'addon': one run add-on (tavily, brave, desktop, mcp, secrets…). 'custom': any composition of skill + tools + add-ons, both arms fully spelled out in armConfig. 'benchmark': a pinned version of a catalog benchmark definition (requires definitionVersionId); the corpus is copied frozen from that version. Every comparisonMode applies: 'single' is a harness × model shootout whose ONE arm may carry your setup in armConfig.treatment (armConfig.baseline is refused); 'ab_vs_none' runs the setup in armConfig.treatment against the bare benchmark; 'ab_custom' runs two labelled setups (armConfig.baseline and armConfig.treatment) head to head. An A/B study needs a setup under test and two arms that differ. An arm that carries a setup is not the benchmark's bare protocol, so it does not seed the public leaderboard."},"subjectName":{"anyOf":[{"type":"string"},{"type":"null"}]},"siteDomain":{"description":"The website a 'site' study is run against (its host); absent for every other subject kind.","type":"string"},"subjectLabel":{"type":"string"},"armConfig":{"type":"object","properties":{"baseline":{"description":"The baseline arm's run-payload delta. Omitted = a bare run (no skill, no extras).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false},"treatment":{"description":"The treatment arm's run-payload delta (the thing under test).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"additionalProperties":false,"description":"Frozen per-arm run-payload deltas. Required for subjectKind 'custom' and comparisonMode 'ab_custom'; for 'tools'/'addon' subjects the treatment side is derived when omitted."},"comparisonMode":{"type":"string","enum":["ab_vs_none","ab_custom","single"],"description":"The baseline design. 'ab_vs_none' (default): treatment vs a bare baseline — classic A/B. 'ab_custom': BOTH arms explicitly configured via armConfig, labeled by baselineLabel/treatmentLabel (e.g. 'Remote MCP' vs 'REST API'). 'single': no baseline — one arm per (harness, model) cell, ranked into a leaderboard (verdict 'measured')."},"subjectBackend":{"anyOf":[{"type":"string","enum":["model","harness"],"description":"What answers a FRAMEWORK benchmark's requests: 'harness' — each request is answered by the cell's agent harness (the model inside its own loop, with the arm's tools, add-ons and skills), one agent run per request; 'model' — the framework's own client calls the cell's model directly and the cell's harness is not measured. Resolved once per study and recorded on every run."},{"type":"null"}]},"environmentExecutionPolicy":{"type":"string","enum":["legacy-v1","inside-v1"]},"importedFrom":{"type":"string"},"baselineLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"treatmentLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"promiseMetrics":{"type":"array","items":{"type":"object","properties":{"metric":{"type":"string","enum":["total_tokens","output_tokens","cost_usd","duration_ms","num_turns","success_rate","completion_rate","goal_rate"]},"direction":{"type":"string","enum":["down","up"]},"label":{"type":"string","minLength":1,"maxLength":120}},"required":["metric","direction","label"],"additionalProperties":false}},"matrix":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1,"maxLength":50,"description":"Harness id — the valid set (and each one's models) is GET /catalog; cells are validated against it at create."},"model":{"type":"string","minLength":1,"maxLength":100,"description":"Model id as the harness accepts it — valid ids per harness/provider are in GET /catalog (e.g. 'claude-sonnet-5', 'gpt-5.5')."},"provider":{"description":"Provider qualifier for multi-provider harnesses (e.g. 'anthropic', 'openai', 'google'). Omit to use the harness default.","type":"string","minLength":1,"maxLength":32},"params":{"description":"Provider params pinned for this cell (temperature, reasoningEffort, maxOutputTokens, thinkingBudgetTokens). A cell that pins none runs the provider's own defaults. Offered only where the harness declares support — see GET /catalog.","type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"maxOutputTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reasoningEffort":{"type":"string","enum":["low","medium","high"]},"thinkingBudgetTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"codeMode":{"type":"string","enum":["auto","on","off"]},"toolSearch":{"type":"string","enum":["on","off","directory"]},"location":{"type":"string","pattern":"^[A-Z]{2}$"},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$"}},"additionalProperties":false}},"required":["harness","model"],"additionalProperties":false,"description":"One (harness, model, params) cell — every task runs its arm(s) on every cell."}},"lenses":{"minItems":1,"type":"array","items":{"type":"string","enum":["judge","evals","reference","framework","execution","verifier"]},"description":"Which grading lenses this study runs under. Defaults to ['judge'] at create and stays editable while status is 'ready' (frozen at launch, like task expectations/rubrics). 'judge': the LLM judge panel (rubric grades + blind pairwise). 'evals': the deterministic @ora/eval-checks engine, scored against each task's authored expectations. 'reference': the static-QA lens — an answer extracted from the response and matched against the task's own reference key, scored 1/0 (spec §6.4). 'framework': the benchmark's OWN framework (HELM today) reports the metrics, mapped verbatim into a section rather than re-averaged (SP2 Task 9). 'execution': the candidate's code is extracted from the response and run against the task's own tests inside a sandboxed, network-less runner image (SP2 Task 16)."},"judgeSupplementary":{"type":"boolean"},"taskCount":{"type":"number"},"variantsPerTask":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Semantics-preserving paraphrases sampled per task (1-5; mirrors the create body's variantsPerTask). Absent at create defaults to 1 — every response reports a concrete value, including studies created before sampling existed."},"repeats":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Identical re-runs sampled per condition (1-10; mirrors the create body's repeats). Absent at create defaults to 1 — every response reports a concrete value, including studies created before sampling existed."},"subset":{"anyOf":[{"type":"object","properties":{"count":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"seed":{"type":"string","minLength":1},"of":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["count","seed","of"],"additionalProperties":false},{"type":"null"}]},"status":{"type":"string"},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"preparation":{"anyOf":[{"type":"object","properties":{"since":{"type":"string"},"progressAt":{"type":"string"},"launchedBy":{"type":"object","properties":{"userId":{"type":"string"},"role":{"type":"string"}},"additionalProperties":false},"waitingOn":{"type":"array","items":{"type":"object","properties":{"imageKey":{"type":"string"},"buildId":{"type":"string"},"stage":{"type":"string","enum":["image","snapshot"]},"retry":{"type":"object","properties":{"failedAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maxAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"notBefore":{"type":"string"},"lastFailure":{"type":"string"}},"required":["failedAttempts","maxAttempts","notBefore","lastFailure"],"additionalProperties":false}},"required":["imageKey","buildId"],"additionalProperties":false}}},"required":["since","launchedBy","waitingOn"],"additionalProperties":false},{"type":"null"}]},"visibility":{"type":"string","enum":["private","org","link","public"],"description":"Who may read this study: private (creator + org owners) | org (the whole org) | link (anyone holding ?share=<token>, unlisted) | public (everyone, listed)."},"visibilityChangedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"visibilityChangedBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"shareToken":{"anyOf":[{"type":"string"},{"type":"null"}]},"lowSampleOverride":{"type":"boolean","description":"True iff this study was explicitly published below the sample-size floor (spec A6) — the published page shows a low-sample badge when set."},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"verdict":{},"definitionVersionId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The benchmark definition VERSION this study pinned at create — non-null only for subjectKind 'benchmark'. Its corpus was copied frozen from that version, so the study stays reproducible when the definition publishes a newer one."},"runnerKind":{"type":"string","enum":["ora-runs","batch-job"],"description":"Which executor fans this study out: 'ora-runs' (the ora runs spine) or 'batch-job' (a built runner image)."},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"liveUntil":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When this study's live stream stops being held open (null while it is still running). Attaching before it yields the remaining post-terminal frames (gradings, recordings, refined verdicts)."}},"required":["id","plannedRunCount","organizationId","createdBy","name","slug","description","skillRef","skillSlug","skillName","skillPromise","subjectKind","subjectName","subjectLabel","armConfig","comparisonMode","subjectBackend","baselineLabel","treatmentLabel","promiseMetrics","matrix","lenses","taskCount","variantsPerTask","repeats","subset","status","error","visibility","lowSampleOverride","publishedAt","verdict","definitionVersionId","runnerKind","createdAt","updatedAt","liveUntil"],"additionalProperties":false}}},"required":["studies"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"benchmarks:read","x-ora-product":"experiment","x-ora-service":"experiments-service"},"post":{"operationId":"benchmarks.create","summary":"Create a study (status 'draft', ZERO LLM spend — an authored `tasks` corpus instead lands 'ready' synchronously); approve generation via POST .../generate","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":160,"description":"Display name for the study (≤160 chars)."},"description":{"description":"Optional longer description shown on the study card.","type":"string","maxLength":4000},"subjectKind":{"default":"skill","description":"What the study measures — defaults to 'skill'. See the enum description for each kind's rules.","type":"string","enum":["skill","tools","addon","custom","benchmark","site"]},"skillRef":{"description":"The skill under test as '<source>:<id>' — sources: 'custom' (an org-authored skill, id from the skills API), 'builtin' (a starter example), 'git' (a git-imported skill). E.g. 'custom:8c1d…'. REQUIRED iff subjectKind 'skill'; forbidden otherwise.","type":"string","minLength":1},"definitionVersionId":{"description":"The benchmark definition VERSION this study pins — REQUIRED iff subjectKind 'benchmark', forbidden otherwise. Read it from a catalog entry's `currentVersionId` (GET /benchmark-definitions/{slug}). A VERSION id, never a slug: a slug follows the definition's current version, and pinning is what keeps this study's corpus — and the board row it may later earn — reproducible. The version's tasks are copied FROZEN at create, so a later publish never changes them. Validated as a uuid at the wire: the column is a Postgres `uuid`, so a malformed value would otherwise reach Hasura and answer 500 instead of 422.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"siteDomain":{"description":"The website a 'site' study is run against — REQUIRED iff subjectKind 'site', forbidden otherwise. A host such as 'example.com': no scheme, no path. Every run of the study is read against it: whether the agent opened a page on this host or a subdomain of it, and whether the site refused the agent. Nothing is added to the prompt for it: a group names the site to its agents, or does not, through its own brief.","type":"string","maxLength":253,"pattern":"^[a-z0-9]([a-z0-9-]*[a-z0-9])?(\\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)+$"},"subjectName":{"description":"Display name of a NON-skill subject (e.g. 'Tavily search', 'monday.com remote MCP'). Required for subjectKind 'tools' / 'addon' / 'custom'; forbidden for 'skill' (the skill's own name is used) and for 'benchmark' (the pinned definition's name is used).","type":"string","minLength":1,"maxLength":120},"armConfig":{"type":"object","properties":{"baseline":{"description":"The baseline arm's run-payload delta. Omitted = a bare run (no skill, no extras).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"]}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}},"treatment":{"description":"The treatment arm's run-payload delta (the thing under test).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"]}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"description":"Frozen per-arm run-payload deltas. Required for subjectKind 'custom' and comparisonMode 'ab_custom'; for 'tools'/'addon' subjects the treatment side is derived when omitted."},"lenses":{"default":["judge"],"description":"Which grading lenses to run: 'judge' (LLM judge panel — the default) and/or 'evals' (deterministic @ora/eval-checks grading against each task's `expectations`). Set ONCE at create — there is no update path. `expectations` on a task requires 'evals' to be present here.","minItems":1,"type":"array","items":{"type":"string","enum":["judge","evals","reference","framework","execution","verifier"]}},"judgeSupplementary":{"description":"subjectKind 'benchmark' only: ALSO grade every run with the LLM judge panel. A rubric is authored for each task at create (the study is 'generating' until it is frozen), and runs are then scored for rubric quality and — in an A/B — compared blind, BESIDE the benchmark's own pass rate, which still decides the verdict first. The rubric measures the quality of a response, never its correctness (that is the benchmark's own grader's job). Costs one judge call per run and per pair. Forbidden for every other subject kind, and for a benchmark whose own grading spec already uses the judge.","type":"boolean"},"proposeExpectations":{"description":"Opt in to an LLM proposing 'evals'-lens `expectations` for each AUTO-GENERATED task (temp-0, re-validated against the eval-checks registry — an invalid proposal is dropped, never stored). REQUIRES `lenses` to include 'evals' (422 LENS_MISMATCH otherwise); also IGNORED when `tasks` is supplied (an authored corpus already carries its own explicit expectations). Proposals land on the task in the study's normal 'ready' state for human review before launch — the same discipline as generated rubrics.","type":"boolean"},"comparisonMode":{"default":"ab_vs_none","description":"The baseline design — defaults to 'ab_vs_none'. See the enum description for each mode.","type":"string","enum":["ab_vs_none","ab_custom","single"]},"subjectBackend":{"description":"FRAMEWORK benchmarks only (e.g. HELM). Omit for the framework's own default — 'harness' where the framework supports it. Ignored by a study no framework runs. An ask the framework cannot honour fails the launch by name.","type":"string","enum":["model","harness"]},"baselineLabel":{"description":"Baseline arm's display label (e.g. 'REST API'). Required iff comparisonMode 'ab_custom'; forbidden otherwise.","type":"string","minLength":1,"maxLength":80},"treatmentLabel":{"description":"Treatment arm's display label (e.g. 'Remote MCP'). Required iff comparisonMode 'ab_custom'; forbidden otherwise.","type":"string","minLength":1,"maxLength":80},"taskCount":{"default":5,"description":"How many tasks to auto-generate (1–100, default 5; generation is ONE model call, so very large corpora are better AUTHORED via `tasks`, which allows up to 500). IGNORED when `tasks` is supplied (the authored corpus defines the count). Runs launched = taskCount × variantsPerTask × repeats × matrix cells × arms (2 arms unless 'single'); the total is capped at 10000.","type":"integer","minimum":1,"maximum":100},"variantsPerTask":{"default":1,"description":"Semantics-preserving paraphrases per task (1-10, default 1). Each variant is a SEPARATE sample of the same question, graded against the same frozen rubric, and both arms see the identical variant set. Sampling phrasing as well as stochastic draw is what lets a comparative claim average over both. Runs = tasks x variants x repeats x cells x arms.","type":"integer","minimum":1,"maximum":10},"repeats":{"default":1,"description":"Identical re-runs of each condition (1-25, default 1). Variants and repeats measure different things: a failed variant could be phrasing sensitivity OR run-to-run instability, and only identical repeats separate them. Set >1 when reliability is a deliverable.","type":"integer","minimum":1,"maximum":25},"tasks":{"description":"AUTHOR the corpus instead of generating it: tasks + rubrics land verbatim and the study goes straight to 'ready' (no LLM generation; the same pre-registration discipline — rubrics are frozen before any run exists). For reference-driven corpora (a ported study's curated tasks). `promise` is still required for non-skill subjects; `taskCount` is derived from this array. Forbidden for subjectKind 'benchmark', whose corpus is copied frozen from the pinned definition version.","minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"prompt":{"type":"string","minLength":1,"description":"The verbatim one-shot prompt dispatched as each run's intent."},"rationale":{"default":"Author-supplied task.","description":"Why this task exercises the promise (public drill-down).","type":"string","minLength":1},"category":{"default":"authored","description":"Free-form short category.","type":"string","minLength":1,"maxLength":40},"requiresWeb":{"default":false,"description":"True only when the task needs live web access.","type":"boolean"},"rubric":{"description":"PRE-REGISTERED acceptance criteria — frozen at create, exactly what the judge panel grades against. REQUIRED (2-8 criteria) when `lenses` includes 'judge' (422 otherwise); OPTIONAL when it doesn't — an evals-only study's judge panel never runs (M4's grading gate), so there is nothing to pre-register criteria FOR. Omitted on an evals-only task → stored as [].","maxItems":8,"type":"array","items":{"type":"string","minLength":1,"maxLength":300}},"variants":{"description":"Explicit paraphrases for THIS task, used instead of generated ones. The authored `prompt` is always variant 0; these follow it. Supply at most variantsPerTask-1.","minItems":1,"maxItems":10,"type":"array","items":{"type":"string","minLength":1}},"expectations":{"description":"Deterministic pass/fail expectations for the 'evals' lens (see @ora/eval-checks' Expectation union) — validated against the registered check kinds at create. REQUIRES `lenses` to include 'evals' (422 LENS_MISMATCH otherwise); the shape itself is validated by the eval-checks registry, not here.","minItems":1,"maxItems":24,"type":"array","items":{"$ref":"#/components/schemas/Def_0f52adfddc63c1c2862af461b851e029b5a453bd5fc4d3373ecde1dcc23a16b6"}}},"required":["prompt"]}},"subset":{"description":"Run a deterministic random SAMPLE of the corpus instead of all of it — the way a 1,319-item benchmark becomes a study you can afford. The sample is a pure function of (corpus, count, seed): the server records the seed on the study, so the exact sample is re-derivable forever. Omit it to run every task.","type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":500,"description":"Run a deterministic random SAMPLE of this many tasks instead of the whole corpus (1-500). Ignored when the corpus is already this small or smaller."},"seed":{"description":"The sampling seed. Supply one to reproduce an earlier study's exact sample; omit it and the server mints one and records it on the study, so the sample is always re-derivable.","type":"string","minLength":1,"maxLength":64}},"required":["count"],"additionalProperties":false},"matrix":{"minItems":1,"maxItems":48,"type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1,"maxLength":50,"description":"Harness id — the valid set (and each one's models) is GET /catalog; cells are validated against it at create."},"model":{"type":"string","minLength":1,"maxLength":100,"description":"Model id as the harness accepts it — valid ids per harness/provider are in GET /catalog (e.g. 'claude-sonnet-5', 'gpt-5.5')."},"provider":{"description":"Provider qualifier for multi-provider harnesses (e.g. 'anthropic', 'openai', 'google'). Omit to use the harness default.","type":"string","minLength":1,"maxLength":32},"params":{"description":"Provider params pinned for this cell (temperature, reasoningEffort, maxOutputTokens, thinkingBudgetTokens). A cell that pins none runs the provider's own defaults. Offered only where the harness declares support — see GET /catalog.","type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"maxOutputTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reasoningEffort":{"type":"string","enum":["low","medium","high"]},"thinkingBudgetTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"codeMode":{"type":"string","enum":["auto","on","off"]},"toolSearch":{"type":"string","enum":["on","off","directory"]},"location":{"type":"string","pattern":"^[A-Z]{2}$"},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$"}},"additionalProperties":false}},"required":["harness","model"],"description":"One (harness, model, params) cell — every task runs its arm(s) on every cell."},"description":"The (harness, model) cells to fan out over — 1 to 48 cells (a full catalog sweep fits)."},"promise":{"description":"The claim under test, driving task generation and the pre-registered rubrics (e.g. 'Tavily search finds fresher, better-sourced answers than no web access'). Optional for subjectKind 'skill' (omitted → extracted from the skill body); forbidden for 'benchmark' (derived from the pinned definition's description); REQUIRED for every other kind.","type":"string","minLength":1,"maxLength":2000}},"required":["name","matrix"]},"example":{"name":"tavily-search A/B","subjectKind":"addon","subjectName":"Tavily search","promise":"Web search via Tavily produces fresher, better-sourced answers than no web access","armConfig":{"treatment":{"addons":{"tavily":{"secretId":"<org-secret-uuid>"}}}},"lenses":["judge","evals"],"taskCount":1,"variantsPerTask":1,"repeats":2,"matrix":[{"harness":"claude-code","model":"claude-sonnet-5"},{"harness":"codex","model":"gpt-5.5"}],"tasks":[{"prompt":"What is the current stable Node.js LTS version, and where did you get that from?","rubric":["States a specific Node.js LTS major version rather than hedging.","Names the source it used for the version claim."],"expectations":[{"kind":"any_of","label":"searched, by either route (treatment arm only)","arms":["skill"],"of":[{"kind":"mcp_tool_called","server":"tavily","tool":"search","arguments":{"query":{"$contains":"Node"}}},{"kind":"mcp_tool_called","server":"tavily","tool":"call_page_tool","arguments":{"tool":"search"}}]},{"kind":"response_matches","label":"answer names a version","pattern":"\\bv?\\d+\\.\\d+\\.\\d+\\b"},{"kind":"token_budget","maxTotalTokens":40000}]}]}}}},"responses":{"200":{"description":"Create a study (status 'draft', ZERO LLM spend — an authored `tasks` corpus instead lands 'ready' synchronously); approve generation via POST .../generate","content":{"application/json":{"schema":{"type":"object","properties":{"study":{"type":"object","properties":{"id":{"type":"string"},"executiveSummary":{"anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryDraft":{"description":"A PUBLISHED study's summary held for review, never shown on the public page: what `studies.regenerateSummary` writes on a published study (and the first summary of a published study nothing asked for). `studies.publish` makes exactly this text the published `executiveSummary`, while the readout it was written from is still current; otherwise publish regenerates. Absent where the product has no review drafts.","anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryRequest":{"description":"A summary an explicit act asked for and not yet written: 'live' — a publish, a re-open, or a regenerate on an UNPUBLISHED completed study owes the summary in place (the public page, once published); 'draft' — a regenerate on a published study owes the review draft one. Null once the request is answered — poll `studies.get` until it is: by the written summary (`executiveSummary` or `executiveSummaryDraft`), by a later act that superseded it (a publish, a newer regenerate — its own write answers it), or as unavailable (`executiveSummaryUnavailableAt` set). While the automatic retries back off after a failed attempt it stays pending. Absent where the product has no review drafts.","anyOf":[{"type":"string","enum":["live","draft"]},{"type":"null"}]},"executiveSummaryRequestedAt":{"description":"When `executiveSummaryRequest` was made.","anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryUnavailableAt":{"description":"When the last summary request was answered as UNAVAILABLE: every attempt the retry policy allows on the study's readout failed, so no summary will be written for it until the readout changes (runs added, a re-run, a regrade) or someone regenerates or publishes again. Null otherwise; cleared by a new request or a written summary. Absent where the product has no review drafts.","anyOf":[{"type":"string"},{"type":"null"}]},"plannedRunCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The exact number of runs `launch` will fan out (taskCount × variantsPerTask × repeats × matrix cells × arms). Check this BEFORE launching."},"organizationId":{"type":"string"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"slug":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillRef":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillSlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillName":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillPromise":{"type":"string"},"subjectKind":{"type":"string","enum":["skill","tools","addon","custom","benchmark","site"],"description":"What the study measures. 'skill': an agent skill (requires skillRef; the treatment arm runs with the skill attached). 'tools': the run's tool policy (web tools on vs off). 'addon': one run add-on (tavily, brave, desktop, mcp, secrets…). 'custom': any composition of skill + tools + add-ons, both arms fully spelled out in armConfig. 'benchmark': a pinned version of a catalog benchmark definition (requires definitionVersionId); the corpus is copied frozen from that version. Every comparisonMode applies: 'single' is a harness × model shootout whose ONE arm may carry your setup in armConfig.treatment (armConfig.baseline is refused); 'ab_vs_none' runs the setup in armConfig.treatment against the bare benchmark; 'ab_custom' runs two labelled setups (armConfig.baseline and armConfig.treatment) head to head. An A/B study needs a setup under test and two arms that differ. An arm that carries a setup is not the benchmark's bare protocol, so it does not seed the public leaderboard."},"subjectName":{"anyOf":[{"type":"string"},{"type":"null"}]},"siteDomain":{"description":"The website a 'site' study is run against (its host); absent for every other subject kind.","type":"string"},"subjectLabel":{"type":"string"},"armConfig":{"type":"object","properties":{"baseline":{"description":"The baseline arm's run-payload delta. Omitted = a bare run (no skill, no extras).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false},"treatment":{"description":"The treatment arm's run-payload delta (the thing under test).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"additionalProperties":false,"description":"Frozen per-arm run-payload deltas. Required for subjectKind 'custom' and comparisonMode 'ab_custom'; for 'tools'/'addon' subjects the treatment side is derived when omitted."},"comparisonMode":{"type":"string","enum":["ab_vs_none","ab_custom","single"],"description":"The baseline design. 'ab_vs_none' (default): treatment vs a bare baseline — classic A/B. 'ab_custom': BOTH arms explicitly configured via armConfig, labeled by baselineLabel/treatmentLabel (e.g. 'Remote MCP' vs 'REST API'). 'single': no baseline — one arm per (harness, model) cell, ranked into a leaderboard (verdict 'measured')."},"subjectBackend":{"anyOf":[{"type":"string","enum":["model","harness"],"description":"What answers a FRAMEWORK benchmark's requests: 'harness' — each request is answered by the cell's agent harness (the model inside its own loop, with the arm's tools, add-ons and skills), one agent run per request; 'model' — the framework's own client calls the cell's model directly and the cell's harness is not measured. Resolved once per study and recorded on every run."},{"type":"null"}]},"environmentExecutionPolicy":{"type":"string","enum":["legacy-v1","inside-v1"]},"importedFrom":{"type":"string"},"baselineLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"treatmentLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"promiseMetrics":{"type":"array","items":{"type":"object","properties":{"metric":{"type":"string","enum":["total_tokens","output_tokens","cost_usd","duration_ms","num_turns","success_rate","completion_rate","goal_rate"]},"direction":{"type":"string","enum":["down","up"]},"label":{"type":"string","minLength":1,"maxLength":120}},"required":["metric","direction","label"],"additionalProperties":false}},"matrix":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1,"maxLength":50,"description":"Harness id — the valid set (and each one's models) is GET /catalog; cells are validated against it at create."},"model":{"type":"string","minLength":1,"maxLength":100,"description":"Model id as the harness accepts it — valid ids per harness/provider are in GET /catalog (e.g. 'claude-sonnet-5', 'gpt-5.5')."},"provider":{"description":"Provider qualifier for multi-provider harnesses (e.g. 'anthropic', 'openai', 'google'). Omit to use the harness default.","type":"string","minLength":1,"maxLength":32},"params":{"description":"Provider params pinned for this cell (temperature, reasoningEffort, maxOutputTokens, thinkingBudgetTokens). A cell that pins none runs the provider's own defaults. Offered only where the harness declares support — see GET /catalog.","type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"maxOutputTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reasoningEffort":{"type":"string","enum":["low","medium","high"]},"thinkingBudgetTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"codeMode":{"type":"string","enum":["auto","on","off"]},"toolSearch":{"type":"string","enum":["on","off","directory"]},"location":{"type":"string","pattern":"^[A-Z]{2}$"},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$"}},"additionalProperties":false}},"required":["harness","model"],"additionalProperties":false,"description":"One (harness, model, params) cell — every task runs its arm(s) on every cell."}},"lenses":{"minItems":1,"type":"array","items":{"type":"string","enum":["judge","evals","reference","framework","execution","verifier"]},"description":"Which grading lenses this study runs under. Defaults to ['judge'] at create and stays editable while status is 'ready' (frozen at launch, like task expectations/rubrics). 'judge': the LLM judge panel (rubric grades + blind pairwise). 'evals': the deterministic @ora/eval-checks engine, scored against each task's authored expectations. 'reference': the static-QA lens — an answer extracted from the response and matched against the task's own reference key, scored 1/0 (spec §6.4). 'framework': the benchmark's OWN framework (HELM today) reports the metrics, mapped verbatim into a section rather than re-averaged (SP2 Task 9). 'execution': the candidate's code is extracted from the response and run against the task's own tests inside a sandboxed, network-less runner image (SP2 Task 16)."},"judgeSupplementary":{"type":"boolean"},"taskCount":{"type":"number"},"variantsPerTask":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Semantics-preserving paraphrases sampled per task (1-5; mirrors the create body's variantsPerTask). Absent at create defaults to 1 — every response reports a concrete value, including studies created before sampling existed."},"repeats":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Identical re-runs sampled per condition (1-10; mirrors the create body's repeats). Absent at create defaults to 1 — every response reports a concrete value, including studies created before sampling existed."},"subset":{"anyOf":[{"type":"object","properties":{"count":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"seed":{"type":"string","minLength":1},"of":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["count","seed","of"],"additionalProperties":false},{"type":"null"}]},"status":{"type":"string"},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"preparation":{"anyOf":[{"type":"object","properties":{"since":{"type":"string"},"progressAt":{"type":"string"},"launchedBy":{"type":"object","properties":{"userId":{"type":"string"},"role":{"type":"string"}},"additionalProperties":false},"waitingOn":{"type":"array","items":{"type":"object","properties":{"imageKey":{"type":"string"},"buildId":{"type":"string"},"stage":{"type":"string","enum":["image","snapshot"]},"retry":{"type":"object","properties":{"failedAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maxAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"notBefore":{"type":"string"},"lastFailure":{"type":"string"}},"required":["failedAttempts","maxAttempts","notBefore","lastFailure"],"additionalProperties":false}},"required":["imageKey","buildId"],"additionalProperties":false}}},"required":["since","launchedBy","waitingOn"],"additionalProperties":false},{"type":"null"}]},"visibility":{"type":"string","enum":["private","org","link","public"],"description":"Who may read this study: private (creator + org owners) | org (the whole org) | link (anyone holding ?share=<token>, unlisted) | public (everyone, listed)."},"visibilityChangedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"visibilityChangedBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"shareToken":{"anyOf":[{"type":"string"},{"type":"null"}]},"lowSampleOverride":{"type":"boolean","description":"True iff this study was explicitly published below the sample-size floor (spec A6) — the published page shows a low-sample badge when set."},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"verdict":{},"definitionVersionId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The benchmark definition VERSION this study pinned at create — non-null only for subjectKind 'benchmark'. Its corpus was copied frozen from that version, so the study stays reproducible when the definition publishes a newer one."},"runnerKind":{"type":"string","enum":["ora-runs","batch-job"],"description":"Which executor fans this study out: 'ora-runs' (the ora runs spine) or 'batch-job' (a built runner image)."},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"liveUntil":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When this study's live stream stops being held open (null while it is still running). Attaching before it yields the remaining post-terminal frames (gradings, recordings, refined verdicts)."}},"required":["id","plannedRunCount","organizationId","createdBy","name","slug","description","skillRef","skillSlug","skillName","skillPromise","subjectKind","subjectName","subjectLabel","armConfig","comparisonMode","subjectBackend","baselineLabel","treatmentLabel","promiseMetrics","matrix","lenses","taskCount","variantsPerTask","repeats","subset","status","error","visibility","lowSampleOverride","publishedAt","verdict","definitionVersionId","runnerKind","createdAt","updatedAt","liveUntil"],"additionalProperties":false},"streamUrl":{"type":"string","description":"The study's live SSE stream, relative to this API origin. Frames: status (draft/generating/ready/running/completed/failed — terminal closes the stream), run (per-run fact updates), grading, published/unpublished. `ora … --watch` follows it automatically."},"warnings":{"description":"'evals'-lens create only: (harness, check kind) pairs the capability roster cannot measure (deny-by-default) — that cell will abstain at grading time rather than pass/fail. Non-blocking; absent/[] means nothing was flagged.","type":"array","items":{"type":"object","properties":{"harness":{"type":"string"},"kind":{"type":"string"}},"required":["harness","kind"],"additionalProperties":false}}},"required":["study","streamUrl"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"benchmark_definition_not_found — `definitionVersionId` names no benchmark definition version this caller can see","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"study_slug_taken — the name's derived slug is already used by another study in this organization (retry with a different name)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"study_skill_invalid / study_subject_invalid / study_matrix_invalid — skillRef doesn't resolve, the subject/armConfig breaks its kind's rules, or a matrix cell is unknown (field-level detail in the body); study_setup_unexecutable — a MODEL-API cell of the matrix cannot execute part of an arm's setup (one provider call: no tool loop, no MCP channel), so the study would report a 'with my setup' number for a setup that never ran; `issues[]` names the cell, the arm and the part (drop it, or run that arm on a harness cell); study_model_params_unsupported — a matrix cell pins a model param its harness cannot honour (spec 6.3), so every run of that cell would be refused at dispatch; `issues[]` names the `cell`, the `harness`, the `param` id and the exact `path` (e.g. `matrix[1].params.temperature`), and lists what the harness DOES honour — drop the param, or move the cell to a harness that declares support (GET /catalog); LENS_MISMATCH — a task carries `expectations`, or `proposeExpectations` is true, but `lenses` omits 'evals'; study_expectations_invalid — a task's `expectations` fail shape/kind validation (see @ora/eval-checks); benchmark_corpus_missing — the pinned version carries no tasks yet; benchmark_corpus_too_large — its corpus is over the per-study copy ceiling and the body asked for all of it: pass `subset` to run a deterministic sample (the ceiling binds the sample, never the corpus it is drawn from; `taskCount`/`maxTaskCount` in the body, plus `taskCountExact`: false means `taskCount` is a FLOOR, not the corpus size, so render it as 'more than N'); benchmark_corpus_corrupt — the pinned version's stored tasks no longer match what its import recorded (they hash to a different checksum, or there are more or fewer of them than its task count), so it cannot be run until it is re-imported; study_design_too_large — tasks × variants × repeats × cells × arms is over the 10,000-run ceiling once the pinned corpus is counted; LENS_REQUIREMENT_UNMET — a declared lens cannot be fed by the corpus being stored (the body names the `lens`, the missing `field` and the 1-based `taskPosition`) — e.g. a version declaring the 'judge' lens over tasks with no rubric, which would launch runs nothing can grade; study_lens_unsupported — the body names a lens this deployment did not register (`registry` and `id` in the body say which; the detail names what IS registered) — the lens vocabulary is shared across products, so a lens one product runs may not exist in another","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"benchmarks:write","x-ora-product":"experiment","x-ora-cli-shorthands":[{"flag":"agent","field":"matrix","pattern":"{harness}/{provider?}/{model}","description":"An agent every group runs: its harness and its model, with the provider between them for a harness that has several. After a comma, the cell's own settings: params.reasoningEffort=high."},{"flag":"task","field":"tasks","text":"prompt","description":"An authored task, by its prompt. @file reads the prompt from a file; a .json file holds the whole task (its rubric, its checks, its steps), or a list of them."}],"x-ora-service":"experiments-service"}},"/experiment/v1/benchmarks/convert/webmcp":{"post":{"operationId":"benchmarks.convertWebmcpSuite","summary":"Convert a webmcp-evals suite JSON into ora study tasks + 'evals'-lens expectations — a PURE transform, nothing persisted; resubmit the returned `tasks` through benchmarks.create's `tasks` field","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"suite":{"description":"The foreign webmcp-evals suite JSON (an array of {name, messages, expectedCall} cases) — validated by the converter itself; a malformed suite answers 422 with the converter's own message."},"ordered":{"description":"When true, a case's multiple expectedCall entries become one ORDERED `sequence` expectation instead of independent ones (mirrors the reference project's evals.json vs evals-unordered.json split). Default false.","type":"boolean"}},"required":["suite"]},"example":{"suite":[{"name":"search finds the refund policy","messages":[{"role":"user","type":"message","content":"Find the refund policy and quote it."}],"expectedCall":[{"functionName":"search_docs","arguments":{"query":{"$contains":"refund"}}}]}]}}}},"responses":{"200":{"description":"Convert a webmcp-evals suite JSON into ora study tasks + 'evals'-lens expectations — a PURE transform, nothing persisted; resubmit the returned `tasks` through benchmarks.create's `tasks` field","content":{"application/json":{"schema":{"type":"object","properties":{"tasks":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"prompt":{"type":"string"},"expectations":{"type":"array","items":{},"description":"Deterministic 'evals'-lens expectations for this task — the same shape as studyCreateBody.tasks[].expectations, which documents every kind and field."}},"required":["title","prompt","expectations"],"additionalProperties":false}},"warnings":{"type":"array","items":{"type":"string"},"description":"Lossy-conversion notes (e.g. a multi-user-turn case flattened into one prompt) — never blocking."}},"required":["tasks","warnings"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"study_convert_invalid — `suite` doesn't match the webmcp-evals shape (the converter's own zod message)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"benchmarks:write","x-ora-product":"experiment","x-ora-service":"experiments-service"}},"/experiment/v1/benchmarks/{id}":{"get":{"operationId":"benchmarks.get","summary":"Study detail: status to poll, tasks + rubrics, per-run facts, live aggregate + verdict","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The study's uuid (from create or list)."},"example":"1f7e4d1c-4b2a-4f3e-9d8c-5a6b7c8d9e0f"}],"responses":{"200":{"description":"Study detail: status to poll, tasks + rubrics, per-run facts, live aggregate + verdict","content":{"application/json":{"schema":{"type":"object","properties":{"study":{"type":"object","properties":{"id":{"type":"string"},"executiveSummary":{"anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryDraft":{"description":"A PUBLISHED study's summary held for review, never shown on the public page: what `studies.regenerateSummary` writes on a published study (and the first summary of a published study nothing asked for). `studies.publish` makes exactly this text the published `executiveSummary`, while the readout it was written from is still current; otherwise publish regenerates. Absent where the product has no review drafts.","anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryRequest":{"description":"A summary an explicit act asked for and not yet written: 'live' — a publish, a re-open, or a regenerate on an UNPUBLISHED completed study owes the summary in place (the public page, once published); 'draft' — a regenerate on a published study owes the review draft one. Null once the request is answered — poll `studies.get` until it is: by the written summary (`executiveSummary` or `executiveSummaryDraft`), by a later act that superseded it (a publish, a newer regenerate — its own write answers it), or as unavailable (`executiveSummaryUnavailableAt` set). While the automatic retries back off after a failed attempt it stays pending. Absent where the product has no review drafts.","anyOf":[{"type":"string","enum":["live","draft"]},{"type":"null"}]},"executiveSummaryRequestedAt":{"description":"When `executiveSummaryRequest` was made.","anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryUnavailableAt":{"description":"When the last summary request was answered as UNAVAILABLE: every attempt the retry policy allows on the study's readout failed, so no summary will be written for it until the readout changes (runs added, a re-run, a regrade) or someone regenerates or publishes again. Null otherwise; cleared by a new request or a written summary. Absent where the product has no review drafts.","anyOf":[{"type":"string"},{"type":"null"}]},"plannedRunCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The exact number of runs `launch` will fan out (taskCount × variantsPerTask × repeats × matrix cells × arms). Check this BEFORE launching."},"organizationId":{"type":"string"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"slug":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillRef":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillSlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillName":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillPromise":{"type":"string"},"subjectKind":{"type":"string","enum":["skill","tools","addon","custom","benchmark","site"],"description":"What the study measures. 'skill': an agent skill (requires skillRef; the treatment arm runs with the skill attached). 'tools': the run's tool policy (web tools on vs off). 'addon': one run add-on (tavily, brave, desktop, mcp, secrets…). 'custom': any composition of skill + tools + add-ons, both arms fully spelled out in armConfig. 'benchmark': a pinned version of a catalog benchmark definition (requires definitionVersionId); the corpus is copied frozen from that version. Every comparisonMode applies: 'single' is a harness × model shootout whose ONE arm may carry your setup in armConfig.treatment (armConfig.baseline is refused); 'ab_vs_none' runs the setup in armConfig.treatment against the bare benchmark; 'ab_custom' runs two labelled setups (armConfig.baseline and armConfig.treatment) head to head. An A/B study needs a setup under test and two arms that differ. An arm that carries a setup is not the benchmark's bare protocol, so it does not seed the public leaderboard."},"subjectName":{"anyOf":[{"type":"string"},{"type":"null"}]},"siteDomain":{"description":"The website a 'site' study is run against (its host); absent for every other subject kind.","type":"string"},"subjectLabel":{"type":"string"},"armConfig":{"type":"object","properties":{"baseline":{"description":"The baseline arm's run-payload delta. Omitted = a bare run (no skill, no extras).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false},"treatment":{"description":"The treatment arm's run-payload delta (the thing under test).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"additionalProperties":false,"description":"Frozen per-arm run-payload deltas. Required for subjectKind 'custom' and comparisonMode 'ab_custom'; for 'tools'/'addon' subjects the treatment side is derived when omitted."},"comparisonMode":{"type":"string","enum":["ab_vs_none","ab_custom","single"],"description":"The baseline design. 'ab_vs_none' (default): treatment vs a bare baseline — classic A/B. 'ab_custom': BOTH arms explicitly configured via armConfig, labeled by baselineLabel/treatmentLabel (e.g. 'Remote MCP' vs 'REST API'). 'single': no baseline — one arm per (harness, model) cell, ranked into a leaderboard (verdict 'measured')."},"subjectBackend":{"anyOf":[{"type":"string","enum":["model","harness"],"description":"What answers a FRAMEWORK benchmark's requests: 'harness' — each request is answered by the cell's agent harness (the model inside its own loop, with the arm's tools, add-ons and skills), one agent run per request; 'model' — the framework's own client calls the cell's model directly and the cell's harness is not measured. Resolved once per study and recorded on every run."},{"type":"null"}]},"environmentExecutionPolicy":{"type":"string","enum":["legacy-v1","inside-v1"]},"importedFrom":{"type":"string"},"baselineLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"treatmentLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"promiseMetrics":{"type":"array","items":{"type":"object","properties":{"metric":{"type":"string","enum":["total_tokens","output_tokens","cost_usd","duration_ms","num_turns","success_rate","completion_rate","goal_rate"]},"direction":{"type":"string","enum":["down","up"]},"label":{"type":"string","minLength":1,"maxLength":120}},"required":["metric","direction","label"],"additionalProperties":false}},"matrix":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1,"maxLength":50,"description":"Harness id — the valid set (and each one's models) is GET /catalog; cells are validated against it at create."},"model":{"type":"string","minLength":1,"maxLength":100,"description":"Model id as the harness accepts it — valid ids per harness/provider are in GET /catalog (e.g. 'claude-sonnet-5', 'gpt-5.5')."},"provider":{"description":"Provider qualifier for multi-provider harnesses (e.g. 'anthropic', 'openai', 'google'). Omit to use the harness default.","type":"string","minLength":1,"maxLength":32},"params":{"description":"Provider params pinned for this cell (temperature, reasoningEffort, maxOutputTokens, thinkingBudgetTokens). A cell that pins none runs the provider's own defaults. Offered only where the harness declares support — see GET /catalog.","type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"maxOutputTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reasoningEffort":{"type":"string","enum":["low","medium","high"]},"thinkingBudgetTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"codeMode":{"type":"string","enum":["auto","on","off"]},"toolSearch":{"type":"string","enum":["on","off","directory"]},"location":{"type":"string","pattern":"^[A-Z]{2}$"},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$"}},"additionalProperties":false}},"required":["harness","model"],"additionalProperties":false,"description":"One (harness, model, params) cell — every task runs its arm(s) on every cell."}},"lenses":{"minItems":1,"type":"array","items":{"type":"string","enum":["judge","evals","reference","framework","execution","verifier"]},"description":"Which grading lenses this study runs under. Defaults to ['judge'] at create and stays editable while status is 'ready' (frozen at launch, like task expectations/rubrics). 'judge': the LLM judge panel (rubric grades + blind pairwise). 'evals': the deterministic @ora/eval-checks engine, scored against each task's authored expectations. 'reference': the static-QA lens — an answer extracted from the response and matched against the task's own reference key, scored 1/0 (spec §6.4). 'framework': the benchmark's OWN framework (HELM today) reports the metrics, mapped verbatim into a section rather than re-averaged (SP2 Task 9). 'execution': the candidate's code is extracted from the response and run against the task's own tests inside a sandboxed, network-less runner image (SP2 Task 16)."},"judgeSupplementary":{"type":"boolean"},"taskCount":{"type":"number"},"variantsPerTask":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Semantics-preserving paraphrases sampled per task (1-5; mirrors the create body's variantsPerTask). Absent at create defaults to 1 — every response reports a concrete value, including studies created before sampling existed."},"repeats":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Identical re-runs sampled per condition (1-10; mirrors the create body's repeats). Absent at create defaults to 1 — every response reports a concrete value, including studies created before sampling existed."},"subset":{"anyOf":[{"type":"object","properties":{"count":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"seed":{"type":"string","minLength":1},"of":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["count","seed","of"],"additionalProperties":false},{"type":"null"}]},"status":{"type":"string"},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"preparation":{"anyOf":[{"type":"object","properties":{"since":{"type":"string"},"progressAt":{"type":"string"},"launchedBy":{"type":"object","properties":{"userId":{"type":"string"},"role":{"type":"string"}},"additionalProperties":false},"waitingOn":{"type":"array","items":{"type":"object","properties":{"imageKey":{"type":"string"},"buildId":{"type":"string"},"stage":{"type":"string","enum":["image","snapshot"]},"retry":{"type":"object","properties":{"failedAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maxAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"notBefore":{"type":"string"},"lastFailure":{"type":"string"}},"required":["failedAttempts","maxAttempts","notBefore","lastFailure"],"additionalProperties":false}},"required":["imageKey","buildId"],"additionalProperties":false}}},"required":["since","launchedBy","waitingOn"],"additionalProperties":false},{"type":"null"}]},"visibility":{"type":"string","enum":["private","org","link","public"],"description":"Who may read this study: private (creator + org owners) | org (the whole org) | link (anyone holding ?share=<token>, unlisted) | public (everyone, listed)."},"visibilityChangedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"visibilityChangedBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"shareToken":{"anyOf":[{"type":"string"},{"type":"null"}]},"lowSampleOverride":{"type":"boolean","description":"True iff this study was explicitly published below the sample-size floor (spec A6) — the published page shows a low-sample badge when set."},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"verdict":{},"definitionVersionId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The benchmark definition VERSION this study pinned at create — non-null only for subjectKind 'benchmark'. Its corpus was copied frozen from that version, so the study stays reproducible when the definition publishes a newer one."},"runnerKind":{"type":"string","enum":["ora-runs","batch-job"],"description":"Which executor fans this study out: 'ora-runs' (the ora runs spine) or 'batch-job' (a built runner image)."},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"liveUntil":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When this study's live stream stops being held open (null while it is still running). Attaching before it yields the remaining post-terminal frames (gradings, recordings, refined verdicts)."}},"required":["id","plannedRunCount","organizationId","createdBy","name","slug","description","skillRef","skillSlug","skillName","skillPromise","subjectKind","subjectName","subjectLabel","armConfig","comparisonMode","subjectBackend","baselineLabel","treatmentLabel","promiseMetrics","matrix","lenses","taskCount","variantsPerTask","repeats","subset","status","error","visibility","lowSampleOverride","publishedAt","verdict","definitionVersionId","runnerKind","createdAt","updatedAt","liveUntil"],"additionalProperties":false},"tasks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"studyId":{"type":"string"},"position":{"type":"number"},"prompt":{"type":"string"},"rationale":{"anyOf":[{"type":"string"},{"type":"null"}]},"category":{"anyOf":[{"type":"string"},{"type":"null"}]},"requiresWeb":{"type":"boolean"},"rubric":{"type":"array","items":{"type":"string"}},"variants":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"expectations":{"anyOf":[{"type":"array","items":{}},{"type":"null"}]}},"required":["id","studyId","position","prompt","rationale","category","requiresWeb","rubric"],"additionalProperties":false}},"runs":{"type":"array","items":{"type":"object","properties":{"runId":{"type":"string"},"taskId":{"type":"string"},"arm":{"type":"string","enum":["baseline","skill"]},"harness":{"type":"string"},"model":{"type":"string"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}]},"variantIndex":{"type":"integer","minimum":0,"maximum":9007199254740991},"repeatIndex":{"type":"integer","minimum":0,"maximum":9007199254740991},"status":{"type":"string"},"outcome":{"anyOf":[{"type":"string"},{"type":"null"}]},"outcomeReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"totalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"inputTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"outputTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"cacheReadTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"cacheCreationTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"costUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"numTurns":{"anyOf":[{"type":"number"},{"type":"null"}]},"durationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"intentSatisfied":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"frictionCount":{"anyOf":[{"type":"number"},{"type":"null"}]},"insightSummary":{"anyOf":[{"type":"string"},{"type":"null"}]},"qualityScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"rubricResults":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"criterion":{"type":"string"},"passed":{"type":"boolean"},"note":{"type":"string"},"votes":{"type":"object","properties":{"passed":{"type":"integer","minimum":0,"maximum":9007199254740991},"judges":{"type":"integer","minimum":1,"maximum":9007199254740991},"byJudge":{"type":"array","items":{"type":"object","properties":{"judge":{"type":"string","minLength":1},"passed":{"type":"boolean"},"note":{"type":"string"}},"required":["judge","passed"],"additionalProperties":false}}},"required":["passed","judges"],"additionalProperties":false}},"required":["criterion","passed"],"additionalProperties":false}},{"type":"null"}]},"gradedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"judgeModel":{"anyOf":[{"type":"string"},{"type":"null"}]},"pairVerdict":{"anyOf":[{"type":"string","enum":["skill","baseline","tie","unmeasurable"]},{"type":"null"}]},"pairVotes":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"judge":{"type":"string","minLength":1},"ordering":{"type":"string","enum":["base-first","skill-first"]},"answer":{"type":"string","enum":["A","B","tie"]}},"required":["judge","ordering","answer"],"additionalProperties":false}},{"type":"null"}]},"pairGradedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"evalResults":{"anyOf":[{},{"type":"null"}]},"evalScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"evalGradedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"lensGrades":{"anyOf":[{"type":"object","properties":{"reference":{"type":"object","properties":{"pass":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"extracted":{"anyOf":[{"type":"string"},{"type":"null"}]},"extraction":{"type":"string"},"matcher":{"type":"string"},"votes":{"type":"array","items":{"type":"object","properties":{"judge":{"type":"string"},"answer":{"anyOf":[{"type":"string","enum":["equivalent","different","not_attempted"]},{"type":"null"}]}},"required":["judge","answer"],"additionalProperties":false}},"reason":{"type":"string"},"gradedAt":{"type":"string"}},"required":["pass","extracted","extraction","matcher","gradedAt"],"additionalProperties":false},"framework":{"type":"object","properties":{"framework":{"type":"string"},"primary":{"anyOf":[{"type":"object","properties":{"metricId":{"type":"string"},"provenance":{"type":"string"},"value":{"type":"number"},"scenario":{"type":"string"},"count":{"type":"number"}},"required":["metricId","provenance","value","scenario","count"],"additionalProperties":false},{"type":"null"}]},"secondary":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"name":{"type":"string"},"scenario":{"type":"string"},"value":{"anyOf":[{"type":"number"},{"type":"null"}]},"count":{"type":"number"},"split":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["label","name","scenario","value","count","split"],"additionalProperties":false}},"errors":{"type":"array","items":{"type":"object","properties":{"scenario":{"type":"string"},"metric":{"type":"string"},"reason":{"type":"string"}},"required":["scenario","metric","reason"],"additionalProperties":false}},"gradedAt":{"type":"string"}},"required":["framework","primary","secondary","errors","gradedAt"],"additionalProperties":false},"execution":{"type":"object","properties":{"pass":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"status":{"type":"string","enum":["passed","failed","timeout","error","unavailable"]},"language":{"type":"string"},"passedTests":{"anyOf":[{"type":"number"},{"type":"null"}]},"failedTests":{"anyOf":[{"type":"number"},{"type":"null"}]},"stdout":{"type":"string"},"stdoutTruncated":{"type":"boolean"},"reason":{"type":"string"},"gradedAt":{"type":"string"}},"required":["pass","status","language","passedTests","failedTests","stdout","stdoutTruncated","gradedAt"],"additionalProperties":false}},"additionalProperties":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},{"type":"null"}]},"executionBudgetS":{"description":"The run's EXECUTION wall-clock budget in seconds (armed at pod attach — never the capacity wait). Absent = not recorded.","anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"harnessImageDigest":{"description":"The sha256 identity of the harness image the run executed on — its build. Absent = not recorded.","anyOf":[{"type":"string"},{"type":"null"}]},"subjectEngaged":{"description":"Whether this run used its arm's subject (an MCP call to a server the run owns, a web fetch, or the skill loaded — per subject kind). Absent = not measured.","anyOf":[{"type":"boolean"},{"type":"null"}]},"runCreatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"startedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["runId","taskId","arm","harness","model","provider","status","outcome","outcomeReason","totalTokens","inputTokens","outputTokens","cacheReadTokens","cacheCreationTokens","costUsd","numTurns","durationMs","intentSatisfied","frictionCount","insightSummary","qualityScore","rubricResults","gradedAt","judgeModel","pairVerdict","pairVotes","pairGradedAt","evalResults","evalScore","evalGradedAt","runCreatedAt","startedAt","finishedAt"],"additionalProperties":false}},"aggregate":{"type":"object","properties":{"summary":{"type":"object","properties":{"verdict":{"type":"string","enum":["delivered","partial","not_delivered","inconclusive","measured"]},"headline":{"type":"array","items":{"type":"object","properties":{"metric":{"type":"string","enum":["total_tokens","output_tokens","cost_usd","duration_ms","num_turns","success_rate","completion_rate","goal_rate"]},"label":{"type":"string"},"direction":{"type":"string","enum":["down","up"]},"baselineAvg":{"anyOf":[{"type":"number"},{"type":"null"}]},"skillAvg":{"anyOf":[{"type":"number"},{"type":"null"}]},"deltaPct":{"anyOf":[{"type":"number"},{"type":"null"}]},"delta":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","const":"pp"},"absolute":{"anyOf":[{"type":"number"},{"type":"null"}]},"relativePct":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["unit","absolute","relativePct"],"additionalProperties":false},{"type":"object","properties":{"unit":{"type":"string","const":"pts"},"absolute":{"anyOf":[{"type":"number"},{"type":"null"}]},"relativePct":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["unit","absolute"],"additionalProperties":false},{"type":"object","properties":{"unit":{"type":"string","const":"%"},"relativePct":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["unit","relativePct"],"additionalProperties":false}]},"improved":{"type":"boolean"}},"required":["metric","label","direction","baselineAvg","skillAvg","deltaPct","improved"],"additionalProperties":false}},"completionRate":{"type":"object","properties":{"baseline":{"anyOf":[{"type":"number"},{"type":"null"}]},"skill":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["baseline","skill"],"additionalProperties":false},"goalRate":{"type":"object","properties":{"baseline":{"anyOf":[{"type":"number"},{"type":"null"}]},"skill":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["baseline","skill"],"additionalProperties":false},"pairwise":{"type":"object","properties":{"pairs":{"type":"number"},"skillWins":{"type":"number"},"baselineWins":{"type":"number"},"ties":{"type":"number"},"winRate":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["pairs","skillWins","baselineWins","ties","winRate"],"additionalProperties":false},"decision":{"type":"object","properties":{"winner":{"type":"string","enum":["treatment","baseline","tie","unmeasurable"]},"basis":{"type":"string","enum":["infra","goal","evals","benchmark","quality","efficiency","judge","insufficient"]},"reason":{"type":"string"},"efficiencyDiscounted":{"type":"boolean"}},"required":["winner","basis","reason","efficiencyDiscounted"],"additionalProperties":false},"leaderboard":{"type":"array","items":{}},"concentration":{"type":"object","properties":{"perCell":{"type":"array","items":{"type":"object","properties":{"cell":{"type":"string"},"goalDeltaPp":{"anyOf":[{"type":"number"},{"type":"null"}]},"contributionPct":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["cell","goalDeltaPp","contributionPct"],"additionalProperties":false}},"heterogeneity":{"anyOf":[{"type":"object","properties":{"dominantCell":{"type":"string"},"contributionPct":{"type":"number"}},"required":["dominantCell","contributionPct"],"additionalProperties":false},{"type":"null"}]}},"required":["perCell","heterogeneity"],"additionalProperties":false},"matrixShape":{"type":"object","properties":{"cells":{"type":"number"},"harnesses":{"type":"number"},"models":{"type":"number"},"crossed":{"type":"boolean"}},"required":["cells","harnesses","models","crossed"],"additionalProperties":false},"flakiness":{"type":"object","properties":{"measured":{"type":"boolean"},"conditions":{"type":"number"},"unstable":{"type":"number"},"worst":{"anyOf":[{"type":"object","properties":{"cell":{"type":"string"},"taskId":{"type":"string"},"arm":{"type":"string","enum":["baseline","skill"]},"variant":{"type":"number"},"passRate":{"type":"number"}},"required":["cell","taskId","arm","passRate"],"additionalProperties":false},{"type":"null"}]}},"required":["measured","conditions","unstable","worst"],"additionalProperties":false},"arms":{"type":"object","properties":{"baseline":{"type":"object","properties":{"runs":{"type":"number"},"completed":{"type":"number"},"infraFailures":{"type":"number"},"completionRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalTally":{"type":"object","properties":{"achieved":{"type":"number"},"partial":{"type":"number"},"missed":{"type":"number"}},"required":["achieved","partial","missed"],"additionalProperties":false},"avgTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgOutputTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgTurns":{"anyOf":[{"type":"number"},{"type":"null"}]},"costCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgQualityScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"gradedCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95CostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95TotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95DurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"evalPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"benchmarkPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"adoptionRate":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["runs","completed","infraFailures","completionRate","goalRate","goalTally","avgTotalTokens","avgOutputTokens","avgCostUsd","avgDurationMs","avgTurns","costCoverage","avgQualityScore","gradedCoverage","medianCostUsd","medianTotalTokens","medianDurationMs","p95CostUsd","p95TotalTokens","p95DurationMs","maxCostUsd","maxTotalTokens","maxDurationMs"],"additionalProperties":false},"skill":{"type":"object","properties":{"runs":{"type":"number"},"completed":{"type":"number"},"infraFailures":{"type":"number"},"completionRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalTally":{"type":"object","properties":{"achieved":{"type":"number"},"partial":{"type":"number"},"missed":{"type":"number"}},"required":["achieved","partial","missed"],"additionalProperties":false},"avgTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgOutputTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgTurns":{"anyOf":[{"type":"number"},{"type":"null"}]},"costCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgQualityScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"gradedCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95CostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95TotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95DurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"evalPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"benchmarkPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"adoptionRate":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["runs","completed","infraFailures","completionRate","goalRate","goalTally","avgTotalTokens","avgOutputTokens","avgCostUsd","avgDurationMs","avgTurns","costCoverage","avgQualityScore","gradedCoverage","medianCostUsd","medianTotalTokens","medianDurationMs","p95CostUsd","p95TotalTokens","p95DurationMs","maxCostUsd","maxTotalTokens","maxDurationMs"],"additionalProperties":false}},"required":["baseline","skill"],"additionalProperties":false},"totals":{"type":"object","properties":{"cells":{"type":"number"},"runs":{"type":"number"},"completed":{"type":"number"},"failed":{"type":"number"},"costUsd":{"type":"number"},"tokens":{"type":"number"}},"required":["cells","runs","completed","failed","costUsd","tokens"],"additionalProperties":false}},"required":["verdict","headline","completionRate","goalRate","pairwise","concentration","matrixShape","totals"],"additionalProperties":false},"perCell":{"type":"array","items":{}},"perHarness":{"type":"array","items":{}},"perModel":{"type":"array","items":{}},"perTask":{"type":"array","items":{}},"webSplit":{},"inference":{"anyOf":[{"type":"object","properties":{"columns":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"family":{"type":"string","enum":["rate","score","magnitude"]},"betterWhen":{"type":"string","enum":["higher","lower"]}},"required":["key","label","family","betterWhen"],"additionalProperties":false}},"groups":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["cell","harness","model","field"]},"title":{"type":"string"},"rows":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"kind":{"type":"string","enum":["cell","harness","model","field"]},"harness":{"anyOf":[{"type":"string"},{"type":"null"}]},"model":{"anyOf":[{"type":"string"},{"type":"null"}]},"paramsKey":{"type":"string"},"runs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"estimate":{"anyOf":[{"type":"object","properties":{"value":{"type":"number"},"interval":{"type":"object","properties":{"lo":{"type":"number"},"hi":{"type":"number"}},"required":["lo","hi"],"additionalProperties":false,"description":"A 95% bootstrap percentile interval."},"n":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["value","interval","n"],"additionalProperties":false},{"type":"null"}]},"reference":{"anyOf":[{"type":"object","properties":{"value":{"type":"number"},"interval":{"type":"object","properties":{"lo":{"type":"number"},"hi":{"type":"number"}},"required":["lo","hi"],"additionalProperties":false,"description":"A 95% bootstrap percentile interval."},"n":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["value","interval","n"],"additionalProperties":false},{"type":"null"}]},"comparison":{"anyOf":[{"type":"object","properties":{"effect":{"type":"number"},"unit":{"type":"string","enum":["pp","pts","%"]},"interval":{"type":"object","properties":{"lo":{"type":"number"},"hi":{"type":"number"}},"required":["lo","hi"],"additionalProperties":false,"description":"A 95% bootstrap percentile interval."},"p":{"type":"number"},"n":{"minItems":2,"maxItems":2,"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"from":{"type":"number"},"to":{"type":"number"}},"required":["effect","unit","interval","p","n"],"additionalProperties":false},{"type":"null"}]},"adjustedP":{"anyOf":[{"type":"number"},{"type":"null"}]},"tier":{"type":"integer","minimum":0,"maximum":3},"direction":{"type":"string","enum":["better","worse","none"]},"untested":{"type":"boolean"}},"required":["estimate","reference","comparison","adjustedP","tier","direction","untested"],"additionalProperties":false}}},"required":["key","kind","harness","model","runs","cells"],"additionalProperties":false}}},"required":["kind","title","rows"],"additionalProperties":false}},"reference":{"type":"string","enum":["baseline","field"]},"draws":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["columns","groups","reference","draws"],"additionalProperties":false},{"type":"null"}]},"behavior":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string"},"model":{"type":"string"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}]},"arm":{"type":"string"},"totalRuns":{"type":"number"},"signals":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"tone":{"type":"string","enum":["good","bad","neutral"]},"runCount":{"type":"number"},"succeededCount":{"type":"number"}},"required":["id","label","tone","runCount","succeededCount"],"additionalProperties":false}}},"required":["harness","model","provider","arm","totalRuns","signals"],"additionalProperties":false}},"reference":{"type":"object","properties":{"cells":{"type":"array","items":{"type":"object","properties":{"cell":{"type":"string"},"harness":{"type":"string"},"model":{"type":"string"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}]},"paramsKey":{"type":"string"},"label":{"type":"string"},"passRate":{"type":"object","properties":{"value":{"anyOf":[{"type":"number"},{"type":"null"}]},"ci":{"anyOf":[{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}]},{"type":"null"}]},"n":{"type":"number"}},"required":["value","ci","n"],"additionalProperties":false},"abstention":{"description":"abstention_aware_accuracy: correct of all judged-or-declined runs, with the not-attempted rate and correct-given-attempted as parts. Present only when some response was judged NOT ATTEMPTED.","type":"object","properties":{"value":{"anyOf":[{"type":"number"},{"type":"null"}]},"ci":{"anyOf":[{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}]},{"type":"null"}]},"n":{"type":"number"},"parts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"value":{"anyOf":[{"type":"number"},{"type":"null"}]},"n":{"type":"number"}},"required":["id","label","value","n"],"additionalProperties":false}}},"required":["value","ci","n"],"additionalProperties":false},"tasks":{"type":"number"},"graded":{"type":"number"},"unmeasured":{"type":"number"},"matchers":{"type":"array","items":{"type":"string"}},"launchProfiles":{"type":"array","items":{"type":"string","enum":["as-published","harness-default","with-setup"]}}},"required":["cell","harness","model","provider","paramsKey","label","passRate","tasks","graded","unmeasured","matchers","launchProfiles"],"additionalProperties":false}},"overall":{"type":"object","properties":{"value":{"anyOf":[{"type":"number"},{"type":"null"}]},"ci":{"anyOf":[{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}]},{"type":"null"}]},"n":{"type":"number"}},"required":["value","ci","n"],"additionalProperties":false},"abstention":{"description":"abstention_aware_accuracy: correct of all judged-or-declined runs, with the not-attempted rate and correct-given-attempted as parts. Present only when some response was judged NOT ATTEMPTED.","type":"object","properties":{"value":{"anyOf":[{"type":"number"},{"type":"null"}]},"ci":{"anyOf":[{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}]},{"type":"null"}]},"n":{"type":"number"},"parts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"value":{"anyOf":[{"type":"number"},{"type":"null"}]},"n":{"type":"number"}},"required":["id","label","value","n"],"additionalProperties":false}}},"required":["value","ci","n"],"additionalProperties":false},"graded":{"type":"number"},"unmeasured":{"type":"number"},"modelJudged":{"type":"boolean"}},"required":["cells","overall","graded","unmeasured","modelJudged"],"additionalProperties":false},"execution":{"type":"object","properties":{"graded":{"type":"number"},"measured":{"type":"number"},"passed":{"type":"number"},"passRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"byStatus":{"type":"object","properties":{"passed":{"type":"number"},"failed":{"type":"number"},"timeout":{"type":"number"},"error":{"type":"number"},"unavailable":{"type":"number"}},"required":["passed","failed","timeout","error","unavailable"],"additionalProperties":false},"languages":{"type":"array","items":{"type":"string"}},"unavailableReasons":{"type":"array","items":{"type":"string"}}},"required":["graded","measured","passed","passRate","byStatus","languages","unavailableReasons"],"additionalProperties":false}},"required":["summary","perCell","perHarness","perModel","perTask","webSplit","inference"],"additionalProperties":false},"warnings":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"eval_capability_gap"},"harness":{"type":"string"},"kind":{"type":"string"}},"required":["type","harness","kind"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["judge_removed_rubric_unused","evals_skill_loaded_not_pointer","no_gradable_input"]},"detail":{"type":"string"},"taskIds":{"type":"array","items":{"type":"string"}}},"required":["type","detail"],"additionalProperties":false}]},"description":"Non-blocking findings recomputed FRESH on every read (F3/F4/F5, 2026-08-31): 'evals'-lens capability gaps the roster cannot measure, a pointer-delivery gap for a 'skill_loaded' expectation, and/or a lens set with no gradable input across any task. Never a create-time snapshot, and never blocks anything — [] means nothing was flagged right now."},"taskHealth":{"type":"object","properties":{"flags":{"type":"array","items":{"type":"object","properties":{"taskId":{"type":"string"},"signal":{"type":"string","description":"Which pass signal: 'benchmark' (its own grader), 'goal' (judge panel), 'evals'."},"kind":{"type":"string","enum":["floor","ceiling"],"description":"floor = no measured setup passed it; ceiling = every one did."},"conditions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Measured task × cell × arm conditions behind the flag (at least two)."}},"required":["taskId","signal","kind","conditions"],"additionalProperties":false}},"rubricSplits":{"type":"array","items":{"type":"object","properties":{"taskId":{"type":"string"},"criterionIndex":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"criterion":{"type":"string"},"split":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Runs whose judge panel did not agree unanimously on this criterion."},"graded":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Runs graded on it by a panel of two or more judges."}},"required":["taskId","criterionIndex","criterion","split","graded"],"additionalProperties":false}},"signals":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"}},"required":["id","label"],"additionalProperties":false},"description":"The pass signals that measured anything in this study, with what passing means under each."}},"required":["flags","rubricSplits","signals"],"additionalProperties":false,"description":"Floor tasks (no setup passed), ceiling tasks (every setup passed) and the rubric criteria the judge panel split on most. For the study's own maintainers — never published."},"shareUrl":{"description":"The path this study is readable at for its current sharing mode — `/studies/<slug>` for 'public', `/studies/<slug>?share=<token>` for 'link' (managers only), null otherwise. Relative to the app origin.","anyOf":[{"type":"string"},{"type":"null"}]},"canManageSharing":{"description":"True when this caller may change the study's sharing mode or rotate its share link.","type":"boolean"},"shareLinkKept":{"type":"boolean","description":"True when this study is NOT shared by link yet keeps a share link from when it was, switched off — managers only. The kept link opens nothing now; returning the study to 'link' brings the SAME link back, unless it is replaced first with studies.rotateShareToken. Never true for a 'link' study (its link is in `shareUrl`) or for a caller who may not manage sharing; the detail read omits the field unless it is true."}},"required":["study","tasks","runs","aggregate","warnings","taskHealth"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"benchmarks:read","x-ora-product":"experiment","x-ora-service":"experiments-service"},"patch":{"operationId":"benchmarks.updateDetails","summary":"Edit a study's display name and/or description at ANY status, published included — a correction or a disclosure written after launch reaches the published report (the name as its heading, the description in full as the publisher's note) within the page's normal cache revalidation; the page title and meta description derive from the subject, not from these fields. Changes those two fields and nothing else: the slug (so every shared link stays live), the publication date, the sharing mode and token, the corpus and every grade are untouched. Each field follows benchmarks.create's own rule; send at least one. The response's `shareToken` is null — benchmarks.get carries a link study's token","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The study's uuid (from create or list)."},"example":"1f7e4d1c-4b2a-4f3e-9d8c-5a6b7c8d9e0f"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":160,"description":"Display name for the study (≤160 chars)."},"description":{"description":"Optional longer description shown on the study card.","type":"string","maxLength":4000}},"additionalProperties":false,"minProperties":1},"example":{"description":"Disclosure (added after publication): one harness ran with its default backend, which has no shell or HTTP tool, so its row measures that configuration."}}}},"responses":{"200":{"description":"Edit a study's display name and/or description at ANY status, published included — a correction or a disclosure written after launch reaches the published report (the name as its heading, the description in full as the publisher's note) within the page's normal cache revalidation; the page title and meta description derive from the subject, not from these fields. Changes those two fields and nothing else: the slug (so every shared link stays live), the publication date, the sharing mode and token, the corpus and every grade are untouched. Each field follows benchmarks.create's own rule; send at least one. The response's `shareToken` is null — benchmarks.get carries a link study's token","content":{"application/json":{"schema":{"type":"object","properties":{"study":{"type":"object","properties":{"id":{"type":"string"},"executiveSummary":{"anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryDraft":{"description":"A PUBLISHED study's summary held for review, never shown on the public page: what `studies.regenerateSummary` writes on a published study (and the first summary of a published study nothing asked for). `studies.publish` makes exactly this text the published `executiveSummary`, while the readout it was written from is still current; otherwise publish regenerates. Absent where the product has no review drafts.","anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryRequest":{"description":"A summary an explicit act asked for and not yet written: 'live' — a publish, a re-open, or a regenerate on an UNPUBLISHED completed study owes the summary in place (the public page, once published); 'draft' — a regenerate on a published study owes the review draft one. Null once the request is answered — poll `studies.get` until it is: by the written summary (`executiveSummary` or `executiveSummaryDraft`), by a later act that superseded it (a publish, a newer regenerate — its own write answers it), or as unavailable (`executiveSummaryUnavailableAt` set). While the automatic retries back off after a failed attempt it stays pending. Absent where the product has no review drafts.","anyOf":[{"type":"string","enum":["live","draft"]},{"type":"null"}]},"executiveSummaryRequestedAt":{"description":"When `executiveSummaryRequest` was made.","anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryUnavailableAt":{"description":"When the last summary request was answered as UNAVAILABLE: every attempt the retry policy allows on the study's readout failed, so no summary will be written for it until the readout changes (runs added, a re-run, a regrade) or someone regenerates or publishes again. Null otherwise; cleared by a new request or a written summary. Absent where the product has no review drafts.","anyOf":[{"type":"string"},{"type":"null"}]},"plannedRunCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The exact number of runs `launch` will fan out (taskCount × variantsPerTask × repeats × matrix cells × arms). Check this BEFORE launching."},"organizationId":{"type":"string"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"slug":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillRef":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillSlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillName":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillPromise":{"type":"string"},"subjectKind":{"type":"string","enum":["skill","tools","addon","custom","benchmark","site"],"description":"What the study measures. 'skill': an agent skill (requires skillRef; the treatment arm runs with the skill attached). 'tools': the run's tool policy (web tools on vs off). 'addon': one run add-on (tavily, brave, desktop, mcp, secrets…). 'custom': any composition of skill + tools + add-ons, both arms fully spelled out in armConfig. 'benchmark': a pinned version of a catalog benchmark definition (requires definitionVersionId); the corpus is copied frozen from that version. Every comparisonMode applies: 'single' is a harness × model shootout whose ONE arm may carry your setup in armConfig.treatment (armConfig.baseline is refused); 'ab_vs_none' runs the setup in armConfig.treatment against the bare benchmark; 'ab_custom' runs two labelled setups (armConfig.baseline and armConfig.treatment) head to head. An A/B study needs a setup under test and two arms that differ. An arm that carries a setup is not the benchmark's bare protocol, so it does not seed the public leaderboard."},"subjectName":{"anyOf":[{"type":"string"},{"type":"null"}]},"siteDomain":{"description":"The website a 'site' study is run against (its host); absent for every other subject kind.","type":"string"},"subjectLabel":{"type":"string"},"armConfig":{"type":"object","properties":{"baseline":{"description":"The baseline arm's run-payload delta. Omitted = a bare run (no skill, no extras).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false},"treatment":{"description":"The treatment arm's run-payload delta (the thing under test).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"additionalProperties":false,"description":"Frozen per-arm run-payload deltas. Required for subjectKind 'custom' and comparisonMode 'ab_custom'; for 'tools'/'addon' subjects the treatment side is derived when omitted."},"comparisonMode":{"type":"string","enum":["ab_vs_none","ab_custom","single"],"description":"The baseline design. 'ab_vs_none' (default): treatment vs a bare baseline — classic A/B. 'ab_custom': BOTH arms explicitly configured via armConfig, labeled by baselineLabel/treatmentLabel (e.g. 'Remote MCP' vs 'REST API'). 'single': no baseline — one arm per (harness, model) cell, ranked into a leaderboard (verdict 'measured')."},"subjectBackend":{"anyOf":[{"type":"string","enum":["model","harness"],"description":"What answers a FRAMEWORK benchmark's requests: 'harness' — each request is answered by the cell's agent harness (the model inside its own loop, with the arm's tools, add-ons and skills), one agent run per request; 'model' — the framework's own client calls the cell's model directly and the cell's harness is not measured. Resolved once per study and recorded on every run."},{"type":"null"}]},"environmentExecutionPolicy":{"type":"string","enum":["legacy-v1","inside-v1"]},"importedFrom":{"type":"string"},"baselineLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"treatmentLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"promiseMetrics":{"type":"array","items":{"type":"object","properties":{"metric":{"type":"string","enum":["total_tokens","output_tokens","cost_usd","duration_ms","num_turns","success_rate","completion_rate","goal_rate"]},"direction":{"type":"string","enum":["down","up"]},"label":{"type":"string","minLength":1,"maxLength":120}},"required":["metric","direction","label"],"additionalProperties":false}},"matrix":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1,"maxLength":50,"description":"Harness id — the valid set (and each one's models) is GET /catalog; cells are validated against it at create."},"model":{"type":"string","minLength":1,"maxLength":100,"description":"Model id as the harness accepts it — valid ids per harness/provider are in GET /catalog (e.g. 'claude-sonnet-5', 'gpt-5.5')."},"provider":{"description":"Provider qualifier for multi-provider harnesses (e.g. 'anthropic', 'openai', 'google'). Omit to use the harness default.","type":"string","minLength":1,"maxLength":32},"params":{"description":"Provider params pinned for this cell (temperature, reasoningEffort, maxOutputTokens, thinkingBudgetTokens). A cell that pins none runs the provider's own defaults. Offered only where the harness declares support — see GET /catalog.","type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"maxOutputTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reasoningEffort":{"type":"string","enum":["low","medium","high"]},"thinkingBudgetTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"codeMode":{"type":"string","enum":["auto","on","off"]},"toolSearch":{"type":"string","enum":["on","off","directory"]},"location":{"type":"string","pattern":"^[A-Z]{2}$"},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$"}},"additionalProperties":false}},"required":["harness","model"],"additionalProperties":false,"description":"One (harness, model, params) cell — every task runs its arm(s) on every cell."}},"lenses":{"minItems":1,"type":"array","items":{"type":"string","enum":["judge","evals","reference","framework","execution","verifier"]},"description":"Which grading lenses this study runs under. Defaults to ['judge'] at create and stays editable while status is 'ready' (frozen at launch, like task expectations/rubrics). 'judge': the LLM judge panel (rubric grades + blind pairwise). 'evals': the deterministic @ora/eval-checks engine, scored against each task's authored expectations. 'reference': the static-QA lens — an answer extracted from the response and matched against the task's own reference key, scored 1/0 (spec §6.4). 'framework': the benchmark's OWN framework (HELM today) reports the metrics, mapped verbatim into a section rather than re-averaged (SP2 Task 9). 'execution': the candidate's code is extracted from the response and run against the task's own tests inside a sandboxed, network-less runner image (SP2 Task 16)."},"judgeSupplementary":{"type":"boolean"},"taskCount":{"type":"number"},"variantsPerTask":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Semantics-preserving paraphrases sampled per task (1-5; mirrors the create body's variantsPerTask). Absent at create defaults to 1 — every response reports a concrete value, including studies created before sampling existed."},"repeats":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Identical re-runs sampled per condition (1-10; mirrors the create body's repeats). Absent at create defaults to 1 — every response reports a concrete value, including studies created before sampling existed."},"subset":{"anyOf":[{"type":"object","properties":{"count":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"seed":{"type":"string","minLength":1},"of":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["count","seed","of"],"additionalProperties":false},{"type":"null"}]},"status":{"type":"string"},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"preparation":{"anyOf":[{"type":"object","properties":{"since":{"type":"string"},"progressAt":{"type":"string"},"launchedBy":{"type":"object","properties":{"userId":{"type":"string"},"role":{"type":"string"}},"additionalProperties":false},"waitingOn":{"type":"array","items":{"type":"object","properties":{"imageKey":{"type":"string"},"buildId":{"type":"string"},"stage":{"type":"string","enum":["image","snapshot"]},"retry":{"type":"object","properties":{"failedAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maxAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"notBefore":{"type":"string"},"lastFailure":{"type":"string"}},"required":["failedAttempts","maxAttempts","notBefore","lastFailure"],"additionalProperties":false}},"required":["imageKey","buildId"],"additionalProperties":false}}},"required":["since","launchedBy","waitingOn"],"additionalProperties":false},{"type":"null"}]},"visibility":{"type":"string","enum":["private","org","link","public"],"description":"Who may read this study: private (creator + org owners) | org (the whole org) | link (anyone holding ?share=<token>, unlisted) | public (everyone, listed)."},"visibilityChangedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"visibilityChangedBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"shareToken":{"anyOf":[{"type":"string"},{"type":"null"}]},"lowSampleOverride":{"type":"boolean","description":"True iff this study was explicitly published below the sample-size floor (spec A6) — the published page shows a low-sample badge when set."},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"verdict":{},"definitionVersionId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The benchmark definition VERSION this study pinned at create — non-null only for subjectKind 'benchmark'. Its corpus was copied frozen from that version, so the study stays reproducible when the definition publishes a newer one."},"runnerKind":{"type":"string","enum":["ora-runs","batch-job"],"description":"Which executor fans this study out: 'ora-runs' (the ora runs spine) or 'batch-job' (a built runner image)."},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"liveUntil":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When this study's live stream stops being held open (null while it is still running). Attaching before it yields the remaining post-terminal frames (gradings, recordings, refined verdicts)."}},"required":["id","plannedRunCount","organizationId","createdBy","name","slug","description","skillRef","skillSlug","skillName","skillPromise","subjectKind","subjectName","subjectLabel","armConfig","comparisonMode","subjectBackend","baselineLabel","treatmentLabel","promiseMetrics","matrix","lenses","taskCount","variantsPerTask","repeats","subset","status","error","visibility","lowSampleOverride","publishedAt","verdict","definitionVersionId","runnerKind","createdAt","updatedAt","liveUntil"],"additionalProperties":false}},"required":["study"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"study_not_found — no such study this caller can open (another organization's, or a colleague's private study)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"VALIDATION_ERROR — the body is empty, names a field other than `name`/`description`, or a value breaks create's rule for that field","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"benchmarks:write","x-ora-product":"experiment","x-ora-service":"experiments-service"},"delete":{"operationId":"benchmarks.delete","summary":"Delete a study and its tasks/facts (409 while running)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The study's uuid (from create or list)."}}],"responses":{"200":{"description":"Delete a study and its tasks/facts (409 while running)","content":{"application/json":{"schema":{}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"study_invalid_state — a running study cannot be deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"benchmarks:write","x-ora-product":"experiment","x-ora-service":"experiments-service"}},"/experiment/v1/benchmarks/{id}/exec-summary":{"post":{"operationId":"benchmarks.regenerateSummary","summary":"Regenerate the executive summary from the current aggregate (async; poll get). Where the product keeps review drafts, a PUBLISHED study's lands as `executiveSummaryDraft` and its public summary does not change until a re-publish makes the draft public — `target` in the answer says where it lands","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The study's uuid (from create or list)."},"example":"1f7e4d1c-4b2a-4f3e-9d8c-5a6b7c8d9e0f"}],"responses":{"200":{"description":"Regenerate the executive summary from the current aggregate (async; poll get). Where the product keeps review drafts, a PUBLISHED study's lands as `executiveSummaryDraft` and its public summary does not change until a re-publish makes the draft public — `target` in the answer says where it lands","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"queued","description":"The regeneration was accepted; poll `studies.get` for the new summary."},"target":{"type":"string","enum":["live","draft"],"description":"Where the regenerated summary lands. 'draft': the study is published, so it is held for review in `executiveSummaryDraft` (the public `executiveSummary` does not change) until `studies.publish` makes it public. 'live': written in place as `executiveSummary` — an unpublished study, or a published one whose publish's own summary is still pending: the regenerate joins that request instead of demoting it to a draft. Either way, on a completed study, poll `studies.get` until `executiveSummaryRequest` is null; `executiveSummaryUnavailableAt` set means the summary could not be written for this readout. (A study that has not completed takes no request: its completion writes the summary.)"}},"required":["status","target"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"study_not_found — no such study in this organization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"study_invalid_state — a 'draft' study has no aggregate yet to summarize — or study_archived: an imported study's results never change","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"benchmarks:write","x-ora-product":"experiment","x-ora-service":"experiments-service"}},"/experiment/v1/benchmarks/{id}/generate":{"post":{"operationId":"benchmarks.generate","summary":"Approve task generation from 'draft' (first generation), or regenerate from 'ready'/'failed' (wipes existing tasks and their rubrics)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The study's uuid (from create or list)."}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"default":{},"type":"object","properties":{"proposeExpectations":{"description":"Opt in to an LLM proposing 'evals'-lens `expectations` for each task this generation produces — the generate-time re-assertion of create's `proposeExpectations` (create-time no longer fires generation itself, so this is where the opt-in actually takes effect). Same REQUIRES/IGNORED rules as create's field.","type":"boolean"}}}}}},"responses":{"200":{"description":"Approve task generation from 'draft' (first generation), or regenerate from 'ready'/'failed' (wipes existing tasks and their rubrics)","content":{"application/json":{"schema":{"type":"object","properties":{"study":{"type":"object","properties":{"id":{"type":"string"},"executiveSummary":{"anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryDraft":{"description":"A PUBLISHED study's summary held for review, never shown on the public page: what `studies.regenerateSummary` writes on a published study (and the first summary of a published study nothing asked for). `studies.publish` makes exactly this text the published `executiveSummary`, while the readout it was written from is still current; otherwise publish regenerates. Absent where the product has no review drafts.","anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryRequest":{"description":"A summary an explicit act asked for and not yet written: 'live' — a publish, a re-open, or a regenerate on an UNPUBLISHED completed study owes the summary in place (the public page, once published); 'draft' — a regenerate on a published study owes the review draft one. Null once the request is answered — poll `studies.get` until it is: by the written summary (`executiveSummary` or `executiveSummaryDraft`), by a later act that superseded it (a publish, a newer regenerate — its own write answers it), or as unavailable (`executiveSummaryUnavailableAt` set). While the automatic retries back off after a failed attempt it stays pending. Absent where the product has no review drafts.","anyOf":[{"type":"string","enum":["live","draft"]},{"type":"null"}]},"executiveSummaryRequestedAt":{"description":"When `executiveSummaryRequest` was made.","anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryUnavailableAt":{"description":"When the last summary request was answered as UNAVAILABLE: every attempt the retry policy allows on the study's readout failed, so no summary will be written for it until the readout changes (runs added, a re-run, a regrade) or someone regenerates or publishes again. Null otherwise; cleared by a new request or a written summary. Absent where the product has no review drafts.","anyOf":[{"type":"string"},{"type":"null"}]},"plannedRunCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The exact number of runs `launch` will fan out (taskCount × variantsPerTask × repeats × matrix cells × arms). Check this BEFORE launching."},"organizationId":{"type":"string"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"slug":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillRef":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillSlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillName":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillPromise":{"type":"string"},"subjectKind":{"type":"string","enum":["skill","tools","addon","custom","benchmark","site"],"description":"What the study measures. 'skill': an agent skill (requires skillRef; the treatment arm runs with the skill attached). 'tools': the run's tool policy (web tools on vs off). 'addon': one run add-on (tavily, brave, desktop, mcp, secrets…). 'custom': any composition of skill + tools + add-ons, both arms fully spelled out in armConfig. 'benchmark': a pinned version of a catalog benchmark definition (requires definitionVersionId); the corpus is copied frozen from that version. Every comparisonMode applies: 'single' is a harness × model shootout whose ONE arm may carry your setup in armConfig.treatment (armConfig.baseline is refused); 'ab_vs_none' runs the setup in armConfig.treatment against the bare benchmark; 'ab_custom' runs two labelled setups (armConfig.baseline and armConfig.treatment) head to head. An A/B study needs a setup under test and two arms that differ. An arm that carries a setup is not the benchmark's bare protocol, so it does not seed the public leaderboard."},"subjectName":{"anyOf":[{"type":"string"},{"type":"null"}]},"siteDomain":{"description":"The website a 'site' study is run against (its host); absent for every other subject kind.","type":"string"},"subjectLabel":{"type":"string"},"armConfig":{"type":"object","properties":{"baseline":{"description":"The baseline arm's run-payload delta. Omitted = a bare run (no skill, no extras).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false},"treatment":{"description":"The treatment arm's run-payload delta (the thing under test).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"additionalProperties":false,"description":"Frozen per-arm run-payload deltas. Required for subjectKind 'custom' and comparisonMode 'ab_custom'; for 'tools'/'addon' subjects the treatment side is derived when omitted."},"comparisonMode":{"type":"string","enum":["ab_vs_none","ab_custom","single"],"description":"The baseline design. 'ab_vs_none' (default): treatment vs a bare baseline — classic A/B. 'ab_custom': BOTH arms explicitly configured via armConfig, labeled by baselineLabel/treatmentLabel (e.g. 'Remote MCP' vs 'REST API'). 'single': no baseline — one arm per (harness, model) cell, ranked into a leaderboard (verdict 'measured')."},"subjectBackend":{"anyOf":[{"type":"string","enum":["model","harness"],"description":"What answers a FRAMEWORK benchmark's requests: 'harness' — each request is answered by the cell's agent harness (the model inside its own loop, with the arm's tools, add-ons and skills), one agent run per request; 'model' — the framework's own client calls the cell's model directly and the cell's harness is not measured. Resolved once per study and recorded on every run."},{"type":"null"}]},"environmentExecutionPolicy":{"type":"string","enum":["legacy-v1","inside-v1"]},"importedFrom":{"type":"string"},"baselineLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"treatmentLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"promiseMetrics":{"type":"array","items":{"type":"object","properties":{"metric":{"type":"string","enum":["total_tokens","output_tokens","cost_usd","duration_ms","num_turns","success_rate","completion_rate","goal_rate"]},"direction":{"type":"string","enum":["down","up"]},"label":{"type":"string","minLength":1,"maxLength":120}},"required":["metric","direction","label"],"additionalProperties":false}},"matrix":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1,"maxLength":50,"description":"Harness id — the valid set (and each one's models) is GET /catalog; cells are validated against it at create."},"model":{"type":"string","minLength":1,"maxLength":100,"description":"Model id as the harness accepts it — valid ids per harness/provider are in GET /catalog (e.g. 'claude-sonnet-5', 'gpt-5.5')."},"provider":{"description":"Provider qualifier for multi-provider harnesses (e.g. 'anthropic', 'openai', 'google'). Omit to use the harness default.","type":"string","minLength":1,"maxLength":32},"params":{"description":"Provider params pinned for this cell (temperature, reasoningEffort, maxOutputTokens, thinkingBudgetTokens). A cell that pins none runs the provider's own defaults. Offered only where the harness declares support — see GET /catalog.","type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"maxOutputTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reasoningEffort":{"type":"string","enum":["low","medium","high"]},"thinkingBudgetTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"codeMode":{"type":"string","enum":["auto","on","off"]},"toolSearch":{"type":"string","enum":["on","off","directory"]},"location":{"type":"string","pattern":"^[A-Z]{2}$"},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$"}},"additionalProperties":false}},"required":["harness","model"],"additionalProperties":false,"description":"One (harness, model, params) cell — every task runs its arm(s) on every cell."}},"lenses":{"minItems":1,"type":"array","items":{"type":"string","enum":["judge","evals","reference","framework","execution","verifier"]},"description":"Which grading lenses this study runs under. Defaults to ['judge'] at create and stays editable while status is 'ready' (frozen at launch, like task expectations/rubrics). 'judge': the LLM judge panel (rubric grades + blind pairwise). 'evals': the deterministic @ora/eval-checks engine, scored against each task's authored expectations. 'reference': the static-QA lens — an answer extracted from the response and matched against the task's own reference key, scored 1/0 (spec §6.4). 'framework': the benchmark's OWN framework (HELM today) reports the metrics, mapped verbatim into a section rather than re-averaged (SP2 Task 9). 'execution': the candidate's code is extracted from the response and run against the task's own tests inside a sandboxed, network-less runner image (SP2 Task 16)."},"judgeSupplementary":{"type":"boolean"},"taskCount":{"type":"number"},"variantsPerTask":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Semantics-preserving paraphrases sampled per task (1-5; mirrors the create body's variantsPerTask). Absent at create defaults to 1 — every response reports a concrete value, including studies created before sampling existed."},"repeats":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Identical re-runs sampled per condition (1-10; mirrors the create body's repeats). Absent at create defaults to 1 — every response reports a concrete value, including studies created before sampling existed."},"subset":{"anyOf":[{"type":"object","properties":{"count":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"seed":{"type":"string","minLength":1},"of":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["count","seed","of"],"additionalProperties":false},{"type":"null"}]},"status":{"type":"string"},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"preparation":{"anyOf":[{"type":"object","properties":{"since":{"type":"string"},"progressAt":{"type":"string"},"launchedBy":{"type":"object","properties":{"userId":{"type":"string"},"role":{"type":"string"}},"additionalProperties":false},"waitingOn":{"type":"array","items":{"type":"object","properties":{"imageKey":{"type":"string"},"buildId":{"type":"string"},"stage":{"type":"string","enum":["image","snapshot"]},"retry":{"type":"object","properties":{"failedAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maxAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"notBefore":{"type":"string"},"lastFailure":{"type":"string"}},"required":["failedAttempts","maxAttempts","notBefore","lastFailure"],"additionalProperties":false}},"required":["imageKey","buildId"],"additionalProperties":false}}},"required":["since","launchedBy","waitingOn"],"additionalProperties":false},{"type":"null"}]},"visibility":{"type":"string","enum":["private","org","link","public"],"description":"Who may read this study: private (creator + org owners) | org (the whole org) | link (anyone holding ?share=<token>, unlisted) | public (everyone, listed)."},"visibilityChangedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"visibilityChangedBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"shareToken":{"anyOf":[{"type":"string"},{"type":"null"}]},"lowSampleOverride":{"type":"boolean","description":"True iff this study was explicitly published below the sample-size floor (spec A6) — the published page shows a low-sample badge when set."},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"verdict":{},"definitionVersionId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The benchmark definition VERSION this study pinned at create — non-null only for subjectKind 'benchmark'. Its corpus was copied frozen from that version, so the study stays reproducible when the definition publishes a newer one."},"runnerKind":{"type":"string","enum":["ora-runs","batch-job"],"description":"Which executor fans this study out: 'ora-runs' (the ora runs spine) or 'batch-job' (a built runner image)."},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"liveUntil":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When this study's live stream stops being held open (null while it is still running). Attaching before it yields the remaining post-terminal frames (gradings, recordings, refined verdicts)."}},"required":["id","plannedRunCount","organizationId","createdBy","name","slug","description","skillRef","skillSlug","skillName","skillPromise","subjectKind","subjectName","subjectLabel","armConfig","comparisonMode","subjectBackend","baselineLabel","treatmentLabel","promiseMetrics","matrix","lenses","taskCount","variantsPerTask","repeats","subset","status","error","visibility","lowSampleOverride","publishedAt","verdict","definitionVersionId","runnerKind","createdAt","updatedAt","liveUntil"],"additionalProperties":false},"streamUrl":{"type":"string","description":"The study's live SSE stream, relative to this API origin. Frames: status (draft/generating/ready/running/completed/failed — terminal closes the stream), run (per-run fact updates), grading, published/unpublished. `ora … --watch` follows it automatically."},"warnings":{"description":"'evals'-lens create only: (harness, check kind) pairs the capability roster cannot measure (deny-by-default) — that cell will abstain at grading time rather than pass/fail. Non-blocking; absent/[] means nothing was flagged.","type":"array","items":{"type":"object","properties":{"harness":{"type":"string"},"kind":{"type":"string"}},"required":["harness","kind"],"additionalProperties":false}}},"required":["study","streamUrl"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"study_invalid_state — only 'draft', 'ready' or 'failed' studies can (re)generate (the body lists the allowed statuses) — or study_archived: an imported study's results never change","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"LENS_MISMATCH — `proposeExpectations` is true but `lenses` omits 'evals'","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"study_generation_failed — the task-generation LLM call failed; safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"benchmarks:write","x-ora-product":"experiment","x-ora-service":"experiments-service"}},"/experiment/v1/benchmarks/{id}/launch":{"post":{"operationId":"benchmarks.launch","summary":"Launch: fan out task × matrix-cell × arm runs (async — poll get until status 'completed')","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The study's uuid (from create or list)."}}],"responses":{"200":{"description":"Launch: fan out task × matrix-cell × arm runs (async — poll get until status 'completed')","content":{"application/json":{"schema":{"type":"object","properties":{"study":{"type":"object","properties":{"id":{"type":"string"},"executiveSummary":{"anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryDraft":{"description":"A PUBLISHED study's summary held for review, never shown on the public page: what `studies.regenerateSummary` writes on a published study (and the first summary of a published study nothing asked for). `studies.publish` makes exactly this text the published `executiveSummary`, while the readout it was written from is still current; otherwise publish regenerates. Absent where the product has no review drafts.","anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryRequest":{"description":"A summary an explicit act asked for and not yet written: 'live' — a publish, a re-open, or a regenerate on an UNPUBLISHED completed study owes the summary in place (the public page, once published); 'draft' — a regenerate on a published study owes the review draft one. Null once the request is answered — poll `studies.get` until it is: by the written summary (`executiveSummary` or `executiveSummaryDraft`), by a later act that superseded it (a publish, a newer regenerate — its own write answers it), or as unavailable (`executiveSummaryUnavailableAt` set). While the automatic retries back off after a failed attempt it stays pending. Absent where the product has no review drafts.","anyOf":[{"type":"string","enum":["live","draft"]},{"type":"null"}]},"executiveSummaryRequestedAt":{"description":"When `executiveSummaryRequest` was made.","anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryUnavailableAt":{"description":"When the last summary request was answered as UNAVAILABLE: every attempt the retry policy allows on the study's readout failed, so no summary will be written for it until the readout changes (runs added, a re-run, a regrade) or someone regenerates or publishes again. Null otherwise; cleared by a new request or a written summary. Absent where the product has no review drafts.","anyOf":[{"type":"string"},{"type":"null"}]},"plannedRunCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The exact number of runs `launch` will fan out (taskCount × variantsPerTask × repeats × matrix cells × arms). Check this BEFORE launching."},"organizationId":{"type":"string"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"slug":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillRef":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillSlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillName":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillPromise":{"type":"string"},"subjectKind":{"type":"string","enum":["skill","tools","addon","custom","benchmark","site"],"description":"What the study measures. 'skill': an agent skill (requires skillRef; the treatment arm runs with the skill attached). 'tools': the run's tool policy (web tools on vs off). 'addon': one run add-on (tavily, brave, desktop, mcp, secrets…). 'custom': any composition of skill + tools + add-ons, both arms fully spelled out in armConfig. 'benchmark': a pinned version of a catalog benchmark definition (requires definitionVersionId); the corpus is copied frozen from that version. Every comparisonMode applies: 'single' is a harness × model shootout whose ONE arm may carry your setup in armConfig.treatment (armConfig.baseline is refused); 'ab_vs_none' runs the setup in armConfig.treatment against the bare benchmark; 'ab_custom' runs two labelled setups (armConfig.baseline and armConfig.treatment) head to head. An A/B study needs a setup under test and two arms that differ. An arm that carries a setup is not the benchmark's bare protocol, so it does not seed the public leaderboard."},"subjectName":{"anyOf":[{"type":"string"},{"type":"null"}]},"siteDomain":{"description":"The website a 'site' study is run against (its host); absent for every other subject kind.","type":"string"},"subjectLabel":{"type":"string"},"armConfig":{"type":"object","properties":{"baseline":{"description":"The baseline arm's run-payload delta. Omitted = a bare run (no skill, no extras).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false},"treatment":{"description":"The treatment arm's run-payload delta (the thing under test).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"additionalProperties":false,"description":"Frozen per-arm run-payload deltas. Required for subjectKind 'custom' and comparisonMode 'ab_custom'; for 'tools'/'addon' subjects the treatment side is derived when omitted."},"comparisonMode":{"type":"string","enum":["ab_vs_none","ab_custom","single"],"description":"The baseline design. 'ab_vs_none' (default): treatment vs a bare baseline — classic A/B. 'ab_custom': BOTH arms explicitly configured via armConfig, labeled by baselineLabel/treatmentLabel (e.g. 'Remote MCP' vs 'REST API'). 'single': no baseline — one arm per (harness, model) cell, ranked into a leaderboard (verdict 'measured')."},"subjectBackend":{"anyOf":[{"type":"string","enum":["model","harness"],"description":"What answers a FRAMEWORK benchmark's requests: 'harness' — each request is answered by the cell's agent harness (the model inside its own loop, with the arm's tools, add-ons and skills), one agent run per request; 'model' — the framework's own client calls the cell's model directly and the cell's harness is not measured. Resolved once per study and recorded on every run."},{"type":"null"}]},"environmentExecutionPolicy":{"type":"string","enum":["legacy-v1","inside-v1"]},"importedFrom":{"type":"string"},"baselineLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"treatmentLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"promiseMetrics":{"type":"array","items":{"type":"object","properties":{"metric":{"type":"string","enum":["total_tokens","output_tokens","cost_usd","duration_ms","num_turns","success_rate","completion_rate","goal_rate"]},"direction":{"type":"string","enum":["down","up"]},"label":{"type":"string","minLength":1,"maxLength":120}},"required":["metric","direction","label"],"additionalProperties":false}},"matrix":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1,"maxLength":50,"description":"Harness id — the valid set (and each one's models) is GET /catalog; cells are validated against it at create."},"model":{"type":"string","minLength":1,"maxLength":100,"description":"Model id as the harness accepts it — valid ids per harness/provider are in GET /catalog (e.g. 'claude-sonnet-5', 'gpt-5.5')."},"provider":{"description":"Provider qualifier for multi-provider harnesses (e.g. 'anthropic', 'openai', 'google'). Omit to use the harness default.","type":"string","minLength":1,"maxLength":32},"params":{"description":"Provider params pinned for this cell (temperature, reasoningEffort, maxOutputTokens, thinkingBudgetTokens). A cell that pins none runs the provider's own defaults. Offered only where the harness declares support — see GET /catalog.","type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"maxOutputTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reasoningEffort":{"type":"string","enum":["low","medium","high"]},"thinkingBudgetTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"codeMode":{"type":"string","enum":["auto","on","off"]},"toolSearch":{"type":"string","enum":["on","off","directory"]},"location":{"type":"string","pattern":"^[A-Z]{2}$"},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$"}},"additionalProperties":false}},"required":["harness","model"],"additionalProperties":false,"description":"One (harness, model, params) cell — every task runs its arm(s) on every cell."}},"lenses":{"minItems":1,"type":"array","items":{"type":"string","enum":["judge","evals","reference","framework","execution","verifier"]},"description":"Which grading lenses this study runs under. Defaults to ['judge'] at create and stays editable while status is 'ready' (frozen at launch, like task expectations/rubrics). 'judge': the LLM judge panel (rubric grades + blind pairwise). 'evals': the deterministic @ora/eval-checks engine, scored against each task's authored expectations. 'reference': the static-QA lens — an answer extracted from the response and matched against the task's own reference key, scored 1/0 (spec §6.4). 'framework': the benchmark's OWN framework (HELM today) reports the metrics, mapped verbatim into a section rather than re-averaged (SP2 Task 9). 'execution': the candidate's code is extracted from the response and run against the task's own tests inside a sandboxed, network-less runner image (SP2 Task 16)."},"judgeSupplementary":{"type":"boolean"},"taskCount":{"type":"number"},"variantsPerTask":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Semantics-preserving paraphrases sampled per task (1-5; mirrors the create body's variantsPerTask). Absent at create defaults to 1 — every response reports a concrete value, including studies created before sampling existed."},"repeats":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Identical re-runs sampled per condition (1-10; mirrors the create body's repeats). Absent at create defaults to 1 — every response reports a concrete value, including studies created before sampling existed."},"subset":{"anyOf":[{"type":"object","properties":{"count":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"seed":{"type":"string","minLength":1},"of":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["count","seed","of"],"additionalProperties":false},{"type":"null"}]},"status":{"type":"string"},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"preparation":{"anyOf":[{"type":"object","properties":{"since":{"type":"string"},"progressAt":{"type":"string"},"launchedBy":{"type":"object","properties":{"userId":{"type":"string"},"role":{"type":"string"}},"additionalProperties":false},"waitingOn":{"type":"array","items":{"type":"object","properties":{"imageKey":{"type":"string"},"buildId":{"type":"string"},"stage":{"type":"string","enum":["image","snapshot"]},"retry":{"type":"object","properties":{"failedAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maxAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"notBefore":{"type":"string"},"lastFailure":{"type":"string"}},"required":["failedAttempts","maxAttempts","notBefore","lastFailure"],"additionalProperties":false}},"required":["imageKey","buildId"],"additionalProperties":false}}},"required":["since","launchedBy","waitingOn"],"additionalProperties":false},{"type":"null"}]},"visibility":{"type":"string","enum":["private","org","link","public"],"description":"Who may read this study: private (creator + org owners) | org (the whole org) | link (anyone holding ?share=<token>, unlisted) | public (everyone, listed)."},"visibilityChangedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"visibilityChangedBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"shareToken":{"anyOf":[{"type":"string"},{"type":"null"}]},"lowSampleOverride":{"type":"boolean","description":"True iff this study was explicitly published below the sample-size floor (spec A6) — the published page shows a low-sample badge when set."},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"verdict":{},"definitionVersionId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The benchmark definition VERSION this study pinned at create — non-null only for subjectKind 'benchmark'. Its corpus was copied frozen from that version, so the study stays reproducible when the definition publishes a newer one."},"runnerKind":{"type":"string","enum":["ora-runs","batch-job"],"description":"Which executor fans this study out: 'ora-runs' (the ora runs spine) or 'batch-job' (a built runner image)."},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"liveUntil":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When this study's live stream stops being held open (null while it is still running). Attaching before it yields the remaining post-terminal frames (gradings, recordings, refined verdicts)."}},"required":["id","plannedRunCount","organizationId","createdBy","name","slug","description","skillRef","skillSlug","skillName","skillPromise","subjectKind","subjectName","subjectLabel","armConfig","comparisonMode","subjectBackend","baselineLabel","treatmentLabel","promiseMetrics","matrix","lenses","taskCount","variantsPerTask","repeats","subset","status","error","visibility","lowSampleOverride","publishedAt","verdict","definitionVersionId","runnerKind","createdAt","updatedAt","liveUntil"],"additionalProperties":false},"streamUrl":{"type":"string","description":"The study's live SSE stream, relative to this API origin. Frames: status (draft/generating/ready/running/completed/failed — terminal closes the stream), run (per-run fact updates), grading, published/unpublished. `ora … --watch` follows it automatically."},"warnings":{"description":"'evals'-lens create only: (harness, check kind) pairs the capability roster cannot measure (deny-by-default) — that cell will abstain at grading time rather than pass/fail. Non-blocking; absent/[] means nothing was flagged.","type":"array","items":{"type":"object","properties":{"harness":{"type":"string"},"kind":{"type":"string"}},"required":["harness","kind"],"additionalProperties":false}}},"required":["study","streamUrl"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"study_invalid_state (only ready studies launch) or study_environment_policy_unavailable (create a new study to use the current environment method; existing evidence remains unchanged), or study_archived (an imported study's results never change)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"benchmarks:write","x-ora-product":"experiment","x-ora-service":"experiments-service"}},"/experiment/v1/benchmarks/{id}/lenses":{"put":{"operationId":"benchmarks.updateLenses","summary":"Change which grading lenses a study runs under before launch (status 'ready' only) — the complete replacement set, e.g. add 'evals' to a judge-only study so its tasks can carry expectations","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The study's uuid (from create or list)."},"example":"1f7e4d1c-4b2a-4f3e-9d8c-5a6b7c8d9e0f"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lenses":{"minItems":1,"type":"array","items":{"type":"string","enum":["judge","evals","reference","framework","execution","verifier"]},"description":"The COMPLETE replacement lens set (not a delta). Editable only while status is 'ready'. Removing 'evals' while a task still carries authored `expectations` is BLOCKED (422 LENS_REMOVAL_BLOCKED, names the task(s)); removing 'judge' while a task carries a `rubric` succeeds but returns a non-blocking warning (the rubric stays stored, just ungraded)."}},"required":["lenses"]},"example":{"lenses":["judge","evals"]}}}},"responses":{"200":{"description":"Change which grading lenses a study runs under before launch (status 'ready' only) — the complete replacement set, e.g. add 'evals' to a judge-only study so its tasks can carry expectations","content":{"application/json":{"schema":{"type":"object","properties":{"study":{"type":"object","properties":{"id":{"type":"string"},"executiveSummary":{"anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryDraft":{"description":"A PUBLISHED study's summary held for review, never shown on the public page: what `studies.regenerateSummary` writes on a published study (and the first summary of a published study nothing asked for). `studies.publish` makes exactly this text the published `executiveSummary`, while the readout it was written from is still current; otherwise publish regenerates. Absent where the product has no review drafts.","anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryRequest":{"description":"A summary an explicit act asked for and not yet written: 'live' — a publish, a re-open, or a regenerate on an UNPUBLISHED completed study owes the summary in place (the public page, once published); 'draft' — a regenerate on a published study owes the review draft one. Null once the request is answered — poll `studies.get` until it is: by the written summary (`executiveSummary` or `executiveSummaryDraft`), by a later act that superseded it (a publish, a newer regenerate — its own write answers it), or as unavailable (`executiveSummaryUnavailableAt` set). While the automatic retries back off after a failed attempt it stays pending. Absent where the product has no review drafts.","anyOf":[{"type":"string","enum":["live","draft"]},{"type":"null"}]},"executiveSummaryRequestedAt":{"description":"When `executiveSummaryRequest` was made.","anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryUnavailableAt":{"description":"When the last summary request was answered as UNAVAILABLE: every attempt the retry policy allows on the study's readout failed, so no summary will be written for it until the readout changes (runs added, a re-run, a regrade) or someone regenerates or publishes again. Null otherwise; cleared by a new request or a written summary. Absent where the product has no review drafts.","anyOf":[{"type":"string"},{"type":"null"}]},"plannedRunCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The exact number of runs `launch` will fan out (taskCount × variantsPerTask × repeats × matrix cells × arms). Check this BEFORE launching."},"organizationId":{"type":"string"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"slug":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillRef":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillSlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillName":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillPromise":{"type":"string"},"subjectKind":{"type":"string","enum":["skill","tools","addon","custom","benchmark","site"],"description":"What the study measures. 'skill': an agent skill (requires skillRef; the treatment arm runs with the skill attached). 'tools': the run's tool policy (web tools on vs off). 'addon': one run add-on (tavily, brave, desktop, mcp, secrets…). 'custom': any composition of skill + tools + add-ons, both arms fully spelled out in armConfig. 'benchmark': a pinned version of a catalog benchmark definition (requires definitionVersionId); the corpus is copied frozen from that version. Every comparisonMode applies: 'single' is a harness × model shootout whose ONE arm may carry your setup in armConfig.treatment (armConfig.baseline is refused); 'ab_vs_none' runs the setup in armConfig.treatment against the bare benchmark; 'ab_custom' runs two labelled setups (armConfig.baseline and armConfig.treatment) head to head. An A/B study needs a setup under test and two arms that differ. An arm that carries a setup is not the benchmark's bare protocol, so it does not seed the public leaderboard."},"subjectName":{"anyOf":[{"type":"string"},{"type":"null"}]},"siteDomain":{"description":"The website a 'site' study is run against (its host); absent for every other subject kind.","type":"string"},"subjectLabel":{"type":"string"},"armConfig":{"type":"object","properties":{"baseline":{"description":"The baseline arm's run-payload delta. Omitted = a bare run (no skill, no extras).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false},"treatment":{"description":"The treatment arm's run-payload delta (the thing under test).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"additionalProperties":false,"description":"Frozen per-arm run-payload deltas. Required for subjectKind 'custom' and comparisonMode 'ab_custom'; for 'tools'/'addon' subjects the treatment side is derived when omitted."},"comparisonMode":{"type":"string","enum":["ab_vs_none","ab_custom","single"],"description":"The baseline design. 'ab_vs_none' (default): treatment vs a bare baseline — classic A/B. 'ab_custom': BOTH arms explicitly configured via armConfig, labeled by baselineLabel/treatmentLabel (e.g. 'Remote MCP' vs 'REST API'). 'single': no baseline — one arm per (harness, model) cell, ranked into a leaderboard (verdict 'measured')."},"subjectBackend":{"anyOf":[{"type":"string","enum":["model","harness"],"description":"What answers a FRAMEWORK benchmark's requests: 'harness' — each request is answered by the cell's agent harness (the model inside its own loop, with the arm's tools, add-ons and skills), one agent run per request; 'model' — the framework's own client calls the cell's model directly and the cell's harness is not measured. Resolved once per study and recorded on every run."},{"type":"null"}]},"environmentExecutionPolicy":{"type":"string","enum":["legacy-v1","inside-v1"]},"importedFrom":{"type":"string"},"baselineLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"treatmentLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"promiseMetrics":{"type":"array","items":{"type":"object","properties":{"metric":{"type":"string","enum":["total_tokens","output_tokens","cost_usd","duration_ms","num_turns","success_rate","completion_rate","goal_rate"]},"direction":{"type":"string","enum":["down","up"]},"label":{"type":"string","minLength":1,"maxLength":120}},"required":["metric","direction","label"],"additionalProperties":false}},"matrix":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1,"maxLength":50,"description":"Harness id — the valid set (and each one's models) is GET /catalog; cells are validated against it at create."},"model":{"type":"string","minLength":1,"maxLength":100,"description":"Model id as the harness accepts it — valid ids per harness/provider are in GET /catalog (e.g. 'claude-sonnet-5', 'gpt-5.5')."},"provider":{"description":"Provider qualifier for multi-provider harnesses (e.g. 'anthropic', 'openai', 'google'). Omit to use the harness default.","type":"string","minLength":1,"maxLength":32},"params":{"description":"Provider params pinned for this cell (temperature, reasoningEffort, maxOutputTokens, thinkingBudgetTokens). A cell that pins none runs the provider's own defaults. Offered only where the harness declares support — see GET /catalog.","type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"maxOutputTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reasoningEffort":{"type":"string","enum":["low","medium","high"]},"thinkingBudgetTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"codeMode":{"type":"string","enum":["auto","on","off"]},"toolSearch":{"type":"string","enum":["on","off","directory"]},"location":{"type":"string","pattern":"^[A-Z]{2}$"},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$"}},"additionalProperties":false}},"required":["harness","model"],"additionalProperties":false,"description":"One (harness, model, params) cell — every task runs its arm(s) on every cell."}},"lenses":{"minItems":1,"type":"array","items":{"type":"string","enum":["judge","evals","reference","framework","execution","verifier"]},"description":"Which grading lenses this study runs under. Defaults to ['judge'] at create and stays editable while status is 'ready' (frozen at launch, like task expectations/rubrics). 'judge': the LLM judge panel (rubric grades + blind pairwise). 'evals': the deterministic @ora/eval-checks engine, scored against each task's authored expectations. 'reference': the static-QA lens — an answer extracted from the response and matched against the task's own reference key, scored 1/0 (spec §6.4). 'framework': the benchmark's OWN framework (HELM today) reports the metrics, mapped verbatim into a section rather than re-averaged (SP2 Task 9). 'execution': the candidate's code is extracted from the response and run against the task's own tests inside a sandboxed, network-less runner image (SP2 Task 16)."},"judgeSupplementary":{"type":"boolean"},"taskCount":{"type":"number"},"variantsPerTask":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Semantics-preserving paraphrases sampled per task (1-5; mirrors the create body's variantsPerTask). Absent at create defaults to 1 — every response reports a concrete value, including studies created before sampling existed."},"repeats":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Identical re-runs sampled per condition (1-10; mirrors the create body's repeats). Absent at create defaults to 1 — every response reports a concrete value, including studies created before sampling existed."},"subset":{"anyOf":[{"type":"object","properties":{"count":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"seed":{"type":"string","minLength":1},"of":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["count","seed","of"],"additionalProperties":false},{"type":"null"}]},"status":{"type":"string"},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"preparation":{"anyOf":[{"type":"object","properties":{"since":{"type":"string"},"progressAt":{"type":"string"},"launchedBy":{"type":"object","properties":{"userId":{"type":"string"},"role":{"type":"string"}},"additionalProperties":false},"waitingOn":{"type":"array","items":{"type":"object","properties":{"imageKey":{"type":"string"},"buildId":{"type":"string"},"stage":{"type":"string","enum":["image","snapshot"]},"retry":{"type":"object","properties":{"failedAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maxAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"notBefore":{"type":"string"},"lastFailure":{"type":"string"}},"required":["failedAttempts","maxAttempts","notBefore","lastFailure"],"additionalProperties":false}},"required":["imageKey","buildId"],"additionalProperties":false}}},"required":["since","launchedBy","waitingOn"],"additionalProperties":false},{"type":"null"}]},"visibility":{"type":"string","enum":["private","org","link","public"],"description":"Who may read this study: private (creator + org owners) | org (the whole org) | link (anyone holding ?share=<token>, unlisted) | public (everyone, listed)."},"visibilityChangedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"visibilityChangedBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"shareToken":{"anyOf":[{"type":"string"},{"type":"null"}]},"lowSampleOverride":{"type":"boolean","description":"True iff this study was explicitly published below the sample-size floor (spec A6) — the published page shows a low-sample badge when set."},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"verdict":{},"definitionVersionId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The benchmark definition VERSION this study pinned at create — non-null only for subjectKind 'benchmark'. Its corpus was copied frozen from that version, so the study stays reproducible when the definition publishes a newer one."},"runnerKind":{"type":"string","enum":["ora-runs","batch-job"],"description":"Which executor fans this study out: 'ora-runs' (the ora runs spine) or 'batch-job' (a built runner image)."},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"liveUntil":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When this study's live stream stops being held open (null while it is still running). Attaching before it yields the remaining post-terminal frames (gradings, recordings, refined verdicts)."}},"required":["id","plannedRunCount","organizationId","createdBy","name","slug","description","skillRef","skillSlug","skillName","skillPromise","subjectKind","subjectName","subjectLabel","armConfig","comparisonMode","subjectBackend","baselineLabel","treatmentLabel","promiseMetrics","matrix","lenses","taskCount","variantsPerTask","repeats","subset","status","error","visibility","lowSampleOverride","publishedAt","verdict","definitionVersionId","runnerKind","createdAt","updatedAt","liveUntil"],"additionalProperties":false},"warnings":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["judge_removed_rubric_unused","evals_skill_loaded_not_pointer","no_gradable_input"]},"detail":{"type":"string"},"taskIds":{"type":"array","items":{"type":"string"}}},"required":["type","detail"],"additionalProperties":false},"description":"Non-blocking findings from this lens change: a removed 'judge' lens leaving a task's rubric ungraded, an 'evals' lens with a 'skill_loaded' expectation whose frozen arm_config was never forced to pointer delivery, or a resulting lens set with no gradable input at all. Never blocks the update — [] means nothing was flagged."}},"required":["study","warnings"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"study_invalid_state — lenses are frozen once launched (status must be 'ready') — or study_archived: an imported study's results never change","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"LENS_REMOVAL_BLOCKED — removing 'evals' while a task still carries authored `expectations` (the body names the task ids); study_subject_invalid — a BENCHMARK study's lenses are derived from the pinned definition version's grading_spec and cannot be re-declared; LENS_REQUIREMENT_UNMET — ADDING a lens whose required task field is frozen with the corpus (`reference`) over tasks that do not carry it; study_lens_unsupported — the body names a lens this deployment did not register (`registry` and `id` in the body say which; the detail names what IS registered) — the lens vocabulary is shared across products, so a lens one product runs may not exist in another","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"benchmarks:write","x-ora-product":"experiment","x-ora-service":"experiments-service"}},"/experiment/v1/benchmarks/{id}/preview":{"get":{"operationId":"benchmarks.preview","summary":"Preview the PUBLISHED page's exact payload before publishing — the same projection, aggregate and behavior block publicStudies.get will serve, org-scoped and available at any status (no visibility requirement)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The study's uuid (from create or list)."},"example":"1f7e4d1c-4b2a-4f3e-9d8c-5a6b7c8d9e0f"}],"responses":{"200":{"description":"Preview the PUBLISHED page's exact payload before publishing — the same projection, aggregate and behavior block publicStudies.get will serve, org-scoped and available at any status (no visibility requirement)","content":{"application/json":{"schema":{"type":"object","properties":{"study":{"type":"object","properties":{"executiveSummary":{"anyOf":[{"type":"string"},{"type":"null"}]},"slug":{"type":"string"},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillName":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillSlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillPromise":{"type":"string"},"subjectKind":{"type":"string","enum":["skill","tools","addon","custom","benchmark","site"],"description":"What the study measures. 'skill': an agent skill (requires skillRef; the treatment arm runs with the skill attached). 'tools': the run's tool policy (web tools on vs off). 'addon': one run add-on (tavily, brave, desktop, mcp, secrets…). 'custom': any composition of skill + tools + add-ons, both arms fully spelled out in armConfig. 'benchmark': a pinned version of a catalog benchmark definition (requires definitionVersionId); the corpus is copied frozen from that version. Every comparisonMode applies: 'single' is a harness × model shootout whose ONE arm may carry your setup in armConfig.treatment (armConfig.baseline is refused); 'ab_vs_none' runs the setup in armConfig.treatment against the bare benchmark; 'ab_custom' runs two labelled setups (armConfig.baseline and armConfig.treatment) head to head. An A/B study needs a setup under test and two arms that differ. An arm that carries a setup is not the benchmark's bare protocol, so it does not seed the public leaderboard."},"subjectName":{"anyOf":[{"type":"string"},{"type":"null"}]},"subjectLabel":{"type":"string"},"armConfig":{"type":"object","properties":{"baseline":{"type":"object","properties":{"tools":{"anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"type":"array","items":{"type":"string"}}},"additionalProperties":false},"treatment":{"type":"object","properties":{"tools":{"anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"type":"array","items":{"type":"string"}}},"additionalProperties":false}},"additionalProperties":false},"comparisonMode":{"type":"string","enum":["ab_vs_none","ab_custom","single"],"description":"The baseline design. 'ab_vs_none' (default): treatment vs a bare baseline — classic A/B. 'ab_custom': BOTH arms explicitly configured via armConfig, labeled by baselineLabel/treatmentLabel (e.g. 'Remote MCP' vs 'REST API'). 'single': no baseline — one arm per (harness, model) cell, ranked into a leaderboard (verdict 'measured')."},"subjectBackend":{"type":"string","enum":["model","harness"],"description":"What answers a FRAMEWORK benchmark's requests: 'harness' — each request is answered by the cell's agent harness (the model inside its own loop, with the arm's tools, add-ons and skills), one agent run per request; 'model' — the framework's own client calls the cell's model directly and the cell's harness is not measured. Resolved once per study and recorded on every run."},"environmentExecutionPolicy":{"type":"string","enum":["legacy-v1","inside-v1"]},"baselineLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"treatmentLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"lenses":{"minItems":1,"type":"array","items":{"type":"string","enum":["judge","evals","reference","framework","execution","verifier"]},"description":"Which grading lenses this study runs under. Defaults to ['judge'] at create and stays editable while status is 'ready' (frozen at launch, like task expectations/rubrics). 'judge': the LLM judge panel (rubric grades + blind pairwise). 'evals': the deterministic @ora/eval-checks engine, scored against each task's authored expectations. 'reference': the static-QA lens — an answer extracted from the response and matched against the task's own reference key, scored 1/0 (spec §6.4). 'framework': the benchmark's OWN framework (HELM today) reports the metrics, mapped verbatim into a section rather than re-averaged (SP2 Task 9). 'execution': the candidate's code is extracted from the response and run against the task's own tests inside a sandboxed, network-less runner image (SP2 Task 16)."},"judgeSupplementary":{"type":"boolean","const":true},"promiseMetrics":{"type":"array","items":{"type":"object","properties":{"metric":{"type":"string","enum":["total_tokens","output_tokens","cost_usd","duration_ms","num_turns","success_rate","completion_rate","goal_rate"]},"direction":{"type":"string","enum":["down","up"]},"label":{"type":"string","minLength":1,"maxLength":120}},"required":["metric","direction","label"],"additionalProperties":false}},"matrix":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1,"maxLength":50,"description":"Harness id — the valid set (and each one's models) is GET /catalog; cells are validated against it at create."},"model":{"type":"string","minLength":1,"maxLength":100,"description":"Model id as the harness accepts it — valid ids per harness/provider are in GET /catalog (e.g. 'claude-sonnet-5', 'gpt-5.5')."},"provider":{"description":"Provider qualifier for multi-provider harnesses (e.g. 'anthropic', 'openai', 'google'). Omit to use the harness default.","type":"string","minLength":1,"maxLength":32},"params":{"description":"Provider params pinned for this cell (temperature, reasoningEffort, maxOutputTokens, thinkingBudgetTokens). A cell that pins none runs the provider's own defaults. Offered only where the harness declares support — see GET /catalog.","type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"maxOutputTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reasoningEffort":{"type":"string","enum":["low","medium","high"]},"thinkingBudgetTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"codeMode":{"type":"string","enum":["auto","on","off"]},"toolSearch":{"type":"string","enum":["on","off","directory"]},"location":{"type":"string","pattern":"^[A-Z]{2}$"},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$"}},"additionalProperties":false}},"required":["harness","model"],"additionalProperties":false,"description":"One (harness, model, params) cell — every task runs its arm(s) on every cell."}},"taskCount":{"type":"number"},"variantsPerTask":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"repeats":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"viewCount":{"description":"Page views of the published study, deduplicated per viewer per UTC day. Absent when the deployment does not count views; 0 means counted and never opened. May lag a recent view by the public cache's TTL.","type":"integer","minimum":0,"maximum":9007199254740991},"boardEligibility":{"description":"The board-eligibility chain's verdict for this study, recorded at completion whether it boarded or not, and re-recorded when its sharing changes. Absent means no verdict answers for the study as it is shared now: the chain never ran (the study predates boards, or never completed), or the verdict on record was about a sharing state the study has since left and its re-evaluation has not landed yet — either is a different statement from a refusal.","type":"object","properties":{"eligible":{"type":"boolean"},"refusedBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"failures":{"type":"array","items":{"type":"object","properties":{"ruleId":{"type":"string"},"reason":{"type":"string"}},"required":["ruleId","reason"],"additionalProperties":false}},"evaluatedAt":{"type":"string"}},"required":["eligible","refusedBy","reason","failures","evaluatedAt"],"additionalProperties":false},"subjectLicenseSpdx":{"description":"The pinned benchmark's licence SPDX id (e.g. 'MIT'), or null. Absent on a study that predates this column.","anyOf":[{"type":"string"},{"type":"null"}]},"subjectSourceUrl":{"description":"The pinned benchmark's homepage/source URL, or null. Absent on a study that predates this column.","anyOf":[{"type":"string"},{"type":"null"}]},"subjectWithheldReason":{"description":"Why this study's task text is withheld, when it is withheld for a documented reason beyond licence review (e.g. a contamination canary). Null when text is shown, or when it is withheld pending ordinary licence review.","anyOf":[{"type":"string"},{"type":"null"}]},"subjectNotices":{"description":"Methodology caveats about THIS study's own headline number, from the pinned benchmark's notice registry (e.g. arc-agi's per-pair-vs-ARC-Prize's-per-file scoring). Absent means never computed; [] means computed with nothing to disclose.","type":"array","items":{"type":"object","properties":{"kind":{"type":"string"},"text":{"type":"string"}},"required":["kind","text"],"additionalProperties":false}}},"required":["slug","name","description","skillName","skillSlug","skillPromise","subjectKind","subjectName","subjectLabel","armConfig","comparisonMode","baselineLabel","treatmentLabel","lenses","promiseMetrics","matrix","taskCount","variantsPerTask","repeats","status","publishedAt","createdAt"],"additionalProperties":false},"tasks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"position":{"type":"number"},"prompt":{"type":"string"},"rationale":{"anyOf":[{"type":"string"},{"type":"null"}]},"category":{"anyOf":[{"type":"string"},{"type":"null"}]},"requiresWeb":{"type":"boolean"},"rubric":{"type":"array","items":{"type":"string"}},"variants":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"expectations":{"anyOf":[{"type":"array","items":{}},{"type":"null"}]},"textWithheld":{"description":"Present and true when this task's TEXT is withheld because the benchmark corpus it was copied from may not be republished (reference-only or licence-unverified source, or a held-out task). The measurement — runs, grades and every aggregate — is unaffected.","type":"boolean"}},"required":["id","position","category","requiresWeb"],"additionalProperties":false}},"runs":{"type":"array","items":{"type":"object","properties":{"runId":{"type":"string"},"taskId":{"type":"string"},"arm":{"type":"string","enum":["baseline","skill"]},"harness":{"type":"string"},"model":{"type":"string"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}]},"variantIndex":{"type":"integer","minimum":0,"maximum":9007199254740991},"repeatIndex":{"type":"integer","minimum":0,"maximum":9007199254740991},"status":{"type":"string"},"outcome":{"anyOf":[{"type":"string"},{"type":"null"}]},"outcomeReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"totalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"inputTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"outputTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"cacheReadTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"cacheCreationTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"costUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"numTurns":{"anyOf":[{"type":"number"},{"type":"null"}]},"durationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"intentSatisfied":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"frictionCount":{"anyOf":[{"type":"number"},{"type":"null"}]},"qualityScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"gradedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"judgeModel":{"anyOf":[{"type":"string"},{"type":"null"}]},"pairVerdict":{"anyOf":[{"type":"string","enum":["skill","baseline","tie","unmeasurable"]},{"type":"null"}]},"pairGradedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"evalScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"evalGradedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"executionBudgetS":{"description":"The run's EXECUTION wall-clock budget in seconds (armed at pod attach — never the capacity wait). Absent = not recorded.","anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"harnessImageDigest":{"description":"The sha256 identity of the harness image the run executed on — its build. Absent = not recorded.","anyOf":[{"type":"string"},{"type":"null"}]},"subjectEngaged":{"description":"Whether this run used its arm's subject (an MCP call to a server the run owns, a web fetch, or the skill loaded — per subject kind). Absent = not measured.","anyOf":[{"type":"boolean"},{"type":"null"}]},"runCreatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"startedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"lensGrades":{"description":"Every lens's bare {pass, score, gradedAt} verdict, keyed by lens id — no per-lens provenance, no evidence. The full per-lens shape (a matcher id, a runner language) is on the FULL row via publicStudies.run / the paged publicStudies.runs.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"pass":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"score":{"anyOf":[{"type":"number"},{"type":"null"}]},"gradedAt":{"type":"string"}},"required":["pass","score","gradedAt"],"additionalProperties":false}},"rubricPassed":{"anyOf":[{"type":"array","items":{"type":"boolean"}},{"type":"null"}],"description":"Per-criterion pass/fail in task.rubric order (index i = criterion i). null = not graded; [] = graded but ungradable. The full verdicts (votes, notes) are on the run's rubricResults via publicStudies.run."},"evalOutcomes":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string"},"label":{"type":"string"},"passed":{"type":"boolean"},"abstained":{"type":"boolean"},"decisive":{"type":"boolean"}},"required":["kind","passed"],"additionalProperties":false}},{"type":"null"}],"description":"The 'evals' lens outcomes WITHOUT their evidence (detail/stepIds live on the full run's evalResults). null = never eval-graded."},"paramsKey":{"description":"The canonical identity of the provider params this run's CELL pinned (spec 6.3) — absent when it pinned none. The params' own values are published per CELL on the aggregate; this is the key a page groups rows by, so two cells that differ only in params never pool into one row or one name.","type":"string"},"textWithheld":{"description":"Present and true when this run's task belongs to a benchmark corpus that may not be republished. The lite row already carries no evidence blobs; what this changes is that an eval outcome's `label` — which quotes the expected answer — is omitted too. Scores and verdicts are unaffected (SP2 Task 1b).","type":"boolean"}},"required":["runId","taskId","arm","harness","model","provider","status","outcome","outcomeReason","totalTokens","inputTokens","outputTokens","cacheReadTokens","cacheCreationTokens","costUsd","numTurns","durationMs","intentSatisfied","frictionCount","qualityScore","gradedAt","judgeModel","pairVerdict","pairGradedAt","evalScore","evalGradedAt","runCreatedAt","startedAt","finishedAt","rubricPassed","evalOutcomes"],"additionalProperties":false}},"aggregate":{"type":"object","properties":{"summary":{"type":"object","properties":{"verdict":{"type":"string","enum":["delivered","partial","not_delivered","inconclusive","measured"]},"headline":{"type":"array","items":{"type":"object","properties":{"metric":{"type":"string","enum":["total_tokens","output_tokens","cost_usd","duration_ms","num_turns","success_rate","completion_rate","goal_rate"]},"label":{"type":"string"},"direction":{"type":"string","enum":["down","up"]},"baselineAvg":{"anyOf":[{"type":"number"},{"type":"null"}]},"skillAvg":{"anyOf":[{"type":"number"},{"type":"null"}]},"deltaPct":{"anyOf":[{"type":"number"},{"type":"null"}]},"delta":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","const":"pp"},"absolute":{"anyOf":[{"type":"number"},{"type":"null"}]},"relativePct":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["unit","absolute","relativePct"],"additionalProperties":false},{"type":"object","properties":{"unit":{"type":"string","const":"pts"},"absolute":{"anyOf":[{"type":"number"},{"type":"null"}]},"relativePct":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["unit","absolute"],"additionalProperties":false},{"type":"object","properties":{"unit":{"type":"string","const":"%"},"relativePct":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["unit","relativePct"],"additionalProperties":false}]},"improved":{"type":"boolean"}},"required":["metric","label","direction","baselineAvg","skillAvg","deltaPct","improved"],"additionalProperties":false}},"completionRate":{"type":"object","properties":{"baseline":{"anyOf":[{"type":"number"},{"type":"null"}]},"skill":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["baseline","skill"],"additionalProperties":false},"goalRate":{"type":"object","properties":{"baseline":{"anyOf":[{"type":"number"},{"type":"null"}]},"skill":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["baseline","skill"],"additionalProperties":false},"pairwise":{"type":"object","properties":{"pairs":{"type":"number"},"skillWins":{"type":"number"},"baselineWins":{"type":"number"},"ties":{"type":"number"},"winRate":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["pairs","skillWins","baselineWins","ties","winRate"],"additionalProperties":false},"decision":{"type":"object","properties":{"winner":{"type":"string","enum":["treatment","baseline","tie","unmeasurable"]},"basis":{"type":"string","enum":["infra","goal","evals","benchmark","quality","efficiency","judge","insufficient"]},"reason":{"type":"string"},"efficiencyDiscounted":{"type":"boolean"}},"required":["winner","basis","reason","efficiencyDiscounted"],"additionalProperties":false},"leaderboard":{"type":"array","items":{}},"concentration":{"type":"object","properties":{"perCell":{"type":"array","items":{"type":"object","properties":{"cell":{"type":"string"},"goalDeltaPp":{"anyOf":[{"type":"number"},{"type":"null"}]},"contributionPct":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["cell","goalDeltaPp","contributionPct"],"additionalProperties":false}},"heterogeneity":{"anyOf":[{"type":"object","properties":{"dominantCell":{"type":"string"},"contributionPct":{"type":"number"}},"required":["dominantCell","contributionPct"],"additionalProperties":false},{"type":"null"}]}},"required":["perCell","heterogeneity"],"additionalProperties":false},"matrixShape":{"type":"object","properties":{"cells":{"type":"number"},"harnesses":{"type":"number"},"models":{"type":"number"},"crossed":{"type":"boolean"}},"required":["cells","harnesses","models","crossed"],"additionalProperties":false},"flakiness":{"type":"object","properties":{"measured":{"type":"boolean"},"conditions":{"type":"number"},"unstable":{"type":"number"},"worst":{"anyOf":[{"type":"object","properties":{"cell":{"type":"string"},"taskId":{"type":"string"},"arm":{"type":"string","enum":["baseline","skill"]},"variant":{"type":"number"},"passRate":{"type":"number"}},"required":["cell","taskId","arm","passRate"],"additionalProperties":false},{"type":"null"}]}},"required":["measured","conditions","unstable","worst"],"additionalProperties":false},"arms":{"type":"object","properties":{"baseline":{"type":"object","properties":{"runs":{"type":"number"},"completed":{"type":"number"},"infraFailures":{"type":"number"},"completionRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalTally":{"type":"object","properties":{"achieved":{"type":"number"},"partial":{"type":"number"},"missed":{"type":"number"}},"required":["achieved","partial","missed"],"additionalProperties":false},"avgTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgOutputTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgTurns":{"anyOf":[{"type":"number"},{"type":"null"}]},"costCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgQualityScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"gradedCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95CostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95TotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95DurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"evalPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"benchmarkPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"adoptionRate":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["runs","completed","infraFailures","completionRate","goalRate","goalTally","avgTotalTokens","avgOutputTokens","avgCostUsd","avgDurationMs","avgTurns","costCoverage","avgQualityScore","gradedCoverage","medianCostUsd","medianTotalTokens","medianDurationMs","p95CostUsd","p95TotalTokens","p95DurationMs","maxCostUsd","maxTotalTokens","maxDurationMs"],"additionalProperties":false},"skill":{"type":"object","properties":{"runs":{"type":"number"},"completed":{"type":"number"},"infraFailures":{"type":"number"},"completionRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalTally":{"type":"object","properties":{"achieved":{"type":"number"},"partial":{"type":"number"},"missed":{"type":"number"}},"required":["achieved","partial","missed"],"additionalProperties":false},"avgTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgOutputTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgTurns":{"anyOf":[{"type":"number"},{"type":"null"}]},"costCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgQualityScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"gradedCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95CostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95TotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95DurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"evalPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"benchmarkPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"adoptionRate":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["runs","completed","infraFailures","completionRate","goalRate","goalTally","avgTotalTokens","avgOutputTokens","avgCostUsd","avgDurationMs","avgTurns","costCoverage","avgQualityScore","gradedCoverage","medianCostUsd","medianTotalTokens","medianDurationMs","p95CostUsd","p95TotalTokens","p95DurationMs","maxCostUsd","maxTotalTokens","maxDurationMs"],"additionalProperties":false}},"required":["baseline","skill"],"additionalProperties":false},"totals":{"type":"object","properties":{"cells":{"type":"number"},"runs":{"type":"number"},"completed":{"type":"number"},"failed":{"type":"number"},"costUsd":{"type":"number"},"tokens":{"type":"number"}},"required":["cells","runs","completed","failed","costUsd","tokens"],"additionalProperties":false}},"required":["verdict","headline","completionRate","goalRate","pairwise","concentration","matrixShape","totals"],"additionalProperties":false},"perCell":{"type":"array","items":{}},"perHarness":{"type":"array","items":{}},"perModel":{"type":"array","items":{}},"perTask":{"type":"array","items":{}},"webSplit":{},"inference":{"anyOf":[{"type":"object","properties":{"columns":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"family":{"type":"string","enum":["rate","score","magnitude"]},"betterWhen":{"type":"string","enum":["higher","lower"]}},"required":["key","label","family","betterWhen"],"additionalProperties":false}},"groups":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["cell","harness","model","field"]},"title":{"type":"string"},"rows":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"kind":{"type":"string","enum":["cell","harness","model","field"]},"harness":{"anyOf":[{"type":"string"},{"type":"null"}]},"model":{"anyOf":[{"type":"string"},{"type":"null"}]},"paramsKey":{"type":"string"},"runs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"estimate":{"anyOf":[{"type":"object","properties":{"value":{"type":"number"},"interval":{"type":"object","properties":{"lo":{"type":"number"},"hi":{"type":"number"}},"required":["lo","hi"],"additionalProperties":false,"description":"A 95% bootstrap percentile interval."},"n":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["value","interval","n"],"additionalProperties":false},{"type":"null"}]},"reference":{"anyOf":[{"type":"object","properties":{"value":{"type":"number"},"interval":{"type":"object","properties":{"lo":{"type":"number"},"hi":{"type":"number"}},"required":["lo","hi"],"additionalProperties":false,"description":"A 95% bootstrap percentile interval."},"n":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["value","interval","n"],"additionalProperties":false},{"type":"null"}]},"comparison":{"anyOf":[{"type":"object","properties":{"effect":{"type":"number"},"unit":{"type":"string","enum":["pp","pts","%"]},"interval":{"type":"object","properties":{"lo":{"type":"number"},"hi":{"type":"number"}},"required":["lo","hi"],"additionalProperties":false,"description":"A 95% bootstrap percentile interval."},"p":{"type":"number"},"n":{"minItems":2,"maxItems":2,"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"from":{"type":"number"},"to":{"type":"number"}},"required":["effect","unit","interval","p","n"],"additionalProperties":false},{"type":"null"}]},"adjustedP":{"anyOf":[{"type":"number"},{"type":"null"}]},"tier":{"type":"integer","minimum":0,"maximum":3},"direction":{"type":"string","enum":["better","worse","none"]},"untested":{"type":"boolean"}},"required":["estimate","reference","comparison","adjustedP","tier","direction","untested"],"additionalProperties":false}}},"required":["key","kind","harness","model","runs","cells"],"additionalProperties":false}}},"required":["kind","title","rows"],"additionalProperties":false}},"reference":{"type":"string","enum":["baseline","field"]},"draws":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["columns","groups","reference","draws"],"additionalProperties":false},{"type":"null"}]},"behavior":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string"},"model":{"type":"string"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}]},"arm":{"type":"string"},"totalRuns":{"type":"number"},"signals":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"tone":{"type":"string","enum":["good","bad","neutral"]},"runCount":{"type":"number"},"succeededCount":{"type":"number"}},"required":["id","label","tone","runCount","succeededCount"],"additionalProperties":false}}},"required":["harness","model","provider","arm","totalRuns","signals"],"additionalProperties":false}},"reference":{"type":"object","properties":{"cells":{"type":"array","items":{"type":"object","properties":{"cell":{"type":"string"},"harness":{"type":"string"},"model":{"type":"string"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}]},"paramsKey":{"type":"string"},"label":{"type":"string"},"passRate":{"type":"object","properties":{"value":{"anyOf":[{"type":"number"},{"type":"null"}]},"ci":{"anyOf":[{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}]},{"type":"null"}]},"n":{"type":"number"}},"required":["value","ci","n"],"additionalProperties":false},"abstention":{"description":"abstention_aware_accuracy: correct of all judged-or-declined runs, with the not-attempted rate and correct-given-attempted as parts. Present only when some response was judged NOT ATTEMPTED.","type":"object","properties":{"value":{"anyOf":[{"type":"number"},{"type":"null"}]},"ci":{"anyOf":[{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}]},{"type":"null"}]},"n":{"type":"number"},"parts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"value":{"anyOf":[{"type":"number"},{"type":"null"}]},"n":{"type":"number"}},"required":["id","label","value","n"],"additionalProperties":false}}},"required":["value","ci","n"],"additionalProperties":false},"tasks":{"type":"number"},"graded":{"type":"number"},"unmeasured":{"type":"number"},"matchers":{"type":"array","items":{"type":"string"}},"launchProfiles":{"type":"array","items":{"type":"string","enum":["as-published","harness-default","with-setup"]}}},"required":["cell","harness","model","provider","paramsKey","label","passRate","tasks","graded","unmeasured","matchers","launchProfiles"],"additionalProperties":false}},"overall":{"type":"object","properties":{"value":{"anyOf":[{"type":"number"},{"type":"null"}]},"ci":{"anyOf":[{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}]},{"type":"null"}]},"n":{"type":"number"}},"required":["value","ci","n"],"additionalProperties":false},"abstention":{"description":"abstention_aware_accuracy: correct of all judged-or-declined runs, with the not-attempted rate and correct-given-attempted as parts. Present only when some response was judged NOT ATTEMPTED.","type":"object","properties":{"value":{"anyOf":[{"type":"number"},{"type":"null"}]},"ci":{"anyOf":[{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}]},{"type":"null"}]},"n":{"type":"number"},"parts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"value":{"anyOf":[{"type":"number"},{"type":"null"}]},"n":{"type":"number"}},"required":["id","label","value","n"],"additionalProperties":false}}},"required":["value","ci","n"],"additionalProperties":false},"graded":{"type":"number"},"unmeasured":{"type":"number"},"modelJudged":{"type":"boolean"}},"required":["cells","overall","graded","unmeasured","modelJudged"],"additionalProperties":false},"execution":{"type":"object","properties":{"graded":{"type":"number"},"measured":{"type":"number"},"passed":{"type":"number"},"passRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"byStatus":{"type":"object","properties":{"passed":{"type":"number"},"failed":{"type":"number"},"timeout":{"type":"number"},"error":{"type":"number"},"unavailable":{"type":"number"}},"required":["passed","failed","timeout","error","unavailable"],"additionalProperties":false},"languages":{"type":"array","items":{"type":"string"}},"unavailableReasons":{"type":"array","items":{"type":"string"}}},"required":["graded","measured","passed","passRate","byStatus","languages","unavailableReasons"],"additionalProperties":false}},"required":["summary","perCell","perHarness","perModel","perTask","webSplit","inference"],"additionalProperties":false},"textWithheldReason":{"type":"string","enum":["sign_in_required","terms_required","licence"]}},"required":["study","tasks","runs","aggregate"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"benchmarks:read","x-ora-product":"experiment","x-ora-service":"experiments-service"}},"/experiment/v1/benchmarks/{id}/publish":{"post":{"operationId":"benchmarks.publish","summary":"Publish a completed study under a shareable mode: 'public' (listed in the anonymous catalog) or — where the deployment supports sharing — 'link' (unlisted, openable only with the returned share token). A study that holds no publication — every study inside its org (private or org): never published, unpublished, or moved back in, each of which retracts the publication — is published only under the mode the body names: a publish of it that names no `visibility` is refused (422 study_publish_mode_required) and nothing is written. A re-publish that names no `visibility` keeps the mode of a study shared outside its org (a link-shared study stays unlisted); send `expectPublished: true` to update a publication, so a study unpublished meanwhile is refused (409) rather than published afresh. Idempotent slug upsert. Where the product keeps review drafts, a pending draft (`executiveSummaryDraft`) whose readout is still current becomes the published summary as-is (the response's `executiveSummary`); otherwise the summary is regenerated (`executiveSummaryRequest: 'live'` until it lands).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The study's uuid (from create or list)."},"example":"1f7e4d1c-4b2a-4f3e-9d8c-5a6b7c8d9e0f"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"description":"Public catalog URL slug (lowercase [a-z0-9-], ≤80). Omitted → the study's own generated slug. 409 study_slug_taken if another published study holds it.","type":"string","minLength":1,"maxLength":80,"pattern":"^[a-z0-9][a-z0-9-]*$"},"visibility":{"description":"Publish under this sharing mode: 'public' (listed in the catalog) or 'link' (unlisted; openable only at /studies/<slug>?share=<token>, which the response carries). Required for a study that holds no publication — every study inside its org (never published, unpublished, or moved back into its org since; each retracts the publication): omitted there, the publish is refused with 422 study_publish_mode_required and nothing is written. Omitted on a published study, the re-publish keeps the mode it is in now — a link-shared study stays unlisted (409 study_unpublished_meanwhile if it was unpublished while the re-publish ran). State it to change the mode. 'private'/'org' are 422. To UPDATE a publication, refused rather than published afresh if it was unpublished meanwhile, send expectPublished: true.","type":"string","enum":["private","org","link","public"]},"expectPublished":{"description":"Precondition: the study must already be published (in any mode) — this request updates that publication. If it holds none (it was unpublished since you read it), the publish fails with 409 study_unpublished_meanwhile and NOTHING is written — never a first publication, even under a mode the body names. Omitted or false: no precondition.","type":"boolean"}}},"example":{"slug":"tavily-search-ab","visibility":"public"}}}},"responses":{"200":{"description":"Publish a completed study under a shareable mode: 'public' (listed in the anonymous catalog) or — where the deployment supports sharing — 'link' (unlisted, openable only with the returned share token). A study that holds no publication — every study inside its org (private or org): never published, unpublished, or moved back in, each of which retracts the publication — is published only under the mode the body names: a publish of it that names no `visibility` is refused (422 study_publish_mode_required) and nothing is written. A re-publish that names no `visibility` keeps the mode of a study shared outside its org (a link-shared study stays unlisted); send `expectPublished: true` to update a publication, so a study unpublished meanwhile is refused (409) rather than published afresh. Idempotent slug upsert. Where the product keeps review drafts, a pending draft (`executiveSummaryDraft`) whose readout is still current becomes the published summary as-is (the response's `executiveSummary`); otherwise the summary is regenerated (`executiveSummaryRequest: 'live'` until it lands).","content":{"application/json":{"schema":{"type":"object","properties":{"study":{"type":"object","properties":{"id":{"type":"string"},"executiveSummary":{"anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryDraft":{"description":"A PUBLISHED study's summary held for review, never shown on the public page: what `studies.regenerateSummary` writes on a published study (and the first summary of a published study nothing asked for). `studies.publish` makes exactly this text the published `executiveSummary`, while the readout it was written from is still current; otherwise publish regenerates. Absent where the product has no review drafts.","anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryRequest":{"description":"A summary an explicit act asked for and not yet written: 'live' — a publish, a re-open, or a regenerate on an UNPUBLISHED completed study owes the summary in place (the public page, once published); 'draft' — a regenerate on a published study owes the review draft one. Null once the request is answered — poll `studies.get` until it is: by the written summary (`executiveSummary` or `executiveSummaryDraft`), by a later act that superseded it (a publish, a newer regenerate — its own write answers it), or as unavailable (`executiveSummaryUnavailableAt` set). While the automatic retries back off after a failed attempt it stays pending. Absent where the product has no review drafts.","anyOf":[{"type":"string","enum":["live","draft"]},{"type":"null"}]},"executiveSummaryRequestedAt":{"description":"When `executiveSummaryRequest` was made.","anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryUnavailableAt":{"description":"When the last summary request was answered as UNAVAILABLE: every attempt the retry policy allows on the study's readout failed, so no summary will be written for it until the readout changes (runs added, a re-run, a regrade) or someone regenerates or publishes again. Null otherwise; cleared by a new request or a written summary. Absent where the product has no review drafts.","anyOf":[{"type":"string"},{"type":"null"}]},"plannedRunCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The exact number of runs `launch` will fan out (taskCount × variantsPerTask × repeats × matrix cells × arms). Check this BEFORE launching."},"organizationId":{"type":"string"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"slug":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillRef":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillSlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillName":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillPromise":{"type":"string"},"subjectKind":{"type":"string","enum":["skill","tools","addon","custom","benchmark","site"],"description":"What the study measures. 'skill': an agent skill (requires skillRef; the treatment arm runs with the skill attached). 'tools': the run's tool policy (web tools on vs off). 'addon': one run add-on (tavily, brave, desktop, mcp, secrets…). 'custom': any composition of skill + tools + add-ons, both arms fully spelled out in armConfig. 'benchmark': a pinned version of a catalog benchmark definition (requires definitionVersionId); the corpus is copied frozen from that version. Every comparisonMode applies: 'single' is a harness × model shootout whose ONE arm may carry your setup in armConfig.treatment (armConfig.baseline is refused); 'ab_vs_none' runs the setup in armConfig.treatment against the bare benchmark; 'ab_custom' runs two labelled setups (armConfig.baseline and armConfig.treatment) head to head. An A/B study needs a setup under test and two arms that differ. An arm that carries a setup is not the benchmark's bare protocol, so it does not seed the public leaderboard."},"subjectName":{"anyOf":[{"type":"string"},{"type":"null"}]},"siteDomain":{"description":"The website a 'site' study is run against (its host); absent for every other subject kind.","type":"string"},"subjectLabel":{"type":"string"},"armConfig":{"type":"object","properties":{"baseline":{"description":"The baseline arm's run-payload delta. Omitted = a bare run (no skill, no extras).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false},"treatment":{"description":"The treatment arm's run-payload delta (the thing under test).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"additionalProperties":false,"description":"Frozen per-arm run-payload deltas. Required for subjectKind 'custom' and comparisonMode 'ab_custom'; for 'tools'/'addon' subjects the treatment side is derived when omitted."},"comparisonMode":{"type":"string","enum":["ab_vs_none","ab_custom","single"],"description":"The baseline design. 'ab_vs_none' (default): treatment vs a bare baseline — classic A/B. 'ab_custom': BOTH arms explicitly configured via armConfig, labeled by baselineLabel/treatmentLabel (e.g. 'Remote MCP' vs 'REST API'). 'single': no baseline — one arm per (harness, model) cell, ranked into a leaderboard (verdict 'measured')."},"subjectBackend":{"anyOf":[{"type":"string","enum":["model","harness"],"description":"What answers a FRAMEWORK benchmark's requests: 'harness' — each request is answered by the cell's agent harness (the model inside its own loop, with the arm's tools, add-ons and skills), one agent run per request; 'model' — the framework's own client calls the cell's model directly and the cell's harness is not measured. Resolved once per study and recorded on every run."},{"type":"null"}]},"environmentExecutionPolicy":{"type":"string","enum":["legacy-v1","inside-v1"]},"importedFrom":{"type":"string"},"baselineLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"treatmentLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"promiseMetrics":{"type":"array","items":{"type":"object","properties":{"metric":{"type":"string","enum":["total_tokens","output_tokens","cost_usd","duration_ms","num_turns","success_rate","completion_rate","goal_rate"]},"direction":{"type":"string","enum":["down","up"]},"label":{"type":"string","minLength":1,"maxLength":120}},"required":["metric","direction","label"],"additionalProperties":false}},"matrix":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1,"maxLength":50,"description":"Harness id — the valid set (and each one's models) is GET /catalog; cells are validated against it at create."},"model":{"type":"string","minLength":1,"maxLength":100,"description":"Model id as the harness accepts it — valid ids per harness/provider are in GET /catalog (e.g. 'claude-sonnet-5', 'gpt-5.5')."},"provider":{"description":"Provider qualifier for multi-provider harnesses (e.g. 'anthropic', 'openai', 'google'). Omit to use the harness default.","type":"string","minLength":1,"maxLength":32},"params":{"description":"Provider params pinned for this cell (temperature, reasoningEffort, maxOutputTokens, thinkingBudgetTokens). A cell that pins none runs the provider's own defaults. Offered only where the harness declares support — see GET /catalog.","type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"maxOutputTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reasoningEffort":{"type":"string","enum":["low","medium","high"]},"thinkingBudgetTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"codeMode":{"type":"string","enum":["auto","on","off"]},"toolSearch":{"type":"string","enum":["on","off","directory"]},"location":{"type":"string","pattern":"^[A-Z]{2}$"},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$"}},"additionalProperties":false}},"required":["harness","model"],"additionalProperties":false,"description":"One (harness, model, params) cell — every task runs its arm(s) on every cell."}},"lenses":{"minItems":1,"type":"array","items":{"type":"string","enum":["judge","evals","reference","framework","execution","verifier"]},"description":"Which grading lenses this study runs under. Defaults to ['judge'] at create and stays editable while status is 'ready' (frozen at launch, like task expectations/rubrics). 'judge': the LLM judge panel (rubric grades + blind pairwise). 'evals': the deterministic @ora/eval-checks engine, scored against each task's authored expectations. 'reference': the static-QA lens — an answer extracted from the response and matched against the task's own reference key, scored 1/0 (spec §6.4). 'framework': the benchmark's OWN framework (HELM today) reports the metrics, mapped verbatim into a section rather than re-averaged (SP2 Task 9). 'execution': the candidate's code is extracted from the response and run against the task's own tests inside a sandboxed, network-less runner image (SP2 Task 16)."},"judgeSupplementary":{"type":"boolean"},"taskCount":{"type":"number"},"variantsPerTask":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Semantics-preserving paraphrases sampled per task (1-5; mirrors the create body's variantsPerTask). Absent at create defaults to 1 — every response reports a concrete value, including studies created before sampling existed."},"repeats":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Identical re-runs sampled per condition (1-10; mirrors the create body's repeats). Absent at create defaults to 1 — every response reports a concrete value, including studies created before sampling existed."},"subset":{"anyOf":[{"type":"object","properties":{"count":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"seed":{"type":"string","minLength":1},"of":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["count","seed","of"],"additionalProperties":false},{"type":"null"}]},"status":{"type":"string"},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"preparation":{"anyOf":[{"type":"object","properties":{"since":{"type":"string"},"progressAt":{"type":"string"},"launchedBy":{"type":"object","properties":{"userId":{"type":"string"},"role":{"type":"string"}},"additionalProperties":false},"waitingOn":{"type":"array","items":{"type":"object","properties":{"imageKey":{"type":"string"},"buildId":{"type":"string"},"stage":{"type":"string","enum":["image","snapshot"]},"retry":{"type":"object","properties":{"failedAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maxAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"notBefore":{"type":"string"},"lastFailure":{"type":"string"}},"required":["failedAttempts","maxAttempts","notBefore","lastFailure"],"additionalProperties":false}},"required":["imageKey","buildId"],"additionalProperties":false}}},"required":["since","launchedBy","waitingOn"],"additionalProperties":false},{"type":"null"}]},"visibility":{"type":"string","enum":["private","org","link","public"],"description":"Who may read this study: private (creator + org owners) | org (the whole org) | link (anyone holding ?share=<token>, unlisted) | public (everyone, listed)."},"visibilityChangedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"visibilityChangedBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"shareToken":{"anyOf":[{"type":"string"},{"type":"null"}]},"lowSampleOverride":{"type":"boolean","description":"True iff this study was explicitly published below the sample-size floor (spec A6) — the published page shows a low-sample badge when set."},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"verdict":{},"definitionVersionId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The benchmark definition VERSION this study pinned at create — non-null only for subjectKind 'benchmark'. Its corpus was copied frozen from that version, so the study stays reproducible when the definition publishes a newer one."},"runnerKind":{"type":"string","enum":["ora-runs","batch-job"],"description":"Which executor fans this study out: 'ora-runs' (the ora runs spine) or 'batch-job' (a built runner image)."},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"liveUntil":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When this study's live stream stops being held open (null while it is still running). Attaching before it yields the remaining post-terminal frames (gradings, recordings, refined verdicts)."}},"required":["id","plannedRunCount","organizationId","createdBy","name","slug","description","skillRef","skillSlug","skillName","skillPromise","subjectKind","subjectName","subjectLabel","armConfig","comparisonMode","subjectBackend","baselineLabel","treatmentLabel","promiseMetrics","matrix","lenses","taskCount","variantsPerTask","repeats","subset","status","error","visibility","lowSampleOverride","publishedAt","verdict","definitionVersionId","runnerKind","createdAt","updatedAt","liveUntil"],"additionalProperties":false}},"required":["study"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"study_invalid_state (not completed), study_slug_taken (another openable study owns the slug), or study_unpublished_meanwhile (the study holds no publication — `expectPublished` was sent, or an unpublish landed while a re-publish keeping the mode ran; nothing was written)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"study_publish_requires_shareable_mode — 'private'/'org' are not publication states (use studies.setVisibility), and 'link' only where the deployment implements sharing; study_publish_mode_required — the study holds no publication and the body names no `visibility` (nothing was written)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"benchmarks:write","x-ora-product":"experiment","x-ora-service":"experiments-service"}},"/experiment/v1/benchmarks/{id}/regrade":{"post":{"operationId":"benchmarks.regrade","summary":"Clear and re-run every grading lens the study declares for a completed study — the judge panel (rubrics + blind pairwise), the evals checks and the benchmark's own graders","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The study's uuid (from create or list)."}}],"responses":{"200":{"description":"Clear and re-run every grading lens the study declares for a completed study — the judge panel (rubrics + blind pairwise), the evals checks and the benchmark's own graders","content":{"application/json":{"schema":{"type":"object","properties":{"study":{"type":"object","properties":{"id":{"type":"string"},"executiveSummary":{"anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryDraft":{"description":"A PUBLISHED study's summary held for review, never shown on the public page: what `studies.regenerateSummary` writes on a published study (and the first summary of a published study nothing asked for). `studies.publish` makes exactly this text the published `executiveSummary`, while the readout it was written from is still current; otherwise publish regenerates. Absent where the product has no review drafts.","anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryRequest":{"description":"A summary an explicit act asked for and not yet written: 'live' — a publish, a re-open, or a regenerate on an UNPUBLISHED completed study owes the summary in place (the public page, once published); 'draft' — a regenerate on a published study owes the review draft one. Null once the request is answered — poll `studies.get` until it is: by the written summary (`executiveSummary` or `executiveSummaryDraft`), by a later act that superseded it (a publish, a newer regenerate — its own write answers it), or as unavailable (`executiveSummaryUnavailableAt` set). While the automatic retries back off after a failed attempt it stays pending. Absent where the product has no review drafts.","anyOf":[{"type":"string","enum":["live","draft"]},{"type":"null"}]},"executiveSummaryRequestedAt":{"description":"When `executiveSummaryRequest` was made.","anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryUnavailableAt":{"description":"When the last summary request was answered as UNAVAILABLE: every attempt the retry policy allows on the study's readout failed, so no summary will be written for it until the readout changes (runs added, a re-run, a regrade) or someone regenerates or publishes again. Null otherwise; cleared by a new request or a written summary. Absent where the product has no review drafts.","anyOf":[{"type":"string"},{"type":"null"}]},"plannedRunCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The exact number of runs `launch` will fan out (taskCount × variantsPerTask × repeats × matrix cells × arms). Check this BEFORE launching."},"organizationId":{"type":"string"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"slug":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillRef":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillSlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillName":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillPromise":{"type":"string"},"subjectKind":{"type":"string","enum":["skill","tools","addon","custom","benchmark","site"],"description":"What the study measures. 'skill': an agent skill (requires skillRef; the treatment arm runs with the skill attached). 'tools': the run's tool policy (web tools on vs off). 'addon': one run add-on (tavily, brave, desktop, mcp, secrets…). 'custom': any composition of skill + tools + add-ons, both arms fully spelled out in armConfig. 'benchmark': a pinned version of a catalog benchmark definition (requires definitionVersionId); the corpus is copied frozen from that version. Every comparisonMode applies: 'single' is a harness × model shootout whose ONE arm may carry your setup in armConfig.treatment (armConfig.baseline is refused); 'ab_vs_none' runs the setup in armConfig.treatment against the bare benchmark; 'ab_custom' runs two labelled setups (armConfig.baseline and armConfig.treatment) head to head. An A/B study needs a setup under test and two arms that differ. An arm that carries a setup is not the benchmark's bare protocol, so it does not seed the public leaderboard."},"subjectName":{"anyOf":[{"type":"string"},{"type":"null"}]},"siteDomain":{"description":"The website a 'site' study is run against (its host); absent for every other subject kind.","type":"string"},"subjectLabel":{"type":"string"},"armConfig":{"type":"object","properties":{"baseline":{"description":"The baseline arm's run-payload delta. Omitted = a bare run (no skill, no extras).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false},"treatment":{"description":"The treatment arm's run-payload delta (the thing under test).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"additionalProperties":false,"description":"Frozen per-arm run-payload deltas. Required for subjectKind 'custom' and comparisonMode 'ab_custom'; for 'tools'/'addon' subjects the treatment side is derived when omitted."},"comparisonMode":{"type":"string","enum":["ab_vs_none","ab_custom","single"],"description":"The baseline design. 'ab_vs_none' (default): treatment vs a bare baseline — classic A/B. 'ab_custom': BOTH arms explicitly configured via armConfig, labeled by baselineLabel/treatmentLabel (e.g. 'Remote MCP' vs 'REST API'). 'single': no baseline — one arm per (harness, model) cell, ranked into a leaderboard (verdict 'measured')."},"subjectBackend":{"anyOf":[{"type":"string","enum":["model","harness"],"description":"What answers a FRAMEWORK benchmark's requests: 'harness' — each request is answered by the cell's agent harness (the model inside its own loop, with the arm's tools, add-ons and skills), one agent run per request; 'model' — the framework's own client calls the cell's model directly and the cell's harness is not measured. Resolved once per study and recorded on every run."},{"type":"null"}]},"environmentExecutionPolicy":{"type":"string","enum":["legacy-v1","inside-v1"]},"importedFrom":{"type":"string"},"baselineLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"treatmentLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"promiseMetrics":{"type":"array","items":{"type":"object","properties":{"metric":{"type":"string","enum":["total_tokens","output_tokens","cost_usd","duration_ms","num_turns","success_rate","completion_rate","goal_rate"]},"direction":{"type":"string","enum":["down","up"]},"label":{"type":"string","minLength":1,"maxLength":120}},"required":["metric","direction","label"],"additionalProperties":false}},"matrix":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1,"maxLength":50,"description":"Harness id — the valid set (and each one's models) is GET /catalog; cells are validated against it at create."},"model":{"type":"string","minLength":1,"maxLength":100,"description":"Model id as the harness accepts it — valid ids per harness/provider are in GET /catalog (e.g. 'claude-sonnet-5', 'gpt-5.5')."},"provider":{"description":"Provider qualifier for multi-provider harnesses (e.g. 'anthropic', 'openai', 'google'). Omit to use the harness default.","type":"string","minLength":1,"maxLength":32},"params":{"description":"Provider params pinned for this cell (temperature, reasoningEffort, maxOutputTokens, thinkingBudgetTokens). A cell that pins none runs the provider's own defaults. Offered only where the harness declares support — see GET /catalog.","type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"maxOutputTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reasoningEffort":{"type":"string","enum":["low","medium","high"]},"thinkingBudgetTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"codeMode":{"type":"string","enum":["auto","on","off"]},"toolSearch":{"type":"string","enum":["on","off","directory"]},"location":{"type":"string","pattern":"^[A-Z]{2}$"},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$"}},"additionalProperties":false}},"required":["harness","model"],"additionalProperties":false,"description":"One (harness, model, params) cell — every task runs its arm(s) on every cell."}},"lenses":{"minItems":1,"type":"array","items":{"type":"string","enum":["judge","evals","reference","framework","execution","verifier"]},"description":"Which grading lenses this study runs under. Defaults to ['judge'] at create and stays editable while status is 'ready' (frozen at launch, like task expectations/rubrics). 'judge': the LLM judge panel (rubric grades + blind pairwise). 'evals': the deterministic @ora/eval-checks engine, scored against each task's authored expectations. 'reference': the static-QA lens — an answer extracted from the response and matched against the task's own reference key, scored 1/0 (spec §6.4). 'framework': the benchmark's OWN framework (HELM today) reports the metrics, mapped verbatim into a section rather than re-averaged (SP2 Task 9). 'execution': the candidate's code is extracted from the response and run against the task's own tests inside a sandboxed, network-less runner image (SP2 Task 16)."},"judgeSupplementary":{"type":"boolean"},"taskCount":{"type":"number"},"variantsPerTask":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Semantics-preserving paraphrases sampled per task (1-5; mirrors the create body's variantsPerTask). Absent at create defaults to 1 — every response reports a concrete value, including studies created before sampling existed."},"repeats":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Identical re-runs sampled per condition (1-10; mirrors the create body's repeats). Absent at create defaults to 1 — every response reports a concrete value, including studies created before sampling existed."},"subset":{"anyOf":[{"type":"object","properties":{"count":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"seed":{"type":"string","minLength":1},"of":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["count","seed","of"],"additionalProperties":false},{"type":"null"}]},"status":{"type":"string"},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"preparation":{"anyOf":[{"type":"object","properties":{"since":{"type":"string"},"progressAt":{"type":"string"},"launchedBy":{"type":"object","properties":{"userId":{"type":"string"},"role":{"type":"string"}},"additionalProperties":false},"waitingOn":{"type":"array","items":{"type":"object","properties":{"imageKey":{"type":"string"},"buildId":{"type":"string"},"stage":{"type":"string","enum":["image","snapshot"]},"retry":{"type":"object","properties":{"failedAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maxAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"notBefore":{"type":"string"},"lastFailure":{"type":"string"}},"required":["failedAttempts","maxAttempts","notBefore","lastFailure"],"additionalProperties":false}},"required":["imageKey","buildId"],"additionalProperties":false}}},"required":["since","launchedBy","waitingOn"],"additionalProperties":false},{"type":"null"}]},"visibility":{"type":"string","enum":["private","org","link","public"],"description":"Who may read this study: private (creator + org owners) | org (the whole org) | link (anyone holding ?share=<token>, unlisted) | public (everyone, listed)."},"visibilityChangedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"visibilityChangedBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"shareToken":{"anyOf":[{"type":"string"},{"type":"null"}]},"lowSampleOverride":{"type":"boolean","description":"True iff this study was explicitly published below the sample-size floor (spec A6) — the published page shows a low-sample badge when set."},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"verdict":{},"definitionVersionId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The benchmark definition VERSION this study pinned at create — non-null only for subjectKind 'benchmark'. Its corpus was copied frozen from that version, so the study stays reproducible when the definition publishes a newer one."},"runnerKind":{"type":"string","enum":["ora-runs","batch-job"],"description":"Which executor fans this study out: 'ora-runs' (the ora runs spine) or 'batch-job' (a built runner image)."},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"liveUntil":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When this study's live stream stops being held open (null while it is still running). Attaching before it yields the remaining post-terminal frames (gradings, recordings, refined verdicts)."}},"required":["id","plannedRunCount","organizationId","createdBy","name","slug","description","skillRef","skillSlug","skillName","skillPromise","subjectKind","subjectName","subjectLabel","armConfig","comparisonMode","subjectBackend","baselineLabel","treatmentLabel","promiseMetrics","matrix","lenses","taskCount","variantsPerTask","repeats","subset","status","error","visibility","lowSampleOverride","publishedAt","verdict","definitionVersionId","runnerKind","createdAt","updatedAt","liveUntil"],"additionalProperties":false},"streamUrl":{"type":"string","description":"The study's live SSE stream, relative to this API origin. Frames: status (draft/generating/ready/running/completed/failed — terminal closes the stream), run (per-run fact updates), grading, published/unpublished. `ora … --watch` follows it automatically."},"warnings":{"description":"'evals'-lens create only: (harness, check kind) pairs the capability roster cannot measure (deny-by-default) — that cell will abstain at grading time rather than pass/fail. Non-blocking; absent/[] means nothing was flagged.","type":"array","items":{"type":"object","properties":{"harness":{"type":"string"},"kind":{"type":"string"}},"required":["harness","kind"],"additionalProperties":false}}},"required":["study","streamUrl"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"study_invalid_state — only a completed study regrades — or study_archived: an imported study's results never change","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"benchmarks:write","x-ora-product":"experiment","x-ora-service":"experiments-service"}},"/experiment/v1/benchmarks/{id}/stream":{"get":{"operationId":"benchmarks.stream","summary":"Live SSE stream: status transitions, per-run facts, grading, publish state (terminal status closes it)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The study's uuid (from create or list)."},"example":"1f7e4d1c-4b2a-4f3e-9d8c-5a6b7c8d9e0f"}],"responses":{"200":{"description":"Live SSE stream: status transitions, per-run facts, grading, publish state (terminal status closes it)","content":{"application/json":{"schema":{}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"benchmarks:read","x-ora-product":"experiment","x-ora-service":"experiments-service"}},"/experiment/v1/benchmarks/{id}/tasks/{taskId}":{"put":{"operationId":"benchmarks.updateTask","summary":"Edit a generated task's prompt before launch (status 'ready' only)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The study's uuid."},"example":"1f7e4d1c-4b2a-4f3e-9d8c-5a6b7c8d9e0f"},{"name":"taskId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The task's uuid (from the study detail's tasks list)."},"example":"8a9b0c1d-2e3f-4a5b-8c7d-6e5f4a3b2c1d"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","minLength":1,"description":"The replacement task prompt, dispatched verbatim as each run's intent. Editable only while the study is 'ready' (pre-launch)."},"expectations":{"description":"Replace this task's 'evals'-lens expectations (see studyCreateBody.tasks[].expectations). Omitted = expectations unchanged. REQUIRES the study's `lenses` to include 'evals' (422 LENS_MISMATCH otherwise); validated the same way as create.","minItems":1,"maxItems":24,"type":"array","items":{"$ref":"#/components/schemas/Def_0f52adfddc63c1c2862af461b851e029b5a453bd5fc4d3373ecde1dcc23a16b6"}}},"required":["prompt"]},"example":{"prompt":"Research the three largest EU battery-storage tenders announced this quarter and cite each source."}}}},"responses":{"200":{"description":"Edit a generated task's prompt before launch (status 'ready' only)","content":{"application/json":{"schema":{"type":"object","properties":{"task":{"type":"object","properties":{"id":{"type":"string"},"studyId":{"type":"string"},"position":{"type":"number"},"prompt":{"type":"string"},"rationale":{"anyOf":[{"type":"string"},{"type":"null"}]},"category":{"anyOf":[{"type":"string"},{"type":"null"}]},"requiresWeb":{"type":"boolean"},"rubric":{"type":"array","items":{"type":"string"}},"variants":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"expectations":{"anyOf":[{"type":"array","items":{}},{"type":"null"}]}},"required":["id","studyId","position","prompt","rationale","category","requiresWeb","rubric"],"additionalProperties":false}},"required":["task"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"study_invalid_state — tasks are frozen once launched — or study_archived: an imported study's results never change","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"LENS_MISMATCH — `expectations` supplied but `lenses` omits 'evals'; study_expectations_invalid — `expectations` fail shape/kind validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"benchmarks:write","x-ora-product":"experiment","x-ora-service":"experiments-service"}},"/experiment/v1/benchmarks/{id}/unpublish":{"post":{"operationId":"benchmarks.unpublish","summary":"Remove a study from the public catalog (data kept; re-publish any time)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The study's uuid (from create or list)."}}],"responses":{"200":{"description":"Remove a study from the public catalog (data kept; re-publish any time)","content":{"application/json":{"schema":{"type":"object","properties":{"study":{"type":"object","properties":{"id":{"type":"string"},"executiveSummary":{"anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryDraft":{"description":"A PUBLISHED study's summary held for review, never shown on the public page: what `studies.regenerateSummary` writes on a published study (and the first summary of a published study nothing asked for). `studies.publish` makes exactly this text the published `executiveSummary`, while the readout it was written from is still current; otherwise publish regenerates. Absent where the product has no review drafts.","anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryRequest":{"description":"A summary an explicit act asked for and not yet written: 'live' — a publish, a re-open, or a regenerate on an UNPUBLISHED completed study owes the summary in place (the public page, once published); 'draft' — a regenerate on a published study owes the review draft one. Null once the request is answered — poll `studies.get` until it is: by the written summary (`executiveSummary` or `executiveSummaryDraft`), by a later act that superseded it (a publish, a newer regenerate — its own write answers it), or as unavailable (`executiveSummaryUnavailableAt` set). While the automatic retries back off after a failed attempt it stays pending. Absent where the product has no review drafts.","anyOf":[{"type":"string","enum":["live","draft"]},{"type":"null"}]},"executiveSummaryRequestedAt":{"description":"When `executiveSummaryRequest` was made.","anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryUnavailableAt":{"description":"When the last summary request was answered as UNAVAILABLE: every attempt the retry policy allows on the study's readout failed, so no summary will be written for it until the readout changes (runs added, a re-run, a regrade) or someone regenerates or publishes again. Null otherwise; cleared by a new request or a written summary. Absent where the product has no review drafts.","anyOf":[{"type":"string"},{"type":"null"}]},"plannedRunCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The exact number of runs `launch` will fan out (taskCount × variantsPerTask × repeats × matrix cells × arms). Check this BEFORE launching."},"organizationId":{"type":"string"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"slug":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillRef":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillSlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillName":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillPromise":{"type":"string"},"subjectKind":{"type":"string","enum":["skill","tools","addon","custom","benchmark","site"],"description":"What the study measures. 'skill': an agent skill (requires skillRef; the treatment arm runs with the skill attached). 'tools': the run's tool policy (web tools on vs off). 'addon': one run add-on (tavily, brave, desktop, mcp, secrets…). 'custom': any composition of skill + tools + add-ons, both arms fully spelled out in armConfig. 'benchmark': a pinned version of a catalog benchmark definition (requires definitionVersionId); the corpus is copied frozen from that version. Every comparisonMode applies: 'single' is a harness × model shootout whose ONE arm may carry your setup in armConfig.treatment (armConfig.baseline is refused); 'ab_vs_none' runs the setup in armConfig.treatment against the bare benchmark; 'ab_custom' runs two labelled setups (armConfig.baseline and armConfig.treatment) head to head. An A/B study needs a setup under test and two arms that differ. An arm that carries a setup is not the benchmark's bare protocol, so it does not seed the public leaderboard."},"subjectName":{"anyOf":[{"type":"string"},{"type":"null"}]},"siteDomain":{"description":"The website a 'site' study is run against (its host); absent for every other subject kind.","type":"string"},"subjectLabel":{"type":"string"},"armConfig":{"type":"object","properties":{"baseline":{"description":"The baseline arm's run-payload delta. Omitted = a bare run (no skill, no extras).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false},"treatment":{"description":"The treatment arm's run-payload delta (the thing under test).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"additionalProperties":false,"description":"Frozen per-arm run-payload deltas. Required for subjectKind 'custom' and comparisonMode 'ab_custom'; for 'tools'/'addon' subjects the treatment side is derived when omitted."},"comparisonMode":{"type":"string","enum":["ab_vs_none","ab_custom","single"],"description":"The baseline design. 'ab_vs_none' (default): treatment vs a bare baseline — classic A/B. 'ab_custom': BOTH arms explicitly configured via armConfig, labeled by baselineLabel/treatmentLabel (e.g. 'Remote MCP' vs 'REST API'). 'single': no baseline — one arm per (harness, model) cell, ranked into a leaderboard (verdict 'measured')."},"subjectBackend":{"anyOf":[{"type":"string","enum":["model","harness"],"description":"What answers a FRAMEWORK benchmark's requests: 'harness' — each request is answered by the cell's agent harness (the model inside its own loop, with the arm's tools, add-ons and skills), one agent run per request; 'model' — the framework's own client calls the cell's model directly and the cell's harness is not measured. Resolved once per study and recorded on every run."},{"type":"null"}]},"environmentExecutionPolicy":{"type":"string","enum":["legacy-v1","inside-v1"]},"importedFrom":{"type":"string"},"baselineLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"treatmentLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"promiseMetrics":{"type":"array","items":{"type":"object","properties":{"metric":{"type":"string","enum":["total_tokens","output_tokens","cost_usd","duration_ms","num_turns","success_rate","completion_rate","goal_rate"]},"direction":{"type":"string","enum":["down","up"]},"label":{"type":"string","minLength":1,"maxLength":120}},"required":["metric","direction","label"],"additionalProperties":false}},"matrix":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1,"maxLength":50,"description":"Harness id — the valid set (and each one's models) is GET /catalog; cells are validated against it at create."},"model":{"type":"string","minLength":1,"maxLength":100,"description":"Model id as the harness accepts it — valid ids per harness/provider are in GET /catalog (e.g. 'claude-sonnet-5', 'gpt-5.5')."},"provider":{"description":"Provider qualifier for multi-provider harnesses (e.g. 'anthropic', 'openai', 'google'). Omit to use the harness default.","type":"string","minLength":1,"maxLength":32},"params":{"description":"Provider params pinned for this cell (temperature, reasoningEffort, maxOutputTokens, thinkingBudgetTokens). A cell that pins none runs the provider's own defaults. Offered only where the harness declares support — see GET /catalog.","type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"maxOutputTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reasoningEffort":{"type":"string","enum":["low","medium","high"]},"thinkingBudgetTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"codeMode":{"type":"string","enum":["auto","on","off"]},"toolSearch":{"type":"string","enum":["on","off","directory"]},"location":{"type":"string","pattern":"^[A-Z]{2}$"},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$"}},"additionalProperties":false}},"required":["harness","model"],"additionalProperties":false,"description":"One (harness, model, params) cell — every task runs its arm(s) on every cell."}},"lenses":{"minItems":1,"type":"array","items":{"type":"string","enum":["judge","evals","reference","framework","execution","verifier"]},"description":"Which grading lenses this study runs under. Defaults to ['judge'] at create and stays editable while status is 'ready' (frozen at launch, like task expectations/rubrics). 'judge': the LLM judge panel (rubric grades + blind pairwise). 'evals': the deterministic @ora/eval-checks engine, scored against each task's authored expectations. 'reference': the static-QA lens — an answer extracted from the response and matched against the task's own reference key, scored 1/0 (spec §6.4). 'framework': the benchmark's OWN framework (HELM today) reports the metrics, mapped verbatim into a section rather than re-averaged (SP2 Task 9). 'execution': the candidate's code is extracted from the response and run against the task's own tests inside a sandboxed, network-less runner image (SP2 Task 16)."},"judgeSupplementary":{"type":"boolean"},"taskCount":{"type":"number"},"variantsPerTask":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Semantics-preserving paraphrases sampled per task (1-5; mirrors the create body's variantsPerTask). Absent at create defaults to 1 — every response reports a concrete value, including studies created before sampling existed."},"repeats":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Identical re-runs sampled per condition (1-10; mirrors the create body's repeats). Absent at create defaults to 1 — every response reports a concrete value, including studies created before sampling existed."},"subset":{"anyOf":[{"type":"object","properties":{"count":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"seed":{"type":"string","minLength":1},"of":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["count","seed","of"],"additionalProperties":false},{"type":"null"}]},"status":{"type":"string"},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"preparation":{"anyOf":[{"type":"object","properties":{"since":{"type":"string"},"progressAt":{"type":"string"},"launchedBy":{"type":"object","properties":{"userId":{"type":"string"},"role":{"type":"string"}},"additionalProperties":false},"waitingOn":{"type":"array","items":{"type":"object","properties":{"imageKey":{"type":"string"},"buildId":{"type":"string"},"stage":{"type":"string","enum":["image","snapshot"]},"retry":{"type":"object","properties":{"failedAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maxAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"notBefore":{"type":"string"},"lastFailure":{"type":"string"}},"required":["failedAttempts","maxAttempts","notBefore","lastFailure"],"additionalProperties":false}},"required":["imageKey","buildId"],"additionalProperties":false}}},"required":["since","launchedBy","waitingOn"],"additionalProperties":false},{"type":"null"}]},"visibility":{"type":"string","enum":["private","org","link","public"],"description":"Who may read this study: private (creator + org owners) | org (the whole org) | link (anyone holding ?share=<token>, unlisted) | public (everyone, listed)."},"visibilityChangedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"visibilityChangedBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"shareToken":{"anyOf":[{"type":"string"},{"type":"null"}]},"lowSampleOverride":{"type":"boolean","description":"True iff this study was explicitly published below the sample-size floor (spec A6) — the published page shows a low-sample badge when set."},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"verdict":{},"definitionVersionId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The benchmark definition VERSION this study pinned at create — non-null only for subjectKind 'benchmark'. Its corpus was copied frozen from that version, so the study stays reproducible when the definition publishes a newer one."},"runnerKind":{"type":"string","enum":["ora-runs","batch-job"],"description":"Which executor fans this study out: 'ora-runs' (the ora runs spine) or 'batch-job' (a built runner image)."},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"liveUntil":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When this study's live stream stops being held open (null while it is still running). Attaching before it yields the remaining post-terminal frames (gradings, recordings, refined verdicts)."}},"required":["id","plannedRunCount","organizationId","createdBy","name","slug","description","skillRef","skillSlug","skillName","skillPromise","subjectKind","subjectName","subjectLabel","armConfig","comparisonMode","subjectBackend","baselineLabel","treatmentLabel","promiseMetrics","matrix","lenses","taskCount","variantsPerTask","repeats","subset","status","error","visibility","lowSampleOverride","publishedAt","verdict","definitionVersionId","runnerKind","createdAt","updatedAt","liveUntil"],"additionalProperties":false}},"required":["study"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"benchmarks:write","x-ora-product":"experiment","x-ora-service":"experiments-service"}},"/experiment/v1/catalog":{"get":{"operationId":"experiment.catalog","summary":"Harness × model catalog: valid matrix cells, defaults, modes, and withheld harnesses with reasons","responses":{"200":{"description":"Harness × model catalog: valid matrix cells, defaults, modes, and withheld harnesses with reasons","content":{"application/json":{"schema":{"type":"object","properties":{"harnesses":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"maker":{"type":"string"},"offerable":{"type":"boolean"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why a non-offerable harness is withheld (missing credential, measured gap, …)."},"modes":{"type":"array","items":{"type":"string","enum":["task","session"]},"description":"Dispatch modes. Benchmarks fan out 'task' runs — a session-only harness can't be a matrix cell."},"defaultProvider":{"anyOf":[{"type":"string"},{"type":"null"}]},"providers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"offerable":{"type":"boolean"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why a non-offerable provider is withheld (e.g. its credential is not provisioned yet)."},"models":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The model id `matrix[].model` / run `model` accepts for this harness+provider."},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"description":"Valid models for this harness under this provider; first = the provider default."},"defaultModel":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","offerable","reason","models","defaultModel"],"additionalProperties":false}}},"required":["id","name","maker","offerable","reason","modes","defaultProvider","providers"],"additionalProperties":false}}},"required":["harnesses"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-product":"platform","x-ora-service":"experiments-service"}},"/experiment/v1/images/builds":{"get":{"operationId":"experiment.images.builds.list","summary":"List the org's image builds, newest first","parameters":[{"name":"phase","in":"query","required":false,"schema":{"type":"string","enum":["queued","pending","running","succeeded","failed","cancelled"]}},{"name":"name","in":"query","required":false,"schema":{"type":"string","minLength":1}},{"name":"pageSize","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"name":"pageToken","in":"query","required":false,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"List the org's image builds, newest first","content":{"application/json":{"schema":{"type":"object","properties":{"builds":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"organizationId":{"type":"string"},"productKey":{"type":"string"},"requestedByUserId":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"source":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","const":"archive"},"sha256":{"type":"string"}},"required":["kind","sha256"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"upload"},"fileId":{"type":"string"}},"required":["kind","fileId"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"git"},"ref":{"type":"string"},"subdir":{"type":"string"}},"required":["kind","ref"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"inline"},"fileCount":{"type":"number"}},"required":["kind","fileCount"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"asset"},"sha256":{"type":"string"}},"required":["kind","sha256"],"additionalProperties":false}]},"sourceIdentity":{"type":"string"},"dockerfileDir":{"type":"string"},"dockerfileName":{"type":"string"},"buildArgKeys":{"type":"array","items":{"type":"string"}},"platform":{"type":"string"},"trusted":{"type":"boolean"},"phase":{"type":"string","enum":["queued","pending","running","succeeded","failed","cancelled"]},"image":{"type":"string"},"digest":{"anyOf":[{"type":"string"},{"type":"null"}]},"sizeBytes":{"anyOf":[{"type":"number"},{"type":"null"}]},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"logRef":{"anyOf":[{"type":"string"},{"type":"null"}]},"startedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","organizationId","productKey","requestedByUserId","name","source","sourceIdentity","dockerfileDir","dockerfileName","buildArgKeys","platform","trusted","phase","image","digest","sizeBytes","reason","logRef","startedAt","finishedAt","createdAt","updatedAt"],"additionalProperties":false}},"nextPageToken":{"type":"string"}},"required":["builds"],"additionalProperties":false}}}},"400":{"description":"pageToken is malformed, tampered, or was not minted by this endpoint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"the api-key principal lacks this mount's product grant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"images:read","x-ora-product":"platform","x-ora-service":"experiments-service"},"post":{"operationId":"experiment.images.builds.create","summary":"Submit an image build (idempotent on name + source + Dockerfile + build args)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"source":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"archive"},"url":{"type":"string","minLength":1},"sha256":{"type":"string","pattern":"^[0-9a-f]{64}$"}},"required":["kind","url","sha256"]},{"type":"object","properties":{"kind":{"type":"string","const":"upload"},"fileId":{"type":"string","minLength":1}},"required":["kind","fileId"]},{"type":"object","properties":{"kind":{"type":"string","const":"git"},"url":{"type":"string","minLength":1},"ref":{"type":"string","minLength":1},"subdir":{"type":"string"}},"required":["kind","url","ref"]},{"type":"object","properties":{"kind":{"type":"string","const":"inline"},"dockerfile":{"type":"string","minLength":1},"files":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["kind","dockerfile"]}]},"dockerfile":{"type":"object","properties":{"dir":{"type":"string","minLength":1},"name":{"type":"string","minLength":1}}},"buildArgs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"platform":{"type":"string","minLength":1}},"required":["name","source"]}}}},"responses":{"201":{"description":"Submit an image build (idempotent on name + source + Dockerfile + build args)","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"phase":{"type":"string","enum":["queued","pending","running","succeeded","failed","cancelled"]}},"required":["id","phase"],"additionalProperties":false}}}},"401":{"description":"the caller's verified token has no identity resolvable for its principal type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"the org's plan has no image_builds entitlement, or its included quota is exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"the api-key principal lacks this mount's product grant, the caller isn't an editor+ role, or the request asked for a trusted build without being an allow-listed service principal","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"an image build with the same idempotency key already exists for a different product","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"the source or build parameters were rejected (invalid shape, disallowed git host, a git ref that could not be pinned to a commit, a non-empty buildArgs or non-default platform — not supported yet, oversized image/context, timeout ceiling exceeded, or — mounting-BFF dependent — an inline source from a non-user principal: see the mounting BFF's files-port for whether inline requires an attributable user)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"the image build backend is unavailable (retryable — not a statement about the request's validity)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"images:write","x-ora-product":"platform","x-ora-service":"experiments-service"}},"/experiment/v1/images/builds/{id}":{"get":{"operationId":"experiment.images.builds.get","summary":"Get one image build","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Get one image build","content":{"application/json":{"schema":{"type":"object","properties":{"build":{"type":"object","properties":{"id":{"type":"string"},"organizationId":{"type":"string"},"productKey":{"type":"string"},"requestedByUserId":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"source":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","const":"archive"},"sha256":{"type":"string"}},"required":["kind","sha256"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"upload"},"fileId":{"type":"string"}},"required":["kind","fileId"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"git"},"ref":{"type":"string"},"subdir":{"type":"string"}},"required":["kind","ref"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"inline"},"fileCount":{"type":"number"}},"required":["kind","fileCount"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"asset"},"sha256":{"type":"string"}},"required":["kind","sha256"],"additionalProperties":false}]},"sourceIdentity":{"type":"string"},"dockerfileDir":{"type":"string"},"dockerfileName":{"type":"string"},"buildArgKeys":{"type":"array","items":{"type":"string"}},"platform":{"type":"string"},"trusted":{"type":"boolean"},"phase":{"type":"string","enum":["queued","pending","running","succeeded","failed","cancelled"]},"image":{"type":"string"},"digest":{"anyOf":[{"type":"string"},{"type":"null"}]},"sizeBytes":{"anyOf":[{"type":"number"},{"type":"null"}]},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"logRef":{"anyOf":[{"type":"string"},{"type":"null"}]},"startedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","organizationId","productKey","requestedByUserId","name","source","sourceIdentity","dockerfileDir","dockerfileName","buildArgKeys","platform","trusted","phase","image","digest","sizeBytes","reason","logRef","startedAt","finishedAt","createdAt","updatedAt"],"additionalProperties":false}},"required":["build"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"the api-key principal lacks this mount's product grant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"no image build with this id in the caller's organization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"images:read","x-ora-product":"platform","x-ora-service":"experiments-service"}},"/experiment/v1/images/builds/{id}/cancel":{"post":{"operationId":"experiment.images.builds.cancel","summary":"Cancel an in-flight image build","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Cancel an in-flight image build","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"phase":{"type":"string","enum":["queued","pending","running","succeeded","failed","cancelled"]}},"required":["id","phase"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"the api-key principal lacks this mount's product grant, or the caller isn't an editor+ role","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"no image build with this id in the caller's organization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"the image build backend could not accept the cancellation (retryable — not a statement about the request's validity)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"images:write","x-ora-product":"platform","x-ora-service":"experiments-service"}},"/experiment/v1/images/builds/{id}/stream":{"get":{"operationId":"experiment.images.builds.stream","summary":"SSE stream of one image build's row changes","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"SSE stream of one image build's row changes","content":{"application/json":{"schema":{}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"the api-key principal lacks this mount's product grant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"no image build with this id in the caller's organization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"images:read","x-ora-product":"platform","x-ora-service":"experiments-service"}},"/experiment/v1/images/runs":{"post":{"operationId":"experiment.images.runs.create","summary":"Launch a run (harness or environment) from a built or referenced image","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"buildId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"image":{"type":"string","minLength":1},"mode":{"type":"string","enum":["harness","environment"]},"harness":{"type":"string","minLength":1},"task":{"type":"string","minLength":1}},"required":["mode"]}}}},"responses":{"201":{"description":"Launch a run (harness or environment) from a built or referenced image","content":{"application/json":{"schema":{"type":"object","properties":{"runId":{"type":"string"}},"required":["runId"],"additionalProperties":false}}}},"401":{"description":"the caller's verified token has no identity resolvable for its principal type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"runs-service refused the run for a usage-limit reason (e.g. LIMIT_EXCEEDED) — relayed verbatim (I3) so the centralized paywall still opens","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"the api-key principal lacks this mount's product grant, or the caller isn't an editor+ role","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"buildId names no image build in the caller's organization, or a raw image ref is not on this mount's public allow-list","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"buildId names an image build that has not finished succeeded yet (its current phase is reported)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"mode is 'environment' — not supported yet (kalanu P4)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"runs-service itself is unavailable — relayed verbatim (I3), never collapsed to a generic 500","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"images:write","x-ora-product":"platform","x-ora-service":"experiments-service"}},"/experiment/v1/runs":{"get":{"operationId":"experiment.runs.list","summary":"List runs","parameters":[{"name":"pageSize","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"name":"pageToken","in":"query","required":false,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"List runs","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"harness":{"type":"string"},"model":{"anyOf":[{"type":"string"},{"type":"null"}]},"provider":{"anyOf":[{"type":"string"},{"type":"null"}]},"tools":{"anyOf":[{"anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},{"type":"null"}]},"intent_text":{"anyOf":[{"type":"string"},{"type":"null"}]},"target_domain":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string"},"outcome":{"anyOf":[{"type":"string"},{"type":"null"}]},"outcome_reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"cost_usd":{"anyOf":[{"type":"number"},{"type":"null"}]},"num_turns":{"anyOf":[{"type":"number"},{"type":"null"}]},"duration_ms":{"anyOf":[{"type":"number"},{"type":"null"}]},"total_tokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"input_tokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"cache_read_tokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"cache_creation_tokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"output_tokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"created_at":{"type":"string"},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"phases":{"anyOf":[{"type":"object","properties":{"phases":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["waiting","boot","installations","startup","run","verification","teardown"]},"ms":{"anyOf":[{"type":"number"},{"type":"null"}]},"state":{"type":"string","enum":["measured","unmeasured","not_in_run"]}},"required":["id","ms","state"],"additionalProperties":false}},"runTimeMs":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The run phase: first model request → last model response."},"totalMs":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The run's whole duration, created → finished."},"steps":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"kind":{"type":"string"},"outcome":{"type":"string"},"startedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["name","kind","outcome","startedAt","finishedAt"],"additionalProperties":false},"description":"The installation steps the operator witnessed (an MCP server's install, an env fetch)."},"modelCalls":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"How many model calls the run made, as the model meter counted them."}},"required":["phases","runTimeMs","totalMs","steps","modelCalls"],"additionalProperties":false,"description":"Every phase of the run: waiting, boot, installations, startup, run, verification, teardown."},{"type":"null"}]},"insight":{"anyOf":[{"type":"object","properties":{"visibility_score":{"anyOf":[{"type":"number"},{"type":"null"}]},"intent_satisfied":{"anyOf":[{"type":"boolean"},{"type":"null"}]}},"required":["visibility_score","intent_satisfied"],"additionalProperties":false},{"type":"null"}]},"conversation_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"conversation_turn_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"conversation":{"anyOf":[{"type":"object","properties":{"harness":{"type":"string"},"model":{"type":"string"},"state":{"type":"string","enum":["open","closed"]},"last_turn_index":{"type":"integer","minimum":0,"maximum":9007199254740991},"last_activity_at":{"type":"string"}},"required":["harness","model","state","last_turn_index","last_activity_at"],"additionalProperties":false},{"type":"null"}]},"conversation_turn":{"anyOf":[{"type":"object","properties":{"turn_index":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["turn_index"],"additionalProperties":false},{"type":"null"}]}},"required":["id","harness","status","created_at"],"additionalProperties":false}},"pageToken":{"type":"string"}},"required":["results"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"runs:read","x-ora-product":"platform","x-ora-service":"experiments-service"},"post":{"operationId":"experiment.runs.create","summary":"Create a run","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"product_key":{"type":"string","minLength":1,"maxLength":50,"pattern":"^[a-z][a-z0-9_]*$"},"intent":{"type":"string","minLength":1},"domain":{"type":"string"},"harness":{"type":"string"},"model":{"type":"string"},"mode":{"type":"string","enum":["task","session"]},"addons":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"engine":{"not":{}},"execution_kind":{"type":"string","const":"harness"},"tools":{"anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"]}]},"requires_tools":{"type":"boolean"},"prompt_context":{"type":"string","enum":["none","target_site"]},"mcp_servers":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"url":{"type":"string","minLength":1},"secretId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"auth":{"oneOf":[{"type":"object","properties":{"method":{"type":"string","const":"oauth"}},"required":["method"]},{"type":"object","properties":{"method":{"type":"string","const":"query"},"param":{"type":"string","minLength":1}},"required":["method","param"]}]}},"required":["name","url"]}},"model_params":{"type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"maxOutputTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reasoningEffort":{"type":"string","enum":["low","medium","high"]},"thinkingBudgetTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"codeMode":{"type":"string","enum":["auto","on","off"]},"toolSearch":{"type":"string","enum":["on","off","directory"]},"location":{"type":"string","pattern":"^[A-Z]{2}$"},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$"}},"additionalProperties":false},"wait":{"not":{}}},"required":["intent"]},"example":{"intent":"check pricing for acme.com","harness":"eve","model":"claude-sonnet-5"}}}},"responses":{"200":{"description":"Create a run","content":{"application/json":{"schema":{"type":"object","properties":{"runId":{"type":"string"},"status":{"type":"string","enum":["pending","queued"]},"streamUrl":{"type":"string"},"harness":{"type":"string"},"model":{"type":"string"},"provider":{"type":"string"}},"required":["runId","status","streamUrl"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"runs:write","x-ora-product":"platform","x-ora-service":"experiments-service"}},"/experiment/v1/runs/cancel":{"post":{"operationId":"experiment.runs.cancelBatch","summary":"Cancel a batch of runs (terminate them and stop their engines)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"runIds":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"string","minLength":1}}},"required":["runIds"]}}}},"responses":{"200":{"description":"Cancel a batch of runs (terminate them and stop their engines)","content":{"application/json":{"schema":{"type":"object","properties":{"requested":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"canceled":{"type":"array","items":{"type":"string"}},"alreadyTerminal":{"type":"array","items":{"type":"string"}},"skipped":{"type":"array","items":{"type":"string"}}},"required":["requested","canceled","alreadyTerminal","skipped"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"runs:write","x-ora-product":"platform","x-ora-service":"experiments-service"}},"/experiment/v1/runs/stream":{"get":{"operationId":"experiment.runs.feed","summary":"Org-scoped live feed of run status patches (SSE)","responses":{"200":{"description":"Org-scoped live feed of run status patches (SSE)","content":{"application/json":{"schema":{}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"runs:read","x-ora-product":"platform","x-ora-service":"experiments-service"}},"/experiment/v1/runs/{id}/cancel":{"post":{"operationId":"experiment.runs.cancel","summary":"Cancel a run (terminate it and stop its engine)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Cancel a run (terminate it and stop its engine)","content":{"application/json":{"schema":{"type":"object","properties":{"runId":{"type":"string"},"status":{"type":"string"},"alreadyTerminal":{"type":"boolean"}},"required":["runId","status","alreadyTerminal"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"runs:write","x-ora-product":"platform","x-ora-service":"experiments-service"}},"/experiment/v1/runs/{id}/insight":{"get":{"operationId":"experiment.runs.insight","summary":"Read a run's stored insight artifact","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Read a run's stored insight artifact","content":{"application/json":{"schema":{}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"runs:read","x-ora-product":"platform","x-ora-service":"experiments-service"}},"/experiment/v1/runs/{id}/raw-trace":{"get":{"operationId":"experiment.runs.rawTrace","summary":"Read a run's full raw frame stream (pre-truncation trace artifact)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Read a run's full raw frame stream (pre-truncation trace artifact)","content":{"application/json":{"schema":{}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"runs:read","x-ora-product":"platform","x-ora-service":"experiments-service"}},"/experiment/v1/runs/{id}/spans":{"get":{"operationId":"experiment.runs.spans","summary":"Read a run's stored trace spans (CompactSpan[])","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Read a run's stored trace spans (CompactSpan[])","content":{"application/json":{"schema":{}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"runs:read","x-ora-product":"platform","x-ora-service":"experiments-service"}},"/experiment/v1/runs/{id}/stream":{"get":{"operationId":"experiment.runs.stream","summary":"Stream a run's live trajectory (SSE)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Stream a run's live trajectory (SSE)","content":{"application/json":{"schema":{}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"runs:read","x-ora-product":"platform","x-ora-service":"experiments-service"}},"/experiment/v1/runs/{id}/trajectory":{"get":{"operationId":"experiment.runs.trajectory","summary":"Read a run's normalized trajectory snapshot","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"profile","in":"query","required":false,"schema":{"type":"string","enum":["raw","heuristic","full"]}}],"responses":{"200":{"description":"Read a run's normalized trajectory snapshot","content":{"application/json":{"schema":{}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"runs:read","x-ora-product":"platform","x-ora-service":"experiments-service"}},"/experiment/v1/secrets":{"get":{"operationId":"experiment.secrets.list","summary":"List the org's secrets (metadata only — ids for armConfig/envBindings references)","responses":{"200":{"description":"List the org's secrets (metadata only — ids for armConfig/envBindings references)","content":{"application/json":{"schema":{"type":"object","properties":{"secrets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The secret's id — what armConfig secretId / envBindings reference."},"organizationId":{"type":"string"},"name":{"type":"string"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["name"],"additionalProperties":false,"description":"Secret metadata; a Viewer reads the name only."}}},"required":["secrets"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"secrets:read","x-ora-product":"platform","x-ora-service":"experiments-service"},"post":{"operationId":"experiment.secrets.create","summary":"Create an org secret (encrypted at rest; the value is never readable back through this surface)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255,"pattern":"^[A-Za-z0-9_.-]+$","description":"Secret name (letters, numbers, '.', '_', '-') — how add-on configs and env bindings will refer to it in the UI; the wire references use the returned id."},"value":{"type":"string","minLength":1,"description":"The secret value (an API token, key, …). Encrypted at rest; NEVER echoed back by any read this surface offers — reads return metadata only."}},"required":["name","value"]},"example":{"name":"MONDAY_API_KEY","value":"<the token — never logged, never echoed>"}}}},"responses":{"200":{"description":"Create an org secret (encrypted at rest; the value is never readable back through this surface)","content":{"application/json":{"schema":{"type":"object","properties":{"secret":{"type":"object","properties":{"id":{"type":"string","description":"The secret's id — what armConfig secretId / envBindings reference."},"organizationId":{"type":"string"},"name":{"type":"string"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","organizationId","name","createdBy","createdAt","updatedAt"],"additionalProperties":false}},"required":["secret"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"secret_name_reserved — the name belongs to a platform service (e.g. autopilot-pseudonym-key-*)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"secret_name_taken — the org already has a secret with this name","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"secrets:write","x-ora-product":"platform","x-ora-service":"experiments-service"}},"/experiment/v1/secrets/{id}":{"delete":{"operationId":"experiment.secrets.delete","summary":"Delete an org secret (runs already launched keep nothing; future boot-fetches fail closed)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The secret's id (from create or list)."}}],"responses":{"200":{"description":"Delete an org secret (runs already launched keep nothing; future boot-fetches fail closed)","content":{"application/json":{"schema":{}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"secret_name_reserved — the secret belongs to a platform service and is not deletable here","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"secrets:write","x-ora-product":"platform","x-ora-service":"experiments-service"}},"/experiment/v1/sessions":{"get":{"operationId":"sessions.list","summary":"List the caller's dedicated sessions","responses":{"200":{"description":"List the caller's dedicated sessions","content":{"application/json":{"schema":{"type":"object","properties":{"sessions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"displayName":{"type":"string"},"slug":{"type":"string"},"harness":{"type":"string"},"harnessTemplate":{"type":"string"},"status":{"type":"string","enum":["creating","ready","hibernated","waking","error","deleting"]},"statusReason":{"type":"string"},"storageSize":{"type":"string"},"model":{"type":"string"},"desktopEnabled":{"type":"boolean"},"openInterface":{"type":"string","enum":["terminal","desktop","web"]},"interfaces":{"type":"array","items":{"type":"string","enum":["terminal","desktop","web"]}},"origin":{"type":"string"},"managedByRef":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","displayName","slug","harness","harnessTemplate","status","desktopEnabled","openInterface","interfaces","origin","createdAt","updatedAt"],"additionalProperties":false}}},"required":["sessions"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"sessions:read","x-ora-product":"experiment","x-ora-service":"experiments-service"},"post":{"operationId":"sessions.create","summary":"Create a dedicated session","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"displayName":{"type":"string","minLength":1,"maxLength":120},"harness":{"type":"string","minLength":1},"addons":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"model":{"type":"string","minLength":1,"maxLength":200},"openInterface":{"type":"string","minLength":1,"maxLength":40}},"required":["displayName","harness"]}}}},"responses":{"200":{"description":"Create a dedicated session","content":{"application/json":{"schema":{"type":"object","properties":{"session":{"type":"object","properties":{"id":{"type":"string"},"displayName":{"type":"string"},"slug":{"type":"string"},"harness":{"type":"string"},"harnessTemplate":{"type":"string"},"status":{"type":"string","enum":["creating","ready","hibernated","waking","error","deleting"]},"statusReason":{"type":"string"},"storageSize":{"type":"string"},"model":{"type":"string"},"desktopEnabled":{"type":"boolean"},"openInterface":{"type":"string","enum":["terminal","desktop","web"]},"interfaces":{"type":"array","items":{"type":"string","enum":["terminal","desktop","web"]}},"origin":{"type":"string"},"managedByRef":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","displayName","slug","harness","harnessTemplate","status","desktopEnabled","openInterface","interfaces","origin","createdAt","updatedAt"],"additionalProperties":false}},"required":["session"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"sessions:write","x-ora-product":"experiment","x-ora-service":"experiments-service"}},"/experiment/v1/sessions/catalog":{"get":{"operationId":"sessions.catalog","summary":"The offered dedicated-harness catalog","responses":{"200":{"description":"The offered dedicated-harness catalog","content":{"application/json":{"schema":{"type":"object","properties":{"harnesses":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string"},"displayName":{"type":"string"},"sessionable":{"type":"boolean"},"interfaces":{"type":"array","items":{"type":"string","enum":["terminal","desktop","web"]}},"opensIn":{"type":"string","enum":["terminal","desktop","web"]},"door":{"type":"string"},"caps":{"type":"object","properties":{"queue":{"type":"string","enum":["none","native","native-unsafe"]},"steer":{"type":"boolean"},"interrupt":{"type":"boolean"},"resumeAcrossRestart":{"type":"boolean"},"dynamicTools":{"type":"boolean"},"compaction":{"type":"boolean"},"turnLimits":{"type":"array","items":{"type":"string","enum":["maxSteps","subagents"]}}},"required":["queue","steer","interrupt","resumeAcrossRestart","dynamicTools","compaction","turnLimits"],"additionalProperties":false},"heavyWake":{"type":"boolean"},"coldWakeSec":{"anyOf":[{"type":"number"},{"type":"null"}]},"coreEligible":{"type":"boolean"},"weakCore":{"anyOf":[{"type":"string"},{"type":"null"}]},"profile":{"type":"object","properties":{"version":{"type":"number","const":1},"interrupt":{"type":"string","enum":["door","kill-cheap","kill-and-resume","none"]},"resume":{"type":"string","enum":["full","partial","none"]},"toolChannel":{"type":"string","enum":["native-mcp","shell-bridge","none"]},"toolRoundsPerTurn":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"workspace":{"type":"string","enum":["shell","none"]},"nativeSubagents":{"type":"string","enum":["in-turn","after-turn","none"]},"usage":{"type":"string","enum":["exact","rounded","partial","vendor-billed"]},"turnOverheadSec":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"door":{"type":"string"},"queue":{"type":"string","enum":["none","native","native-unsafe"]},"steer":{"type":"boolean"},"dynamicTools":{"type":"boolean"},"compaction":{"type":"boolean"},"coreEligible":{"type":"boolean"},"weakCore":{"anyOf":[{"type":"string"},{"type":"null"}]},"heavyWake":{"type":"boolean"},"coldWakeSec":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"notes":{"type":"array","items":{"type":"object","properties":{"fact":{"type":"string"},"chip":{"type":"string"},"line":{"type":"string"}},"required":["fact","chip","line"],"additionalProperties":false}}},"required":["version","interrupt","resume","toolChannel","toolRoundsPerTurn","workspace","nativeSubagents","usage","turnOverheadSec","door","queue","steer","dynamicTools","compaction","coreEligible","weakCore","heavyWake","coldWakeSec","notes"],"additionalProperties":{}}},"required":["harness","displayName","sessionable"],"additionalProperties":false}},"drivenRefusals":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string"},"displayName":{"type":"string"},"wave":{"type":"string","enum":["C","D","E","F"]},"blockedBy":{"type":"string","enum":["runner","door","image","credential","no-container","per-image","posture"]},"reason":{"type":"string"}},"required":["harness","displayName","wave","blockedBy","reason"],"additionalProperties":false}}},"required":["harnesses","drivenRefusals"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"sessions:read","x-ora-product":"experiment","x-ora-service":"experiments-service"}},"/experiment/v1/sessions/stream":{"get":{"operationId":"sessions.stream","summary":"Org-scoped live feed of session status patches (SSE)","responses":{"200":{"description":"Org-scoped live feed of session status patches (SSE)","content":{"application/json":{"schema":{}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"sessions:read","x-ora-product":"experiment","x-ora-service":"experiments-service"}},"/experiment/v1/sessions/{id}":{"delete":{"operationId":"sessions.delete","summary":"Delete a dedicated session (async teardown)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Delete a dedicated session (async teardown)","content":{"application/json":{"schema":{"type":"object","properties":{"session":{"type":"object","properties":{"id":{"type":"string"},"displayName":{"type":"string"},"slug":{"type":"string"},"harness":{"type":"string"},"harnessTemplate":{"type":"string"},"status":{"type":"string","enum":["creating","ready","hibernated","waking","error","deleting"]},"statusReason":{"type":"string"},"storageSize":{"type":"string"},"model":{"type":"string"},"desktopEnabled":{"type":"boolean"},"openInterface":{"type":"string","enum":["terminal","desktop","web"]},"interfaces":{"type":"array","items":{"type":"string","enum":["terminal","desktop","web"]}},"origin":{"type":"string"},"managedByRef":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","displayName","slug","harness","harnessTemplate","status","desktopEnabled","openInterface","interfaces","origin","createdAt","updatedAt"],"additionalProperties":false}},"required":["session"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"sessions:write","x-ora-product":"experiment","x-ora-service":"experiments-service"}},"/experiment/v1/sessions/{id}/hibernate":{"post":{"operationId":"sessions.hibernate","summary":"Hibernate a ready dedicated session","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Hibernate a ready dedicated session","content":{"application/json":{"schema":{"type":"object","properties":{"session":{"type":"object","properties":{"id":{"type":"string"},"displayName":{"type":"string"},"slug":{"type":"string"},"harness":{"type":"string"},"harnessTemplate":{"type":"string"},"status":{"type":"string","enum":["creating","ready","hibernated","waking","error","deleting"]},"statusReason":{"type":"string"},"storageSize":{"type":"string"},"model":{"type":"string"},"desktopEnabled":{"type":"boolean"},"openInterface":{"type":"string","enum":["terminal","desktop","web"]},"interfaces":{"type":"array","items":{"type":"string","enum":["terminal","desktop","web"]}},"origin":{"type":"string"},"managedByRef":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","displayName","slug","harness","harnessTemplate","status","desktopEnabled","openInterface","interfaces","origin","createdAt","updatedAt"],"additionalProperties":false}},"required":["session"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"sessions:write","x-ora-product":"experiment","x-ora-service":"experiments-service"}},"/experiment/v1/sessions/{id}/wake":{"post":{"operationId":"sessions.wake","summary":"Wake a hibernated dedicated session","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Wake a hibernated dedicated session","content":{"application/json":{"schema":{"type":"object","properties":{"session":{"type":"object","properties":{"id":{"type":"string"},"displayName":{"type":"string"},"slug":{"type":"string"},"harness":{"type":"string"},"harnessTemplate":{"type":"string"},"status":{"type":"string","enum":["creating","ready","hibernated","waking","error","deleting"]},"statusReason":{"type":"string"},"storageSize":{"type":"string"},"model":{"type":"string"},"desktopEnabled":{"type":"boolean"},"openInterface":{"type":"string","enum":["terminal","desktop","web"]},"interfaces":{"type":"array","items":{"type":"string","enum":["terminal","desktop","web"]}},"origin":{"type":"string"},"managedByRef":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","displayName","slug","harness","harnessTemplate","status","desktopEnabled","openInterface","interfaces","origin","createdAt","updatedAt"],"additionalProperties":false}},"required":["session"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"sessions:write","x-ora-product":"experiment","x-ora-service":"experiments-service"}},"/experiment/v1/skills":{"get":{"operationId":"experiment.skills.list","summary":"List the caller's usable skills catalog","responses":{"200":{"description":"List the caller's usable skills catalog","content":{"application/json":{"schema":{"type":"object","properties":{"skills":{"type":"array","items":{"type":"object","properties":{"ref":{"type":"string"},"source":{"type":"string","enum":["builtin","custom","git"]},"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"isExample":{"type":"boolean"},"description":{"type":"string"},"visibility":{"type":"string","enum":["user","org"]},"authorUserId":{"type":"string"},"body":{"type":"string"},"repoUrl":{"type":"string"},"gitRef":{"type":"string"},"subpath":{"type":"string"},"updatedAt":{"type":"string"},"contentSha256":{"type":"string"}},"required":["ref","source","id","name","slug"],"additionalProperties":false}}},"required":["skills"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"skills:read","x-ora-product":"platform","x-ora-service":"experiments-service"},"post":{"operationId":"experiment.skills.create","summary":"Create a skill (custom or git-imported)","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"source":{"type":"string","const":"custom"},"name":{"type":"string","minLength":1,"maxLength":120},"body":{"type":"string","minLength":1},"visibility":{"default":"user","type":"string","enum":["user","org"]}},"required":["source","name","body"]},{"type":"object","properties":{"source":{"type":"string","const":"git"},"name":{"type":"string","minLength":1,"maxLength":120},"repoUrl":{"type":"string","minLength":1},"gitRef":{"type":"string","minLength":1},"subpath":{"anyOf":[{"type":"string"},{"type":"null"}]},"visibility":{"default":"user","type":"string","enum":["user","org"]}},"required":["source","name","repoUrl","gitRef"]}]}}}},"responses":{"200":{"description":"Create a skill (custom or git-imported)","content":{"application/json":{"schema":{"type":"object","properties":{"skill":{"type":"object","properties":{"ref":{"type":"string"},"source":{"type":"string","enum":["builtin","custom","git"]},"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"isExample":{"type":"boolean"},"description":{"type":"string"},"visibility":{"type":"string","enum":["user","org"]},"authorUserId":{"type":"string"},"body":{"type":"string"},"repoUrl":{"type":"string"},"gitRef":{"type":"string"},"subpath":{"type":"string"},"updatedAt":{"type":"string"},"contentSha256":{"type":"string"}},"required":["ref","source","id","name","slug"],"additionalProperties":false}},"required":["skill"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"skills:write","x-ora-product":"platform","x-ora-service":"experiments-service"}},"/experiment/v1/skills/{id}":{"put":{"operationId":"experiment.skills.update","summary":"Update a skill","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"visibility":{"type":"string","enum":["user","org"]},"body":{"type":"string","minLength":1},"repoUrl":{"type":"string","minLength":1},"gitRef":{"type":"string","minLength":1},"subpath":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}}},"responses":{"200":{"description":"Update a skill","content":{"application/json":{"schema":{"type":"object","properties":{"skill":{"type":"object","properties":{"ref":{"type":"string"},"source":{"type":"string","enum":["builtin","custom","git"]},"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"isExample":{"type":"boolean"},"description":{"type":"string"},"visibility":{"type":"string","enum":["user","org"]},"authorUserId":{"type":"string"},"body":{"type":"string"},"repoUrl":{"type":"string"},"gitRef":{"type":"string"},"subpath":{"type":"string"},"updatedAt":{"type":"string"},"contentSha256":{"type":"string"}},"required":["ref","source","id","name","slug"],"additionalProperties":false}},"required":["skill"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"skills:write","x-ora-product":"platform","x-ora-service":"experiments-service"},"delete":{"operationId":"experiment.skills.delete","summary":"Delete a skill","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Delete a skill","content":{"application/json":{"schema":{}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"skills:write","x-ora-product":"platform","x-ora-service":"experiments-service"}},"/experiment/v1/webmcp/arenas":{"post":{"operationId":"webmcp.arena.create","summary":"Create AND launch a WebMCP head-to-head: one authored task (your intent on your site), one harness×model cell, baseline-vs-treatment arms — returns the underlying benchmark","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"targetUrl":{"type":"string","minLength":1,"maxLength":500,"description":"The site under test — any absolute http(s) URL."},"intent":{"type":"string","minLength":4,"maxLength":4000,"description":"The user's goal on the site — dispatched (with the site URL) as both arms' one-shot task."},"harness":{"type":"string","minLength":1,"maxLength":60,"description":"Harness id (catalog key, e.g. 'claude-code')."},"model":{"type":"string","minLength":1,"maxLength":120,"description":"Model id for the cell."},"provider":{"type":"string","minLength":1,"maxLength":40},"baseline":{"default":"none","description":"The WITHOUT arm — what the agent browses with when it does not have the site's WebMCP tools.","type":"string","enum":["webdriver","none","devtools","browserbase","oxylabs"]},"treatment":{"default":"webmcp-native","description":"The WITH arm — how the agent reaches the site's WebMCP tools.","type":"string","enum":["webmcp-native","webdriver","webdriver-webmcp","devtools","devtools-webmcp","webmcp-shim"]},"name":{"description":"Optional display name; derived from the site when omitted.","type":"string","minLength":1,"maxLength":160}},"required":["targetUrl","intent","harness","model"]},"example":{"targetUrl":"https://shop.example.com","intent":"Find the price of the Chronometer and add it to the cart.","harness":"claude-code","model":"claude-haiku-4-5-20251001","baseline":"none","treatment":"webmcp-native"}}}},"responses":{"201":{"description":"Create AND launch a WebMCP head-to-head: one authored task (your intent on your site), one harness×model cell, baseline-vs-treatment arms — returns the underlying benchmark","content":{"application/json":{"schema":{"type":"object","properties":{"benchmark":{"type":"object","properties":{"id":{"type":"string"},"executiveSummary":{"anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryDraft":{"description":"A PUBLISHED study's summary held for review, never shown on the public page: what `studies.regenerateSummary` writes on a published study (and the first summary of a published study nothing asked for). `studies.publish` makes exactly this text the published `executiveSummary`, while the readout it was written from is still current; otherwise publish regenerates. Absent where the product has no review drafts.","anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryRequest":{"description":"A summary an explicit act asked for and not yet written: 'live' — a publish, a re-open, or a regenerate on an UNPUBLISHED completed study owes the summary in place (the public page, once published); 'draft' — a regenerate on a published study owes the review draft one. Null once the request is answered — poll `studies.get` until it is: by the written summary (`executiveSummary` or `executiveSummaryDraft`), by a later act that superseded it (a publish, a newer regenerate — its own write answers it), or as unavailable (`executiveSummaryUnavailableAt` set). While the automatic retries back off after a failed attempt it stays pending. Absent where the product has no review drafts.","anyOf":[{"type":"string","enum":["live","draft"]},{"type":"null"}]},"executiveSummaryRequestedAt":{"description":"When `executiveSummaryRequest` was made.","anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryUnavailableAt":{"description":"When the last summary request was answered as UNAVAILABLE: every attempt the retry policy allows on the study's readout failed, so no summary will be written for it until the readout changes (runs added, a re-run, a regrade) or someone regenerates or publishes again. Null otherwise; cleared by a new request or a written summary. Absent where the product has no review drafts.","anyOf":[{"type":"string"},{"type":"null"}]},"plannedRunCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The exact number of runs `launch` will fan out (taskCount × variantsPerTask × repeats × matrix cells × arms). Check this BEFORE launching."},"organizationId":{"type":"string"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"slug":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillRef":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillSlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillName":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillPromise":{"type":"string"},"subjectKind":{"type":"string","enum":["skill","tools","addon","custom","benchmark","site"],"description":"What the study measures. 'skill': an agent skill (requires skillRef; the treatment arm runs with the skill attached). 'tools': the run's tool policy (web tools on vs off). 'addon': one run add-on (tavily, brave, desktop, mcp, secrets…). 'custom': any composition of skill + tools + add-ons, both arms fully spelled out in armConfig. 'benchmark': a pinned version of a catalog benchmark definition (requires definitionVersionId); the corpus is copied frozen from that version. Every comparisonMode applies: 'single' is a harness × model shootout whose ONE arm may carry your setup in armConfig.treatment (armConfig.baseline is refused); 'ab_vs_none' runs the setup in armConfig.treatment against the bare benchmark; 'ab_custom' runs two labelled setups (armConfig.baseline and armConfig.treatment) head to head. An A/B study needs a setup under test and two arms that differ. An arm that carries a setup is not the benchmark's bare protocol, so it does not seed the public leaderboard."},"subjectName":{"anyOf":[{"type":"string"},{"type":"null"}]},"siteDomain":{"description":"The website a 'site' study is run against (its host); absent for every other subject kind.","type":"string"},"subjectLabel":{"type":"string"},"armConfig":{"type":"object","properties":{"baseline":{"description":"The baseline arm's run-payload delta. Omitted = a bare run (no skill, no extras).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false},"treatment":{"description":"The treatment arm's run-payload delta (the thing under test).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"additionalProperties":false,"description":"Frozen per-arm run-payload deltas. Required for subjectKind 'custom' and comparisonMode 'ab_custom'; for 'tools'/'addon' subjects the treatment side is derived when omitted."},"comparisonMode":{"type":"string","enum":["ab_vs_none","ab_custom","single"],"description":"The baseline design. 'ab_vs_none' (default): treatment vs a bare baseline — classic A/B. 'ab_custom': BOTH arms explicitly configured via armConfig, labeled by baselineLabel/treatmentLabel (e.g. 'Remote MCP' vs 'REST API'). 'single': no baseline — one arm per (harness, model) cell, ranked into a leaderboard (verdict 'measured')."},"subjectBackend":{"anyOf":[{"type":"string","enum":["model","harness"],"description":"What answers a FRAMEWORK benchmark's requests: 'harness' — each request is answered by the cell's agent harness (the model inside its own loop, with the arm's tools, add-ons and skills), one agent run per request; 'model' — the framework's own client calls the cell's model directly and the cell's harness is not measured. Resolved once per study and recorded on every run."},{"type":"null"}]},"environmentExecutionPolicy":{"type":"string","enum":["legacy-v1","inside-v1"]},"importedFrom":{"type":"string"},"baselineLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"treatmentLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"promiseMetrics":{"type":"array","items":{"type":"object","properties":{"metric":{"type":"string","enum":["total_tokens","output_tokens","cost_usd","duration_ms","num_turns","success_rate","completion_rate","goal_rate"]},"direction":{"type":"string","enum":["down","up"]},"label":{"type":"string","minLength":1,"maxLength":120}},"required":["metric","direction","label"],"additionalProperties":false}},"matrix":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1,"maxLength":50,"description":"Harness id — the valid set (and each one's models) is GET /catalog; cells are validated against it at create."},"model":{"type":"string","minLength":1,"maxLength":100,"description":"Model id as the harness accepts it — valid ids per harness/provider are in GET /catalog (e.g. 'claude-sonnet-5', 'gpt-5.5')."},"provider":{"description":"Provider qualifier for multi-provider harnesses (e.g. 'anthropic', 'openai', 'google'). Omit to use the harness default.","type":"string","minLength":1,"maxLength":32},"params":{"description":"Provider params pinned for this cell (temperature, reasoningEffort, maxOutputTokens, thinkingBudgetTokens). A cell that pins none runs the provider's own defaults. Offered only where the harness declares support — see GET /catalog.","type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"maxOutputTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reasoningEffort":{"type":"string","enum":["low","medium","high"]},"thinkingBudgetTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"codeMode":{"type":"string","enum":["auto","on","off"]},"toolSearch":{"type":"string","enum":["on","off","directory"]},"location":{"type":"string","pattern":"^[A-Z]{2}$"},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$"}},"additionalProperties":false}},"required":["harness","model"],"additionalProperties":false,"description":"One (harness, model, params) cell — every task runs its arm(s) on every cell."}},"lenses":{"minItems":1,"type":"array","items":{"type":"string","enum":["judge","evals","reference","framework","execution","verifier"]},"description":"Which grading lenses this study runs under. Defaults to ['judge'] at create and stays editable while status is 'ready' (frozen at launch, like task expectations/rubrics). 'judge': the LLM judge panel (rubric grades + blind pairwise). 'evals': the deterministic @ora/eval-checks engine, scored against each task's authored expectations. 'reference': the static-QA lens — an answer extracted from the response and matched against the task's own reference key, scored 1/0 (spec §6.4). 'framework': the benchmark's OWN framework (HELM today) reports the metrics, mapped verbatim into a section rather than re-averaged (SP2 Task 9). 'execution': the candidate's code is extracted from the response and run against the task's own tests inside a sandboxed, network-less runner image (SP2 Task 16)."},"judgeSupplementary":{"type":"boolean"},"taskCount":{"type":"number"},"variantsPerTask":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Semantics-preserving paraphrases sampled per task (1-5; mirrors the create body's variantsPerTask). Absent at create defaults to 1 — every response reports a concrete value, including studies created before sampling existed."},"repeats":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Identical re-runs sampled per condition (1-10; mirrors the create body's repeats). Absent at create defaults to 1 — every response reports a concrete value, including studies created before sampling existed."},"subset":{"anyOf":[{"type":"object","properties":{"count":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"seed":{"type":"string","minLength":1},"of":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["count","seed","of"],"additionalProperties":false},{"type":"null"}]},"status":{"type":"string"},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"preparation":{"anyOf":[{"type":"object","properties":{"since":{"type":"string"},"progressAt":{"type":"string"},"launchedBy":{"type":"object","properties":{"userId":{"type":"string"},"role":{"type":"string"}},"additionalProperties":false},"waitingOn":{"type":"array","items":{"type":"object","properties":{"imageKey":{"type":"string"},"buildId":{"type":"string"},"stage":{"type":"string","enum":["image","snapshot"]},"retry":{"type":"object","properties":{"failedAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maxAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"notBefore":{"type":"string"},"lastFailure":{"type":"string"}},"required":["failedAttempts","maxAttempts","notBefore","lastFailure"],"additionalProperties":false}},"required":["imageKey","buildId"],"additionalProperties":false}}},"required":["since","launchedBy","waitingOn"],"additionalProperties":false},{"type":"null"}]},"visibility":{"type":"string","enum":["private","org","link","public"],"description":"Who may read this study: private (creator + org owners) | org (the whole org) | link (anyone holding ?share=<token>, unlisted) | public (everyone, listed)."},"visibilityChangedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"visibilityChangedBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"shareToken":{"anyOf":[{"type":"string"},{"type":"null"}]},"lowSampleOverride":{"type":"boolean","description":"True iff this study was explicitly published below the sample-size floor (spec A6) — the published page shows a low-sample badge when set."},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"verdict":{},"definitionVersionId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The benchmark definition VERSION this study pinned at create — non-null only for subjectKind 'benchmark'. Its corpus was copied frozen from that version, so the study stays reproducible when the definition publishes a newer one."},"runnerKind":{"type":"string","enum":["ora-runs","batch-job"],"description":"Which executor fans this study out: 'ora-runs' (the ora runs spine) or 'batch-job' (a built runner image)."},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"liveUntil":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When this study's live stream stops being held open (null while it is still running). Attaching before it yields the remaining post-terminal frames (gradings, recordings, refined verdicts)."}},"required":["id","plannedRunCount","organizationId","createdBy","name","slug","description","skillRef","skillSlug","skillName","skillPromise","subjectKind","subjectName","subjectLabel","armConfig","comparisonMode","subjectBackend","baselineLabel","treatmentLabel","promiseMetrics","matrix","lenses","taskCount","variantsPerTask","repeats","subset","status","error","visibility","lowSampleOverride","publishedAt","verdict","definitionVersionId","runnerKind","createdAt","updatedAt","liveUntil"],"additionalProperties":false,"description":"The launched arena's underlying study. The key is `benchmark` because the arena shipped with it, before benchmarks were renamed studies; `streamUrl` is this study's stream."},"streamUrl":{"type":"string","description":"The study's live SSE stream, relative to this API origin. Frames: status (draft/generating/ready/running/completed/failed — terminal closes the stream), run (per-run fact updates), grading, published/unpublished. `ora … --watch` follows it automatically."}},"required":["benchmark","streamUrl"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"arena_unsupported / benchmark_subject_invalid — the chosen arm is not offered for the chosen harness, or the composed benchmark breaks a spine rule","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"benchmarks:write","x-ora-product":"experiment","x-ora-service":"experiments-service"}},"/experiment/v1/webmcp/runs/{runId}/browser/recording":{"get":{"operationId":"webmcp.runs.browserRecording","summary":"The run's RECORDED browser screencast (time travel): frames stamped from the recording start, replayable and scrubbable after the run ends","parameters":[{"name":"runId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"maxFrames","in":"query","required":false,"schema":{"type":"integer","exclusiveMinimum":0,"maximum":5000}}],"responses":{"200":{"description":"The run's RECORDED browser screencast (time travel): frames stamped from the recording start, replayable and scrubbable after the run ends","content":{"application/json":{"schema":{"type":"object","properties":{"runId":{"type":"string"},"startedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"durationMs":{"type":"number"},"frames":{"type":"array","items":{"type":"object","properties":{"t":{"type":"number"},"data":{"type":"string"},"url":{"type":"string"}},"required":["t","data"],"additionalProperties":false}},"truncated":{"type":"boolean"},"decimated":{"type":"boolean"},"totalFrames":{"type":"number"}},"required":["runId","startedAt","durationMs","frames"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"run_not_found / no recording was captured for this run","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"benchmarks:read","x-ora-product":"experiment","x-ora-service":"experiments-service"}},"/experiment/v1/webmcp/runs/{runId}/browser/stream":{"get":{"operationId":"webmcp.runs.browserStream","summary":"Live browser view of an arena run (SSE JPEG frames relayed from the run pod's driven browser)","parameters":[{"name":"runId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Live browser view of an arena run (SSE JPEG frames relayed from the run pod's driven browser)","content":{"application/json":{"schema":{}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"benchmarks:read","x-ora-product":"experiment","x-ora-service":"experiments-service"}},"/studio/v1/activity":{"get":{"operationId":"activity.list","summary":"The org's account-change activity feed","parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":100,"type":"integer","minimum":1,"maximum":500}},{"name":"offset","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":100000}}],"responses":{"200":{"description":"The org's account-change activity feed","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string"},"owner":{"type":"string"},"type":{"type":"string"},"cadence":{"type":"string"},"kind":{"type":"string"},"action":{"type":"string"},"targetType":{"anyOf":[{"type":"string"},{"type":"null"}]},"targetId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","createdAt","owner","type","cadence","kind","action","targetType","targetId"],"additionalProperties":false}}},"required":["success","data"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"activity:read","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/agent-front/domains/{entityId}/tools":{"get":{"operationId":"actions.overview","summary":"Read the site's agent tools, their versions, releases and recent generations","description":"Every tool on the site — request tools and generated tools — with each version, which version is live, the active release and recent generations. Read this first: the ids every other operation takes come from it.","parameters":[{"name":"entityId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"Read the site's agent tools, their versions, releases and recent generations","content":{"application/json":{"schema":{"type":"object","properties":{"catalog":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"ownerRef":{"type":"string"},"siteUrl":{"type":"string"},"activeReleaseId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","ownerRef","siteUrl","activeReleaseId","createdAt"],"additionalProperties":false},{"type":"null"}]},"syntheses":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"catalogId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"siteUrl":{"type":"string"},"status":{"type":"string","enum":["queued","running","awaiting_review","succeeded","failed","canceled"]},"job":{"type":"string","enum":["discover","build"]},"purpose":{"default":"discover","type":"string","enum":["discover","setup"]},"phase":{"anyOf":[{"type":"string"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"goals":{"anyOf":[{"type":"string"},{"type":"null"}]},"maxTools":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"review":{"type":"boolean"},"generationMode":{"type":"string","enum":["typescript","jsonata"]},"toolCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"verifiedCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"eventSeq":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string"},"startedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","catalogId","siteUrl","status","job","purpose","phase","error","goals","maxTools","review","generationMode","toolCount","verifiedCount","eventSeq","createdAt","startedAt","finishedAt"],"additionalProperties":false}},"tools":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"versions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"toolId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"toolName":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"verdict":{"type":"string","enum":["verified","failed"]},"learner":{"anyOf":[{"type":"string"},{"type":"null"}]},"format":{"anyOf":[{"type":"string"},{"type":"null"}]},"synthesisId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","toolId","toolName","version","verdict","learner","format","synthesisId","createdAt"],"additionalProperties":false}},"activeVersionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["id","name","versions","activeVersionId"],"additionalProperties":false}},"releases":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"note":{"anyOf":[{"type":"string"},{"type":"null"}]},"publishedBy":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"createdAt":{"type":"string"},"active":{"type":"boolean"},"items":{"type":"array","items":{"type":"object","properties":{"toolId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"toolName":{"type":"string"},"toolVersionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["toolId","toolName","toolVersionId","version"],"additionalProperties":false}}},"required":["id","version","note","publishedBy","createdAt","active","items"],"additionalProperties":false}},"setup":{"default":null,"anyOf":[{"type":"object","properties":{"state":{"type":"string","enum":["setting_up","done","failed"]},"siteType":{"type":"string","enum":["store","app","business","content","unknown"]},"startedAt":{"type":"string"},"synthesisId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"requestTools":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"found":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"retriesLeft":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["state","siteType","startedAt","synthesisId","requestTools","found","retriesLeft","error"],"additionalProperties":false},{"type":"null"}]}},"required":["catalog","syntheses","tools","releases","setup"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"actions:read","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/agent-front/domains/{entityId}/tools/releases":{"post":{"operationId":"actions.publish","summary":"Publish a release of tool versions and make it active","description":"Publish several versions at once (and remove tools) as one release that becomes active. `expectedActiveReleaseId` is the release you saw active; a mismatch is a 409. For one tool, turning it on or off is simpler.","parameters":[{"name":"entityId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"versionIds":{"maxItems":64,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"removeToolIds":{"default":[],"maxItems":64,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"expectedActiveReleaseId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"note":{"type":"string","maxLength":500}},"required":["versionIds","expectedActiveReleaseId"]}}}},"responses":{"201":{"description":"Publish a release of tool versions and make it active","content":{"application/json":{"schema":{"type":"object","properties":{"release":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"note":{"anyOf":[{"type":"string"},{"type":"null"}]},"publishedBy":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"createdAt":{"type":"string"},"active":{"type":"boolean"},"items":{"type":"array","items":{"type":"object","properties":{"toolId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"toolName":{"type":"string"},"toolVersionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["toolId","toolName","toolVersionId","version"],"additionalProperties":false}}},"required":["id","version","note","publishedBy","createdAt","active","items"],"additionalProperties":false}},"required":["release"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"actions:write","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/agent-front/domains/{entityId}/tools/request-templates":{"get":{"operationId":"actions.requestTemplates","summary":"The templates a request tool starts from (book a demo, contact sales…)","description":"The templates a request tool starts from (book a demo, contact sales…), each with its key.","parameters":[{"name":"entityId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"The templates a request tool starts from (book a demo, contact sales…)","content":{"application/json":{"schema":{"type":"object","properties":{"templates":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"}},"required":["key","title","description"],"additionalProperties":false}}},"required":["templates"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"actions:read","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/agent-front/domains/{entityId}/tools/request-tools":{"post":{"operationId":"actions.createRequestTool","summary":"Add a request tool to the site from a template","description":"Add a request tool from a template. `mode` says how a request reaches the business: `inbox` (ora's inbox), `deliver` (POST to `webhookUrl`, https) or `link` (send the person to `pageUrl`).","parameters":[{"name":"entityId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","enum":["inbox","deliver","link"]},"title":{"type":"string","minLength":1,"maxLength":120},"about":{"type":"string","maxLength":500},"template":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"},"webhookUrl":{"type":"string","maxLength":2048,"format":"uri"},"pageUrl":{"type":"string","maxLength":2048,"format":"uri"}},"required":["mode","template"]}}}},"responses":{"201":{"description":"Add a request tool to the site from a template","content":{"application/json":{"schema":{"type":"object","properties":{"toolId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"versionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["toolId","versionId"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"actions:write","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/agent-front/domains/{entityId}/tools/request-tools/{id}":{"patch":{"operationId":"actions.updateRequestTool","summary":"Change how a request tool reaches the business; a live tool stays live","description":"Change a request tool's mode, title, description or URLs. A live tool stays live on its new version. `null` clears a URL; an absent field keeps it.","parameters":[{"name":"entityId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","enum":["inbox","deliver","link"]},"title":{"type":"string","minLength":1,"maxLength":120},"about":{"type":"string","maxLength":500},"webhookUrl":{"anyOf":[{"type":"string","maxLength":2048,"format":"uri"},{"type":"null"}]},"pageUrl":{"anyOf":[{"type":"string","maxLength":2048,"format":"uri"},{"type":"null"}]}},"required":["mode"]}}}},"responses":{"200":{"description":"Change how a request tool reaches the business; a live tool stays live","content":{"application/json":{"schema":{"type":"object","properties":{"toolId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"versionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["toolId","versionId"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"actions:write","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/agent-front/domains/{entityId}/tools/tools":{"post":{"operationId":"actions.createTool","summary":"Add a tool your coding agent wrote","description":"Add a tool you wrote. `source` is TypeScript (at most 64 KiB) that exports `default async function execute(args: Input, actions: Actions): Promise<Output>`, where `Input` and `Output` are `inputSchema` and `outputSchema` as types. It reaches the site only through `actions.http.request({ url, method, headers, body })`, which answers `{ status, headers, body, url }`. ora type-checks it (strict) and answers 400 with the compiler's messages when it does not compile. The tool may make GET and HEAD requests to the site's own origin and nothing else: ora sets that, never the source. ora does not try a tool you write: run it with `execute` first. The answer is the tool and its first version, not live until you turn it on. Agents see `name`, `title`, `description` and the schemas: describe when to call it.","parameters":[{"name":"entityId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":120},"description":{"type":"string","minLength":20,"maxLength":2000},"inputSchema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"outputSchema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"examples":{"minItems":1,"maxItems":8,"type":"array","items":{"type":"object","properties":{"args":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"note":{"type":"string","maxLength":500}},"required":["args"]}},"name":{"type":"string","pattern":"^[a-z][a-z0-9_]{1,63}$"},"source":{"type":"string","minLength":1,"maxLength":65536}},"required":["title","description","inputSchema","outputSchema","examples","name","source"]}}}},"responses":{"201":{"description":"Add a tool your coding agent wrote","content":{"application/json":{"schema":{"type":"object","properties":{"toolId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"versionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["toolId","versionId"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"actions:write","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/agent-front/domains/{entityId}/tools/tools/{id}/live":{"post":{"operationId":"actions.setLive","summary":"Turn one tool on or off for agents","description":"Turn one tool on (`versionId`: a verified version) or off (`versionId: null`). `expectedVersionId` is the version you saw live (null: off); if it changed meanwhile the answer is 409 — read the overview again.","parameters":[{"name":"entityId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"versionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"expectedVersionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["versionId","expectedVersionId"]}}}},"responses":{"200":{"description":"Turn one tool on or off for agents","content":{"application/json":{"schema":{"type":"object","properties":{"toolId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"activeVersionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"releaseId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["toolId","activeVersionId","releaseId"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"actions:write","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/agent-front/domains/{entityId}/tools/tools/{id}/versions":{"post":{"operationId":"actions.saveVersion","summary":"Save a tool's next version as your coding agent edited it","description":"Save a tool's next version from the version you read (`basedOn`, a version of this tool that works): send only what you change — the definition fields, `source` (TypeScript, as for a new tool), or both; the rest is the base version's. A tool's source is type-checked again against its definition, so a definition change that breaks it is a 400 with the compiler's messages. The new version keeps the base version's permissions and its app, ora does not try it, and it is not live until you turn it on. An edit that changes nothing is refused. Request tools change with their own operation.","parameters":[{"name":"entityId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":120},"description":{"type":"string","minLength":20,"maxLength":2000},"inputSchema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"outputSchema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"examples":{"minItems":1,"maxItems":8,"type":"array","items":{"type":"object","properties":{"args":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"note":{"type":"string","maxLength":500}},"required":["args"]}},"basedOn":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"source":{"type":"string","minLength":1,"maxLength":65536}},"required":["basedOn"]}}}},"responses":{"201":{"description":"Save a tool's next version as your coding agent edited it","content":{"application/json":{"schema":{"type":"object","properties":{"toolId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"versionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["toolId","versionId"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"actions:write","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/agent-front/domains/{entityId}/tools/versions/{id}":{"get":{"operationId":"actions.version","summary":"Read a tool version's definition, executor and verification report","description":"One tool version: its definition (name, description, input schema), executor and verification report.","parameters":[{"name":"entityId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Read a tool version's definition, executor and verification report","content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"toolId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"toolName":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"verdict":{"type":"string","enum":["verified","failed"]},"learner":{"anyOf":[{"type":"string"},{"type":"null"}]},"format":{"anyOf":[{"type":"string"},{"type":"null"}]},"synthesisId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"createdAt":{"type":"string"},"spec":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"implementation":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"policy":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"candidateId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"verificationDigest":{"anyOf":[{"type":"string"},{"type":"null"}]},"report":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"attempts":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"origin":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"ui":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]}},"required":["id","toolId","toolName","version","verdict","learner","format","synthesisId","createdAt","spec","implementation","policy","candidateId","verificationDigest","report","attempts","origin","ui"],"additionalProperties":false}},"required":["version"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"actions:read","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/agent-front/domains/{entityId}/tools/versions/{id}/execute":{"post":{"operationId":"actions.execute","summary":"Try a tool version against the live site","description":"Run a tool version against the live site with `args` and read its output. `mode: preview` (the default) tries a version before it is live. Each run is metered.","parameters":[{"name":"entityId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"mode":{"default":"preview","type":"string","enum":["preview","published"]}}}}}},"responses":{"200":{"description":"Try a tool version against the live site","content":{"application/json":{"schema":{"type":"object","properties":{"invocationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"browserMs":{"type":"number","minimum":0},"outcome":{"type":"string","enum":["not_started","completed","unknown"]},"ok":{"type":"boolean"},"output":{},"echo":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"oraclePage":{"type":"string"},"error":{"type":"string"},"errorCode":{"type":"string"},"blocked":{"type":"boolean"},"transport":{"type":"string"},"ms":{"type":"number"},"steps":{"type":"array","items":{"type":"object","properties":{"stepId":{"type":"string"},"skipped":{"type":"boolean"},"cached":{"type":"boolean"},"transport":{"type":"string"},"status":{"type":"number"},"ms":{"type":"number"},"url":{"type":"string"}},"required":["stepId","skipped","ms"],"additionalProperties":false}}},"required":["ok","echo","ms","steps"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"actions:write","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/agent-front/domains/{entityId}/tools/versions/{id}/source":{"get":{"operationId":"actions.implementationSource","summary":"Inspect generated source","description":"The TypeScript a tool version runs. Read it before you edit a tool: it shows how the tool reaches the site (`actions.http.request`, and `actions.browser.request` when the tool may use ora's browser) and what it may import.","parameters":[{"name":"entityId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Inspect generated source","content":{"application/json":{"schema":{"type":"object","properties":{"language":{"type":"string","enum":["typescript","javascript"]},"source":{"type":"string"}},"required":["language","source"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"actions:read","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/agent-front/domains/{entityId}/tools/versions/{id}/ui":{"post":{"operationId":"actions.setUi","summary":"Give a verified tool version an app, or take its app away","description":"Give a verified generated tool version an MCP app you write, or take its app away (`ui: null`). The answer is a NEW version: the same executor and verification, with your app; it is not live until you turn it on. The app is one self-contained HTML document (inline scripts and styles, at most 512,000 bytes). The agent's host renders it in a sandboxed iframe whose Content-Security-Policy allows inline code and nothing else, except the https origins you list in `csp.resourceDomains` (images, fonts) and `csp.connectDomains` (fetch). The app and the host speak JSON-RPC 2.0 over `postMessage` with the parent window (MCP Apps): the app sends the request `ui/initialize`, then the notification `ui/notifications/initialized`; the host sends `ui/notifications/tool-result`, whose `params.structuredContent` is the tool's output as its output schema describes it. Whenever the app's content changes height (first after it draws the result), it sends the notification `ui/notifications/size-changed` with `params.height` in pixels; without it the host keeps the frame at its small default height. Request tools take no app.","parameters":[{"name":"entityId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ui":{"anyOf":[{"type":"object","properties":{"html":{"type":"string","minLength":1},"csp":{"default":{"connectDomains":[],"resourceDomains":[]},"type":"object","properties":{"connectDomains":{"default":[],"maxItems":16,"type":"array","items":{"type":"string","pattern":"^https:\\/\\/[a-z0-9.-]+(:\\d+)?$"}},"resourceDomains":{"default":[],"maxItems":16,"type":"array","items":{"type":"string","pattern":"^https:\\/\\/[a-z0-9.-]+(:\\d+)?$"}}},"additionalProperties":false},"prefersBorder":{"type":"boolean"}},"required":["html"],"additionalProperties":false},{"type":"null"}]}},"required":["ui"]}}}},"responses":{"201":{"description":"Give a verified tool version an app, or take its app away","content":{"application/json":{"schema":{"type":"object","properties":{"toolId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"versionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["toolId","versionId"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"actions:write","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/agent-skills":{"get":{"operationId":"studio.agentSkills.list","summary":"List the Agent Skills Studio hands to signed-in customers, with each one's version and the minimum ora CLI version it needs","responses":{"200":{"description":"List the Agent Skills Studio hands to signed-in customers, with each one's version and the minimum ora CLI version it needs","content":{"application/json":{"schema":{"type":"object","properties":{"skills":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"version":{"anyOf":[{"type":"string"},{"type":"null"}]},"minCliVersion":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["name","description","version","minCliVersion"],"additionalProperties":false}}},"required":["skills"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"intents:read","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/agent-skills/{name}":{"get":{"operationId":"studio.agentSkills.get","summary":"One Agent Skill's files (SKILL.md and its references), to install with `ora skills studio add <name>`","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64}}],"responses":{"200":{"description":"One Agent Skill's files (SKILL.md and its references), to install with `ora skills studio add <name>`","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"version":{"anyOf":[{"type":"string"},{"type":"null"}]},"minCliVersion":{"anyOf":[{"type":"string"},{"type":"null"}]},"files":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"content":{"type":"string"}},"required":["path","content"],"additionalProperties":false}}},"required":["name","description","version","minCliVersion","files"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No skill with this name (skill_not_found).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"intents:read","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/agents":{"get":{"operationId":"agents","summary":"The agents (harness × model) Studio can measure with for your organization. `available: false` gives the reason, such as a plan that doesn't include it. Use these pairs as `agents` in intents measurement-policy, intents bulk-create and journeys create","responses":{"200":{"description":"The agents (harness × model) Studio can measure with for your organization. `available: false` gives the reason, such as a plan that doesn't include it. Use these pairs as `agents` in intents measurement-policy, intents bulk-create and journeys create","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{"type":"object","properties":{"agents":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string"},"harnessName":{"type":"string"},"model":{"type":"string"},"modelName":{"type":"string"},"provider":{"type":"string"},"available":{"type":"boolean"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["harness","harnessName","model","modelName","provider","available","reason"],"additionalProperties":false}}},"required":["agents"],"additionalProperties":false}},"required":["success","data"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"intents:read","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/analytics/export.csv":{"get":{"operationId":"analytics.export","summary":"The same Overview data as a downloadable CSV","parameters":[{"name":"range","in":"query","required":false,"schema":{"default":"30d","type":"string","enum":["7d","30d","90d","12m"]}},{"name":"domain","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"intents","in":"query","required":false,"schema":{"type":"string"}},{"name":"models","in":"query","required":false,"schema":{"type":"string"}},{"name":"layers","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}}],"responses":{"200":{"description":"The same Overview data as a downloadable CSV","content":{"application/json":{"schema":{}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"analytics:read","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/analytics/overview":{"get":{"operationId":"analytics.overview","summary":"The org's analytics Overview dashboard payload","parameters":[{"name":"range","in":"query","required":false,"schema":{"default":"30d","type":"string","enum":["7d","30d","90d","12m"]}},{"name":"domain","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"intents","in":"query","required":false,"schema":{"type":"string"}},{"name":"models","in":"query","required":false,"schema":{"type":"string"}},{"name":"layers","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}}],"responses":{"200":{"description":"The org's analytics Overview dashboard payload","content":{"application/json":{"schema":{"type":"object","properties":{"health":{"type":"object","properties":{"score":{"anyOf":[{"type":"number"},{"type":"null"}]},"grade":{"anyOf":[{"type":"string"},{"type":"null"}]},"delta":{"anyOf":[{"type":"number"},{"type":"null"}]},"series":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string"},"value":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["day","value"],"additionalProperties":false}}},"required":["score","grade","delta","series"],"additionalProperties":false},"visibility":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"rank":{"type":"object","properties":{"position":{"anyOf":[{"type":"number"},{"type":"null"}]},"delta":{"anyOf":[{"type":"number"},{"type":"null"}]},"leaderboard":{"type":"array","items":{}}},"required":["position","delta","leaderboard"],"additionalProperties":false},"shareOfVoice":{"type":"object","properties":{"rows":{"type":"array","items":{}},"totals":{"type":"object","properties":{"engines":{"type":"number"},"prompts":{"type":"number"}},"required":["engines","prompts"],"additionalProperties":false}},"required":["rows","totals"],"additionalProperties":false},"sentiment":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"citationCategories":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"topDomains":{"type":"array","items":{}},"access":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"availableIntents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"}},"required":["id","title"],"additionalProperties":false}},"availableModels":{"type":"array","items":{"type":"string"}}},"required":["health","visibility","rank","shareOfVoice","sentiment","citationCategories","topDomains","access","availableIntents","availableModels"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"analytics:read","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/audits":{"post":{"operationId":"audit.run","summary":"Audit a domain's agent readiness. Returns the audit id at once; follow it with --watch or read it with audit.result","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"string","minLength":1,"description":"The domain to audit, e.g. example.com"},"mcpUrl":{"description":"The site's MCP server URL, when it has one","type":"string"},"fresh":{"description":"Run a new audit rather than reuse a recent result. Default true","type":"boolean"}},"required":["domain"]},"example":{"domain":"example.com"}}}},"responses":{"200":{"description":"Audit a domain's agent readiness. Returns the audit id at once; follow it with --watch or read it with audit.result","content":{"application/json":{"schema":{"type":"object","properties":{"scanId":{"type":"string"},"status":{"type":"string"},"reattached":{"type":"boolean","description":"True when an audit of this domain was already running and you joined it"},"streamUrl":{"type":"string","description":"This audit's live progress (SSE). ora audit run --watch follows it for you"}},"required":["scanId","status","reattached","streamUrl"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"audits:write","x-ora-product":"studio","x-ora-cli-arguments":["domain"],"x-ora-service":"studio-service"}},"/studio/v1/audits/{id}":{"get":{"operationId":"audit.result","summary":"One audit: its status and, once it finishes, its score and checks","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"One audit: its status and, once it finishes, its score and checks","content":{"application/json":{"schema":{"type":"object","properties":{"scan":{"type":"object","properties":{"id":{"type":"string"},"provider":{"type":"string"},"status":{"type":"string"},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"result":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"provisional":{"type":"boolean"},"redirected":{"type":"boolean"}},"required":["id","provider","status","error","result","provisional","redirected"],"additionalProperties":false},"capabilities":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"boolean"}}},"required":["scan","capabilities"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"audits:read","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/audits/{id}/stream":{"get":{"operationId":"audit.stream","summary":"Follow one audit live (SSE): its checks as they finish, then the score, and the stream closes","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Follow one audit live (SSE): its checks as they finish, then the score, and the stream closes","content":{"application/json":{"schema":{}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"audits:read","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/front/hosting":{"get":{"operationId":"front.hosting.detect","tags":["Front connection"],"summary":"Detect where a website is hosted","description":"Reads a website's public signals to suggest its host (WP Engine, Kinsta, Webflow, Hostinger), the value a managed connection's `hostingProvider` takes. A hint, never proof. The URL's host must be one of the organization's sites or beneath one.","parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":2048,"description":"The website: a hostname (www.acme.com) or a URL. It must be one of the organization's sites, or beneath one."},"example":"www.acme.com"}],"responses":{"200":{"description":"Detect where a website is hosted","content":{"application/json":{"schema":{"type":"object","properties":{"hostname":{"type":"string","description":"The hostname checked"},"siteId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The organization's site it belongs to"},"status":{"type":"string","enum":["detected","unknown","ambiguous","unavailable"],"description":"detected: one host's signals were found. unknown: none were. ambiguous: several hosts' were. unavailable: the check could not run; try again later."},"hostingProvider":{"anyOf":[{"type":"string","enum":["wpengine","kinsta","webflow","hostinger"]},{"type":"null"}],"description":"The host, when detected. Anything else (CloudFront, your own servers) is not detected: choose it yourself."},"observedAt":{"type":"string","description":"UTC, ISO 8601"}},"required":["hostname","siteId","status","hostingProvider","observedAt"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"The URL's host is not one of the organization's sites, nor beneath one (HOSTNAME_OUTSIDE_SITES).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.connect:read","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_detect_hosting","title":"Detect where a website is hosted","description":"Reads a website's public signals to suggest its host (WP Engine, Kinsta, Webflow, Hostinger), the value a managed connection's `hostingProvider` takes. A hint, never proof. The URL's host must be one of the organization's sites or beneath one.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"url":{"type":"string","minLength":1,"maxLength":2048,"description":"The website: a hostname (www.acme.com) or a URL. It must be one of the organization's sites, or beneath one."}},"required":["url"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"hostname":{"type":"string","description":"The hostname checked"},"siteId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The organization's site it belongs to"},"status":{"type":"string","enum":["detected","unknown","ambiguous","unavailable"],"description":"detected: one host's signals were found. unknown: none were. ambiguous: several hosts' were. unavailable: the check could not run; try again later."},"hostingProvider":{"anyOf":[{"type":"string","enum":["wpengine","kinsta","webflow","hostinger"]},{"type":"null"}],"description":"The host, when detected. Anything else (CloudFront, your own servers) is not detected: choose it yourself."},"observedAt":{"type":"string","description":"UTC, ISO 8601"}},"required":["hostname","siteId","status","hostingProvider","observedAt"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true},"request":{"query":["url"]}}}},"/studio/v1/front/sites":{"get":{"operationId":"front.sites.list","tags":["Front sites"],"summary":"List the organization's Front sites","description":"Every Front site of the organization, newest first, as the caller may see it. Pass `hostname` to find one site by its host (it is canonicalized like a `{site}` value). Page with `cursor` and `limit`.","parameters":[{"name":"cursor","in":"query","required":false,"schema":{"description":"Where this page starts: the previous page's `nextCursor`. Leave it out for the first page.","type":"string","minLength":1,"maxLength":500}},{"name":"limit","in":"query","required":false,"schema":{"default":50,"description":"The most items one page holds: 1 to 200, 50 when left out.","type":"integer","minimum":1,"maximum":200},"example":20},{"name":"hostname","in":"query","required":false,"schema":{"description":"Find the site with this hostname (canonicalized)","type":"string","minLength":1,"maxLength":253}}],"responses":{"200":{"description":"List the organization's Front sites","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The site's id. It never changes: use it as `{site}` in the other Front operations."},"hostname":{"type":"string","description":"Canonical: punycode, lower case, no leading www., no trailing dot"},"status":{"type":"string","enum":["building","live","held","failed"],"description":"The site's lifecycle, separate from its builds: live once published (a later build never takes it down); before that, building, held (the build finished and waits to be published) or failed."},"build":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","description":"The build's id"},"kind":{"type":"string","enum":["first","rest_of_site","rebuild"],"description":"first: the site's first build, which reads at most firstBuildPages pages (front.usage.get) so the Front goes live fast. rest_of_site: reads the rest of the site after a first build that filled that allowance, when the plan allows more pages. rebuild: builds the site again (a retry, a rebuild from Studio, or catching up with a bigger plan)."},"state":{"type":"string","enum":["queued","running","live","held","failed","canceled"],"description":"held: finished, waiting to be published"},"step":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The step in progress (find, read, prepare); null once finished"},"pagesFound":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Pages the build found so far, counting no more than it may read. It never goes down."},"pagesRead":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Pages the build has read so far"},"failure":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"The reason as a stable code, such as robots_blocked, bot_protection, unreachable, js_only or no_content"},"detail":{"type":"string","description":"The reason in a sentence to show as is"}},"required":["code","detail"],"additionalProperties":false},{"type":"null"}],"description":"Why the build failed, or why it could not read the whole site"},"startedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the build started; null when unknown"},"finishedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the build ended; null while it is queued or running"}},"required":["id","kind","state","step","pagesFound","pagesRead","failure","startedAt","finishedAt"],"additionalProperties":false},{"type":"null"}],"description":"The site's latest build, running or finished; null when none is on record"},"address":{"anyOf":[{"type":"object","properties":{"name":{"type":"string","description":"The address's name (`acme` in https://acme.<serve-domain>): the site's claimed name, or its id while it has none"},"url":{"type":"string","description":"The agent address (`https://acme.<serve-domain>`): where agents reach the site's Front"},"mcpUrl":{"type":"string","description":"The agent address's MCP endpoint (`url` + `/mcp`), for when MCP is on there (see protocols)"},"llmsTxtUrl":{"type":"string","description":"The site's llms.txt at the agent address (`url` + `/llms.txt`): its index for agents"},"open":{"description":"Whether any protocol (NLWeb, MCP) answers visitors at the address. Derived from `protocols`, so present with front.connect:read only; switch the protocols with front.protocols.update.","type":"boolean"}},"required":["name","url","mcpUrl","llmsTxtUrl"],"additionalProperties":false},{"type":"null"}],"description":"The site's agent address: where agents reach its Front. Null until the site is first published."},"connection":{"description":"Only with front.connect:read","type":"object","properties":{"method":{"anyOf":[{"type":"string","enum":["managed","cloudflare","vercel","nextjs","express","other"]},{"type":"null"}],"description":"How the website's traffic reaches its Front. managed: Ora's CDN in front of the website. cloudflare, vercel, nextjs, express: a transmitter in the website's own stack. other: another stack, with no transmitter yet. Null until a method is saved."},"status":{"type":"string","enum":["not_connected","pending","connected","failed"],"description":"not_connected: no method is saved and Ora never heard from the website. pending: a method is saved and Ora waits for the website's first contact. connected: Ora heard from the website within the last 24 hours. failed: the last check failed, the managed CDN reports an error, or Ora heard nothing for over 24 hours."}},"required":["method","status"],"additionalProperties":false},"protocols":{"description":"Only with front.connect:read: which protocols are on","type":"object","properties":{"address":{"type":"object","properties":{"nlweb":{"type":"boolean","description":"Whether NLWeb is on: agents ask questions and get answers from the site's pages (/ask)"},"mcp":{"type":"boolean","description":"Whether MCP is on: assistants connect to the business as an MCP server"}},"required":["nlweb","mcp"],"additionalProperties":false,"description":"At the site's agent address"},"website":{"type":"object","properties":{"nlweb":{"type":"boolean","description":"Whether NLWeb is on: agents ask questions and get answers from the site's pages (/ask)"},"mcp":{"type":"boolean","description":"Whether MCP is on: assistants connect to the business as an MCP server"}},"required":["nlweb","mcp"],"additionalProperties":false,"description":"On the website itself, through its connection"}},"required":["address","website"],"additionalProperties":false},"serving":{"description":"Only with front.pages:read","type":"object","properties":{"mode":{"type":"string","enum":["off","monitor","autopilot"],"description":"How ora serves agents on the website itself (front.serving.get has the detail). off: ora serves nothing there; the connection only reports agent traffic. monitor: ora prepares everything but serves nothing. autopilot: ora serves agents."}},"required":["mode"],"additionalProperties":false},"nextSteps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["retry_setup","allow_reader","connect_website","verify_traffic","serve_agents","add_action"],"description":"retry_setup: the setup failed; retry it. allow_reader: robots.txt or a bot wall turned Ora's reader away; let it in, then check again. connect_website: connect the website so agents reach its Front. verify_traffic: check that agents' traffic reaches the Front. serve_agents: the website is connected; switch Agent Serving on (mode autopilot), the app's last setup step, which for a new site also turns on Ask, MCP, intents and Markdown for agents. add_action: add an action agents can take for your customers."},"done":{"type":"boolean","description":"Whether the step is done. connect_website, verify_traffic, serve_agents and add_action stay listed once done."},"title":{"type":"string","description":"The step, in a sentence to show as is"},"operation":{"type":"string","description":"The operation id that performs the step"}},"required":["id","done","title","operation"],"additionalProperties":false},"description":"What the site needs next, in the order a person meets them. Only steps of areas the caller can read are listed."},"version":{"type":"string","minLength":1,"description":"Monotonically increasing (compare as numbers); orders the site's snapshots and stream events"},"createdAt":{"type":"string","description":"UTC, ISO 8601"},"streamUrl":{"type":"string","description":"The site's status stream (GET, text/event-stream)"}},"required":["id","hostname","status","build","address","nextSteps","version","createdAt","streamUrl"],"additionalProperties":false},"description":"This page's items."},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Send it as `cursor` to read the next page. Null on the last page."}},"required":["items","nextCursor"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.sites:read","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_list_sites","title":"List the organization's Front sites","description":"Every Front site of the organization, newest first, as the caller may see it. Pass `hostname` to find one site by its host (it is canonicalized like a `{site}` value). Page with `cursor` and `limit`.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"cursor":{"description":"Where this page starts: the previous page's `nextCursor`. Leave it out for the first page.","type":"string","minLength":1,"maxLength":500},"limit":{"default":50,"description":"The most items one page holds: 1 to 200, 50 when left out.","type":"integer","minimum":1,"maximum":200},"hostname":{"description":"Find the site with this hostname (canonicalized)","type":"string","minLength":1,"maxLength":253}},"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The site's id. It never changes: use it as `{site}` in the other Front operations."},"hostname":{"type":"string","description":"Canonical: punycode, lower case, no leading www., no trailing dot"},"status":{"type":"string","enum":["building","live","held","failed"],"description":"The site's lifecycle, separate from its builds: live once published (a later build never takes it down); before that, building, held (the build finished and waits to be published) or failed."},"build":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","description":"The build's id"},"kind":{"type":"string","enum":["first","rest_of_site","rebuild"],"description":"first: the site's first build, which reads at most firstBuildPages pages (front.usage.get) so the Front goes live fast. rest_of_site: reads the rest of the site after a first build that filled that allowance, when the plan allows more pages. rebuild: builds the site again (a retry, a rebuild from Studio, or catching up with a bigger plan)."},"state":{"type":"string","enum":["queued","running","live","held","failed","canceled"],"description":"held: finished, waiting to be published"},"step":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The step in progress (find, read, prepare); null once finished"},"pagesFound":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Pages the build found so far, counting no more than it may read. It never goes down."},"pagesRead":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Pages the build has read so far"},"failure":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"The reason as a stable code, such as robots_blocked, bot_protection, unreachable, js_only or no_content"},"detail":{"type":"string","description":"The reason in a sentence to show as is"}},"required":["code","detail"],"additionalProperties":false},{"type":"null"}],"description":"Why the build failed, or why it could not read the whole site"},"startedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the build started; null when unknown"},"finishedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the build ended; null while it is queued or running"}},"required":["id","kind","state","step","pagesFound","pagesRead","failure","startedAt","finishedAt"],"additionalProperties":false},{"type":"null"}],"description":"The site's latest build, running or finished; null when none is on record"},"address":{"anyOf":[{"type":"object","properties":{"name":{"type":"string","description":"The address's name (`acme` in https://acme.<serve-domain>): the site's claimed name, or its id while it has none"},"url":{"type":"string","description":"The agent address (`https://acme.<serve-domain>`): where agents reach the site's Front"},"mcpUrl":{"type":"string","description":"The agent address's MCP endpoint (`url` + `/mcp`), for when MCP is on there (see protocols)"},"llmsTxtUrl":{"type":"string","description":"The site's llms.txt at the agent address (`url` + `/llms.txt`): its index for agents"},"open":{"description":"Whether any protocol (NLWeb, MCP) answers visitors at the address. Derived from `protocols`, so present with front.connect:read only; switch the protocols with front.protocols.update.","type":"boolean"}},"required":["name","url","mcpUrl","llmsTxtUrl"],"additionalProperties":false},{"type":"null"}],"description":"The site's agent address: where agents reach its Front. Null until the site is first published."},"connection":{"description":"Only with front.connect:read","type":"object","properties":{"method":{"anyOf":[{"type":"string","enum":["managed","cloudflare","vercel","nextjs","express","other"]},{"type":"null"}],"description":"How the website's traffic reaches its Front. managed: Ora's CDN in front of the website. cloudflare, vercel, nextjs, express: a transmitter in the website's own stack. other: another stack, with no transmitter yet. Null until a method is saved."},"status":{"type":"string","enum":["not_connected","pending","connected","failed"],"description":"not_connected: no method is saved and Ora never heard from the website. pending: a method is saved and Ora waits for the website's first contact. connected: Ora heard from the website within the last 24 hours. failed: the last check failed, the managed CDN reports an error, or Ora heard nothing for over 24 hours."}},"required":["method","status"],"additionalProperties":false},"protocols":{"description":"Only with front.connect:read: which protocols are on","type":"object","properties":{"address":{"type":"object","properties":{"nlweb":{"type":"boolean","description":"Whether NLWeb is on: agents ask questions and get answers from the site's pages (/ask)"},"mcp":{"type":"boolean","description":"Whether MCP is on: assistants connect to the business as an MCP server"}},"required":["nlweb","mcp"],"additionalProperties":false,"description":"At the site's agent address"},"website":{"type":"object","properties":{"nlweb":{"type":"boolean","description":"Whether NLWeb is on: agents ask questions and get answers from the site's pages (/ask)"},"mcp":{"type":"boolean","description":"Whether MCP is on: assistants connect to the business as an MCP server"}},"required":["nlweb","mcp"],"additionalProperties":false,"description":"On the website itself, through its connection"}},"required":["address","website"],"additionalProperties":false},"serving":{"description":"Only with front.pages:read","type":"object","properties":{"mode":{"type":"string","enum":["off","monitor","autopilot"],"description":"How ora serves agents on the website itself (front.serving.get has the detail). off: ora serves nothing there; the connection only reports agent traffic. monitor: ora prepares everything but serves nothing. autopilot: ora serves agents."}},"required":["mode"],"additionalProperties":false},"nextSteps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["retry_setup","allow_reader","connect_website","verify_traffic","serve_agents","add_action"],"description":"retry_setup: the setup failed; retry it. allow_reader: robots.txt or a bot wall turned Ora's reader away; let it in, then check again. connect_website: connect the website so agents reach its Front. verify_traffic: check that agents' traffic reaches the Front. serve_agents: the website is connected; switch Agent Serving on (mode autopilot), the app's last setup step, which for a new site also turns on Ask, MCP, intents and Markdown for agents. add_action: add an action agents can take for your customers."},"done":{"type":"boolean","description":"Whether the step is done. connect_website, verify_traffic, serve_agents and add_action stay listed once done."},"title":{"type":"string","description":"The step, in a sentence to show as is"},"operation":{"type":"string","description":"The operation id that performs the step"}},"required":["id","done","title","operation"],"additionalProperties":false},"description":"What the site needs next, in the order a person meets them. Only steps of areas the caller can read are listed."},"version":{"type":"string","minLength":1,"description":"Monotonically increasing (compare as numbers); orders the site's snapshots and stream events"},"createdAt":{"type":"string","description":"UTC, ISO 8601"},"streamUrl":{"type":"string","description":"The site's status stream (GET, text/event-stream)"}},"required":["id","hostname","status","build","address","nextSteps","version","createdAt","streamUrl"],"additionalProperties":false},"description":"This page's items."},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Send it as `cursor` to read the next page. Null on the last page."}},"required":["items","nextCursor"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"request":{"query":["cursor","limit","hostname"]}}},"post":{"operationId":"front.sites.create","tags":["Front sites"],"summary":"Create a Front site and start its first build","description":"Builds a Front for a website: the first build starts at once and its progress arrives on the site's stream (`streamUrl`). Idempotent per canonical host: creating a site that exists returns it. The acting person's work email must be on the site's domain, as in the Front workspace (403 DOMAIN_MISMATCH, WORK_EMAIL_REQUIRED or INVALID_EMAIL otherwise). Once the first build is published, an organization with automatic tool setup gets the site's tools set up in the background, as in the app: request forms, and the tools ora finds on the site when ora hosts its MCP server, each added as an action (front.actions.list).","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"A unique value per logical request (a UUID). A retry with the same key and the same request replays the first answer instead of running again; keys are kept 24 hours.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":1,"maxLength":2048,"description":"The website: a hostname (acme.com) or a URL (https://www.acme.com/)"}},"required":["url"]},"example":{"url":"acme.com"}}}},"responses":{"202":{"description":"Create a Front site and start its first build","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The site's id. It never changes: use it as `{site}` in the other Front operations."},"hostname":{"type":"string","description":"Canonical: punycode, lower case, no leading www., no trailing dot"},"status":{"type":"string","enum":["building","live","held","failed"],"description":"The site's lifecycle, separate from its builds: live once published (a later build never takes it down); before that, building, held (the build finished and waits to be published) or failed."},"build":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","description":"The build's id"},"kind":{"type":"string","enum":["first","rest_of_site","rebuild"],"description":"first: the site's first build, which reads at most firstBuildPages pages (front.usage.get) so the Front goes live fast. rest_of_site: reads the rest of the site after a first build that filled that allowance, when the plan allows more pages. rebuild: builds the site again (a retry, a rebuild from Studio, or catching up with a bigger plan)."},"state":{"type":"string","enum":["queued","running","live","held","failed","canceled"],"description":"held: finished, waiting to be published"},"step":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The step in progress (find, read, prepare); null once finished"},"pagesFound":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Pages the build found so far, counting no more than it may read. It never goes down."},"pagesRead":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Pages the build has read so far"},"failure":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"The reason as a stable code, such as robots_blocked, bot_protection, unreachable, js_only or no_content"},"detail":{"type":"string","description":"The reason in a sentence to show as is"}},"required":["code","detail"],"additionalProperties":false},{"type":"null"}],"description":"Why the build failed, or why it could not read the whole site"},"startedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the build started; null when unknown"},"finishedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the build ended; null while it is queued or running"}},"required":["id","kind","state","step","pagesFound","pagesRead","failure","startedAt","finishedAt"],"additionalProperties":false},{"type":"null"}],"description":"The site's latest build, running or finished; null when none is on record"},"address":{"anyOf":[{"type":"object","properties":{"name":{"type":"string","description":"The address's name (`acme` in https://acme.<serve-domain>): the site's claimed name, or its id while it has none"},"url":{"type":"string","description":"The agent address (`https://acme.<serve-domain>`): where agents reach the site's Front"},"mcpUrl":{"type":"string","description":"The agent address's MCP endpoint (`url` + `/mcp`), for when MCP is on there (see protocols)"},"llmsTxtUrl":{"type":"string","description":"The site's llms.txt at the agent address (`url` + `/llms.txt`): its index for agents"},"open":{"description":"Whether any protocol (NLWeb, MCP) answers visitors at the address. Derived from `protocols`, so present with front.connect:read only; switch the protocols with front.protocols.update.","type":"boolean"}},"required":["name","url","mcpUrl","llmsTxtUrl"],"additionalProperties":false},{"type":"null"}],"description":"The site's agent address: where agents reach its Front. Null until the site is first published."},"connection":{"description":"Only with front.connect:read","type":"object","properties":{"method":{"anyOf":[{"type":"string","enum":["managed","cloudflare","vercel","nextjs","express","other"]},{"type":"null"}],"description":"How the website's traffic reaches its Front. managed: Ora's CDN in front of the website. cloudflare, vercel, nextjs, express: a transmitter in the website's own stack. other: another stack, with no transmitter yet. Null until a method is saved."},"status":{"type":"string","enum":["not_connected","pending","connected","failed"],"description":"not_connected: no method is saved and Ora never heard from the website. pending: a method is saved and Ora waits for the website's first contact. connected: Ora heard from the website within the last 24 hours. failed: the last check failed, the managed CDN reports an error, or Ora heard nothing for over 24 hours."}},"required":["method","status"],"additionalProperties":false},"protocols":{"description":"Only with front.connect:read: which protocols are on","type":"object","properties":{"address":{"type":"object","properties":{"nlweb":{"type":"boolean","description":"Whether NLWeb is on: agents ask questions and get answers from the site's pages (/ask)"},"mcp":{"type":"boolean","description":"Whether MCP is on: assistants connect to the business as an MCP server"}},"required":["nlweb","mcp"],"additionalProperties":false,"description":"At the site's agent address"},"website":{"type":"object","properties":{"nlweb":{"type":"boolean","description":"Whether NLWeb is on: agents ask questions and get answers from the site's pages (/ask)"},"mcp":{"type":"boolean","description":"Whether MCP is on: assistants connect to the business as an MCP server"}},"required":["nlweb","mcp"],"additionalProperties":false,"description":"On the website itself, through its connection"}},"required":["address","website"],"additionalProperties":false},"serving":{"description":"Only with front.pages:read","type":"object","properties":{"mode":{"type":"string","enum":["off","monitor","autopilot"],"description":"How ora serves agents on the website itself (front.serving.get has the detail). off: ora serves nothing there; the connection only reports agent traffic. monitor: ora prepares everything but serves nothing. autopilot: ora serves agents."}},"required":["mode"],"additionalProperties":false},"nextSteps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["retry_setup","allow_reader","connect_website","verify_traffic","serve_agents","add_action"],"description":"retry_setup: the setup failed; retry it. allow_reader: robots.txt or a bot wall turned Ora's reader away; let it in, then check again. connect_website: connect the website so agents reach its Front. verify_traffic: check that agents' traffic reaches the Front. serve_agents: the website is connected; switch Agent Serving on (mode autopilot), the app's last setup step, which for a new site also turns on Ask, MCP, intents and Markdown for agents. add_action: add an action agents can take for your customers."},"done":{"type":"boolean","description":"Whether the step is done. connect_website, verify_traffic, serve_agents and add_action stay listed once done."},"title":{"type":"string","description":"The step, in a sentence to show as is"},"operation":{"type":"string","description":"The operation id that performs the step"}},"required":["id","done","title","operation"],"additionalProperties":false},"description":"What the site needs next, in the order a person meets them. Only steps of areas the caller can read are listed."},"version":{"type":"string","minLength":1,"description":"Monotonically increasing (compare as numbers); orders the site's snapshots and stream events"},"createdAt":{"type":"string","description":"UTC, ISO 8601"},"streamUrl":{"type":"string","description":"The site's status stream (GET, text/event-stream)"}},"required":["id","hostname","status","build","address","nextSteps","version","createdAt","streamUrl"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"402":{"description":"The plan's site limit is reached (LIMIT_EXCEEDED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED), or the acting person's email does not fit the site (WORK_EMAIL_REQUIRED, DOMAIN_MISMATCH, INVALID_EMAIL).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"The Idempotency-Key was used with a different request (IDEMPOTENCY_KEY_REUSED), or its first request is still running (IDEMPOTENCY_IN_PROGRESS: retry with the same key).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"The website's host does not resolve (DOMAIN_UNRESOLVABLE).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.sites:write","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-idempotent":true,"x-ora-mcp-tool":{"name":"front_create_site","title":"Create a Front site and start its first build","description":"Builds a Front for a website: the first build starts at once and its progress arrives on the site's stream (`streamUrl`). Idempotent per canonical host: creating a site that exists returns it. The acting person's work email must be on the site's domain, as in the Front workspace (403 DOMAIN_MISMATCH, WORK_EMAIL_REQUIRED or INVALID_EMAIL otherwise). Once the first build is published, an organization with automatic tool setup gets the site's tools set up in the background, as in the app: request forms, and the tools ora finds on the site when ora hosts its MCP server, each added as an action (front.actions.list).","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"url":{"type":"string","minLength":1,"maxLength":2048,"description":"The website: a hostname (acme.com) or a URL (https://www.acme.com/)"}},"required":["url"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The site's id. It never changes: use it as `{site}` in the other Front operations."},"hostname":{"type":"string","description":"Canonical: punycode, lower case, no leading www., no trailing dot"},"status":{"type":"string","enum":["building","live","held","failed"],"description":"The site's lifecycle, separate from its builds: live once published (a later build never takes it down); before that, building, held (the build finished and waits to be published) or failed."},"build":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","description":"The build's id"},"kind":{"type":"string","enum":["first","rest_of_site","rebuild"],"description":"first: the site's first build, which reads at most firstBuildPages pages (front.usage.get) so the Front goes live fast. rest_of_site: reads the rest of the site after a first build that filled that allowance, when the plan allows more pages. rebuild: builds the site again (a retry, a rebuild from Studio, or catching up with a bigger plan)."},"state":{"type":"string","enum":["queued","running","live","held","failed","canceled"],"description":"held: finished, waiting to be published"},"step":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The step in progress (find, read, prepare); null once finished"},"pagesFound":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Pages the build found so far, counting no more than it may read. It never goes down."},"pagesRead":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Pages the build has read so far"},"failure":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"The reason as a stable code, such as robots_blocked, bot_protection, unreachable, js_only or no_content"},"detail":{"type":"string","description":"The reason in a sentence to show as is"}},"required":["code","detail"],"additionalProperties":false},{"type":"null"}],"description":"Why the build failed, or why it could not read the whole site"},"startedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the build started; null when unknown"},"finishedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the build ended; null while it is queued or running"}},"required":["id","kind","state","step","pagesFound","pagesRead","failure","startedAt","finishedAt"],"additionalProperties":false},{"type":"null"}],"description":"The site's latest build, running or finished; null when none is on record"},"address":{"anyOf":[{"type":"object","properties":{"name":{"type":"string","description":"The address's name (`acme` in https://acme.<serve-domain>): the site's claimed name, or its id while it has none"},"url":{"type":"string","description":"The agent address (`https://acme.<serve-domain>`): where agents reach the site's Front"},"mcpUrl":{"type":"string","description":"The agent address's MCP endpoint (`url` + `/mcp`), for when MCP is on there (see protocols)"},"llmsTxtUrl":{"type":"string","description":"The site's llms.txt at the agent address (`url` + `/llms.txt`): its index for agents"},"open":{"description":"Whether any protocol (NLWeb, MCP) answers visitors at the address. Derived from `protocols`, so present with front.connect:read only; switch the protocols with front.protocols.update.","type":"boolean"}},"required":["name","url","mcpUrl","llmsTxtUrl"],"additionalProperties":false},{"type":"null"}],"description":"The site's agent address: where agents reach its Front. Null until the site is first published."},"connection":{"description":"Only with front.connect:read","type":"object","properties":{"method":{"anyOf":[{"type":"string","enum":["managed","cloudflare","vercel","nextjs","express","other"]},{"type":"null"}],"description":"How the website's traffic reaches its Front. managed: Ora's CDN in front of the website. cloudflare, vercel, nextjs, express: a transmitter in the website's own stack. other: another stack, with no transmitter yet. Null until a method is saved."},"status":{"type":"string","enum":["not_connected","pending","connected","failed"],"description":"not_connected: no method is saved and Ora never heard from the website. pending: a method is saved and Ora waits for the website's first contact. connected: Ora heard from the website within the last 24 hours. failed: the last check failed, the managed CDN reports an error, or Ora heard nothing for over 24 hours."}},"required":["method","status"],"additionalProperties":false},"protocols":{"description":"Only with front.connect:read: which protocols are on","type":"object","properties":{"address":{"type":"object","properties":{"nlweb":{"type":"boolean","description":"Whether NLWeb is on: agents ask questions and get answers from the site's pages (/ask)"},"mcp":{"type":"boolean","description":"Whether MCP is on: assistants connect to the business as an MCP server"}},"required":["nlweb","mcp"],"additionalProperties":false,"description":"At the site's agent address"},"website":{"type":"object","properties":{"nlweb":{"type":"boolean","description":"Whether NLWeb is on: agents ask questions and get answers from the site's pages (/ask)"},"mcp":{"type":"boolean","description":"Whether MCP is on: assistants connect to the business as an MCP server"}},"required":["nlweb","mcp"],"additionalProperties":false,"description":"On the website itself, through its connection"}},"required":["address","website"],"additionalProperties":false},"serving":{"description":"Only with front.pages:read","type":"object","properties":{"mode":{"type":"string","enum":["off","monitor","autopilot"],"description":"How ora serves agents on the website itself (front.serving.get has the detail). off: ora serves nothing there; the connection only reports agent traffic. monitor: ora prepares everything but serves nothing. autopilot: ora serves agents."}},"required":["mode"],"additionalProperties":false},"nextSteps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["retry_setup","allow_reader","connect_website","verify_traffic","serve_agents","add_action"],"description":"retry_setup: the setup failed; retry it. allow_reader: robots.txt or a bot wall turned Ora's reader away; let it in, then check again. connect_website: connect the website so agents reach its Front. verify_traffic: check that agents' traffic reaches the Front. serve_agents: the website is connected; switch Agent Serving on (mode autopilot), the app's last setup step, which for a new site also turns on Ask, MCP, intents and Markdown for agents. add_action: add an action agents can take for your customers."},"done":{"type":"boolean","description":"Whether the step is done. connect_website, verify_traffic, serve_agents and add_action stay listed once done."},"title":{"type":"string","description":"The step, in a sentence to show as is"},"operation":{"type":"string","description":"The operation id that performs the step"}},"required":["id","done","title","operation"],"additionalProperties":false},"description":"What the site needs next, in the order a person meets them. Only steps of areas the caller can read are listed."},"version":{"type":"string","minLength":1,"description":"Monotonically increasing (compare as numbers); orders the site's snapshots and stream events"},"createdAt":{"type":"string","description":"UTC, ISO 8601"},"streamUrl":{"type":"string","description":"The site's status stream (GET, text/event-stream)"}},"required":["id","hostname","status","build","address","nextSteps","version","createdAt","streamUrl"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true},"request":{"body":["url"]}}}},"/studio/v1/front/sites/{site}":{"get":{"operationId":"front.sites.get","tags":["Front sites"],"summary":"Read a Front site","description":"The site, its latest build, its agent address and what it needs next. Fields of other areas appear with their read scope: `connection` with front.connect:read, `serving` with front.pages:read.","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"}],"responses":{"200":{"description":"Read a Front site","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The site's id. It never changes: use it as `{site}` in the other Front operations."},"hostname":{"type":"string","description":"Canonical: punycode, lower case, no leading www., no trailing dot"},"status":{"type":"string","enum":["building","live","held","failed"],"description":"The site's lifecycle, separate from its builds: live once published (a later build never takes it down); before that, building, held (the build finished and waits to be published) or failed."},"build":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","description":"The build's id"},"kind":{"type":"string","enum":["first","rest_of_site","rebuild"],"description":"first: the site's first build, which reads at most firstBuildPages pages (front.usage.get) so the Front goes live fast. rest_of_site: reads the rest of the site after a first build that filled that allowance, when the plan allows more pages. rebuild: builds the site again (a retry, a rebuild from Studio, or catching up with a bigger plan)."},"state":{"type":"string","enum":["queued","running","live","held","failed","canceled"],"description":"held: finished, waiting to be published"},"step":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The step in progress (find, read, prepare); null once finished"},"pagesFound":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Pages the build found so far, counting no more than it may read. It never goes down."},"pagesRead":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Pages the build has read so far"},"failure":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"The reason as a stable code, such as robots_blocked, bot_protection, unreachable, js_only or no_content"},"detail":{"type":"string","description":"The reason in a sentence to show as is"}},"required":["code","detail"],"additionalProperties":false},{"type":"null"}],"description":"Why the build failed, or why it could not read the whole site"},"startedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the build started; null when unknown"},"finishedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the build ended; null while it is queued or running"}},"required":["id","kind","state","step","pagesFound","pagesRead","failure","startedAt","finishedAt"],"additionalProperties":false},{"type":"null"}],"description":"The site's latest build, running or finished; null when none is on record"},"address":{"anyOf":[{"type":"object","properties":{"name":{"type":"string","description":"The address's name (`acme` in https://acme.<serve-domain>): the site's claimed name, or its id while it has none"},"url":{"type":"string","description":"The agent address (`https://acme.<serve-domain>`): where agents reach the site's Front"},"mcpUrl":{"type":"string","description":"The agent address's MCP endpoint (`url` + `/mcp`), for when MCP is on there (see protocols)"},"llmsTxtUrl":{"type":"string","description":"The site's llms.txt at the agent address (`url` + `/llms.txt`): its index for agents"},"open":{"description":"Whether any protocol (NLWeb, MCP) answers visitors at the address. Derived from `protocols`, so present with front.connect:read only; switch the protocols with front.protocols.update.","type":"boolean"}},"required":["name","url","mcpUrl","llmsTxtUrl"],"additionalProperties":false},{"type":"null"}],"description":"The site's agent address: where agents reach its Front. Null until the site is first published."},"connection":{"description":"Only with front.connect:read","type":"object","properties":{"method":{"anyOf":[{"type":"string","enum":["managed","cloudflare","vercel","nextjs","express","other"]},{"type":"null"}],"description":"How the website's traffic reaches its Front. managed: Ora's CDN in front of the website. cloudflare, vercel, nextjs, express: a transmitter in the website's own stack. other: another stack, with no transmitter yet. Null until a method is saved."},"status":{"type":"string","enum":["not_connected","pending","connected","failed"],"description":"not_connected: no method is saved and Ora never heard from the website. pending: a method is saved and Ora waits for the website's first contact. connected: Ora heard from the website within the last 24 hours. failed: the last check failed, the managed CDN reports an error, or Ora heard nothing for over 24 hours."}},"required":["method","status"],"additionalProperties":false},"protocols":{"description":"Only with front.connect:read: which protocols are on","type":"object","properties":{"address":{"type":"object","properties":{"nlweb":{"type":"boolean","description":"Whether NLWeb is on: agents ask questions and get answers from the site's pages (/ask)"},"mcp":{"type":"boolean","description":"Whether MCP is on: assistants connect to the business as an MCP server"}},"required":["nlweb","mcp"],"additionalProperties":false,"description":"At the site's agent address"},"website":{"type":"object","properties":{"nlweb":{"type":"boolean","description":"Whether NLWeb is on: agents ask questions and get answers from the site's pages (/ask)"},"mcp":{"type":"boolean","description":"Whether MCP is on: assistants connect to the business as an MCP server"}},"required":["nlweb","mcp"],"additionalProperties":false,"description":"On the website itself, through its connection"}},"required":["address","website"],"additionalProperties":false},"serving":{"description":"Only with front.pages:read","type":"object","properties":{"mode":{"type":"string","enum":["off","monitor","autopilot"],"description":"How ora serves agents on the website itself (front.serving.get has the detail). off: ora serves nothing there; the connection only reports agent traffic. monitor: ora prepares everything but serves nothing. autopilot: ora serves agents."}},"required":["mode"],"additionalProperties":false},"nextSteps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["retry_setup","allow_reader","connect_website","verify_traffic","serve_agents","add_action"],"description":"retry_setup: the setup failed; retry it. allow_reader: robots.txt or a bot wall turned Ora's reader away; let it in, then check again. connect_website: connect the website so agents reach its Front. verify_traffic: check that agents' traffic reaches the Front. serve_agents: the website is connected; switch Agent Serving on (mode autopilot), the app's last setup step, which for a new site also turns on Ask, MCP, intents and Markdown for agents. add_action: add an action agents can take for your customers."},"done":{"type":"boolean","description":"Whether the step is done. connect_website, verify_traffic, serve_agents and add_action stay listed once done."},"title":{"type":"string","description":"The step, in a sentence to show as is"},"operation":{"type":"string","description":"The operation id that performs the step"}},"required":["id","done","title","operation"],"additionalProperties":false},"description":"What the site needs next, in the order a person meets them. Only steps of areas the caller can read are listed."},"version":{"type":"string","minLength":1,"description":"Monotonically increasing (compare as numbers); orders the site's snapshots and stream events"},"createdAt":{"type":"string","description":"UTC, ISO 8601"},"streamUrl":{"type":"string","description":"The site's status stream (GET, text/event-stream)"}},"required":["id","hostname","status","build","address","nextSteps","version","createdAt","streamUrl"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.sites:read","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_get_site","title":"Read a Front site","description":"The site, its latest build, its agent address and what it needs next. Fields of other areas appear with their read scope: `connection` with front.connect:read, `serving` with front.pages:read.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."}},"required":["site"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The site's id. It never changes: use it as `{site}` in the other Front operations."},"hostname":{"type":"string","description":"Canonical: punycode, lower case, no leading www., no trailing dot"},"status":{"type":"string","enum":["building","live","held","failed"],"description":"The site's lifecycle, separate from its builds: live once published (a later build never takes it down); before that, building, held (the build finished and waits to be published) or failed."},"build":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","description":"The build's id"},"kind":{"type":"string","enum":["first","rest_of_site","rebuild"],"description":"first: the site's first build, which reads at most firstBuildPages pages (front.usage.get) so the Front goes live fast. rest_of_site: reads the rest of the site after a first build that filled that allowance, when the plan allows more pages. rebuild: builds the site again (a retry, a rebuild from Studio, or catching up with a bigger plan)."},"state":{"type":"string","enum":["queued","running","live","held","failed","canceled"],"description":"held: finished, waiting to be published"},"step":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The step in progress (find, read, prepare); null once finished"},"pagesFound":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Pages the build found so far, counting no more than it may read. It never goes down."},"pagesRead":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Pages the build has read so far"},"failure":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"The reason as a stable code, such as robots_blocked, bot_protection, unreachable, js_only or no_content"},"detail":{"type":"string","description":"The reason in a sentence to show as is"}},"required":["code","detail"],"additionalProperties":false},{"type":"null"}],"description":"Why the build failed, or why it could not read the whole site"},"startedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the build started; null when unknown"},"finishedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the build ended; null while it is queued or running"}},"required":["id","kind","state","step","pagesFound","pagesRead","failure","startedAt","finishedAt"],"additionalProperties":false},{"type":"null"}],"description":"The site's latest build, running or finished; null when none is on record"},"address":{"anyOf":[{"type":"object","properties":{"name":{"type":"string","description":"The address's name (`acme` in https://acme.<serve-domain>): the site's claimed name, or its id while it has none"},"url":{"type":"string","description":"The agent address (`https://acme.<serve-domain>`): where agents reach the site's Front"},"mcpUrl":{"type":"string","description":"The agent address's MCP endpoint (`url` + `/mcp`), for when MCP is on there (see protocols)"},"llmsTxtUrl":{"type":"string","description":"The site's llms.txt at the agent address (`url` + `/llms.txt`): its index for agents"},"open":{"description":"Whether any protocol (NLWeb, MCP) answers visitors at the address. Derived from `protocols`, so present with front.connect:read only; switch the protocols with front.protocols.update.","type":"boolean"}},"required":["name","url","mcpUrl","llmsTxtUrl"],"additionalProperties":false},{"type":"null"}],"description":"The site's agent address: where agents reach its Front. Null until the site is first published."},"connection":{"description":"Only with front.connect:read","type":"object","properties":{"method":{"anyOf":[{"type":"string","enum":["managed","cloudflare","vercel","nextjs","express","other"]},{"type":"null"}],"description":"How the website's traffic reaches its Front. managed: Ora's CDN in front of the website. cloudflare, vercel, nextjs, express: a transmitter in the website's own stack. other: another stack, with no transmitter yet. Null until a method is saved."},"status":{"type":"string","enum":["not_connected","pending","connected","failed"],"description":"not_connected: no method is saved and Ora never heard from the website. pending: a method is saved and Ora waits for the website's first contact. connected: Ora heard from the website within the last 24 hours. failed: the last check failed, the managed CDN reports an error, or Ora heard nothing for over 24 hours."}},"required":["method","status"],"additionalProperties":false},"protocols":{"description":"Only with front.connect:read: which protocols are on","type":"object","properties":{"address":{"type":"object","properties":{"nlweb":{"type":"boolean","description":"Whether NLWeb is on: agents ask questions and get answers from the site's pages (/ask)"},"mcp":{"type":"boolean","description":"Whether MCP is on: assistants connect to the business as an MCP server"}},"required":["nlweb","mcp"],"additionalProperties":false,"description":"At the site's agent address"},"website":{"type":"object","properties":{"nlweb":{"type":"boolean","description":"Whether NLWeb is on: agents ask questions and get answers from the site's pages (/ask)"},"mcp":{"type":"boolean","description":"Whether MCP is on: assistants connect to the business as an MCP server"}},"required":["nlweb","mcp"],"additionalProperties":false,"description":"On the website itself, through its connection"}},"required":["address","website"],"additionalProperties":false},"serving":{"description":"Only with front.pages:read","type":"object","properties":{"mode":{"type":"string","enum":["off","monitor","autopilot"],"description":"How ora serves agents on the website itself (front.serving.get has the detail). off: ora serves nothing there; the connection only reports agent traffic. monitor: ora prepares everything but serves nothing. autopilot: ora serves agents."}},"required":["mode"],"additionalProperties":false},"nextSteps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["retry_setup","allow_reader","connect_website","verify_traffic","serve_agents","add_action"],"description":"retry_setup: the setup failed; retry it. allow_reader: robots.txt or a bot wall turned Ora's reader away; let it in, then check again. connect_website: connect the website so agents reach its Front. verify_traffic: check that agents' traffic reaches the Front. serve_agents: the website is connected; switch Agent Serving on (mode autopilot), the app's last setup step, which for a new site also turns on Ask, MCP, intents and Markdown for agents. add_action: add an action agents can take for your customers."},"done":{"type":"boolean","description":"Whether the step is done. connect_website, verify_traffic, serve_agents and add_action stay listed once done."},"title":{"type":"string","description":"The step, in a sentence to show as is"},"operation":{"type":"string","description":"The operation id that performs the step"}},"required":["id","done","title","operation"],"additionalProperties":false},"description":"What the site needs next, in the order a person meets them. Only steps of areas the caller can read are listed."},"version":{"type":"string","minLength":1,"description":"Monotonically increasing (compare as numbers); orders the site's snapshots and stream events"},"createdAt":{"type":"string","description":"UTC, ISO 8601"},"streamUrl":{"type":"string","description":"The site's status stream (GET, text/event-stream)"}},"required":["id","hostname","status","build","address","nextSteps","version","createdAt","streamUrl"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"request":{"params":["site"]}}}},"/studio/v1/front/sites/{site}/access":{"get":{"operationId":"front.access.get","tags":["Front access"],"summary":"Read how the site treats agents as a group","description":"The site's access: what its edge does with impersonators (requests that name a known agent but come from outside that agent's published addresses) and the default action for each category of agent (training crawlers, answer-engine indexing, live fetches, tools and scripts). An agent's own rule (PUT …/visitors/{visitorId}/rule) wins over its category's default. `enforced` says whether the site's edge applies access now.","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"}],"responses":{"200":{"description":"Read how the site treats agents as a group","content":{"application/json":{"schema":{"type":"object","properties":{"impersonators":{"type":"string","enum":["flag","block"],"description":"What the site's edge does with a request that names a known agent but comes from outside that agent's published addresses: flag reports it, block answers 403"},"categoryDefaults":{"type":"object","properties":{"training_crawl":{"type":"string","enum":["allow","disallow","block"],"description":"Training crawlers: harvesting pages to train a model. Nobody is waiting, and the site gets nothing back"},"search_index":{"type":"string","enum":["allow","disallow","block"],"description":"Answer-engine indexing: indexing the site so an AI can cite it later"},"live_fetch":{"type":"string","enum":["allow","disallow","block"],"description":"Live fetches: an AI fetching a page for a person who is waiting. Blocking them costs visits"},"agent_action":{"type":"string","enum":["allow","disallow","block"],"description":"Tools and scripts: agents acting for a user, headless browsers, generic HTTP clients"}},"required":["training_crawl","search_index","live_fetch","agent_action"],"additionalProperties":false,"description":"The action per category of agent; allow where nobody set one. An agent's own rule wins over it, and search engines, link previews and monitors never take a category default"},"enforced":{"type":"boolean","description":"Whether the site's edge applies access now: true while its serving mode is autopilot (front.serving.get). Otherwise it is kept, and applies once it is"},"propagationSeconds":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"At most how long a change takes to reach the site's edge"}},"required":["impersonators","categoryDefaults","enforced","propagationSeconds"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.access:read","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_get_access","title":"Read how the site treats agents as a group","description":"The site's access: what its edge does with impersonators (requests that name a known agent but come from outside that agent's published addresses) and the default action for each category of agent (training crawlers, answer-engine indexing, live fetches, tools and scripts). An agent's own rule (PUT …/visitors/{visitorId}/rule) wins over its category's default. `enforced` says whether the site's edge applies access now.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."}},"required":["site"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"impersonators":{"type":"string","enum":["flag","block"],"description":"What the site's edge does with a request that names a known agent but comes from outside that agent's published addresses: flag reports it, block answers 403"},"categoryDefaults":{"type":"object","properties":{"training_crawl":{"type":"string","enum":["allow","disallow","block"],"description":"Training crawlers: harvesting pages to train a model. Nobody is waiting, and the site gets nothing back"},"search_index":{"type":"string","enum":["allow","disallow","block"],"description":"Answer-engine indexing: indexing the site so an AI can cite it later"},"live_fetch":{"type":"string","enum":["allow","disallow","block"],"description":"Live fetches: an AI fetching a page for a person who is waiting. Blocking them costs visits"},"agent_action":{"type":"string","enum":["allow","disallow","block"],"description":"Tools and scripts: agents acting for a user, headless browsers, generic HTTP clients"}},"required":["training_crawl","search_index","live_fetch","agent_action"],"additionalProperties":false,"description":"The action per category of agent; allow where nobody set one. An agent's own rule wins over it, and search engines, link previews and monitors never take a category default"},"enforced":{"type":"boolean","description":"Whether the site's edge applies access now: true while its serving mode is autopilot (front.serving.get). Otherwise it is kept, and applies once it is"},"propagationSeconds":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"At most how long a change takes to reach the site's edge"}},"required":["impersonators","categoryDefaults","enforced","propagationSeconds"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"request":{"params":["site"]}}},"patch":{"operationId":"front.access.update","tags":["Front access"],"summary":"Change how the site treats agents as a group","description":"JSON Merge Patch of the site's access: send only what changes. `categoryDefaults` merges per category: `null` resets a category to allow, `categoryDefaults: null` resets every category, and `impersonators: null` goes back to flag. A category change rewrites the site's robots.txt at once; agents' own rules are untouched. Returns the new access.","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"impersonators":{"description":"null: back to flag","anyOf":[{"type":"string","enum":["flag","block"],"description":"flag: report it and let the request through. block: answer 403"},{"type":"null"}]},"categoryDefaults":{"description":"Only the categories that change. null resets one to allow; null for the whole map resets every one","anyOf":[{"type":"object","properties":{"training_crawl":{"description":"Training crawlers: harvesting pages to train a model. allow: let them in. block: a robots.txt Disallow and a 403 at the site's edge for each one without its own rule","anyOf":[{"type":"string","enum":["allow","block"],"description":"allow: agents may come in (an agent's own rule also writes an Allow line in robots.txt). block: a robots.txt Disallow AND a 403 at the site's edge, before the request reaches the website"},{"type":"null"}]},"search_index":{"description":"Answer-engine indexing: indexing the site so an AI can cite it later. allow: let them in. block: a robots.txt Disallow and a 403 at the site's edge for each one without its own rule. Search engines such as Google and Bing never take this default","anyOf":[{"type":"string","enum":["allow","block"],"description":"allow: agents may come in (an agent's own rule also writes an Allow line in robots.txt). block: a robots.txt Disallow AND a 403 at the site's edge, before the request reaches the website"},{"type":"null"}]},"live_fetch":{"description":"Live fetches: an AI fetching a page for a person who is waiting. allow: let them in. block: a robots.txt Disallow and a 403 at the site's edge for each one without its own rule, which costs visits","anyOf":[{"type":"string","enum":["allow","block"],"description":"allow: agents may come in (an agent's own rule also writes an Allow line in robots.txt). block: a robots.txt Disallow AND a 403 at the site's edge, before the request reaches the website"},{"type":"null"}]},"agent_action":{"description":"Tools and scripts: agents acting for a user, headless browsers, generic HTTP clients. allow: let them in. block: a robots.txt Disallow and a 403 at the site's edge for each one without its own rule. Link previews and monitors never take this default","anyOf":[{"type":"string","enum":["allow","block"],"description":"allow: agents may come in (an agent's own rule also writes an Allow line in robots.txt). block: a robots.txt Disallow AND a 403 at the site's edge, before the request reaches the website"},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]}},"additionalProperties":false},"example":{"categoryDefaults":{"training_crawl":"block"}}},"application/merge-patch+json":{"schema":{"type":"object","properties":{"impersonators":{"description":"null: back to flag","anyOf":[{"type":"string","enum":["flag","block"],"description":"flag: report it and let the request through. block: answer 403"},{"type":"null"}]},"categoryDefaults":{"description":"Only the categories that change. null resets one to allow; null for the whole map resets every one","anyOf":[{"type":"object","properties":{"training_crawl":{"description":"Training crawlers: harvesting pages to train a model. allow: let them in. block: a robots.txt Disallow and a 403 at the site's edge for each one without its own rule","anyOf":[{"type":"string","enum":["allow","block"],"description":"allow: agents may come in (an agent's own rule also writes an Allow line in robots.txt). block: a robots.txt Disallow AND a 403 at the site's edge, before the request reaches the website"},{"type":"null"}]},"search_index":{"description":"Answer-engine indexing: indexing the site so an AI can cite it later. allow: let them in. block: a robots.txt Disallow and a 403 at the site's edge for each one without its own rule. Search engines such as Google and Bing never take this default","anyOf":[{"type":"string","enum":["allow","block"],"description":"allow: agents may come in (an agent's own rule also writes an Allow line in robots.txt). block: a robots.txt Disallow AND a 403 at the site's edge, before the request reaches the website"},{"type":"null"}]},"live_fetch":{"description":"Live fetches: an AI fetching a page for a person who is waiting. allow: let them in. block: a robots.txt Disallow and a 403 at the site's edge for each one without its own rule, which costs visits","anyOf":[{"type":"string","enum":["allow","block"],"description":"allow: agents may come in (an agent's own rule also writes an Allow line in robots.txt). block: a robots.txt Disallow AND a 403 at the site's edge, before the request reaches the website"},{"type":"null"}]},"agent_action":{"description":"Tools and scripts: agents acting for a user, headless browsers, generic HTTP clients. allow: let them in. block: a robots.txt Disallow and a 403 at the site's edge for each one without its own rule. Link previews and monitors never take this default","anyOf":[{"type":"string","enum":["allow","block"],"description":"allow: agents may come in (an agent's own rule also writes an Allow line in robots.txt). block: a robots.txt Disallow AND a 403 at the site's edge, before the request reaches the website"},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]}},"additionalProperties":false},"example":{"categoryDefaults":{"training_crawl":"block"}}}}},"responses":{"200":{"description":"Change how the site treats agents as a group","content":{"application/json":{"schema":{"type":"object","properties":{"impersonators":{"type":"string","enum":["flag","block"],"description":"What the site's edge does with a request that names a known agent but comes from outside that agent's published addresses: flag reports it, block answers 403"},"categoryDefaults":{"type":"object","properties":{"training_crawl":{"type":"string","enum":["allow","disallow","block"],"description":"Training crawlers: harvesting pages to train a model. Nobody is waiting, and the site gets nothing back"},"search_index":{"type":"string","enum":["allow","disallow","block"],"description":"Answer-engine indexing: indexing the site so an AI can cite it later"},"live_fetch":{"type":"string","enum":["allow","disallow","block"],"description":"Live fetches: an AI fetching a page for a person who is waiting. Blocking them costs visits"},"agent_action":{"type":"string","enum":["allow","disallow","block"],"description":"Tools and scripts: agents acting for a user, headless browsers, generic HTTP clients"}},"required":["training_crawl","search_index","live_fetch","agent_action"],"additionalProperties":false,"description":"The action per category of agent; allow where nobody set one. An agent's own rule wins over it, and search engines, link previews and monitors never take a category default"},"enforced":{"type":"boolean","description":"Whether the site's edge applies access now: true while its serving mode is autopilot (front.serving.get). Otherwise it is kept, and applies once it is"},"propagationSeconds":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"At most how long a change takes to reach the site's edge"}},"required":["impersonators","categoryDefaults","enforced","propagationSeconds"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"The site's website is not connected yet, so there is nothing to apply access to (WEBSITE_NOT_CONNECTED): connect it first (front.connection.update).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.access:write","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_set_access","title":"Change how the site treats agents as a group","description":"JSON Merge Patch of the site's access: send only what changes. `categoryDefaults` merges per category: `null` resets a category to allow, `categoryDefaults: null` resets every category, and `impersonators: null` goes back to flag. A category change rewrites the site's robots.txt at once; agents' own rules are untouched. Returns the new access.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"impersonators":{"description":"null: back to flag","anyOf":[{"type":"string","enum":["flag","block"],"description":"flag: report it and let the request through. block: answer 403"},{"type":"null"}]},"categoryDefaults":{"description":"Only the categories that change. null resets one to allow; null for the whole map resets every one","anyOf":[{"type":"object","properties":{"training_crawl":{"description":"Training crawlers: harvesting pages to train a model. allow: let them in. block: a robots.txt Disallow and a 403 at the site's edge for each one without its own rule","anyOf":[{"type":"string","enum":["allow","block"],"description":"allow: agents may come in (an agent's own rule also writes an Allow line in robots.txt). block: a robots.txt Disallow AND a 403 at the site's edge, before the request reaches the website"},{"type":"null"}]},"search_index":{"description":"Answer-engine indexing: indexing the site so an AI can cite it later. allow: let them in. block: a robots.txt Disallow and a 403 at the site's edge for each one without its own rule. Search engines such as Google and Bing never take this default","anyOf":[{"type":"string","enum":["allow","block"],"description":"allow: agents may come in (an agent's own rule also writes an Allow line in robots.txt). block: a robots.txt Disallow AND a 403 at the site's edge, before the request reaches the website"},{"type":"null"}]},"live_fetch":{"description":"Live fetches: an AI fetching a page for a person who is waiting. allow: let them in. block: a robots.txt Disallow and a 403 at the site's edge for each one without its own rule, which costs visits","anyOf":[{"type":"string","enum":["allow","block"],"description":"allow: agents may come in (an agent's own rule also writes an Allow line in robots.txt). block: a robots.txt Disallow AND a 403 at the site's edge, before the request reaches the website"},{"type":"null"}]},"agent_action":{"description":"Tools and scripts: agents acting for a user, headless browsers, generic HTTP clients. allow: let them in. block: a robots.txt Disallow and a 403 at the site's edge for each one without its own rule. Link previews and monitors never take this default","anyOf":[{"type":"string","enum":["allow","block"],"description":"allow: agents may come in (an agent's own rule also writes an Allow line in robots.txt). block: a robots.txt Disallow AND a 403 at the site's edge, before the request reaches the website"},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]}},"required":["site"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"impersonators":{"type":"string","enum":["flag","block"],"description":"What the site's edge does with a request that names a known agent but comes from outside that agent's published addresses: flag reports it, block answers 403"},"categoryDefaults":{"type":"object","properties":{"training_crawl":{"type":"string","enum":["allow","disallow","block"],"description":"Training crawlers: harvesting pages to train a model. Nobody is waiting, and the site gets nothing back"},"search_index":{"type":"string","enum":["allow","disallow","block"],"description":"Answer-engine indexing: indexing the site so an AI can cite it later"},"live_fetch":{"type":"string","enum":["allow","disallow","block"],"description":"Live fetches: an AI fetching a page for a person who is waiting. Blocking them costs visits"},"agent_action":{"type":"string","enum":["allow","disallow","block"],"description":"Tools and scripts: agents acting for a user, headless browsers, generic HTTP clients"}},"required":["training_crawl","search_index","live_fetch","agent_action"],"additionalProperties":false,"description":"The action per category of agent; allow where nobody set one. An agent's own rule wins over it, and search engines, link previews and monitors never take a category default"},"enforced":{"type":"boolean","description":"Whether the site's edge applies access now: true while its serving mode is autopilot (front.serving.get). Otherwise it is kept, and applies once it is"},"propagationSeconds":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"At most how long a change takes to reach the site's edge"}},"required":["impersonators","categoryDefaults","enforced","propagationSeconds"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"request":{"params":["site"],"body":["impersonators","categoryDefaults"]}}}},"/studio/v1/front/sites/{site}/action-templates":{"get":{"operationId":"front.actionTemplates.list","tags":["Front actions"],"summary":"List the templates request actions start from","description":"Book a demo, contact sales, request a quote… each with the `key` to send as `request.template` when adding a request action. Every template fits one page (`nextCursor` is null).","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"}],"responses":{"200":{"description":"List the templates request actions start from","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","description":"Send it as request.template"},"title":{"type":"string","description":"Its title, e.g. Book a demo: an action made from it gets this title unless you give one"},"description":{"type":"string","description":"What it is for, in a sentence: an action made from it gets this as its `about` unless you give one"}},"required":["key","title","description"],"additionalProperties":false},"description":"This page's items."},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Send it as `cursor` to read the next page. Null on the last page."}},"required":["items","nextCursor"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.actions:read","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_list_action_templates","title":"List the templates request actions start from","description":"Book a demo, contact sales, request a quote… each with the `key` to send as `request.template` when adding a request action. Every template fits one page (`nextCursor` is null).","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."}},"required":["site"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","description":"Send it as request.template"},"title":{"type":"string","description":"Its title, e.g. Book a demo: an action made from it gets this title unless you give one"},"description":{"type":"string","description":"What it is for, in a sentence: an action made from it gets this as its `about` unless you give one"}},"required":["key","title","description"],"additionalProperties":false},"description":"This page's items."},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Send it as `cursor` to read the next page. Null on the last page."}},"required":["items","nextCursor"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"request":{"params":["site"]}}}},"/studio/v1/front/sites/{site}/actions":{"get":{"operationId":"front.actions.list","tags":["Front actions"],"summary":"List the site's actions","description":"Every action on the site, ordered by name: request actions (book a demo, contact sales…: an agent fills one in for the person and the business answers) and tool actions (ora found, built and checked them when the site's tools were set up). Each carries its `status` (live, ready, off, broken). Narrow with `kind` and `status`; page with `cursor` and `limit`.","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"},{"name":"cursor","in":"query","required":false,"schema":{"description":"Where this page starts: the previous page's `nextCursor`. Leave it out for the first page.","type":"string","minLength":1,"maxLength":500}},{"name":"limit","in":"query","required":false,"schema":{"default":50,"description":"The most items one page holds: 1 to 200, 50 when left out.","type":"integer","minimum":1,"maximum":200}},{"name":"kind","in":"query","required":false,"schema":{"description":"Only actions of this kind. request: ones an agent fills in for the person and the business answers. tool: ones that act on the site, which ora built when the site's tools were set up.","type":"string","enum":["request","tool"]}},{"name":"status","in":"query","required":false,"schema":{"description":"Only actions with this status. live: agents are offered it now. ready: a tool that works and is not offered yet. off: a request action that is not offered. broken: a tool whose last check by ora did not pass.","type":"string","enum":["live","ready","off","broken"]},"example":"live"}],"responses":{"200":{"description":"List the site's actions","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The action's id, which the action's own paths take as actionId"},"name":{"type":"string","description":"The name agents call it by; unique on the site"},"kind":{"type":"string","enum":["request","tool"],"description":"request: an agent fills it in for the person and the business answers (book a demo, contact sales…). tool: it acts on the site; ora found, built and checked it when the site's tools were set up."},"title":{"type":"string","description":"The action's title, as people and agents read it"},"status":{"type":"string","enum":["live","ready","off","broken"],"description":"live: agents are offered it now. ready: a tool that works and is not offered yet (one step from live). off: a request action that is not offered. broken: a tool whose last check by ora did not pass."},"request":{"description":"Request actions only: how a request reaches the business","type":"object","properties":{"template":{"type":"string","description":"The template it was made from (a label: the action keeps its own fields)"},"mode":{"type":"string","enum":["inbox","deliver","link"],"description":"inbox: kept for you in the site's requests. deliver: POSTed, signed, to webhookUrl (and kept open there until your webhook takes it). link: the agent hands the person pageUrl to finish there; nothing is kept."},"about":{"type":"string","description":"What agents should know about it, in your words (part of the description they read)"},"webhookUrl":{"description":"deliver: the https address requests are POSTed to","type":"string"},"pageUrl":{"description":"link: the page the person finishes on","type":"string"},"fields":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The field's key (email, company…): a request's `fields` carry the person's answer under it"},"label":{"type":"string","description":"What the field asks for, in the words agents read (e.g. Work email)"},"type":{"type":"string","enum":["text","email","tel","url","number","date","textarea","select"],"description":"text: a line of text. textarea: a longer text. email: an email address. tel: a phone number. url: a web address (http or https). number: a number. date: a date (YYYY-MM-DD). select: one of `options`."},"required":{"type":"boolean","description":"Whether the agent must fill it in to send the request"},"options":{"description":"A select's choices","type":"array","items":{"type":"string"}}},"required":["name","label","type","required"],"additionalProperties":false},"description":"What agents ask the person for (none for link)"}},"required":["template","mode","about","fields"],"additionalProperties":false}},"required":["id","name","kind","title","status"],"additionalProperties":false},"description":"This page's items."},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Send it as `cursor` to read the next page. Null on the last page."}},"required":["items","nextCursor"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.actions:read","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_list_actions","title":"List the site's actions","description":"Every action on the site, ordered by name: request actions (book a demo, contact sales…: an agent fills one in for the person and the business answers) and tool actions (ora found, built and checked them when the site's tools were set up). Each carries its `status` (live, ready, off, broken). Narrow with `kind` and `status`; page with `cursor` and `limit`.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"cursor":{"description":"Where this page starts: the previous page's `nextCursor`. Leave it out for the first page.","type":"string","minLength":1,"maxLength":500},"limit":{"default":50,"description":"The most items one page holds: 1 to 200, 50 when left out.","type":"integer","minimum":1,"maximum":200},"kind":{"description":"Only actions of this kind. request: ones an agent fills in for the person and the business answers. tool: ones that act on the site, which ora built when the site's tools were set up.","type":"string","enum":["request","tool"]},"status":{"description":"Only actions with this status. live: agents are offered it now. ready: a tool that works and is not offered yet. off: a request action that is not offered. broken: a tool whose last check by ora did not pass.","type":"string","enum":["live","ready","off","broken"]}},"required":["site"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The action's id, which the action's own paths take as actionId"},"name":{"type":"string","description":"The name agents call it by; unique on the site"},"kind":{"type":"string","enum":["request","tool"],"description":"request: an agent fills it in for the person and the business answers (book a demo, contact sales…). tool: it acts on the site; ora found, built and checked it when the site's tools were set up."},"title":{"type":"string","description":"The action's title, as people and agents read it"},"status":{"type":"string","enum":["live","ready","off","broken"],"description":"live: agents are offered it now. ready: a tool that works and is not offered yet (one step from live). off: a request action that is not offered. broken: a tool whose last check by ora did not pass."},"request":{"description":"Request actions only: how a request reaches the business","type":"object","properties":{"template":{"type":"string","description":"The template it was made from (a label: the action keeps its own fields)"},"mode":{"type":"string","enum":["inbox","deliver","link"],"description":"inbox: kept for you in the site's requests. deliver: POSTed, signed, to webhookUrl (and kept open there until your webhook takes it). link: the agent hands the person pageUrl to finish there; nothing is kept."},"about":{"type":"string","description":"What agents should know about it, in your words (part of the description they read)"},"webhookUrl":{"description":"deliver: the https address requests are POSTed to","type":"string"},"pageUrl":{"description":"link: the page the person finishes on","type":"string"},"fields":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The field's key (email, company…): a request's `fields` carry the person's answer under it"},"label":{"type":"string","description":"What the field asks for, in the words agents read (e.g. Work email)"},"type":{"type":"string","enum":["text","email","tel","url","number","date","textarea","select"],"description":"text: a line of text. textarea: a longer text. email: an email address. tel: a phone number. url: a web address (http or https). number: a number. date: a date (YYYY-MM-DD). select: one of `options`."},"required":{"type":"boolean","description":"Whether the agent must fill it in to send the request"},"options":{"description":"A select's choices","type":"array","items":{"type":"string"}}},"required":["name","label","type","required"],"additionalProperties":false},"description":"What agents ask the person for (none for link)"}},"required":["template","mode","about","fields"],"additionalProperties":false}},"required":["id","name","kind","title","status"],"additionalProperties":false},"description":"This page's items."},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Send it as `cursor` to read the next page. Null on the last page."}},"required":["items","nextCursor"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"request":{"params":["site"],"query":["cursor","limit","kind","status"]}}},"post":{"operationId":"front.actions.create","tags":["Front actions"],"summary":"Add a request action to the site","description":"Adds a request action from a template (GET action-templates), named after it: `request.mode` says how a request reaches the business (inbox: kept in the site's requests; deliver: POSTed, signed, to `request.webhookUrl`, a public https address; link: the agent hands the person `request.pageUrl`). The action starts off: turn it on with PUT …/live. Tools are not added here: a tool setup finds and builds them (POST tool-setups). Answers the action (201).","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"},{"name":"Idempotency-Key","in":"header","required":false,"description":"A unique value per logical request (a UUID). A retry with the same key and the same request replays the first answer instead of running again; keys are kept 24 hours.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["request"],"description":"request: a request action from a template"},"request":{"type":"object","properties":{"template":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$","description":"A template's key (GET S/action-templates)"},"mode":{"type":"string","enum":["inbox","deliver","link"],"description":"inbox: kept for you in the site's requests. deliver: POSTed, signed, to webhookUrl (and kept open there until your webhook takes it). link: the agent hands the person pageUrl to finish there; nothing is kept."},"title":{"description":"Default: the template's title","type":"string","minLength":1,"maxLength":120},"about":{"description":"Default: the template's description","type":"string","maxLength":500},"webhookUrl":{"description":"Required for deliver: a public https address","type":"string","maxLength":2048,"format":"uri"},"pageUrl":{"description":"Required for link","type":"string","maxLength":2048,"format":"uri"}},"required":["template","mode"],"description":"The request action to add"}},"required":["kind","request"]},"example":{"kind":"request","request":{"template":"book_demo","mode":"inbox"}}}}},"responses":{"201":{"description":"Add a request action to the site","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The action's id, which the action's own paths take as actionId"},"name":{"type":"string","description":"The name agents call it by; unique on the site"},"kind":{"type":"string","enum":["request","tool"],"description":"request: an agent fills it in for the person and the business answers (book a demo, contact sales…). tool: it acts on the site; ora found, built and checked it when the site's tools were set up."},"title":{"type":"string","description":"The action's title, as people and agents read it"},"status":{"type":"string","enum":["live","ready","off","broken"],"description":"live: agents are offered it now. ready: a tool that works and is not offered yet (one step from live). off: a request action that is not offered. broken: a tool whose last check by ora did not pass."},"request":{"description":"Request actions only: how a request reaches the business","type":"object","properties":{"template":{"type":"string","description":"The template it was made from (a label: the action keeps its own fields)"},"mode":{"type":"string","enum":["inbox","deliver","link"],"description":"inbox: kept for you in the site's requests. deliver: POSTed, signed, to webhookUrl (and kept open there until your webhook takes it). link: the agent hands the person pageUrl to finish there; nothing is kept."},"about":{"type":"string","description":"What agents should know about it, in your words (part of the description they read)"},"webhookUrl":{"description":"deliver: the https address requests are POSTed to","type":"string"},"pageUrl":{"description":"link: the page the person finishes on","type":"string"},"fields":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The field's key (email, company…): a request's `fields` carry the person's answer under it"},"label":{"type":"string","description":"What the field asks for, in the words agents read (e.g. Work email)"},"type":{"type":"string","enum":["text","email","tel","url","number","date","textarea","select"],"description":"text: a line of text. textarea: a longer text. email: an email address. tel: a phone number. url: a web address (http or https). number: a number. date: a date (YYYY-MM-DD). select: one of `options`."},"required":{"type":"boolean","description":"Whether the agent must fill it in to send the request"},"options":{"description":"A select's choices","type":"array","items":{"type":"string"}}},"required":["name","label","type","required"],"additionalProperties":false},"description":"What agents ask the person for (none for link)"}},"required":["template","mode","about","fields"],"additionalProperties":false}},"required":["id","name","kind","title","status"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST): an unknown template, or a webhook that is not a public https address.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"The site has an action with that name (ACTION_NAME_TAKEN), or the Idempotency-Key conflicts (IDEMPOTENCY_KEY_REUSED, IDEMPOTENCY_IN_PROGRESS).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.actions:write","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-idempotent":true,"x-ora-mcp-tool":{"name":"front_add_action","title":"Add a request action to the site","description":"Adds a request action from a template (GET action-templates), named after it: `request.mode` says how a request reaches the business (inbox: kept in the site's requests; deliver: POSTed, signed, to `request.webhookUrl`, a public https address; link: the agent hands the person `request.pageUrl`). The action starts off: turn it on with PUT …/live. Tools are not added here: a tool setup finds and builds them (POST tool-setups). Answers the action (201).","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"kind":{"type":"string","enum":["request"],"description":"request: a request action from a template"},"request":{"type":"object","properties":{"template":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$","description":"A template's key (GET S/action-templates)"},"mode":{"type":"string","enum":["inbox","deliver","link"],"description":"inbox: kept for you in the site's requests. deliver: POSTed, signed, to webhookUrl (and kept open there until your webhook takes it). link: the agent hands the person pageUrl to finish there; nothing is kept."},"title":{"description":"Default: the template's title","type":"string","minLength":1,"maxLength":120},"about":{"description":"Default: the template's description","type":"string","maxLength":500},"webhookUrl":{"description":"Required for deliver: a public https address","type":"string","maxLength":2048,"format":"uri"},"pageUrl":{"description":"Required for link","type":"string","maxLength":2048,"format":"uri"}},"required":["template","mode"],"description":"The request action to add"}},"required":["site","kind","request"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The action's id, which the action's own paths take as actionId"},"name":{"type":"string","description":"The name agents call it by; unique on the site"},"kind":{"type":"string","enum":["request","tool"],"description":"request: an agent fills it in for the person and the business answers (book a demo, contact sales…). tool: it acts on the site; ora found, built and checked it when the site's tools were set up."},"title":{"type":"string","description":"The action's title, as people and agents read it"},"status":{"type":"string","enum":["live","ready","off","broken"],"description":"live: agents are offered it now. ready: a tool that works and is not offered yet (one step from live). off: a request action that is not offered. broken: a tool whose last check by ora did not pass."},"request":{"description":"Request actions only: how a request reaches the business","type":"object","properties":{"template":{"type":"string","description":"The template it was made from (a label: the action keeps its own fields)"},"mode":{"type":"string","enum":["inbox","deliver","link"],"description":"inbox: kept for you in the site's requests. deliver: POSTed, signed, to webhookUrl (and kept open there until your webhook takes it). link: the agent hands the person pageUrl to finish there; nothing is kept."},"about":{"type":"string","description":"What agents should know about it, in your words (part of the description they read)"},"webhookUrl":{"description":"deliver: the https address requests are POSTed to","type":"string"},"pageUrl":{"description":"link: the page the person finishes on","type":"string"},"fields":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The field's key (email, company…): a request's `fields` carry the person's answer under it"},"label":{"type":"string","description":"What the field asks for, in the words agents read (e.g. Work email)"},"type":{"type":"string","enum":["text","email","tel","url","number","date","textarea","select"],"description":"text: a line of text. textarea: a longer text. email: an email address. tel: a phone number. url: a web address (http or https). number: a number. date: a date (YYYY-MM-DD). select: one of `options`."},"required":{"type":"boolean","description":"Whether the agent must fill it in to send the request"},"options":{"description":"A select's choices","type":"array","items":{"type":"string"}}},"required":["name","label","type","required"],"additionalProperties":false},"description":"What agents ask the person for (none for link)"}},"required":["template","mode","about","fields"],"additionalProperties":false}},"required":["id","name","kind","title","status"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"request":{"params":["site"],"body":["kind","request"]}}}},"/studio/v1/front/sites/{site}/actions/{actionId}":{"get":{"operationId":"front.actions.get","tags":["Front actions"],"summary":"Read an action","description":"One action: its kind, its status and, for a request action, its settings.","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"},{"name":"actionId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The action's id: its `id` in the site's action list."},"example":"4b1f8c2e-9d3a-4e6b-8f7c-2a5d9e1b3c60"}],"responses":{"200":{"description":"Read an action","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The action's id, which the action's own paths take as actionId"},"name":{"type":"string","description":"The name agents call it by; unique on the site"},"kind":{"type":"string","enum":["request","tool"],"description":"request: an agent fills it in for the person and the business answers (book a demo, contact sales…). tool: it acts on the site; ora found, built and checked it when the site's tools were set up."},"title":{"type":"string","description":"The action's title, as people and agents read it"},"status":{"type":"string","enum":["live","ready","off","broken"],"description":"live: agents are offered it now. ready: a tool that works and is not offered yet (one step from live). off: a request action that is not offered. broken: a tool whose last check by ora did not pass."},"request":{"description":"Request actions only: how a request reaches the business","type":"object","properties":{"template":{"type":"string","description":"The template it was made from (a label: the action keeps its own fields)"},"mode":{"type":"string","enum":["inbox","deliver","link"],"description":"inbox: kept for you in the site's requests. deliver: POSTed, signed, to webhookUrl (and kept open there until your webhook takes it). link: the agent hands the person pageUrl to finish there; nothing is kept."},"about":{"type":"string","description":"What agents should know about it, in your words (part of the description they read)"},"webhookUrl":{"description":"deliver: the https address requests are POSTed to","type":"string"},"pageUrl":{"description":"link: the page the person finishes on","type":"string"},"fields":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The field's key (email, company…): a request's `fields` carry the person's answer under it"},"label":{"type":"string","description":"What the field asks for, in the words agents read (e.g. Work email)"},"type":{"type":"string","enum":["text","email","tel","url","number","date","textarea","select"],"description":"text: a line of text. textarea: a longer text. email: an email address. tel: a phone number. url: a web address (http or https). number: a number. date: a date (YYYY-MM-DD). select: one of `options`."},"required":{"type":"boolean","description":"Whether the agent must fill it in to send the request"},"options":{"description":"A select's choices","type":"array","items":{"type":"string"}}},"required":["name","label","type","required"],"additionalProperties":false},"description":"What agents ask the person for (none for link)"}},"required":["template","mode","about","fields"],"additionalProperties":false}},"required":["id","name","kind","title","status"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.actions:read","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_get_action","title":"Read an action","description":"One action: its kind, its status and, for a request action, its settings.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"actionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The action's id: its `id` in the site's action list."}},"required":["site","actionId"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The action's id, which the action's own paths take as actionId"},"name":{"type":"string","description":"The name agents call it by; unique on the site"},"kind":{"type":"string","enum":["request","tool"],"description":"request: an agent fills it in for the person and the business answers (book a demo, contact sales…). tool: it acts on the site; ora found, built and checked it when the site's tools were set up."},"title":{"type":"string","description":"The action's title, as people and agents read it"},"status":{"type":"string","enum":["live","ready","off","broken"],"description":"live: agents are offered it now. ready: a tool that works and is not offered yet (one step from live). off: a request action that is not offered. broken: a tool whose last check by ora did not pass."},"request":{"description":"Request actions only: how a request reaches the business","type":"object","properties":{"template":{"type":"string","description":"The template it was made from (a label: the action keeps its own fields)"},"mode":{"type":"string","enum":["inbox","deliver","link"],"description":"inbox: kept for you in the site's requests. deliver: POSTed, signed, to webhookUrl (and kept open there until your webhook takes it). link: the agent hands the person pageUrl to finish there; nothing is kept."},"about":{"type":"string","description":"What agents should know about it, in your words (part of the description they read)"},"webhookUrl":{"description":"deliver: the https address requests are POSTed to","type":"string"},"pageUrl":{"description":"link: the page the person finishes on","type":"string"},"fields":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The field's key (email, company…): a request's `fields` carry the person's answer under it"},"label":{"type":"string","description":"What the field asks for, in the words agents read (e.g. Work email)"},"type":{"type":"string","enum":["text","email","tel","url","number","date","textarea","select"],"description":"text: a line of text. textarea: a longer text. email: an email address. tel: a phone number. url: a web address (http or https). number: a number. date: a date (YYYY-MM-DD). select: one of `options`."},"required":{"type":"boolean","description":"Whether the agent must fill it in to send the request"},"options":{"description":"A select's choices","type":"array","items":{"type":"string"}}},"required":["name","label","type","required"],"additionalProperties":false},"description":"What agents ask the person for (none for link)"}},"required":["template","mode","about","fields"],"additionalProperties":false}},"required":["id","name","kind","title","status"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"request":{"params":["site","actionId"]}}},"patch":{"operationId":"front.actions.update","tags":["Front actions"],"summary":"Change a request action's settings","description":"JSON Merge Patch of a request action: `title`, and under `request` its `mode`, `about`, `webhookUrl` and `pageUrl` (null removes a URL; a member left out keeps its value; deliver needs a webhook, link a page). A live action stays live with the change. A tool action's settings are not yours to change (409 NOT_A_REQUEST_ACTION): ora builds it. Answers the action.","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"},{"name":"actionId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The action's id: its `id` in the site's action list."},"example":"4b1f8c2e-9d3a-4e6b-8f7c-2a5d9e1b3c60"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"description":"The action's new title, as people and agents read it; left out, it stays","type":"string","minLength":1,"maxLength":120},"request":{"description":"The request settings to change (mode, about, webhookUrl, pageUrl); a member left out keeps its value","type":"object","properties":{"mode":{"type":"string","enum":["inbox","deliver","link"],"description":"inbox: kept for you in the site's requests. deliver: POSTed, signed, to webhookUrl (and kept open there until your webhook takes it). link: the agent hands the person pageUrl to finish there; nothing is kept."},"about":{"description":"New text for what agents should know about it, in your words (empty clears it); left out, it stays","type":"string","maxLength":500},"webhookUrl":{"description":"deliver: a new public https address requests are POSTed to. null removes it (deliver needs one); left out, it stays","anyOf":[{"type":"string","maxLength":2048,"format":"uri"},{"type":"null"}]},"pageUrl":{"description":"link: a new page the person finishes on. null removes it (link needs one); left out, it stays","anyOf":[{"type":"string","maxLength":2048,"format":"uri"},{"type":"null"}]}}}}},"example":{"request":{"mode":"deliver","webhookUrl":"https://hooks.acme.com/ora"}}},"application/merge-patch+json":{"schema":{"type":"object","properties":{"title":{"description":"The action's new title, as people and agents read it; left out, it stays","type":"string","minLength":1,"maxLength":120},"request":{"description":"The request settings to change (mode, about, webhookUrl, pageUrl); a member left out keeps its value","type":"object","properties":{"mode":{"type":"string","enum":["inbox","deliver","link"],"description":"inbox: kept for you in the site's requests. deliver: POSTed, signed, to webhookUrl (and kept open there until your webhook takes it). link: the agent hands the person pageUrl to finish there; nothing is kept."},"about":{"description":"New text for what agents should know about it, in your words (empty clears it); left out, it stays","type":"string","maxLength":500},"webhookUrl":{"description":"deliver: a new public https address requests are POSTed to. null removes it (deliver needs one); left out, it stays","anyOf":[{"type":"string","maxLength":2048,"format":"uri"},{"type":"null"}]},"pageUrl":{"description":"link: a new page the person finishes on. null removes it (link needs one); left out, it stays","anyOf":[{"type":"string","maxLength":2048,"format":"uri"},{"type":"null"}]}}}}},"example":{"request":{"mode":"deliver","webhookUrl":"https://hooks.acme.com/ora"}}}}},"responses":{"200":{"description":"Change a request action's settings","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The action's id, which the action's own paths take as actionId"},"name":{"type":"string","description":"The name agents call it by; unique on the site"},"kind":{"type":"string","enum":["request","tool"],"description":"request: an agent fills it in for the person and the business answers (book a demo, contact sales…). tool: it acts on the site; ora found, built and checked it when the site's tools were set up."},"title":{"type":"string","description":"The action's title, as people and agents read it"},"status":{"type":"string","enum":["live","ready","off","broken"],"description":"live: agents are offered it now. ready: a tool that works and is not offered yet (one step from live). off: a request action that is not offered. broken: a tool whose last check by ora did not pass."},"request":{"description":"Request actions only: how a request reaches the business","type":"object","properties":{"template":{"type":"string","description":"The template it was made from (a label: the action keeps its own fields)"},"mode":{"type":"string","enum":["inbox","deliver","link"],"description":"inbox: kept for you in the site's requests. deliver: POSTed, signed, to webhookUrl (and kept open there until your webhook takes it). link: the agent hands the person pageUrl to finish there; nothing is kept."},"about":{"type":"string","description":"What agents should know about it, in your words (part of the description they read)"},"webhookUrl":{"description":"deliver: the https address requests are POSTed to","type":"string"},"pageUrl":{"description":"link: the page the person finishes on","type":"string"},"fields":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The field's key (email, company…): a request's `fields` carry the person's answer under it"},"label":{"type":"string","description":"What the field asks for, in the words agents read (e.g. Work email)"},"type":{"type":"string","enum":["text","email","tel","url","number","date","textarea","select"],"description":"text: a line of text. textarea: a longer text. email: an email address. tel: a phone number. url: a web address (http or https). number: a number. date: a date (YYYY-MM-DD). select: one of `options`."},"required":{"type":"boolean","description":"Whether the agent must fill it in to send the request"},"options":{"description":"A select's choices","type":"array","items":{"type":"string"}}},"required":["name","label","type","required"],"additionalProperties":false},"description":"What agents ask the person for (none for link)"}},"required":["template","mode","about","fields"],"additionalProperties":false}},"required":["id","name","kind","title","status"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"The action is a tool action, which ora builds (NOT_A_REQUEST_ACTION).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.actions:write","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_update_action","title":"Change a request action's settings","description":"JSON Merge Patch of a request action: `title`, and under `request` its `mode`, `about`, `webhookUrl` and `pageUrl` (null removes a URL; a member left out keeps its value; deliver needs a webhook, link a page). A live action stays live with the change. A tool action's settings are not yours to change (409 NOT_A_REQUEST_ACTION): ora builds it. Answers the action.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"actionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The action's id: its `id` in the site's action list."},"title":{"description":"The action's new title, as people and agents read it; left out, it stays","type":"string","minLength":1,"maxLength":120},"request":{"description":"The request settings to change (mode, about, webhookUrl, pageUrl); a member left out keeps its value","type":"object","properties":{"mode":{"type":"string","enum":["inbox","deliver","link"],"description":"inbox: kept for you in the site's requests. deliver: POSTed, signed, to webhookUrl (and kept open there until your webhook takes it). link: the agent hands the person pageUrl to finish there; nothing is kept."},"about":{"description":"New text for what agents should know about it, in your words (empty clears it); left out, it stays","type":"string","maxLength":500},"webhookUrl":{"description":"deliver: a new public https address requests are POSTed to. null removes it (deliver needs one); left out, it stays","anyOf":[{"type":"string","maxLength":2048,"format":"uri"},{"type":"null"}]},"pageUrl":{"description":"link: a new page the person finishes on. null removes it (link needs one); left out, it stays","anyOf":[{"type":"string","maxLength":2048,"format":"uri"},{"type":"null"}]}}}},"required":["site","actionId"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The action's id, which the action's own paths take as actionId"},"name":{"type":"string","description":"The name agents call it by; unique on the site"},"kind":{"type":"string","enum":["request","tool"],"description":"request: an agent fills it in for the person and the business answers (book a demo, contact sales…). tool: it acts on the site; ora found, built and checked it when the site's tools were set up."},"title":{"type":"string","description":"The action's title, as people and agents read it"},"status":{"type":"string","enum":["live","ready","off","broken"],"description":"live: agents are offered it now. ready: a tool that works and is not offered yet (one step from live). off: a request action that is not offered. broken: a tool whose last check by ora did not pass."},"request":{"description":"Request actions only: how a request reaches the business","type":"object","properties":{"template":{"type":"string","description":"The template it was made from (a label: the action keeps its own fields)"},"mode":{"type":"string","enum":["inbox","deliver","link"],"description":"inbox: kept for you in the site's requests. deliver: POSTed, signed, to webhookUrl (and kept open there until your webhook takes it). link: the agent hands the person pageUrl to finish there; nothing is kept."},"about":{"type":"string","description":"What agents should know about it, in your words (part of the description they read)"},"webhookUrl":{"description":"deliver: the https address requests are POSTed to","type":"string"},"pageUrl":{"description":"link: the page the person finishes on","type":"string"},"fields":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The field's key (email, company…): a request's `fields` carry the person's answer under it"},"label":{"type":"string","description":"What the field asks for, in the words agents read (e.g. Work email)"},"type":{"type":"string","enum":["text","email","tel","url","number","date","textarea","select"],"description":"text: a line of text. textarea: a longer text. email: an email address. tel: a phone number. url: a web address (http or https). number: a number. date: a date (YYYY-MM-DD). select: one of `options`."},"required":{"type":"boolean","description":"Whether the agent must fill it in to send the request"},"options":{"description":"A select's choices","type":"array","items":{"type":"string"}}},"required":["name","label","type","required"],"additionalProperties":false},"description":"What agents ask the person for (none for link)"}},"required":["template","mode","about","fields"],"additionalProperties":false}},"required":["id","name","kind","title","status"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"request":{"params":["site","actionId"],"body":["title","request"]}}},"delete":{"operationId":"front.actions.delete","tags":["Front actions"],"summary":"Delete a request action","description":"Agents stop seeing the request action at once and it leaves the list; the requests it already brought stay. It cannot be undone: to stop offering an action for now, turn it off instead (PUT …/live with `live: false`). A tool action is not deleted (409 NOT_A_REQUEST_ACTION): the site's tool setup manages its tools, and turning one off keeps it off. Answers the deleted action's id.","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"},{"name":"actionId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The action's id: its `id` in the site's action list."},"example":"4b1f8c2e-9d3a-4e6b-8f7c-2a5d9e1b3c60"}],"responses":{"200":{"description":"Delete a request action","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The id of the action that was deleted"}},"required":["id"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"The action is a tool action, which the site's tool setup manages: turn it off instead (NOT_A_REQUEST_ACTION).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.actions:write","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_delete_action","title":"Delete a request action","description":"Agents stop seeing the request action at once and it leaves the list; the requests it already brought stay. It cannot be undone: to stop offering an action for now, turn it off instead (PUT …/live with `live: false`). A tool action is not deleted (409 NOT_A_REQUEST_ACTION): the site's tool setup manages its tools, and turning one off keeps it off. Answers the deleted action's id.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"actionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The action's id: its `id` in the site's action list."}},"required":["site","actionId"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The id of the action that was deleted"}},"required":["id"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"request":{"params":["site","actionId"]}}}},"/studio/v1/front/sites/{site}/actions/{actionId}/app":{"get":{"operationId":"front.actions.app.get","tags":["Front actions"],"summary":"Read a tool action's app","description":"An MCP app is one self-contained HTML document that an agent's host (Claude, ChatGPT…) shows to present a tool's result. The host renders it in a sandboxed frame that lets it reach only the origins it names. ora designs one itself for some tools. This reads the app of the version agents get: the live one or, while the action is off, the one turning it on would offer (its newest working version). `by` says who made it, and `resourceOrigins` and `connectOrigins` are the origins it names: send them back with the html when you change the app (PUT …/app). 404 ACTION_APP_NOT_FOUND when that version has no app; a request action has none (409 NOT_A_TOOL_ACTION).","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"},{"name":"actionId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The action's id: its `id` in the site's action list."},"example":"4b1f8c2e-9d3a-4e6b-8f7c-2a5d9e1b3c60"}],"responses":{"200":{"description":"Read a tool action's app","content":{"application/json":{"schema":{"type":"object","properties":{"html":{"type":"string","description":"The app: one self-contained HTML document (its scripts and styles inline) the host shows in a sandboxed frame, handing it the tool's result"},"resourceOrigins":{"type":"array","items":{"type":"string"},"description":"The https origins the app may load images, fonts, scripts and styles from (the site's CDN, say); the host blocks every other. Send them back with the html when you change the app"},"connectOrigins":{"type":"array","items":{"type":"string"},"description":"The https origins the app may fetch from or open sockets to; the host blocks every other. Usually none: an app draws what the tool's result carries. Send them back with the html when you change the app"},"by":{"type":"string","enum":["ora","you"],"description":"Who made it. ora: ora designed it when it built the tool. you: someone of your organization (or their coding agent) wrote it and gave it to the action"}},"required":["html","resourceOrigins","connectOrigins","by"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The site does not exist here (SITE_NOT_FOUND), no action of the site has that id (ACTION_NOT_FOUND), or the version agents get has no app (ACTION_APP_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"The action is a request action, which has no app (NOT_A_TOOL_ACTION).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.actions:read","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_get_action_app","title":"Read a tool action's app","description":"An MCP app is one self-contained HTML document that an agent's host (Claude, ChatGPT…) shows to present a tool's result. The host renders it in a sandboxed frame that lets it reach only the origins it names. ora designs one itself for some tools. This reads the app of the version agents get: the live one or, while the action is off, the one turning it on would offer (its newest working version). `by` says who made it, and `resourceOrigins` and `connectOrigins` are the origins it names: send them back with the html when you change the app (PUT …/app). 404 ACTION_APP_NOT_FOUND when that version has no app; a request action has none (409 NOT_A_TOOL_ACTION).","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"actionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The action's id: its `id` in the site's action list."}},"required":["site","actionId"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"html":{"type":"string","description":"The app: one self-contained HTML document (its scripts and styles inline) the host shows in a sandboxed frame, handing it the tool's result"},"resourceOrigins":{"type":"array","items":{"type":"string"},"description":"The https origins the app may load images, fonts, scripts and styles from (the site's CDN, say); the host blocks every other. Send them back with the html when you change the app"},"connectOrigins":{"type":"array","items":{"type":"string"},"description":"The https origins the app may fetch from or open sockets to; the host blocks every other. Usually none: an app draws what the tool's result carries. Send them back with the html when you change the app"},"by":{"type":"string","enum":["ora","you"],"description":"Who made it. ora: ora designed it when it built the tool. you: someone of your organization (or their coding agent) wrote it and gave it to the action"}},"required":["html","resourceOrigins","connectOrigins","by"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"request":{"params":["site","actionId"]}}},"put":{"operationId":"front.actions.app.update","tags":["Front actions"],"summary":"Give a tool action an app you wrote","description":"An MCP app is one self-contained HTML document that an agent's host (Claude, ChatGPT…) shows to present a tool's result. The host renders it in a sandboxed frame that lets it reach only the origins it names. ora designs one itself for some tools. This gives a tool action one you wrote, in place of the app it has (ora's own included): one document, its scripts and styles inline, at most 512,000 bytes. Its inline code runs, and it reaches nothing but the https origins you name: `resourceOrigins` for images, fonts, scripts and styles, `connectOrigins` for fetch. The app and the host speak JSON-RPC 2.0 over `postMessage` with the parent window (MCP Apps): the app sends the request `ui/initialize`, then the notification `ui/notifications/initialized`; the host sends `ui/notifications/tool-result`, whose `params.structuredContent` is the tool's output; whenever its content changes height (first after it draws the result), the app sends `ui/notifications/size-changed` with `params.height` in pixels, or the host keeps the frame at its small default height. The app goes on the action's newest working version, as a new version with the same executor and verification: a live action goes live on it at once, so agents get the change immediately; an action that is off stays off. A request action takes no app (409 NOT_A_TOOL_ACTION); a tool with nothing working has no version to put it on (409 ACTION_NOT_WORKING). Answers the app.","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"},{"name":"actionId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The action's id: its `id` in the site's action list."},"example":"4b1f8c2e-9d3a-4e6b-8f7c-2a5d9e1b3c60"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"html":{"type":"string","minLength":1,"maxLength":512000,"description":"Your app: one self-contained HTML document, its scripts and styles inline, at most 512,000 bytes (UTF-8)"},"resourceOrigins":{"default":[],"description":"The https origins (at most 16) the app may load images, fonts, scripts and styles from; the host blocks every other. Left out: none","maxItems":16,"type":"array","items":{"type":"string","pattern":"^https:\\/\\/[a-z0-9.-]+(:\\d+)?$","description":"An https origin: the scheme and host, and a port if any (https://cdn.acme.com), with no path"}},"connectOrigins":{"default":[],"description":"The https origins (at most 16) the app may fetch from or open sockets to; the host blocks every other. Left out: none","maxItems":16,"type":"array","items":{"type":"string","pattern":"^https:\\/\\/[a-z0-9.-]+(:\\d+)?$","description":"An https origin: the scheme and host, and a port if any (https://cdn.acme.com), with no path"}}},"required":["html"]},"example":{"html":"<!doctype html><html><body><main id=\"result\"></main><script>/* send ui/initialize, then draw params.structuredContent from ui/notifications/tool-result */</script></body></html>","resourceOrigins":["https://cdn.acme.com"]}}}},"responses":{"200":{"description":"Give a tool action an app you wrote","content":{"application/json":{"schema":{"type":"object","properties":{"html":{"type":"string","description":"The app: one self-contained HTML document (its scripts and styles inline) the host shows in a sandboxed frame, handing it the tool's result"},"resourceOrigins":{"type":"array","items":{"type":"string"},"description":"The https origins the app may load images, fonts, scripts and styles from (the site's CDN, say); the host blocks every other. Send them back with the html when you change the app"},"connectOrigins":{"type":"array","items":{"type":"string"},"description":"The https origins the app may fetch from or open sockets to; the host blocks every other. Usually none: an app draws what the tool's result carries. Send them back with the html when you change the app"},"by":{"type":"string","enum":["ora","you"],"description":"Who made it. ora: ora designed it when it built the tool. you: someone of your organization (or their coding agent) wrote it and gave it to the action"}},"required":["html","resourceOrigins","connectOrigins","by"],"additionalProperties":false}}}},"400":{"description":"The app is refused (INVALID_REQUEST): no html, more than 512,000 bytes of it, more than 16 origins of a kind, or an origin that is not a plain https origin; `errors` names each field.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"The action is a request action, which takes no app (NOT_A_TOOL_ACTION), or a tool with no working version to put it on (ACTION_NOT_WORKING).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.actions:write","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_set_action_app","title":"Give a tool action an app you wrote","description":"An MCP app is one self-contained HTML document that an agent's host (Claude, ChatGPT…) shows to present a tool's result. The host renders it in a sandboxed frame that lets it reach only the origins it names. ora designs one itself for some tools. This gives a tool action one you wrote, in place of the app it has (ora's own included): one document, its scripts and styles inline, at most 512,000 bytes. Its inline code runs, and it reaches nothing but the https origins you name: `resourceOrigins` for images, fonts, scripts and styles, `connectOrigins` for fetch. The app and the host speak JSON-RPC 2.0 over `postMessage` with the parent window (MCP Apps): the app sends the request `ui/initialize`, then the notification `ui/notifications/initialized`; the host sends `ui/notifications/tool-result`, whose `params.structuredContent` is the tool's output; whenever its content changes height (first after it draws the result), the app sends `ui/notifications/size-changed` with `params.height` in pixels, or the host keeps the frame at its small default height. The app goes on the action's newest working version, as a new version with the same executor and verification: a live action goes live on it at once, so agents get the change immediately; an action that is off stays off. A request action takes no app (409 NOT_A_TOOL_ACTION); a tool with nothing working has no version to put it on (409 ACTION_NOT_WORKING). Answers the app.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"actionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The action's id: its `id` in the site's action list."},"html":{"type":"string","minLength":1,"maxLength":512000,"description":"Your app: one self-contained HTML document, its scripts and styles inline, at most 512,000 bytes (UTF-8)"},"resourceOrigins":{"default":[],"description":"The https origins (at most 16) the app may load images, fonts, scripts and styles from; the host blocks every other. Left out: none","maxItems":16,"type":"array","items":{"type":"string","pattern":"^https:\\/\\/[a-z0-9.-]+(:\\d+)?$","description":"An https origin: the scheme and host, and a port if any (https://cdn.acme.com), with no path"}},"connectOrigins":{"default":[],"description":"The https origins (at most 16) the app may fetch from or open sockets to; the host blocks every other. Left out: none","maxItems":16,"type":"array","items":{"type":"string","pattern":"^https:\\/\\/[a-z0-9.-]+(:\\d+)?$","description":"An https origin: the scheme and host, and a port if any (https://cdn.acme.com), with no path"}}},"required":["site","actionId","html"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"html":{"type":"string","description":"The app: one self-contained HTML document (its scripts and styles inline) the host shows in a sandboxed frame, handing it the tool's result"},"resourceOrigins":{"type":"array","items":{"type":"string"},"description":"The https origins the app may load images, fonts, scripts and styles from (the site's CDN, say); the host blocks every other. Send them back with the html when you change the app"},"connectOrigins":{"type":"array","items":{"type":"string"},"description":"The https origins the app may fetch from or open sockets to; the host blocks every other. Usually none: an app draws what the tool's result carries. Send them back with the html when you change the app"},"by":{"type":"string","enum":["ora","you"],"description":"Who made it. ora: ora designed it when it built the tool. you: someone of your organization (or their coding agent) wrote it and gave it to the action"}},"required":["html","resourceOrigins","connectOrigins","by"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"request":{"params":["site","actionId"],"body":["html","resourceOrigins","connectOrigins"]}}},"delete":{"operationId":"front.actions.app.delete","tags":["Front actions"],"summary":"Remove a tool action's app","description":"An MCP app is one self-contained HTML document that an agent's host (Claude, ChatGPT…) shows to present a tool's result. The host renders it in a sandboxed frame that lets it reach only the origins it names. ora designs one itself for some tools. This takes a tool action's app away, ora's own or one someone gave it, so hosts show the tool's result without one. As with a new app, the change is made on the action's newest working version (a new version of it, without the app): a live action goes live on it at once, so agents get the change immediately; an action that is off stays off. When the version agents get has no app, nothing changes. A request action has no app (409 NOT_A_TOOL_ACTION). Answers the action.","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"},{"name":"actionId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The action's id: its `id` in the site's action list."},"example":"4b1f8c2e-9d3a-4e6b-8f7c-2a5d9e1b3c60"}],"responses":{"200":{"description":"Remove a tool action's app","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The action's id, which the action's own paths take as actionId"},"name":{"type":"string","description":"The name agents call it by; unique on the site"},"kind":{"type":"string","enum":["request","tool"],"description":"request: an agent fills it in for the person and the business answers (book a demo, contact sales…). tool: it acts on the site; ora found, built and checked it when the site's tools were set up."},"title":{"type":"string","description":"The action's title, as people and agents read it"},"status":{"type":"string","enum":["live","ready","off","broken"],"description":"live: agents are offered it now. ready: a tool that works and is not offered yet (one step from live). off: a request action that is not offered. broken: a tool whose last check by ora did not pass."},"request":{"description":"Request actions only: how a request reaches the business","type":"object","properties":{"template":{"type":"string","description":"The template it was made from (a label: the action keeps its own fields)"},"mode":{"type":"string","enum":["inbox","deliver","link"],"description":"inbox: kept for you in the site's requests. deliver: POSTed, signed, to webhookUrl (and kept open there until your webhook takes it). link: the agent hands the person pageUrl to finish there; nothing is kept."},"about":{"type":"string","description":"What agents should know about it, in your words (part of the description they read)"},"webhookUrl":{"description":"deliver: the https address requests are POSTed to","type":"string"},"pageUrl":{"description":"link: the page the person finishes on","type":"string"},"fields":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The field's key (email, company…): a request's `fields` carry the person's answer under it"},"label":{"type":"string","description":"What the field asks for, in the words agents read (e.g. Work email)"},"type":{"type":"string","enum":["text","email","tel","url","number","date","textarea","select"],"description":"text: a line of text. textarea: a longer text. email: an email address. tel: a phone number. url: a web address (http or https). number: a number. date: a date (YYYY-MM-DD). select: one of `options`."},"required":{"type":"boolean","description":"Whether the agent must fill it in to send the request"},"options":{"description":"A select's choices","type":"array","items":{"type":"string"}}},"required":["name","label","type","required"],"additionalProperties":false},"description":"What agents ask the person for (none for link)"}},"required":["template","mode","about","fields"],"additionalProperties":false}},"required":["id","name","kind","title","status"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"The action is a request action, which has no app (NOT_A_TOOL_ACTION).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.actions:write","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_remove_action_app","title":"Remove a tool action's app","description":"An MCP app is one self-contained HTML document that an agent's host (Claude, ChatGPT…) shows to present a tool's result. The host renders it in a sandboxed frame that lets it reach only the origins it names. ora designs one itself for some tools. This takes a tool action's app away, ora's own or one someone gave it, so hosts show the tool's result without one. As with a new app, the change is made on the action's newest working version (a new version of it, without the app): a live action goes live on it at once, so agents get the change immediately; an action that is off stays off. When the version agents get has no app, nothing changes. A request action has no app (409 NOT_A_TOOL_ACTION). Answers the action.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"actionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The action's id: its `id` in the site's action list."}},"required":["site","actionId"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The action's id, which the action's own paths take as actionId"},"name":{"type":"string","description":"The name agents call it by; unique on the site"},"kind":{"type":"string","enum":["request","tool"],"description":"request: an agent fills it in for the person and the business answers (book a demo, contact sales…). tool: it acts on the site; ora found, built and checked it when the site's tools were set up."},"title":{"type":"string","description":"The action's title, as people and agents read it"},"status":{"type":"string","enum":["live","ready","off","broken"],"description":"live: agents are offered it now. ready: a tool that works and is not offered yet (one step from live). off: a request action that is not offered. broken: a tool whose last check by ora did not pass."},"request":{"description":"Request actions only: how a request reaches the business","type":"object","properties":{"template":{"type":"string","description":"The template it was made from (a label: the action keeps its own fields)"},"mode":{"type":"string","enum":["inbox","deliver","link"],"description":"inbox: kept for you in the site's requests. deliver: POSTed, signed, to webhookUrl (and kept open there until your webhook takes it). link: the agent hands the person pageUrl to finish there; nothing is kept."},"about":{"type":"string","description":"What agents should know about it, in your words (part of the description they read)"},"webhookUrl":{"description":"deliver: the https address requests are POSTed to","type":"string"},"pageUrl":{"description":"link: the page the person finishes on","type":"string"},"fields":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The field's key (email, company…): a request's `fields` carry the person's answer under it"},"label":{"type":"string","description":"What the field asks for, in the words agents read (e.g. Work email)"},"type":{"type":"string","enum":["text","email","tel","url","number","date","textarea","select"],"description":"text: a line of text. textarea: a longer text. email: an email address. tel: a phone number. url: a web address (http or https). number: a number. date: a date (YYYY-MM-DD). select: one of `options`."},"required":{"type":"boolean","description":"Whether the agent must fill it in to send the request"},"options":{"description":"A select's choices","type":"array","items":{"type":"string"}}},"required":["name","label","type","required"],"additionalProperties":false},"description":"What agents ask the person for (none for link)"}},"required":["template","mode","about","fields"],"additionalProperties":false}},"required":["id","name","kind","title","status"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"request":{"params":["site","actionId"]}}}},"/studio/v1/front/sites/{site}/actions/{actionId}/live":{"put":{"operationId":"front.actions.live.update","tags":["Front actions"],"summary":"Turn an action on or off","description":"`live: true` offers the action to agents at once (a tool as ora last checked it working); `live: false` stops offering it. Agents see the change immediately. A tool with nothing working to offer is refused (409 ACTION_NOT_WORKING). Answers the action.","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"},{"name":"actionId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The action's id: its `id` in the site's action list."},"example":"4b1f8c2e-9d3a-4e6b-8f7c-2a5d9e1b3c60"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"live":{"type":"boolean","description":"true: offer it to agents (a tool as ora last checked it working). false: stop offering it"}},"required":["live"]},"example":{"live":true}}}},"responses":{"200":{"description":"Turn an action on or off","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The action's id, which the action's own paths take as actionId"},"name":{"type":"string","description":"The name agents call it by; unique on the site"},"kind":{"type":"string","enum":["request","tool"],"description":"request: an agent fills it in for the person and the business answers (book a demo, contact sales…). tool: it acts on the site; ora found, built and checked it when the site's tools were set up."},"title":{"type":"string","description":"The action's title, as people and agents read it"},"status":{"type":"string","enum":["live","ready","off","broken"],"description":"live: agents are offered it now. ready: a tool that works and is not offered yet (one step from live). off: a request action that is not offered. broken: a tool whose last check by ora did not pass."},"request":{"description":"Request actions only: how a request reaches the business","type":"object","properties":{"template":{"type":"string","description":"The template it was made from (a label: the action keeps its own fields)"},"mode":{"type":"string","enum":["inbox","deliver","link"],"description":"inbox: kept for you in the site's requests. deliver: POSTed, signed, to webhookUrl (and kept open there until your webhook takes it). link: the agent hands the person pageUrl to finish there; nothing is kept."},"about":{"type":"string","description":"What agents should know about it, in your words (part of the description they read)"},"webhookUrl":{"description":"deliver: the https address requests are POSTed to","type":"string"},"pageUrl":{"description":"link: the page the person finishes on","type":"string"},"fields":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The field's key (email, company…): a request's `fields` carry the person's answer under it"},"label":{"type":"string","description":"What the field asks for, in the words agents read (e.g. Work email)"},"type":{"type":"string","enum":["text","email","tel","url","number","date","textarea","select"],"description":"text: a line of text. textarea: a longer text. email: an email address. tel: a phone number. url: a web address (http or https). number: a number. date: a date (YYYY-MM-DD). select: one of `options`."},"required":{"type":"boolean","description":"Whether the agent must fill it in to send the request"},"options":{"description":"A select's choices","type":"array","items":{"type":"string"}}},"required":["name","label","type","required"],"additionalProperties":false},"description":"What agents ask the person for (none for link)"}},"required":["template","mode","about","fields"],"additionalProperties":false}},"required":["id","name","kind","title","status"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.actions:write","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_set_action_live","title":"Turn an action on or off","description":"`live: true` offers the action to agents at once (a tool as ora last checked it working); `live: false` stops offering it. Agents see the change immediately. A tool with nothing working to offer is refused (409 ACTION_NOT_WORKING). Answers the action.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"actionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The action's id: its `id` in the site's action list."},"live":{"type":"boolean","description":"true: offer it to agents (a tool as ora last checked it working). false: stop offering it"}},"required":["site","actionId","live"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The action's id, which the action's own paths take as actionId"},"name":{"type":"string","description":"The name agents call it by; unique on the site"},"kind":{"type":"string","enum":["request","tool"],"description":"request: an agent fills it in for the person and the business answers (book a demo, contact sales…). tool: it acts on the site; ora found, built and checked it when the site's tools were set up."},"title":{"type":"string","description":"The action's title, as people and agents read it"},"status":{"type":"string","enum":["live","ready","off","broken"],"description":"live: agents are offered it now. ready: a tool that works and is not offered yet (one step from live). off: a request action that is not offered. broken: a tool whose last check by ora did not pass."},"request":{"description":"Request actions only: how a request reaches the business","type":"object","properties":{"template":{"type":"string","description":"The template it was made from (a label: the action keeps its own fields)"},"mode":{"type":"string","enum":["inbox","deliver","link"],"description":"inbox: kept for you in the site's requests. deliver: POSTed, signed, to webhookUrl (and kept open there until your webhook takes it). link: the agent hands the person pageUrl to finish there; nothing is kept."},"about":{"type":"string","description":"What agents should know about it, in your words (part of the description they read)"},"webhookUrl":{"description":"deliver: the https address requests are POSTed to","type":"string"},"pageUrl":{"description":"link: the page the person finishes on","type":"string"},"fields":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The field's key (email, company…): a request's `fields` carry the person's answer under it"},"label":{"type":"string","description":"What the field asks for, in the words agents read (e.g. Work email)"},"type":{"type":"string","enum":["text","email","tel","url","number","date","textarea","select"],"description":"text: a line of text. textarea: a longer text. email: an email address. tel: a phone number. url: a web address (http or https). number: a number. date: a date (YYYY-MM-DD). select: one of `options`."},"required":{"type":"boolean","description":"Whether the agent must fill it in to send the request"},"options":{"description":"A select's choices","type":"array","items":{"type":"string"}}},"required":["name","label","type","required"],"additionalProperties":false},"description":"What agents ask the person for (none for link)"}},"required":["template","mode","about","fields"],"additionalProperties":false}},"required":["id","name","kind","title","status"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"request":{"params":["site","actionId"],"body":["live"]}}}},"/studio/v1/front/sites/{site}/address":{"get":{"operationId":"front.address.get","tags":["Front connection"],"summary":"Read the site's agent address","description":"Where agents reach the site's Front: its root (`url`), its MCP server (`mcpUrl`) and its llms.txt, plus the name in it, the names it carried before and how many new names it can still take. `open` says whether any protocol answers visitors there; switch them in protocols. A site has an address once its first build is published (404 ADDRESS_NOT_FOUND before).","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"}],"responses":{"200":{"description":"Read the site's agent address","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"The address's name (`acme` in https://acme.<serve-domain>): the site's claimed name, or its id while it has none"},"url":{"type":"string","description":"The agent address (`https://acme.<serve-domain>`): where agents reach the site's Front"},"mcpUrl":{"type":"string","description":"The agent address's MCP endpoint (`url` + `/mcp`), for when MCP is on there (see protocols)"},"llmsTxtUrl":{"type":"string","description":"The site's llms.txt at the agent address (`url` + `/llms.txt`): its index for agents"},"open":{"type":"boolean","description":"Whether any protocol (NLWeb, MCP) answers visitors at the address; switch them in protocols"},"prefix":{"type":"string","description":"The address before the name, e.g. `https://`"},"suffix":{"type":"string","description":"The address after the name, e.g. `.ora.run`"},"earlier":{"type":"array","items":{"type":"string"},"description":"The names the address carried before, newest first. Each still reaches this site; no other site can take one."},"changesLeft":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"How many new names the address can still take. Going back to an earlier name uses none."}},"required":["name","url","mcpUrl","llmsTxtUrl","open","prefix","suffix","earlier","changesLeft"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The site does not exist here (SITE_NOT_FOUND), or has no address yet because its first build is not published (ADDRESS_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.connect:read","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_get_address","title":"Read the site's agent address","description":"Where agents reach the site's Front: its root (`url`), its MCP server (`mcpUrl`) and its llms.txt, plus the name in it, the names it carried before and how many new names it can still take. `open` says whether any protocol answers visitors there; switch them in protocols. A site has an address once its first build is published (404 ADDRESS_NOT_FOUND before).","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."}},"required":["site"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"name":{"type":"string","description":"The address's name (`acme` in https://acme.<serve-domain>): the site's claimed name, or its id while it has none"},"url":{"type":"string","description":"The agent address (`https://acme.<serve-domain>`): where agents reach the site's Front"},"mcpUrl":{"type":"string","description":"The agent address's MCP endpoint (`url` + `/mcp`), for when MCP is on there (see protocols)"},"llmsTxtUrl":{"type":"string","description":"The site's llms.txt at the agent address (`url` + `/llms.txt`): its index for agents"},"open":{"type":"boolean","description":"Whether any protocol (NLWeb, MCP) answers visitors at the address; switch them in protocols"},"prefix":{"type":"string","description":"The address before the name, e.g. `https://`"},"suffix":{"type":"string","description":"The address after the name, e.g. `.ora.run`"},"earlier":{"type":"array","items":{"type":"string"},"description":"The names the address carried before, newest first. Each still reaches this site; no other site can take one."},"changesLeft":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"How many new names the address can still take. Going back to an earlier name uses none."}},"required":["name","url","mcpUrl","llmsTxtUrl","open","prefix","suffix","earlier","changesLeft"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"request":{"params":["site"]}}},"patch":{"operationId":"front.address.update","tags":["Front connection"],"summary":"Rename the site's agent address","description":"Gives the address a new name (`acme` in https://acme.<serve-domain>). The old name keeps reaching the site and is never another site's. Renaming to the current name changes nothing; going back to an earlier name is always allowed. A name that cannot be used is refused, and nothing changes. Returns the address as it now stands. Who may use the address is set in protocols, not here.","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"description":"The new name: 3 to 40 characters: lower-case letters, digits and single hyphens, starting and ending with a letter or a digit; never an id, and never a name Ora keeps for itself (www, api, mcp, app, …). Surrounding spaces are dropped and it is lower-cased.","type":"string","minLength":1,"maxLength":253}}},"example":{"name":"acme"}},"application/merge-patch+json":{"schema":{"type":"object","properties":{"name":{"description":"The new name: 3 to 40 characters: lower-case letters, digits and single hyphens, starting and ending with a letter or a digit; never an id, and never a name Ora keeps for itself (www, api, mcp, app, …). Surrounding spaces are dropped and it is lower-cased.","type":"string","minLength":1,"maxLength":253}}},"example":{"name":"acme"}}}},"responses":{"200":{"description":"Rename the site's agent address","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"The address's name (`acme` in https://acme.<serve-domain>): the site's claimed name, or its id while it has none"},"url":{"type":"string","description":"The agent address (`https://acme.<serve-domain>`): where agents reach the site's Front"},"mcpUrl":{"type":"string","description":"The agent address's MCP endpoint (`url` + `/mcp`), for when MCP is on there (see protocols)"},"llmsTxtUrl":{"type":"string","description":"The site's llms.txt at the agent address (`url` + `/llms.txt`): its index for agents"},"open":{"type":"boolean","description":"Whether any protocol (NLWeb, MCP) answers visitors at the address; switch them in protocols"},"prefix":{"type":"string","description":"The address before the name, e.g. `https://`"},"suffix":{"type":"string","description":"The address after the name, e.g. `.ora.run`"},"earlier":{"type":"array","items":{"type":"string"},"description":"The names the address carried before, newest first. Each still reaches this site; no other site can take one."},"changesLeft":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"How many new names the address can still take. Going back to an earlier name uses none."}},"required":["name","url","mcpUrl","llmsTxtUrl","open","prefix","suffix","earlier","changesLeft"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Another site holds the name, now or before (ADDRESS_NAME_TAKEN); the address can take no new names (ADDRESS_NAME_LIMIT: its earlier names stay available); or the site's first build is not published yet (SITE_NOT_LIVE).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"The name breaks the naming rules (ADDRESS_NAME_INVALID) or is one Ora keeps (ADDRESS_NAME_RESERVED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.connect:write","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_rename_address","title":"Rename the site's agent address","description":"Gives the address a new name (`acme` in https://acme.<serve-domain>). The old name keeps reaching the site and is never another site's. Renaming to the current name changes nothing; going back to an earlier name is always allowed. A name that cannot be used is refused, and nothing changes. Returns the address as it now stands. Who may use the address is set in protocols, not here.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"name":{"description":"The new name: 3 to 40 characters: lower-case letters, digits and single hyphens, starting and ending with a letter or a digit; never an id, and never a name Ora keeps for itself (www, api, mcp, app, …). Surrounding spaces are dropped and it is lower-cased.","type":"string","minLength":1,"maxLength":253}},"required":["site"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"name":{"type":"string","description":"The address's name (`acme` in https://acme.<serve-domain>): the site's claimed name, or its id while it has none"},"url":{"type":"string","description":"The agent address (`https://acme.<serve-domain>`): where agents reach the site's Front"},"mcpUrl":{"type":"string","description":"The agent address's MCP endpoint (`url` + `/mcp`), for when MCP is on there (see protocols)"},"llmsTxtUrl":{"type":"string","description":"The site's llms.txt at the agent address (`url` + `/llms.txt`): its index for agents"},"open":{"type":"boolean","description":"Whether any protocol (NLWeb, MCP) answers visitors at the address; switch them in protocols"},"prefix":{"type":"string","description":"The address before the name, e.g. `https://`"},"suffix":{"type":"string","description":"The address after the name, e.g. `.ora.run`"},"earlier":{"type":"array","items":{"type":"string"},"description":"The names the address carried before, newest first. Each still reaches this site; no other site can take one."},"changesLeft":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"How many new names the address can still take. Going back to an earlier name uses none."}},"required":["name","url","mcpUrl","llmsTxtUrl","open","prefix","suffix","earlier","changesLeft"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"request":{"params":["site"],"body":["name"]}}}},"/studio/v1/front/sites/{site}/agent-files":{"get":{"operationId":"front.agentFiles.list","tags":["Front pages"],"summary":"List the agent files ora serves on the website","description":"The files ora makes for agents at fixed paths on the website (llms.txt, robots.txt, agents.md and the rest), in a fixed order, each with whether agents get ora's automatic version or an edit, and whether the website offers it now. Whether ora serves them at all is the site's serving (`agentFiles.enabled`, in autopilot). Files ora has not made yet are not listed.","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"},{"name":"cursor","in":"query","required":false,"schema":{"description":"Where this page starts: the previous page's `nextCursor`. Leave it out for the first page.","type":"string","minLength":1,"maxLength":500}},{"name":"limit","in":"query","required":false,"schema":{"default":50,"description":"The most items one page holds: 1 to 200, 50 when left out.","type":"integer","minimum":1,"maximum":200}}],"responses":{"200":{"description":"List the agent files ora serves on the website","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["llms","robots","ai_catalog","agents_md","openapi","security_txt","mcp_server_card","mcp_manifest","poppy","openai_apps_challenge","mcp_registry_auth"],"description":"llms (/llms.txt), robots (/robots.txt), ai_catalog (/.well-known/ai-catalog.json), agents_md (/agents.md), openapi (/openapi.json), security_txt (/.well-known/security.txt), mcp_server_card (/mcp/server-card), mcp_manifest (/.well-known/mcp.json), poppy (/.well-known/poppy.json), openai_apps_challenge and mcp_registry_auth (domain proofs for assistant directories)"},"path":{"type":"string","description":"Where the file is served on the website, e.g. /llms.txt"},"source":{"type":"string","enum":["auto","edited"],"description":"auto: agents get ora's automatic version. edited: agents get a person's edit, verbatim."},"offered":{"type":"boolean","description":"Whether the website offers the file now. Some follow a switch: openapi.json is offered while Ask or MCP is on (or once edited), the MCP files while MCP is on. A file not offered is left to the website."},"generatedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When ora last made its automatic version"},"editedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the edit agents get was published; null while automatic"}},"required":["kind","path","source","offered","generatedAt","editedAt"],"additionalProperties":false},"description":"This page's items."},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Send it as `cursor` to read the next page. Null on the last page."}},"required":["items","nextCursor"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.pages:read","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_list_agent_files","title":"List the agent files ora serves on the website","description":"The files ora makes for agents at fixed paths on the website (llms.txt, robots.txt, agents.md and the rest), in a fixed order, each with whether agents get ora's automatic version or an edit, and whether the website offers it now. Whether ora serves them at all is the site's serving (`agentFiles.enabled`, in autopilot). Files ora has not made yet are not listed.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"cursor":{"description":"Where this page starts: the previous page's `nextCursor`. Leave it out for the first page.","type":"string","minLength":1,"maxLength":500},"limit":{"default":50,"description":"The most items one page holds: 1 to 200, 50 when left out.","type":"integer","minimum":1,"maximum":200}},"required":["site"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["llms","robots","ai_catalog","agents_md","openapi","security_txt","mcp_server_card","mcp_manifest","poppy","openai_apps_challenge","mcp_registry_auth"],"description":"llms (/llms.txt), robots (/robots.txt), ai_catalog (/.well-known/ai-catalog.json), agents_md (/agents.md), openapi (/openapi.json), security_txt (/.well-known/security.txt), mcp_server_card (/mcp/server-card), mcp_manifest (/.well-known/mcp.json), poppy (/.well-known/poppy.json), openai_apps_challenge and mcp_registry_auth (domain proofs for assistant directories)"},"path":{"type":"string","description":"Where the file is served on the website, e.g. /llms.txt"},"source":{"type":"string","enum":["auto","edited"],"description":"auto: agents get ora's automatic version. edited: agents get a person's edit, verbatim."},"offered":{"type":"boolean","description":"Whether the website offers the file now. Some follow a switch: openapi.json is offered while Ask or MCP is on (or once edited), the MCP files while MCP is on. A file not offered is left to the website."},"generatedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When ora last made its automatic version"},"editedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the edit agents get was published; null while automatic"}},"required":["kind","path","source","offered","generatedAt","editedAt"],"additionalProperties":false},"description":"This page's items."},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Send it as `cursor` to read the next page. Null on the last page."}},"required":["items","nextCursor"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"request":{"params":["site"],"query":["cursor","limit"]}}}},"/studio/v1/front/sites/{site}/agent-files/regenerate":{"post":{"operationId":"front.agentFiles.regenerate","tags":["Front pages"],"summary":"Make the agent files' automatic versions again","description":"Makes ora's automatic version of every agent file again, in one pass, from the live website and its current agent traffic. Edits stay what agents get. Each item says whether ora made the file and, if not, why; read a file to see its new text. Fetches the website: allow up to 30 seconds.","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"},{"name":"Idempotency-Key","in":"header","required":false,"description":"A unique value per logical request (a UUID). A retry with the same key and the same request replays the first answer instead of running again; keys are kept 24 hours.","schema":{"type":"string","minLength":1,"maxLength":255}}],"responses":{"200":{"description":"Make the agent files' automatic versions again","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["llms","robots","ai_catalog","agents_md","openapi","security_txt","mcp_server_card","mcp_manifest","poppy","openai_apps_challenge","mcp_registry_auth"],"description":"llms (/llms.txt), robots (/robots.txt), ai_catalog (/.well-known/ai-catalog.json), agents_md (/agents.md), openapi (/openapi.json), security_txt (/.well-known/security.txt), mcp_server_card (/mcp/server-card), mcp_manifest (/.well-known/mcp.json), poppy (/.well-known/poppy.json), openai_apps_challenge and mcp_registry_auth (domain proofs for assistant directories)"},"ok":{"type":"boolean","description":"Whether ora made a new automatic version of the file"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why it did not, written to be shown as is; null when it did"}},"required":["kind","ok","reason"],"additionalProperties":false},"description":"Every agent file ora made again, in the list's order. Read a file to see its new text."}},"required":["items"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"ora does not serve this site yet (SERVING_NOT_SET_UP): set its serving mode first with front.serving.update (mode off changes nothing else). Or the Idempotency-Key conflicts (IDEMPOTENCY_KEY_REUSED, IDEMPOTENCY_IN_PROGRESS).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.pages:write","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-idempotent":true,"x-ora-mcp-tool":{"name":"front_regenerate_agent_files","title":"Make the agent files' automatic versions again","description":"Makes ora's automatic version of every agent file again, in one pass, from the live website and its current agent traffic. Edits stay what agents get. Each item says whether ora made the file and, if not, why; read a file to see its new text. Fetches the website: allow up to 30 seconds.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."}},"required":["site"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["llms","robots","ai_catalog","agents_md","openapi","security_txt","mcp_server_card","mcp_manifest","poppy","openai_apps_challenge","mcp_registry_auth"],"description":"llms (/llms.txt), robots (/robots.txt), ai_catalog (/.well-known/ai-catalog.json), agents_md (/agents.md), openapi (/openapi.json), security_txt (/.well-known/security.txt), mcp_server_card (/mcp/server-card), mcp_manifest (/.well-known/mcp.json), poppy (/.well-known/poppy.json), openai_apps_challenge and mcp_registry_auth (domain proofs for assistant directories)"},"ok":{"type":"boolean","description":"Whether ora made a new automatic version of the file"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why it did not, written to be shown as is; null when it did"}},"required":["kind","ok","reason"],"additionalProperties":false},"description":"Every agent file ora made again, in the list's order. Read a file to see its new text."}},"required":["items"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true},"request":{"params":["site"]}}}},"/studio/v1/front/sites/{site}/agent-files/{kind}":{"get":{"operationId":"front.agentFiles.get","tags":["Front pages"],"summary":"Read an agent file","description":"One agent file in both layers: its text (the edit, else ora's automatic version), what agents get at its path, ora's automatic version (kept fresh even while an edit is live) and, for robots.txt, the website's own directives, which ora keeps as they are. 404 while ora has not made the file (regenerate makes it).","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"},{"name":"kind","in":"path","required":true,"schema":{"type":"string","enum":["llms","robots","ai_catalog","agents_md","openapi","security_txt","mcp_server_card","mcp_manifest","poppy","openai_apps_challenge","mcp_registry_auth"],"description":"llms (/llms.txt), robots (/robots.txt), ai_catalog (/.well-known/ai-catalog.json), agents_md (/agents.md), openapi (/openapi.json), security_txt (/.well-known/security.txt), mcp_server_card (/mcp/server-card), mcp_manifest (/.well-known/mcp.json), poppy (/.well-known/poppy.json), openai_apps_challenge and mcp_registry_auth (domain proofs for assistant directories)"},"example":"llms"}],"responses":{"200":{"description":"Read an agent file","content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["llms","robots","ai_catalog","agents_md","openapi","security_txt","mcp_server_card","mcp_manifest","poppy","openai_apps_challenge","mcp_registry_auth"],"description":"llms (/llms.txt), robots (/robots.txt), ai_catalog (/.well-known/ai-catalog.json), agents_md (/agents.md), openapi (/openapi.json), security_txt (/.well-known/security.txt), mcp_server_card (/mcp/server-card), mcp_manifest (/.well-known/mcp.json), poppy (/.well-known/poppy.json), openai_apps_challenge and mcp_registry_auth (domain proofs for assistant directories)"},"path":{"type":"string","description":"Where the file is served on the website, e.g. /llms.txt"},"source":{"type":"string","enum":["auto","edited"],"description":"auto: agents get ora's automatic version. edited: agents get a person's edit, verbatim."},"offered":{"type":"boolean","description":"Whether the website offers the file now. Some follow a switch: openapi.json is offered while Ask or MCP is on (or once edited), the MCP files while MCP is on. A file not offered is left to the website."},"generatedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When ora last made its automatic version"},"editedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the edit agents get was published; null while automatic"},"content":{"type":"string","description":"The file's text: the edit when there is one, else ora's automatic version. This is what you edit."},"servedContent":{"type":"string","description":"What agents get at `path`: `content`, plus the lines ora adds to point agents at Ask and MCP when on"},"generatedContent":{"type":"string","description":"ora's automatic version, kept fresh even while an edit is live, so going back to it loses nothing"},"siteDirectives":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"robots only: the website's own robots.txt directives (`content` without ora's block), which ora keeps as they are; null for other files"}},"required":["kind","path","source","offered","generatedAt","editedAt","content","servedContent","generatedContent","siteDirectives"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.pages:read","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_get_agent_file","title":"Read an agent file","description":"One agent file in both layers: its text (the edit, else ora's automatic version), what agents get at its path, ora's automatic version (kept fresh even while an edit is live) and, for robots.txt, the website's own directives, which ora keeps as they are. 404 while ora has not made the file (regenerate makes it).","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"kind":{"type":"string","enum":["llms","robots","ai_catalog","agents_md","openapi","security_txt","mcp_server_card","mcp_manifest","poppy","openai_apps_challenge","mcp_registry_auth"],"description":"llms (/llms.txt), robots (/robots.txt), ai_catalog (/.well-known/ai-catalog.json), agents_md (/agents.md), openapi (/openapi.json), security_txt (/.well-known/security.txt), mcp_server_card (/mcp/server-card), mcp_manifest (/.well-known/mcp.json), poppy (/.well-known/poppy.json), openai_apps_challenge and mcp_registry_auth (domain proofs for assistant directories)"}},"required":["site","kind"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["llms","robots","ai_catalog","agents_md","openapi","security_txt","mcp_server_card","mcp_manifest","poppy","openai_apps_challenge","mcp_registry_auth"],"description":"llms (/llms.txt), robots (/robots.txt), ai_catalog (/.well-known/ai-catalog.json), agents_md (/agents.md), openapi (/openapi.json), security_txt (/.well-known/security.txt), mcp_server_card (/mcp/server-card), mcp_manifest (/.well-known/mcp.json), poppy (/.well-known/poppy.json), openai_apps_challenge and mcp_registry_auth (domain proofs for assistant directories)"},"path":{"type":"string","description":"Where the file is served on the website, e.g. /llms.txt"},"source":{"type":"string","enum":["auto","edited"],"description":"auto: agents get ora's automatic version. edited: agents get a person's edit, verbatim."},"offered":{"type":"boolean","description":"Whether the website offers the file now. Some follow a switch: openapi.json is offered while Ask or MCP is on (or once edited), the MCP files while MCP is on. A file not offered is left to the website."},"generatedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When ora last made its automatic version"},"editedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the edit agents get was published; null while automatic"},"content":{"type":"string","description":"The file's text: the edit when there is one, else ora's automatic version. This is what you edit."},"servedContent":{"type":"string","description":"What agents get at `path`: `content`, plus the lines ora adds to point agents at Ask and MCP when on"},"generatedContent":{"type":"string","description":"ora's automatic version, kept fresh even while an edit is live, so going back to it loses nothing"},"siteDirectives":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"robots only: the website's own robots.txt directives (`content` without ora's block), which ora keeps as they are; null for other files"}},"required":["kind","path","source","offered","generatedAt","editedAt","content","servedContent","generatedContent","siteDirectives"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"request":{"params":["site","kind"]}}},"put":{"operationId":"front.agentFiles.update","tags":["Front pages"],"summary":"Publish an edited agent file","description":"Publishes the file to the live website with no deploy: agents get your text (plus ora's lines for Ask and MCP when on) at its path. The text is checked first: a file that would harm the website is refused (400, the problem in `errors`). To go back to ora's automatic version, DELETE the file's edit.","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"},{"name":"kind","in":"path","required":true,"schema":{"type":"string","enum":["llms","robots","ai_catalog","agents_md","openapi","security_txt","mcp_server_card","mcp_manifest","poppy","openai_apps_challenge","mcp_registry_auth"],"description":"llms (/llms.txt), robots (/robots.txt), ai_catalog (/.well-known/ai-catalog.json), agents_md (/agents.md), openapi (/openapi.json), security_txt (/.well-known/security.txt), mcp_server_card (/mcp/server-card), mcp_manifest (/.well-known/mcp.json), poppy (/.well-known/poppy.json), openai_apps_challenge and mcp_registry_auth (domain proofs for assistant directories)"},"example":"security_txt"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"content":{"type":"string","maxLength":500000,"description":"The file's new text, published to the live website at once (no deploy). It is checked first: a file that would harm the site (a robots.txt line that is not a directive, say) is refused."}},"required":["content"]},"example":{"content":"Contact: mailto:security@acme.com\nExpires: 2027-12-31T23:59:59Z\n"}}}},"responses":{"200":{"description":"Publish an edited agent file","content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["llms","robots","ai_catalog","agents_md","openapi","security_txt","mcp_server_card","mcp_manifest","poppy","openai_apps_challenge","mcp_registry_auth"],"description":"llms (/llms.txt), robots (/robots.txt), ai_catalog (/.well-known/ai-catalog.json), agents_md (/agents.md), openapi (/openapi.json), security_txt (/.well-known/security.txt), mcp_server_card (/mcp/server-card), mcp_manifest (/.well-known/mcp.json), poppy (/.well-known/poppy.json), openai_apps_challenge and mcp_registry_auth (domain proofs for assistant directories)"},"path":{"type":"string","description":"Where the file is served on the website, e.g. /llms.txt"},"source":{"type":"string","enum":["auto","edited"],"description":"auto: agents get ora's automatic version. edited: agents get a person's edit, verbatim."},"offered":{"type":"boolean","description":"Whether the website offers the file now. Some follow a switch: openapi.json is offered while Ask or MCP is on (or once edited), the MCP files while MCP is on. A file not offered is left to the website."},"generatedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When ora last made its automatic version"},"editedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the edit agents get was published; null while automatic"},"content":{"type":"string","description":"The file's text: the edit when there is one, else ora's automatic version. This is what you edit."},"servedContent":{"type":"string","description":"What agents get at `path`: `content`, plus the lines ora adds to point agents at Ask and MCP when on"},"generatedContent":{"type":"string","description":"ora's automatic version, kept fresh even while an edit is live, so going back to it loses nothing"},"siteDirectives":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"robots only: the website's own robots.txt directives (`content` without ora's block), which ora keeps as they are; null for other files"}},"required":["kind","path","source","offered","generatedAt","editedAt","content","servedContent","generatedContent","siteDirectives"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"ora does not serve this site yet (SERVING_NOT_SET_UP): set its serving mode first with front.serving.update (mode off changes nothing else).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.pages:write","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_edit_agent_file","title":"Publish an edited agent file","description":"Publishes the file to the live website with no deploy: agents get your text (plus ora's lines for Ask and MCP when on) at its path. The text is checked first: a file that would harm the website is refused (400, the problem in `errors`). To go back to ora's automatic version, DELETE the file's edit.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"kind":{"type":"string","enum":["llms","robots","ai_catalog","agents_md","openapi","security_txt","mcp_server_card","mcp_manifest","poppy","openai_apps_challenge","mcp_registry_auth"],"description":"llms (/llms.txt), robots (/robots.txt), ai_catalog (/.well-known/ai-catalog.json), agents_md (/agents.md), openapi (/openapi.json), security_txt (/.well-known/security.txt), mcp_server_card (/mcp/server-card), mcp_manifest (/.well-known/mcp.json), poppy (/.well-known/poppy.json), openai_apps_challenge and mcp_registry_auth (domain proofs for assistant directories)"},"content":{"type":"string","maxLength":500000,"description":"The file's new text, published to the live website at once (no deploy). It is checked first: a file that would harm the site (a robots.txt line that is not a directive, say) is refused."}},"required":["site","kind","content"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["llms","robots","ai_catalog","agents_md","openapi","security_txt","mcp_server_card","mcp_manifest","poppy","openai_apps_challenge","mcp_registry_auth"],"description":"llms (/llms.txt), robots (/robots.txt), ai_catalog (/.well-known/ai-catalog.json), agents_md (/agents.md), openapi (/openapi.json), security_txt (/.well-known/security.txt), mcp_server_card (/mcp/server-card), mcp_manifest (/.well-known/mcp.json), poppy (/.well-known/poppy.json), openai_apps_challenge and mcp_registry_auth (domain proofs for assistant directories)"},"path":{"type":"string","description":"Where the file is served on the website, e.g. /llms.txt"},"source":{"type":"string","enum":["auto","edited"],"description":"auto: agents get ora's automatic version. edited: agents get a person's edit, verbatim."},"offered":{"type":"boolean","description":"Whether the website offers the file now. Some follow a switch: openapi.json is offered while Ask or MCP is on (or once edited), the MCP files while MCP is on. A file not offered is left to the website."},"generatedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When ora last made its automatic version"},"editedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the edit agents get was published; null while automatic"},"content":{"type":"string","description":"The file's text: the edit when there is one, else ora's automatic version. This is what you edit."},"servedContent":{"type":"string","description":"What agents get at `path`: `content`, plus the lines ora adds to point agents at Ask and MCP when on"},"generatedContent":{"type":"string","description":"ora's automatic version, kept fresh even while an edit is live, so going back to it loses nothing"},"siteDirectives":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"robots only: the website's own robots.txt directives (`content` without ora's block), which ora keeps as they are; null for other files"}},"required":["kind","path","source","offered","generatedAt","editedAt","content","servedContent","generatedContent","siteDirectives"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"request":{"params":["site","kind"],"body":["content"]}}},"delete":{"operationId":"front.agentFiles.delete","tags":["Front pages"],"summary":"Go back to an agent file's automatic version","description":"Removes the edit: agents get ora's automatic version of the file again. Nothing is lost: the automatic version was kept fresh all along. Removing an edit that is not there changes nothing. Answers the file.","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"},{"name":"kind","in":"path","required":true,"schema":{"type":"string","enum":["llms","robots","ai_catalog","agents_md","openapi","security_txt","mcp_server_card","mcp_manifest","poppy","openai_apps_challenge","mcp_registry_auth"],"description":"llms (/llms.txt), robots (/robots.txt), ai_catalog (/.well-known/ai-catalog.json), agents_md (/agents.md), openapi (/openapi.json), security_txt (/.well-known/security.txt), mcp_server_card (/mcp/server-card), mcp_manifest (/.well-known/mcp.json), poppy (/.well-known/poppy.json), openai_apps_challenge and mcp_registry_auth (domain proofs for assistant directories)"},"example":"llms"}],"responses":{"200":{"description":"Go back to an agent file's automatic version","content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["llms","robots","ai_catalog","agents_md","openapi","security_txt","mcp_server_card","mcp_manifest","poppy","openai_apps_challenge","mcp_registry_auth"],"description":"llms (/llms.txt), robots (/robots.txt), ai_catalog (/.well-known/ai-catalog.json), agents_md (/agents.md), openapi (/openapi.json), security_txt (/.well-known/security.txt), mcp_server_card (/mcp/server-card), mcp_manifest (/.well-known/mcp.json), poppy (/.well-known/poppy.json), openai_apps_challenge and mcp_registry_auth (domain proofs for assistant directories)"},"path":{"type":"string","description":"Where the file is served on the website, e.g. /llms.txt"},"source":{"type":"string","enum":["auto","edited"],"description":"auto: agents get ora's automatic version. edited: agents get a person's edit, verbatim."},"offered":{"type":"boolean","description":"Whether the website offers the file now. Some follow a switch: openapi.json is offered while Ask or MCP is on (or once edited), the MCP files while MCP is on. A file not offered is left to the website."},"generatedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When ora last made its automatic version"},"editedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the edit agents get was published; null while automatic"},"content":{"type":"string","description":"The file's text: the edit when there is one, else ora's automatic version. This is what you edit."},"servedContent":{"type":"string","description":"What agents get at `path`: `content`, plus the lines ora adds to point agents at Ask and MCP when on"},"generatedContent":{"type":"string","description":"ora's automatic version, kept fresh even while an edit is live, so going back to it loses nothing"},"siteDirectives":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"robots only: the website's own robots.txt directives (`content` without ora's block), which ora keeps as they are; null for other files"}},"required":["kind","path","source","offered","generatedAt","editedAt","content","servedContent","generatedContent","siteDirectives"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"ora does not serve this site yet (SERVING_NOT_SET_UP): set its serving mode first with front.serving.update (mode off changes nothing else).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.pages:write","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_remove_agent_file_edit","title":"Go back to an agent file's automatic version","description":"Removes the edit: agents get ora's automatic version of the file again. Nothing is lost: the automatic version was kept fresh all along. Removing an edit that is not there changes nothing. Answers the file.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"kind":{"type":"string","enum":["llms","robots","ai_catalog","agents_md","openapi","security_txt","mcp_server_card","mcp_manifest","poppy","openai_apps_challenge","mcp_registry_auth"],"description":"llms (/llms.txt), robots (/robots.txt), ai_catalog (/.well-known/ai-catalog.json), agents_md (/agents.md), openapi (/openapi.json), security_txt (/.well-known/security.txt), mcp_server_card (/mcp/server-card), mcp_manifest (/.well-known/mcp.json), poppy (/.well-known/poppy.json), openai_apps_challenge and mcp_registry_auth (domain proofs for assistant directories)"}},"required":["site","kind"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["llms","robots","ai_catalog","agents_md","openapi","security_txt","mcp_server_card","mcp_manifest","poppy","openai_apps_challenge","mcp_registry_auth"],"description":"llms (/llms.txt), robots (/robots.txt), ai_catalog (/.well-known/ai-catalog.json), agents_md (/agents.md), openapi (/openapi.json), security_txt (/.well-known/security.txt), mcp_server_card (/mcp/server-card), mcp_manifest (/.well-known/mcp.json), poppy (/.well-known/poppy.json), openai_apps_challenge and mcp_registry_auth (domain proofs for assistant directories)"},"path":{"type":"string","description":"Where the file is served on the website, e.g. /llms.txt"},"source":{"type":"string","enum":["auto","edited"],"description":"auto: agents get ora's automatic version. edited: agents get a person's edit, verbatim."},"offered":{"type":"boolean","description":"Whether the website offers the file now. Some follow a switch: openapi.json is offered while Ask or MCP is on (or once edited), the MCP files while MCP is on. A file not offered is left to the website."},"generatedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When ora last made its automatic version"},"editedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the edit agents get was published; null while automatic"},"content":{"type":"string","description":"The file's text: the edit when there is one, else ora's automatic version. This is what you edit."},"servedContent":{"type":"string","description":"What agents get at `path`: `content`, plus the lines ora adds to point agents at Ask and MCP when on"},"generatedContent":{"type":"string","description":"ora's automatic version, kept fresh even while an edit is live, so going back to it loses nothing"},"siteDirectives":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"robots only: the website's own robots.txt directives (`content` without ora's block), which ora keeps as they are; null for other files"}},"required":["kind","path","source","offered","generatedAt","editedAt","content","servedContent","generatedContent","siteDirectives"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"request":{"params":["site","kind"]}}}},"/studio/v1/front/sites/{site}/connection":{"get":{"operationId":"front.connection.get","tags":["Front connection"],"summary":"Read the site's website connection","description":"How the site's traffic reaches its Front: the saved method and its settings, the status (decided from the latest transmitter check-in or verified traffic), the last checks, the managed CDN's provisioning and the transmitter credentials' metadata.","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"}],"responses":{"200":{"description":"Read the site's website connection","content":{"application/json":{"schema":{"type":"object","properties":{"method":{"anyOf":[{"type":"string","enum":["managed","cloudflare","vercel","nextjs","express","other"]},{"type":"null"}],"description":"Null until a method is saved"},"status":{"type":"string","enum":["not_connected","pending","connected","failed"],"description":"not_connected: no method is saved and Ora never heard from the website. pending: a method is saved and Ora waits for its first contact (the managed CDN is provisioning, or the transmitter is not installed or has not reported yet). connected: the transmitter checked in, or traffic from the hostname was verified, within the last 24 hours. failed: the last check failed, the managed CDN reports an error, or Ora heard nothing for more than 24 hours."},"hostname":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The hostname visitors land on; null until a method is saved"},"nextVersion":{"anyOf":[{"type":"string","enum":["16","13-15"]},{"type":"null"}],"description":"Transmitters only"},"existingMiddleware":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Transmitters only"},"managed":{"anyOf":[{"type":"object","properties":{"hostingProvider":{"type":"string","enum":["wpengine","kinsta","webflow","hostinger","cloudfront","self_hosted"],"description":"Where the website is hosted. GET /hosting?url= detects the common ones from public signals."},"originUrl":{"type":"string","minLength":1,"maxLength":2048,"description":"The origin Ora's CDN fetches pages from: an HTTPS origin with a public hostname (https://origin.acme.com), never the hostname visitors use, and no port, path or query."},"dnsManagement":{"type":"string","enum":["external","wpengine","hostinger","flattened","apex_proxy"],"description":"How the hostname's DNS changes. external: you change records at your DNS provider. flattened: your DNS flattens a root-domain CNAME. wpengine, hostinger: the host manages DNS. apex_proxy: static addresses for a root domain."},"originalDnsRecords":{"minItems":1,"maxItems":16,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":3,"maxLength":253,"description":"The record's hostname: the connection's hostname"},"type":{"type":"string","enum":["A","AAAA","CNAME","ALIAS"],"description":"ALIAS is how DNS panels show an apex alias (ALIAS, ANAME, flattening)"},"value":{"type":"string","minLength":1,"maxLength":253,"description":"An IP address for A and AAAA, a hostname for CNAME and ALIAS"},"ttl":{"anyOf":[{"type":"integer","minimum":0,"maximum":2147483647},{"type":"null"}],"description":"Seconds. Null only for a Route53 alias, which inherits its TTL."},"proxied":{"description":"Whether the DNS provider proxies it (Cloudflare's orange cloud). Required for a subdomain's records.","type":"boolean"},"proxyProvider":{"description":"Who proxies it; only for a proxied record","type":"string","enum":["cloudflare","other","unknown"]},"route53Alias":{"description":"Set for a Route53 alias to a CloudFront distribution","type":"object","properties":{"recordType":{"type":"string","enum":["A","AAAA"],"description":"A: the alias for IPv4 addresses. AAAA: the alias for IPv6 addresses."},"hostedZoneId":{"type":"string","minLength":1,"maxLength":32,"description":"CloudFront's hosted zone id (Z2FDTNDATAQYW2)"}},"required":["recordType","hostedZoneId"],"additionalProperties":false}},"required":["name","type","value","ttl"],"additionalProperties":false},"description":"The hostname's traffic records as they are now, copied from your DNS provider: Ora restores them on disconnect"}},"required":["hostingProvider","originUrl","dnsManagement","originalDnsRecords"],"additionalProperties":false},{"type":"null"}],"description":"The managed method's settings; null for a transmitter"},"checks":{"type":"object","properties":{"live":{"type":"object","properties":{"state":{"type":"string","enum":["pending","verified","failed"],"description":"pending: not checked yet, or still waiting (see message). verified: the check passed. failed: it did not."},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What the check found, in a sentence to show as is"},"checkedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When it was last checked; null before its first check"}},"required":["state","message","checkedAt"],"additionalProperties":false,"description":"The website answers through the connection: the transmitter responds at the hostname, or the managed CDN serves it"},"traffic":{"type":"object","properties":{"state":{"type":"string","enum":["pending","verified","failed"],"description":"pending: not checked yet, or still waiting (see message). verified: the check passed. failed: it did not."},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What the check found, in a sentence to show as is"},"checkedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When it was last checked; null before its first check"}},"required":["state","message","checkedAt"],"additionalProperties":false,"description":"Traffic from the hostname reached Ora since the connection was last saved"},"checkedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the checks last ran; null before the first"},"installation":{"type":"array","items":{"type":"object","properties":{"state":{"type":"string","enum":["pending","verified","failed"],"description":"pending: not checked yet, or still waiting (see message). verified: the check passed. failed: it did not."},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What the check found, in a sentence to show as is"},"checkedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When it was last checked; null before its first check"},"name":{"type":"string","enum":["ownership","certificate","hostname","origin","deployment","credential","routing","dns","traffic"],"description":"What is checked. ownership: you control the hostname (its ownership record). certificate: the CDN's TLS certificate for it is issued. hostname: the CDN activated the hostname. origin: the origin serves this website (its origin proof). deployment: the CDN's setup for the site is deployed. credential: the CDN's key for reporting traffic to Ora is ready. routing: the CDN's route to the site passed its check. dns: the hostname's traffic records point at the CDN. traffic: requests to the hostname reach the site through the CDN."}},"required":["state","message","checkedAt","name"],"additionalProperties":false},"description":"Managed CDN only: each step Ora verifies while provisioning, in order; empty for a transmitter"}},"required":["live","traffic","checkedAt","installation"],"additionalProperties":false,"description":"Whether the website reaches its Front through the connection, as last checked (front.connection.checks.create checks again)"},"installation":{"anyOf":[{"type":"object","properties":{"state":{"type":"string","enum":["draft","canceled","provisioning","awaiting_verification","ready_for_dns","active","error","disconnecting","draining","disconnected"],"description":"Where provisioning is. error: it stopped (see failure; it is retried at nextAttemptAt)."},"stage":{"type":"string","enum":["setup","ready_for_dns","active","disconnecting"],"description":"What happens next. setup: Ora prepares the CDN (follow steps). ready_for_dns: set the traffic records (dns-records). active: done. disconnecting: put the original records back."},"originUrl":{"type":"string","description":"The origin the CDN fetches pages from now; during an origin change it stays live until the new one verifies"},"steps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step's id, stable for its host (e.g. cloudfront-proof)"},"title":{"type":"string","description":"The step in a short line, to show as is"},"body":{"type":"string","description":"What to do, in a paragraph to show as is"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A page at the host where it is done, when there is one"}},"required":["id","title","body","url"],"additionalProperties":false},"description":"What to do at the website's host and DNS, in order"},"originProof":{"anyOf":[{"type":"object","properties":{"path":{"type":"string","description":"Where on the origin to serve the document"},"document":{"type":"object","properties":{"installationId":{"type":"string","description":"The managed installation the proof is for"},"publicHostname":{"type":"string","description":"The hostname visitors land on: the connection's hostname"},"token":{"type":"string","description":"The installation's verification token"}},"required":["installationId","publicHostname","token"],"additionalProperties":false,"description":"Serve exactly this JSON"}},"required":["path","document"],"additionalProperties":false},{"type":"null"}],"description":"How Ora verifies the origin serves this website: serve the document at the path on the origin. The WordPress plugin does it for you (wordpressPlugin). Null when no proof is asked for."},"wordpressPlugin":{"type":"boolean","description":"A WordPress plugin serving the origin proof is available: GET …/connection/wordpress-plugin"},"originChange":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The origin change's id: read the change again at GET …/connection/origin-changes/{changeId}"},"originUrl":{"type":"string","description":"The new origin"},"previousOriginUrl":{"type":"string","description":"The origin the CDN fetched from before: it keeps serving until the new one verifies, and stays if the change fails"},"status":{"type":"string","enum":["pending","verifying","switching","complete","failed"],"description":"pending, verifying, switching: still running. complete: the CDN fetches from the new origin. failed: it did not."},"requestedAt":{"type":"string","description":"UTC, ISO 8601"},"completedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the change finished, complete or failed; null while it runs"},"failure":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"Why, as a stable code (e.g. ORIGIN_CHANGE_CANCELLED)"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why, in a sentence to show as is; null when none was recorded"}},"required":["code","detail"],"additionalProperties":false},{"type":"null"}],"description":"Why it failed; null unless failed"}},"required":["id","originUrl","previousOriginUrl","status","requestedAt","completedAt","failure"],"additionalProperties":false},{"type":"null"}],"description":"The latest origin change, if any"},"restoration":{"anyOf":[{"type":"object","properties":{"confirmedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When you confirmed the original records are back; null until you do"}},"required":["confirmedAt"],"additionalProperties":false},{"type":"null"}],"description":"Set while a disconnect waits for you to confirm the original DNS records are back (POST …/connection/dns-restoration); confirmedAt once you did. Null when nothing is asked."},"failure":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"What went wrong, as a stable code (e.g. PROVIDER_UNAVAILABLE)"},"at":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When it happened; null when not recorded"}},"required":["code","at"],"additionalProperties":false},{"type":"null"}],"description":"The latest failure, while one stands"},"nextAttemptAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When Ora next works on the provisioning (a retry or its next check); null when nothing is scheduled"},"updatedAt":{"type":"string","description":"UTC, ISO 8601"}},"required":["state","stage","originUrl","steps","originProof","wordpressPlugin","originChange","restoration","failure","nextAttemptAt","updatedAt"],"additionalProperties":false},{"type":"null"}],"description":"The managed CDN's provisioning, once its settings were applied; null for a transmitter"},"credentials":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The credential's id: send it as credentialId to revoke the credential"},"fingerprint":{"type":"string","description":"The credential's visible prefix: enough to tell credentials apart, never enough to use one"},"createdAt":{"type":"string","description":"When the credential was made"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The id of the person who made it; null when that is not on record"},"lastUsedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When a transmitter last used it; null if never"}},"required":["id","fingerprint","createdAt","createdBy","lastUsedAt"],"additionalProperties":false},"description":"The site's key, metadata only: the transmitter key the connection names (minting one with front.connection.credentials.create saves it here, as does choosing one in Studio), while it is live and holds only a transmitter's grants. Empty when none is named, or once it is revoked."},"lastContactAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"The latest transmitter check-in or verified traffic: what `status` is decided from"},"transmitterVersion":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The version the transmitter last reported, when it reports one"}},"required":["method","status","hostname","nextVersion","existingMiddleware","managed","checks","installation","credentials","lastContactAt","transmitterVersion"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.connect:read","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_get_connection","title":"Read the site's website connection","description":"How the site's traffic reaches its Front: the saved method and its settings, the status (decided from the latest transmitter check-in or verified traffic), the last checks, the managed CDN's provisioning and the transmitter credentials' metadata.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."}},"required":["site"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"method":{"anyOf":[{"type":"string","enum":["managed","cloudflare","vercel","nextjs","express","other"]},{"type":"null"}],"description":"Null until a method is saved"},"status":{"type":"string","enum":["not_connected","pending","connected","failed"],"description":"not_connected: no method is saved and Ora never heard from the website. pending: a method is saved and Ora waits for its first contact (the managed CDN is provisioning, or the transmitter is not installed or has not reported yet). connected: the transmitter checked in, or traffic from the hostname was verified, within the last 24 hours. failed: the last check failed, the managed CDN reports an error, or Ora heard nothing for more than 24 hours."},"hostname":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The hostname visitors land on; null until a method is saved"},"nextVersion":{"anyOf":[{"type":"string","enum":["16","13-15"]},{"type":"null"}],"description":"Transmitters only"},"existingMiddleware":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Transmitters only"},"managed":{"anyOf":[{"type":"object","properties":{"hostingProvider":{"type":"string","enum":["wpengine","kinsta","webflow","hostinger","cloudfront","self_hosted"],"description":"Where the website is hosted. GET /hosting?url= detects the common ones from public signals."},"originUrl":{"type":"string","minLength":1,"maxLength":2048,"description":"The origin Ora's CDN fetches pages from: an HTTPS origin with a public hostname (https://origin.acme.com), never the hostname visitors use, and no port, path or query."},"dnsManagement":{"type":"string","enum":["external","wpengine","hostinger","flattened","apex_proxy"],"description":"How the hostname's DNS changes. external: you change records at your DNS provider. flattened: your DNS flattens a root-domain CNAME. wpengine, hostinger: the host manages DNS. apex_proxy: static addresses for a root domain."},"originalDnsRecords":{"minItems":1,"maxItems":16,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":3,"maxLength":253,"description":"The record's hostname: the connection's hostname"},"type":{"type":"string","enum":["A","AAAA","CNAME","ALIAS"],"description":"ALIAS is how DNS panels show an apex alias (ALIAS, ANAME, flattening)"},"value":{"type":"string","minLength":1,"maxLength":253,"description":"An IP address for A and AAAA, a hostname for CNAME and ALIAS"},"ttl":{"anyOf":[{"type":"integer","minimum":0,"maximum":2147483647},{"type":"null"}],"description":"Seconds. Null only for a Route53 alias, which inherits its TTL."},"proxied":{"description":"Whether the DNS provider proxies it (Cloudflare's orange cloud). Required for a subdomain's records.","type":"boolean"},"proxyProvider":{"description":"Who proxies it; only for a proxied record","type":"string","enum":["cloudflare","other","unknown"]},"route53Alias":{"description":"Set for a Route53 alias to a CloudFront distribution","type":"object","properties":{"recordType":{"type":"string","enum":["A","AAAA"],"description":"A: the alias for IPv4 addresses. AAAA: the alias for IPv6 addresses."},"hostedZoneId":{"type":"string","minLength":1,"maxLength":32,"description":"CloudFront's hosted zone id (Z2FDTNDATAQYW2)"}},"required":["recordType","hostedZoneId"],"additionalProperties":false}},"required":["name","type","value","ttl"],"additionalProperties":false},"description":"The hostname's traffic records as they are now, copied from your DNS provider: Ora restores them on disconnect"}},"required":["hostingProvider","originUrl","dnsManagement","originalDnsRecords"],"additionalProperties":false},{"type":"null"}],"description":"The managed method's settings; null for a transmitter"},"checks":{"type":"object","properties":{"live":{"type":"object","properties":{"state":{"type":"string","enum":["pending","verified","failed"],"description":"pending: not checked yet, or still waiting (see message). verified: the check passed. failed: it did not."},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What the check found, in a sentence to show as is"},"checkedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When it was last checked; null before its first check"}},"required":["state","message","checkedAt"],"additionalProperties":false,"description":"The website answers through the connection: the transmitter responds at the hostname, or the managed CDN serves it"},"traffic":{"type":"object","properties":{"state":{"type":"string","enum":["pending","verified","failed"],"description":"pending: not checked yet, or still waiting (see message). verified: the check passed. failed: it did not."},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What the check found, in a sentence to show as is"},"checkedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When it was last checked; null before its first check"}},"required":["state","message","checkedAt"],"additionalProperties":false,"description":"Traffic from the hostname reached Ora since the connection was last saved"},"checkedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the checks last ran; null before the first"},"installation":{"type":"array","items":{"type":"object","properties":{"state":{"type":"string","enum":["pending","verified","failed"],"description":"pending: not checked yet, or still waiting (see message). verified: the check passed. failed: it did not."},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What the check found, in a sentence to show as is"},"checkedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When it was last checked; null before its first check"},"name":{"type":"string","enum":["ownership","certificate","hostname","origin","deployment","credential","routing","dns","traffic"],"description":"What is checked. ownership: you control the hostname (its ownership record). certificate: the CDN's TLS certificate for it is issued. hostname: the CDN activated the hostname. origin: the origin serves this website (its origin proof). deployment: the CDN's setup for the site is deployed. credential: the CDN's key for reporting traffic to Ora is ready. routing: the CDN's route to the site passed its check. dns: the hostname's traffic records point at the CDN. traffic: requests to the hostname reach the site through the CDN."}},"required":["state","message","checkedAt","name"],"additionalProperties":false},"description":"Managed CDN only: each step Ora verifies while provisioning, in order; empty for a transmitter"}},"required":["live","traffic","checkedAt","installation"],"additionalProperties":false,"description":"Whether the website reaches its Front through the connection, as last checked (front.connection.checks.create checks again)"},"installation":{"anyOf":[{"type":"object","properties":{"state":{"type":"string","enum":["draft","canceled","provisioning","awaiting_verification","ready_for_dns","active","error","disconnecting","draining","disconnected"],"description":"Where provisioning is. error: it stopped (see failure; it is retried at nextAttemptAt)."},"stage":{"type":"string","enum":["setup","ready_for_dns","active","disconnecting"],"description":"What happens next. setup: Ora prepares the CDN (follow steps). ready_for_dns: set the traffic records (dns-records). active: done. disconnecting: put the original records back."},"originUrl":{"type":"string","description":"The origin the CDN fetches pages from now; during an origin change it stays live until the new one verifies"},"steps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step's id, stable for its host (e.g. cloudfront-proof)"},"title":{"type":"string","description":"The step in a short line, to show as is"},"body":{"type":"string","description":"What to do, in a paragraph to show as is"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A page at the host where it is done, when there is one"}},"required":["id","title","body","url"],"additionalProperties":false},"description":"What to do at the website's host and DNS, in order"},"originProof":{"anyOf":[{"type":"object","properties":{"path":{"type":"string","description":"Where on the origin to serve the document"},"document":{"type":"object","properties":{"installationId":{"type":"string","description":"The managed installation the proof is for"},"publicHostname":{"type":"string","description":"The hostname visitors land on: the connection's hostname"},"token":{"type":"string","description":"The installation's verification token"}},"required":["installationId","publicHostname","token"],"additionalProperties":false,"description":"Serve exactly this JSON"}},"required":["path","document"],"additionalProperties":false},{"type":"null"}],"description":"How Ora verifies the origin serves this website: serve the document at the path on the origin. The WordPress plugin does it for you (wordpressPlugin). Null when no proof is asked for."},"wordpressPlugin":{"type":"boolean","description":"A WordPress plugin serving the origin proof is available: GET …/connection/wordpress-plugin"},"originChange":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The origin change's id: read the change again at GET …/connection/origin-changes/{changeId}"},"originUrl":{"type":"string","description":"The new origin"},"previousOriginUrl":{"type":"string","description":"The origin the CDN fetched from before: it keeps serving until the new one verifies, and stays if the change fails"},"status":{"type":"string","enum":["pending","verifying","switching","complete","failed"],"description":"pending, verifying, switching: still running. complete: the CDN fetches from the new origin. failed: it did not."},"requestedAt":{"type":"string","description":"UTC, ISO 8601"},"completedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the change finished, complete or failed; null while it runs"},"failure":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"Why, as a stable code (e.g. ORIGIN_CHANGE_CANCELLED)"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why, in a sentence to show as is; null when none was recorded"}},"required":["code","detail"],"additionalProperties":false},{"type":"null"}],"description":"Why it failed; null unless failed"}},"required":["id","originUrl","previousOriginUrl","status","requestedAt","completedAt","failure"],"additionalProperties":false},{"type":"null"}],"description":"The latest origin change, if any"},"restoration":{"anyOf":[{"type":"object","properties":{"confirmedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When you confirmed the original records are back; null until you do"}},"required":["confirmedAt"],"additionalProperties":false},{"type":"null"}],"description":"Set while a disconnect waits for you to confirm the original DNS records are back (POST …/connection/dns-restoration); confirmedAt once you did. Null when nothing is asked."},"failure":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"What went wrong, as a stable code (e.g. PROVIDER_UNAVAILABLE)"},"at":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When it happened; null when not recorded"}},"required":["code","at"],"additionalProperties":false},{"type":"null"}],"description":"The latest failure, while one stands"},"nextAttemptAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When Ora next works on the provisioning (a retry or its next check); null when nothing is scheduled"},"updatedAt":{"type":"string","description":"UTC, ISO 8601"}},"required":["state","stage","originUrl","steps","originProof","wordpressPlugin","originChange","restoration","failure","nextAttemptAt","updatedAt"],"additionalProperties":false},{"type":"null"}],"description":"The managed CDN's provisioning, once its settings were applied; null for a transmitter"},"credentials":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The credential's id: send it as credentialId to revoke the credential"},"fingerprint":{"type":"string","description":"The credential's visible prefix: enough to tell credentials apart, never enough to use one"},"createdAt":{"type":"string","description":"When the credential was made"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The id of the person who made it; null when that is not on record"},"lastUsedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When a transmitter last used it; null if never"}},"required":["id","fingerprint","createdAt","createdBy","lastUsedAt"],"additionalProperties":false},"description":"The site's key, metadata only: the transmitter key the connection names (minting one with front.connection.credentials.create saves it here, as does choosing one in Studio), while it is live and holds only a transmitter's grants. Empty when none is named, or once it is revoked."},"lastContactAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"The latest transmitter check-in or verified traffic: what `status` is decided from"},"transmitterVersion":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The version the transmitter last reported, when it reports one"}},"required":["method","status","hostname","nextVersion","existingMiddleware","managed","checks","installation","credentials","lastContactAt","transmitterVersion"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"request":{"params":["site"]}}},"put":{"operationId":"front.connection.update","tags":["Front connection"],"summary":"Connect the website: save its connection method","description":"Saves how the website connects, replacing the saved settings. managed: Ora's CDN, set up in the background (follow `connection.*` on the site's stream, then do the installation's steps and set its dns-records). A transmitter method (cloudflare, vercel, nextjs, express): read …/connection/install, mint a credential with POST …/connection/credentials if you hold front.secrets:reveal (or use an organization API key created in Studio), install the transmitter with it, then POST …/connection/checks; its traffic is matched by the hostname, and by the site's key once it has one. Saving keeps the site's key. Any other stack has no transmitter yet: ask Ora. Switching away from an active managed CDN needs a disconnect first. The person behind the credential must be an organization owner or admin (403 ROLE_REQUIRED otherwise).","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"method":{"type":"string","enum":["managed","cloudflare","vercel","nextjs","express"],"description":"managed: Ora's CDN in front of the website (DNS changes, no code). cloudflare, vercel, nextjs, express: a transmitter in the website's own stack (GET …/connection/install has its code). Any other stack has no transmitter yet: ask Ora."},"hostname":{"type":"string","minLength":3,"maxLength":253,"description":"The hostname visitors land on (www.acme.com): the site's domain or a subdomain of it. On the managed CDN, a root domain needs DNS that supports it (managed.dnsManagement)."},"nextVersion":{"description":"nextjs and vercel: the app's Next.js version (16 runs proxy.ts, 13 to 15 middleware.ts). Default 16.","type":"string","enum":["16","13-15"]},"existingMiddleware":{"description":"Transmitters: the app already has a middleware or proxy file to compose with. Default false.","type":"boolean"},"managed":{"description":"Required for the managed method, refused for any other: the website's host and its DNS today","type":"object","properties":{"hostingProvider":{"type":"string","enum":["wpengine","kinsta","webflow","hostinger","cloudfront","self_hosted"],"description":"Where the website is hosted. GET /hosting?url= detects the common ones from public signals."},"originUrl":{"type":"string","minLength":1,"maxLength":2048,"description":"The origin Ora's CDN fetches pages from: an HTTPS origin with a public hostname (https://origin.acme.com), never the hostname visitors use, and no port, path or query."},"dnsManagement":{"description":"How the hostname's DNS changes. external (the default): you change records at your DNS provider. flattened: your DNS flattens a root-domain CNAME (needed for a root domain). wpengine, hostinger: the host manages DNS. apex_proxy: static addresses for a root domain, where offered.","type":"string","enum":["external","wpengine","hostinger","flattened","apex_proxy"]},"originalDnsRecords":{"minItems":1,"maxItems":16,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":3,"maxLength":253,"description":"The record's hostname: the connection's hostname"},"type":{"type":"string","enum":["A","AAAA","CNAME","ALIAS"],"description":"ALIAS is how DNS panels show an apex alias (ALIAS, ANAME, flattening)"},"value":{"type":"string","minLength":1,"maxLength":253,"description":"An IP address for A and AAAA, a hostname for CNAME and ALIAS"},"ttl":{"anyOf":[{"type":"integer","minimum":0,"maximum":2147483647},{"type":"null"}],"description":"Seconds. Null only for a Route53 alias, which inherits its TTL."},"proxied":{"description":"Whether the DNS provider proxies it (Cloudflare's orange cloud). Required for a subdomain's records.","type":"boolean"},"proxyProvider":{"description":"Who proxies it; only for a proxied record","type":"string","enum":["cloudflare","other","unknown"]},"route53Alias":{"description":"Set for a Route53 alias to a CloudFront distribution","type":"object","properties":{"recordType":{"type":"string","enum":["A","AAAA"],"description":"A: the alias for IPv4 addresses. AAAA: the alias for IPv6 addresses."},"hostedZoneId":{"type":"string","minLength":1,"maxLength":32,"description":"CloudFront's hosted zone id (Z2FDTNDATAQYW2)"}},"required":["recordType","hostedZoneId"]}},"required":["name","type","value","ttl"]},"description":"The hostname's traffic records as they are now, copied from your DNS provider: Ora restores them on disconnect"}},"required":["hostingProvider","originUrl","originalDnsRecords"]}},"required":["method","hostname"]},"example":{"method":"managed","hostname":"www.acme.com","managed":{"hostingProvider":"webflow","originUrl":"https://origin.acme.com","originalDnsRecords":[{"name":"www.acme.com","type":"CNAME","value":"proxy-ssl.webflow.com","ttl":300,"proxied":false}]}}}}},"responses":{"202":{"description":"Connect the website: save its connection method","content":{"application/json":{"schema":{"type":"object","properties":{"method":{"anyOf":[{"type":"string","enum":["managed","cloudflare","vercel","nextjs","express","other"]},{"type":"null"}],"description":"Null until a method is saved"},"status":{"type":"string","enum":["not_connected","pending","connected","failed"],"description":"not_connected: no method is saved and Ora never heard from the website. pending: a method is saved and Ora waits for its first contact (the managed CDN is provisioning, or the transmitter is not installed or has not reported yet). connected: the transmitter checked in, or traffic from the hostname was verified, within the last 24 hours. failed: the last check failed, the managed CDN reports an error, or Ora heard nothing for more than 24 hours."},"hostname":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The hostname visitors land on; null until a method is saved"},"nextVersion":{"anyOf":[{"type":"string","enum":["16","13-15"]},{"type":"null"}],"description":"Transmitters only"},"existingMiddleware":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Transmitters only"},"managed":{"anyOf":[{"type":"object","properties":{"hostingProvider":{"type":"string","enum":["wpengine","kinsta","webflow","hostinger","cloudfront","self_hosted"],"description":"Where the website is hosted. GET /hosting?url= detects the common ones from public signals."},"originUrl":{"type":"string","minLength":1,"maxLength":2048,"description":"The origin Ora's CDN fetches pages from: an HTTPS origin with a public hostname (https://origin.acme.com), never the hostname visitors use, and no port, path or query."},"dnsManagement":{"type":"string","enum":["external","wpengine","hostinger","flattened","apex_proxy"],"description":"How the hostname's DNS changes. external: you change records at your DNS provider. flattened: your DNS flattens a root-domain CNAME. wpengine, hostinger: the host manages DNS. apex_proxy: static addresses for a root domain."},"originalDnsRecords":{"minItems":1,"maxItems":16,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":3,"maxLength":253,"description":"The record's hostname: the connection's hostname"},"type":{"type":"string","enum":["A","AAAA","CNAME","ALIAS"],"description":"ALIAS is how DNS panels show an apex alias (ALIAS, ANAME, flattening)"},"value":{"type":"string","minLength":1,"maxLength":253,"description":"An IP address for A and AAAA, a hostname for CNAME and ALIAS"},"ttl":{"anyOf":[{"type":"integer","minimum":0,"maximum":2147483647},{"type":"null"}],"description":"Seconds. Null only for a Route53 alias, which inherits its TTL."},"proxied":{"description":"Whether the DNS provider proxies it (Cloudflare's orange cloud). Required for a subdomain's records.","type":"boolean"},"proxyProvider":{"description":"Who proxies it; only for a proxied record","type":"string","enum":["cloudflare","other","unknown"]},"route53Alias":{"description":"Set for a Route53 alias to a CloudFront distribution","type":"object","properties":{"recordType":{"type":"string","enum":["A","AAAA"],"description":"A: the alias for IPv4 addresses. AAAA: the alias for IPv6 addresses."},"hostedZoneId":{"type":"string","minLength":1,"maxLength":32,"description":"CloudFront's hosted zone id (Z2FDTNDATAQYW2)"}},"required":["recordType","hostedZoneId"],"additionalProperties":false}},"required":["name","type","value","ttl"],"additionalProperties":false},"description":"The hostname's traffic records as they are now, copied from your DNS provider: Ora restores them on disconnect"}},"required":["hostingProvider","originUrl","dnsManagement","originalDnsRecords"],"additionalProperties":false},{"type":"null"}],"description":"The managed method's settings; null for a transmitter"},"checks":{"type":"object","properties":{"live":{"type":"object","properties":{"state":{"type":"string","enum":["pending","verified","failed"],"description":"pending: not checked yet, or still waiting (see message). verified: the check passed. failed: it did not."},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What the check found, in a sentence to show as is"},"checkedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When it was last checked; null before its first check"}},"required":["state","message","checkedAt"],"additionalProperties":false,"description":"The website answers through the connection: the transmitter responds at the hostname, or the managed CDN serves it"},"traffic":{"type":"object","properties":{"state":{"type":"string","enum":["pending","verified","failed"],"description":"pending: not checked yet, or still waiting (see message). verified: the check passed. failed: it did not."},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What the check found, in a sentence to show as is"},"checkedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When it was last checked; null before its first check"}},"required":["state","message","checkedAt"],"additionalProperties":false,"description":"Traffic from the hostname reached Ora since the connection was last saved"},"checkedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the checks last ran; null before the first"},"installation":{"type":"array","items":{"type":"object","properties":{"state":{"type":"string","enum":["pending","verified","failed"],"description":"pending: not checked yet, or still waiting (see message). verified: the check passed. failed: it did not."},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What the check found, in a sentence to show as is"},"checkedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When it was last checked; null before its first check"},"name":{"type":"string","enum":["ownership","certificate","hostname","origin","deployment","credential","routing","dns","traffic"],"description":"What is checked. ownership: you control the hostname (its ownership record). certificate: the CDN's TLS certificate for it is issued. hostname: the CDN activated the hostname. origin: the origin serves this website (its origin proof). deployment: the CDN's setup for the site is deployed. credential: the CDN's key for reporting traffic to Ora is ready. routing: the CDN's route to the site passed its check. dns: the hostname's traffic records point at the CDN. traffic: requests to the hostname reach the site through the CDN."}},"required":["state","message","checkedAt","name"],"additionalProperties":false},"description":"Managed CDN only: each step Ora verifies while provisioning, in order; empty for a transmitter"}},"required":["live","traffic","checkedAt","installation"],"additionalProperties":false,"description":"Whether the website reaches its Front through the connection, as last checked (front.connection.checks.create checks again)"},"installation":{"anyOf":[{"type":"object","properties":{"state":{"type":"string","enum":["draft","canceled","provisioning","awaiting_verification","ready_for_dns","active","error","disconnecting","draining","disconnected"],"description":"Where provisioning is. error: it stopped (see failure; it is retried at nextAttemptAt)."},"stage":{"type":"string","enum":["setup","ready_for_dns","active","disconnecting"],"description":"What happens next. setup: Ora prepares the CDN (follow steps). ready_for_dns: set the traffic records (dns-records). active: done. disconnecting: put the original records back."},"originUrl":{"type":"string","description":"The origin the CDN fetches pages from now; during an origin change it stays live until the new one verifies"},"steps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step's id, stable for its host (e.g. cloudfront-proof)"},"title":{"type":"string","description":"The step in a short line, to show as is"},"body":{"type":"string","description":"What to do, in a paragraph to show as is"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A page at the host where it is done, when there is one"}},"required":["id","title","body","url"],"additionalProperties":false},"description":"What to do at the website's host and DNS, in order"},"originProof":{"anyOf":[{"type":"object","properties":{"path":{"type":"string","description":"Where on the origin to serve the document"},"document":{"type":"object","properties":{"installationId":{"type":"string","description":"The managed installation the proof is for"},"publicHostname":{"type":"string","description":"The hostname visitors land on: the connection's hostname"},"token":{"type":"string","description":"The installation's verification token"}},"required":["installationId","publicHostname","token"],"additionalProperties":false,"description":"Serve exactly this JSON"}},"required":["path","document"],"additionalProperties":false},{"type":"null"}],"description":"How Ora verifies the origin serves this website: serve the document at the path on the origin. The WordPress plugin does it for you (wordpressPlugin). Null when no proof is asked for."},"wordpressPlugin":{"type":"boolean","description":"A WordPress plugin serving the origin proof is available: GET …/connection/wordpress-plugin"},"originChange":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The origin change's id: read the change again at GET …/connection/origin-changes/{changeId}"},"originUrl":{"type":"string","description":"The new origin"},"previousOriginUrl":{"type":"string","description":"The origin the CDN fetched from before: it keeps serving until the new one verifies, and stays if the change fails"},"status":{"type":"string","enum":["pending","verifying","switching","complete","failed"],"description":"pending, verifying, switching: still running. complete: the CDN fetches from the new origin. failed: it did not."},"requestedAt":{"type":"string","description":"UTC, ISO 8601"},"completedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the change finished, complete or failed; null while it runs"},"failure":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"Why, as a stable code (e.g. ORIGIN_CHANGE_CANCELLED)"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why, in a sentence to show as is; null when none was recorded"}},"required":["code","detail"],"additionalProperties":false},{"type":"null"}],"description":"Why it failed; null unless failed"}},"required":["id","originUrl","previousOriginUrl","status","requestedAt","completedAt","failure"],"additionalProperties":false},{"type":"null"}],"description":"The latest origin change, if any"},"restoration":{"anyOf":[{"type":"object","properties":{"confirmedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When you confirmed the original records are back; null until you do"}},"required":["confirmedAt"],"additionalProperties":false},{"type":"null"}],"description":"Set while a disconnect waits for you to confirm the original DNS records are back (POST …/connection/dns-restoration); confirmedAt once you did. Null when nothing is asked."},"failure":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"What went wrong, as a stable code (e.g. PROVIDER_UNAVAILABLE)"},"at":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When it happened; null when not recorded"}},"required":["code","at"],"additionalProperties":false},{"type":"null"}],"description":"The latest failure, while one stands"},"nextAttemptAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When Ora next works on the provisioning (a retry or its next check); null when nothing is scheduled"},"updatedAt":{"type":"string","description":"UTC, ISO 8601"}},"required":["state","stage","originUrl","steps","originProof","wordpressPlugin","originChange","restoration","failure","nextAttemptAt","updatedAt"],"additionalProperties":false},{"type":"null"}],"description":"The managed CDN's provisioning, once its settings were applied; null for a transmitter"},"credentials":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The credential's id: send it as credentialId to revoke the credential"},"fingerprint":{"type":"string","description":"The credential's visible prefix: enough to tell credentials apart, never enough to use one"},"createdAt":{"type":"string","description":"When the credential was made"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The id of the person who made it; null when that is not on record"},"lastUsedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When a transmitter last used it; null if never"}},"required":["id","fingerprint","createdAt","createdBy","lastUsedAt"],"additionalProperties":false},"description":"The site's key, metadata only: the transmitter key the connection names (minting one with front.connection.credentials.create saves it here, as does choosing one in Studio), while it is live and holds only a transmitter's grants. Empty when none is named, or once it is revoked."},"lastContactAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"The latest transmitter check-in or verified traffic: what `status` is decided from"},"transmitterVersion":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The version the transmitter last reported, when it reports one"}},"required":["method","status","hostname","nextVersion","existingMiddleware","managed","checks","installation","credentials","lastContactAt","transmitterVersion"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, PRODUCT_NOT_ENABLED), or the person behind the credential is not an organization owner or admin (ROLE_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"The managed CDN still owns the hostname: disconnect, then wait for it (CONNECTION_RESTORATION_REQUIRED, CONNECTION_CLEANUP_PENDING, CONNECTION_LEGACY_RESTORATION_REQUIRED); a check is running (CONNECTION_VERIFICATION_IN_PROGRESS: retry shortly); managed CDN capacity is full (MANAGED_CAPACITY_REACHED); or the managed CDN is not available here (MANAGED_CDN_UNAVAILABLE).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"The settings cannot work: the hostname is not the site's domain or beneath it, or the managed CDN cannot serve it (HOSTNAME_UNSUPPORTED); the host or DNS option is not supported (HOSTING_PROVIDER_UNSUPPORTED, DNS_WORKFLOW_UNSUPPORTED); the origin is not an independent public HTTPS origin (ORIGIN_INVALID); or the original DNS records do not fit the hostname (DNS_RECORDS_INVALID).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.connect:write","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_connect_website","title":"Connect the website: save its connection method","description":"Saves how the website connects, replacing the saved settings. managed: Ora's CDN, set up in the background (follow `connection.*` on the site's stream, then do the installation's steps and set its dns-records). A transmitter method (cloudflare, vercel, nextjs, express): read …/connection/install, mint a credential with POST …/connection/credentials if you hold front.secrets:reveal (or use an organization API key created in Studio), install the transmitter with it, then POST …/connection/checks; its traffic is matched by the hostname, and by the site's key once it has one. Saving keeps the site's key. Any other stack has no transmitter yet: ask Ora. Switching away from an active managed CDN needs a disconnect first. The person behind the credential must be an organization owner or admin (403 ROLE_REQUIRED otherwise).","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"method":{"type":"string","enum":["managed","cloudflare","vercel","nextjs","express"],"description":"managed: Ora's CDN in front of the website (DNS changes, no code). cloudflare, vercel, nextjs, express: a transmitter in the website's own stack (GET …/connection/install has its code). Any other stack has no transmitter yet: ask Ora."},"hostname":{"type":"string","minLength":3,"maxLength":253,"description":"The hostname visitors land on (www.acme.com): the site's domain or a subdomain of it. On the managed CDN, a root domain needs DNS that supports it (managed.dnsManagement)."},"nextVersion":{"description":"nextjs and vercel: the app's Next.js version (16 runs proxy.ts, 13 to 15 middleware.ts). Default 16.","type":"string","enum":["16","13-15"]},"existingMiddleware":{"description":"Transmitters: the app already has a middleware or proxy file to compose with. Default false.","type":"boolean"},"managed":{"description":"Required for the managed method, refused for any other: the website's host and its DNS today","type":"object","properties":{"hostingProvider":{"type":"string","enum":["wpengine","kinsta","webflow","hostinger","cloudfront","self_hosted"],"description":"Where the website is hosted. GET /hosting?url= detects the common ones from public signals."},"originUrl":{"type":"string","minLength":1,"maxLength":2048,"description":"The origin Ora's CDN fetches pages from: an HTTPS origin with a public hostname (https://origin.acme.com), never the hostname visitors use, and no port, path or query."},"dnsManagement":{"description":"How the hostname's DNS changes. external (the default): you change records at your DNS provider. flattened: your DNS flattens a root-domain CNAME (needed for a root domain). wpengine, hostinger: the host manages DNS. apex_proxy: static addresses for a root domain, where offered.","type":"string","enum":["external","wpengine","hostinger","flattened","apex_proxy"]},"originalDnsRecords":{"minItems":1,"maxItems":16,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":3,"maxLength":253,"description":"The record's hostname: the connection's hostname"},"type":{"type":"string","enum":["A","AAAA","CNAME","ALIAS"],"description":"ALIAS is how DNS panels show an apex alias (ALIAS, ANAME, flattening)"},"value":{"type":"string","minLength":1,"maxLength":253,"description":"An IP address for A and AAAA, a hostname for CNAME and ALIAS"},"ttl":{"anyOf":[{"type":"integer","minimum":0,"maximum":2147483647},{"type":"null"}],"description":"Seconds. Null only for a Route53 alias, which inherits its TTL."},"proxied":{"description":"Whether the DNS provider proxies it (Cloudflare's orange cloud). Required for a subdomain's records.","type":"boolean"},"proxyProvider":{"description":"Who proxies it; only for a proxied record","type":"string","enum":["cloudflare","other","unknown"]},"route53Alias":{"description":"Set for a Route53 alias to a CloudFront distribution","type":"object","properties":{"recordType":{"type":"string","enum":["A","AAAA"],"description":"A: the alias for IPv4 addresses. AAAA: the alias for IPv6 addresses."},"hostedZoneId":{"type":"string","minLength":1,"maxLength":32,"description":"CloudFront's hosted zone id (Z2FDTNDATAQYW2)"}},"required":["recordType","hostedZoneId"]}},"required":["name","type","value","ttl"]},"description":"The hostname's traffic records as they are now, copied from your DNS provider: Ora restores them on disconnect"}},"required":["hostingProvider","originUrl","originalDnsRecords"]}},"required":["site","method","hostname"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"method":{"anyOf":[{"type":"string","enum":["managed","cloudflare","vercel","nextjs","express","other"]},{"type":"null"}],"description":"Null until a method is saved"},"status":{"type":"string","enum":["not_connected","pending","connected","failed"],"description":"not_connected: no method is saved and Ora never heard from the website. pending: a method is saved and Ora waits for its first contact (the managed CDN is provisioning, or the transmitter is not installed or has not reported yet). connected: the transmitter checked in, or traffic from the hostname was verified, within the last 24 hours. failed: the last check failed, the managed CDN reports an error, or Ora heard nothing for more than 24 hours."},"hostname":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The hostname visitors land on; null until a method is saved"},"nextVersion":{"anyOf":[{"type":"string","enum":["16","13-15"]},{"type":"null"}],"description":"Transmitters only"},"existingMiddleware":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Transmitters only"},"managed":{"anyOf":[{"type":"object","properties":{"hostingProvider":{"type":"string","enum":["wpengine","kinsta","webflow","hostinger","cloudfront","self_hosted"],"description":"Where the website is hosted. GET /hosting?url= detects the common ones from public signals."},"originUrl":{"type":"string","minLength":1,"maxLength":2048,"description":"The origin Ora's CDN fetches pages from: an HTTPS origin with a public hostname (https://origin.acme.com), never the hostname visitors use, and no port, path or query."},"dnsManagement":{"type":"string","enum":["external","wpengine","hostinger","flattened","apex_proxy"],"description":"How the hostname's DNS changes. external: you change records at your DNS provider. flattened: your DNS flattens a root-domain CNAME. wpengine, hostinger: the host manages DNS. apex_proxy: static addresses for a root domain."},"originalDnsRecords":{"minItems":1,"maxItems":16,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":3,"maxLength":253,"description":"The record's hostname: the connection's hostname"},"type":{"type":"string","enum":["A","AAAA","CNAME","ALIAS"],"description":"ALIAS is how DNS panels show an apex alias (ALIAS, ANAME, flattening)"},"value":{"type":"string","minLength":1,"maxLength":253,"description":"An IP address for A and AAAA, a hostname for CNAME and ALIAS"},"ttl":{"anyOf":[{"type":"integer","minimum":0,"maximum":2147483647},{"type":"null"}],"description":"Seconds. Null only for a Route53 alias, which inherits its TTL."},"proxied":{"description":"Whether the DNS provider proxies it (Cloudflare's orange cloud). Required for a subdomain's records.","type":"boolean"},"proxyProvider":{"description":"Who proxies it; only for a proxied record","type":"string","enum":["cloudflare","other","unknown"]},"route53Alias":{"description":"Set for a Route53 alias to a CloudFront distribution","type":"object","properties":{"recordType":{"type":"string","enum":["A","AAAA"],"description":"A: the alias for IPv4 addresses. AAAA: the alias for IPv6 addresses."},"hostedZoneId":{"type":"string","minLength":1,"maxLength":32,"description":"CloudFront's hosted zone id (Z2FDTNDATAQYW2)"}},"required":["recordType","hostedZoneId"],"additionalProperties":false}},"required":["name","type","value","ttl"],"additionalProperties":false},"description":"The hostname's traffic records as they are now, copied from your DNS provider: Ora restores them on disconnect"}},"required":["hostingProvider","originUrl","dnsManagement","originalDnsRecords"],"additionalProperties":false},{"type":"null"}],"description":"The managed method's settings; null for a transmitter"},"checks":{"type":"object","properties":{"live":{"type":"object","properties":{"state":{"type":"string","enum":["pending","verified","failed"],"description":"pending: not checked yet, or still waiting (see message). verified: the check passed. failed: it did not."},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What the check found, in a sentence to show as is"},"checkedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When it was last checked; null before its first check"}},"required":["state","message","checkedAt"],"additionalProperties":false,"description":"The website answers through the connection: the transmitter responds at the hostname, or the managed CDN serves it"},"traffic":{"type":"object","properties":{"state":{"type":"string","enum":["pending","verified","failed"],"description":"pending: not checked yet, or still waiting (see message). verified: the check passed. failed: it did not."},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What the check found, in a sentence to show as is"},"checkedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When it was last checked; null before its first check"}},"required":["state","message","checkedAt"],"additionalProperties":false,"description":"Traffic from the hostname reached Ora since the connection was last saved"},"checkedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the checks last ran; null before the first"},"installation":{"type":"array","items":{"type":"object","properties":{"state":{"type":"string","enum":["pending","verified","failed"],"description":"pending: not checked yet, or still waiting (see message). verified: the check passed. failed: it did not."},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What the check found, in a sentence to show as is"},"checkedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When it was last checked; null before its first check"},"name":{"type":"string","enum":["ownership","certificate","hostname","origin","deployment","credential","routing","dns","traffic"],"description":"What is checked. ownership: you control the hostname (its ownership record). certificate: the CDN's TLS certificate for it is issued. hostname: the CDN activated the hostname. origin: the origin serves this website (its origin proof). deployment: the CDN's setup for the site is deployed. credential: the CDN's key for reporting traffic to Ora is ready. routing: the CDN's route to the site passed its check. dns: the hostname's traffic records point at the CDN. traffic: requests to the hostname reach the site through the CDN."}},"required":["state","message","checkedAt","name"],"additionalProperties":false},"description":"Managed CDN only: each step Ora verifies while provisioning, in order; empty for a transmitter"}},"required":["live","traffic","checkedAt","installation"],"additionalProperties":false,"description":"Whether the website reaches its Front through the connection, as last checked (front.connection.checks.create checks again)"},"installation":{"anyOf":[{"type":"object","properties":{"state":{"type":"string","enum":["draft","canceled","provisioning","awaiting_verification","ready_for_dns","active","error","disconnecting","draining","disconnected"],"description":"Where provisioning is. error: it stopped (see failure; it is retried at nextAttemptAt)."},"stage":{"type":"string","enum":["setup","ready_for_dns","active","disconnecting"],"description":"What happens next. setup: Ora prepares the CDN (follow steps). ready_for_dns: set the traffic records (dns-records). active: done. disconnecting: put the original records back."},"originUrl":{"type":"string","description":"The origin the CDN fetches pages from now; during an origin change it stays live until the new one verifies"},"steps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step's id, stable for its host (e.g. cloudfront-proof)"},"title":{"type":"string","description":"The step in a short line, to show as is"},"body":{"type":"string","description":"What to do, in a paragraph to show as is"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A page at the host where it is done, when there is one"}},"required":["id","title","body","url"],"additionalProperties":false},"description":"What to do at the website's host and DNS, in order"},"originProof":{"anyOf":[{"type":"object","properties":{"path":{"type":"string","description":"Where on the origin to serve the document"},"document":{"type":"object","properties":{"installationId":{"type":"string","description":"The managed installation the proof is for"},"publicHostname":{"type":"string","description":"The hostname visitors land on: the connection's hostname"},"token":{"type":"string","description":"The installation's verification token"}},"required":["installationId","publicHostname","token"],"additionalProperties":false,"description":"Serve exactly this JSON"}},"required":["path","document"],"additionalProperties":false},{"type":"null"}],"description":"How Ora verifies the origin serves this website: serve the document at the path on the origin. The WordPress plugin does it for you (wordpressPlugin). Null when no proof is asked for."},"wordpressPlugin":{"type":"boolean","description":"A WordPress plugin serving the origin proof is available: GET …/connection/wordpress-plugin"},"originChange":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The origin change's id: read the change again at GET …/connection/origin-changes/{changeId}"},"originUrl":{"type":"string","description":"The new origin"},"previousOriginUrl":{"type":"string","description":"The origin the CDN fetched from before: it keeps serving until the new one verifies, and stays if the change fails"},"status":{"type":"string","enum":["pending","verifying","switching","complete","failed"],"description":"pending, verifying, switching: still running. complete: the CDN fetches from the new origin. failed: it did not."},"requestedAt":{"type":"string","description":"UTC, ISO 8601"},"completedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the change finished, complete or failed; null while it runs"},"failure":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"Why, as a stable code (e.g. ORIGIN_CHANGE_CANCELLED)"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why, in a sentence to show as is; null when none was recorded"}},"required":["code","detail"],"additionalProperties":false},{"type":"null"}],"description":"Why it failed; null unless failed"}},"required":["id","originUrl","previousOriginUrl","status","requestedAt","completedAt","failure"],"additionalProperties":false},{"type":"null"}],"description":"The latest origin change, if any"},"restoration":{"anyOf":[{"type":"object","properties":{"confirmedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When you confirmed the original records are back; null until you do"}},"required":["confirmedAt"],"additionalProperties":false},{"type":"null"}],"description":"Set while a disconnect waits for you to confirm the original DNS records are back (POST …/connection/dns-restoration); confirmedAt once you did. Null when nothing is asked."},"failure":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"What went wrong, as a stable code (e.g. PROVIDER_UNAVAILABLE)"},"at":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When it happened; null when not recorded"}},"required":["code","at"],"additionalProperties":false},{"type":"null"}],"description":"The latest failure, while one stands"},"nextAttemptAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When Ora next works on the provisioning (a retry or its next check); null when nothing is scheduled"},"updatedAt":{"type":"string","description":"UTC, ISO 8601"}},"required":["state","stage","originUrl","steps","originProof","wordpressPlugin","originChange","restoration","failure","nextAttemptAt","updatedAt"],"additionalProperties":false},{"type":"null"}],"description":"The managed CDN's provisioning, once its settings were applied; null for a transmitter"},"credentials":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The credential's id: send it as credentialId to revoke the credential"},"fingerprint":{"type":"string","description":"The credential's visible prefix: enough to tell credentials apart, never enough to use one"},"createdAt":{"type":"string","description":"When the credential was made"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The id of the person who made it; null when that is not on record"},"lastUsedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When a transmitter last used it; null if never"}},"required":["id","fingerprint","createdAt","createdBy","lastUsedAt"],"additionalProperties":false},"description":"The site's key, metadata only: the transmitter key the connection names (minting one with front.connection.credentials.create saves it here, as does choosing one in Studio), while it is live and holds only a transmitter's grants. Empty when none is named, or once it is revoked."},"lastContactAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"The latest transmitter check-in or verified traffic: what `status` is decided from"},"transmitterVersion":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The version the transmitter last reported, when it reports one"}},"required":["method","status","hostname","nextVersion","existingMiddleware","managed","checks","installation","credentials","lastContactAt","transmitterVersion"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"request":{"params":["site"],"body":["method","hostname","nextVersion","existingMiddleware","managed"]}}},"delete":{"operationId":"front.connection.delete","tags":["Front connection"],"summary":"Disconnect the managed CDN","description":"Starts disconnecting the managed CDN: Ora restores the hostname's original DNS records where it manages them and drains the CDN; follow `connection.installation_changed` on the site's stream. When the DNS is yours to change, the installation's `restoration` asks you to put the original records back and confirm with POST …/connection/dns-restoration. A transmitter has nothing for Ora to undo: remove it from your stack and revoke its key (DELETE …/connection/credentials/{credentialId}). The person behind the credential must be an organization owner or admin (403 ROLE_REQUIRED otherwise).","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"}],"responses":{"202":{"description":"Disconnect the managed CDN","content":{"application/json":{"schema":{"type":"object","properties":{"method":{"anyOf":[{"type":"string","enum":["managed","cloudflare","vercel","nextjs","express","other"]},{"type":"null"}],"description":"Null until a method is saved"},"status":{"type":"string","enum":["not_connected","pending","connected","failed"],"description":"not_connected: no method is saved and Ora never heard from the website. pending: a method is saved and Ora waits for its first contact (the managed CDN is provisioning, or the transmitter is not installed or has not reported yet). connected: the transmitter checked in, or traffic from the hostname was verified, within the last 24 hours. failed: the last check failed, the managed CDN reports an error, or Ora heard nothing for more than 24 hours."},"hostname":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The hostname visitors land on; null until a method is saved"},"nextVersion":{"anyOf":[{"type":"string","enum":["16","13-15"]},{"type":"null"}],"description":"Transmitters only"},"existingMiddleware":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Transmitters only"},"managed":{"anyOf":[{"type":"object","properties":{"hostingProvider":{"type":"string","enum":["wpengine","kinsta","webflow","hostinger","cloudfront","self_hosted"],"description":"Where the website is hosted. GET /hosting?url= detects the common ones from public signals."},"originUrl":{"type":"string","minLength":1,"maxLength":2048,"description":"The origin Ora's CDN fetches pages from: an HTTPS origin with a public hostname (https://origin.acme.com), never the hostname visitors use, and no port, path or query."},"dnsManagement":{"type":"string","enum":["external","wpengine","hostinger","flattened","apex_proxy"],"description":"How the hostname's DNS changes. external: you change records at your DNS provider. flattened: your DNS flattens a root-domain CNAME. wpengine, hostinger: the host manages DNS. apex_proxy: static addresses for a root domain."},"originalDnsRecords":{"minItems":1,"maxItems":16,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":3,"maxLength":253,"description":"The record's hostname: the connection's hostname"},"type":{"type":"string","enum":["A","AAAA","CNAME","ALIAS"],"description":"ALIAS is how DNS panels show an apex alias (ALIAS, ANAME, flattening)"},"value":{"type":"string","minLength":1,"maxLength":253,"description":"An IP address for A and AAAA, a hostname for CNAME and ALIAS"},"ttl":{"anyOf":[{"type":"integer","minimum":0,"maximum":2147483647},{"type":"null"}],"description":"Seconds. Null only for a Route53 alias, which inherits its TTL."},"proxied":{"description":"Whether the DNS provider proxies it (Cloudflare's orange cloud). Required for a subdomain's records.","type":"boolean"},"proxyProvider":{"description":"Who proxies it; only for a proxied record","type":"string","enum":["cloudflare","other","unknown"]},"route53Alias":{"description":"Set for a Route53 alias to a CloudFront distribution","type":"object","properties":{"recordType":{"type":"string","enum":["A","AAAA"],"description":"A: the alias for IPv4 addresses. AAAA: the alias for IPv6 addresses."},"hostedZoneId":{"type":"string","minLength":1,"maxLength":32,"description":"CloudFront's hosted zone id (Z2FDTNDATAQYW2)"}},"required":["recordType","hostedZoneId"],"additionalProperties":false}},"required":["name","type","value","ttl"],"additionalProperties":false},"description":"The hostname's traffic records as they are now, copied from your DNS provider: Ora restores them on disconnect"}},"required":["hostingProvider","originUrl","dnsManagement","originalDnsRecords"],"additionalProperties":false},{"type":"null"}],"description":"The managed method's settings; null for a transmitter"},"checks":{"type":"object","properties":{"live":{"type":"object","properties":{"state":{"type":"string","enum":["pending","verified","failed"],"description":"pending: not checked yet, or still waiting (see message). verified: the check passed. failed: it did not."},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What the check found, in a sentence to show as is"},"checkedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When it was last checked; null before its first check"}},"required":["state","message","checkedAt"],"additionalProperties":false,"description":"The website answers through the connection: the transmitter responds at the hostname, or the managed CDN serves it"},"traffic":{"type":"object","properties":{"state":{"type":"string","enum":["pending","verified","failed"],"description":"pending: not checked yet, or still waiting (see message). verified: the check passed. failed: it did not."},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What the check found, in a sentence to show as is"},"checkedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When it was last checked; null before its first check"}},"required":["state","message","checkedAt"],"additionalProperties":false,"description":"Traffic from the hostname reached Ora since the connection was last saved"},"checkedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the checks last ran; null before the first"},"installation":{"type":"array","items":{"type":"object","properties":{"state":{"type":"string","enum":["pending","verified","failed"],"description":"pending: not checked yet, or still waiting (see message). verified: the check passed. failed: it did not."},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What the check found, in a sentence to show as is"},"checkedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When it was last checked; null before its first check"},"name":{"type":"string","enum":["ownership","certificate","hostname","origin","deployment","credential","routing","dns","traffic"],"description":"What is checked. ownership: you control the hostname (its ownership record). certificate: the CDN's TLS certificate for it is issued. hostname: the CDN activated the hostname. origin: the origin serves this website (its origin proof). deployment: the CDN's setup for the site is deployed. credential: the CDN's key for reporting traffic to Ora is ready. routing: the CDN's route to the site passed its check. dns: the hostname's traffic records point at the CDN. traffic: requests to the hostname reach the site through the CDN."}},"required":["state","message","checkedAt","name"],"additionalProperties":false},"description":"Managed CDN only: each step Ora verifies while provisioning, in order; empty for a transmitter"}},"required":["live","traffic","checkedAt","installation"],"additionalProperties":false,"description":"Whether the website reaches its Front through the connection, as last checked (front.connection.checks.create checks again)"},"installation":{"anyOf":[{"type":"object","properties":{"state":{"type":"string","enum":["draft","canceled","provisioning","awaiting_verification","ready_for_dns","active","error","disconnecting","draining","disconnected"],"description":"Where provisioning is. error: it stopped (see failure; it is retried at nextAttemptAt)."},"stage":{"type":"string","enum":["setup","ready_for_dns","active","disconnecting"],"description":"What happens next. setup: Ora prepares the CDN (follow steps). ready_for_dns: set the traffic records (dns-records). active: done. disconnecting: put the original records back."},"originUrl":{"type":"string","description":"The origin the CDN fetches pages from now; during an origin change it stays live until the new one verifies"},"steps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step's id, stable for its host (e.g. cloudfront-proof)"},"title":{"type":"string","description":"The step in a short line, to show as is"},"body":{"type":"string","description":"What to do, in a paragraph to show as is"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A page at the host where it is done, when there is one"}},"required":["id","title","body","url"],"additionalProperties":false},"description":"What to do at the website's host and DNS, in order"},"originProof":{"anyOf":[{"type":"object","properties":{"path":{"type":"string","description":"Where on the origin to serve the document"},"document":{"type":"object","properties":{"installationId":{"type":"string","description":"The managed installation the proof is for"},"publicHostname":{"type":"string","description":"The hostname visitors land on: the connection's hostname"},"token":{"type":"string","description":"The installation's verification token"}},"required":["installationId","publicHostname","token"],"additionalProperties":false,"description":"Serve exactly this JSON"}},"required":["path","document"],"additionalProperties":false},{"type":"null"}],"description":"How Ora verifies the origin serves this website: serve the document at the path on the origin. The WordPress plugin does it for you (wordpressPlugin). Null when no proof is asked for."},"wordpressPlugin":{"type":"boolean","description":"A WordPress plugin serving the origin proof is available: GET …/connection/wordpress-plugin"},"originChange":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The origin change's id: read the change again at GET …/connection/origin-changes/{changeId}"},"originUrl":{"type":"string","description":"The new origin"},"previousOriginUrl":{"type":"string","description":"The origin the CDN fetched from before: it keeps serving until the new one verifies, and stays if the change fails"},"status":{"type":"string","enum":["pending","verifying","switching","complete","failed"],"description":"pending, verifying, switching: still running. complete: the CDN fetches from the new origin. failed: it did not."},"requestedAt":{"type":"string","description":"UTC, ISO 8601"},"completedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the change finished, complete or failed; null while it runs"},"failure":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"Why, as a stable code (e.g. ORIGIN_CHANGE_CANCELLED)"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why, in a sentence to show as is; null when none was recorded"}},"required":["code","detail"],"additionalProperties":false},{"type":"null"}],"description":"Why it failed; null unless failed"}},"required":["id","originUrl","previousOriginUrl","status","requestedAt","completedAt","failure"],"additionalProperties":false},{"type":"null"}],"description":"The latest origin change, if any"},"restoration":{"anyOf":[{"type":"object","properties":{"confirmedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When you confirmed the original records are back; null until you do"}},"required":["confirmedAt"],"additionalProperties":false},{"type":"null"}],"description":"Set while a disconnect waits for you to confirm the original DNS records are back (POST …/connection/dns-restoration); confirmedAt once you did. Null when nothing is asked."},"failure":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"What went wrong, as a stable code (e.g. PROVIDER_UNAVAILABLE)"},"at":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When it happened; null when not recorded"}},"required":["code","at"],"additionalProperties":false},{"type":"null"}],"description":"The latest failure, while one stands"},"nextAttemptAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When Ora next works on the provisioning (a retry or its next check); null when nothing is scheduled"},"updatedAt":{"type":"string","description":"UTC, ISO 8601"}},"required":["state","stage","originUrl","steps","originProof","wordpressPlugin","originChange","restoration","failure","nextAttemptAt","updatedAt"],"additionalProperties":false},{"type":"null"}],"description":"The managed CDN's provisioning, once its settings were applied; null for a transmitter"},"credentials":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The credential's id: send it as credentialId to revoke the credential"},"fingerprint":{"type":"string","description":"The credential's visible prefix: enough to tell credentials apart, never enough to use one"},"createdAt":{"type":"string","description":"When the credential was made"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The id of the person who made it; null when that is not on record"},"lastUsedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When a transmitter last used it; null if never"}},"required":["id","fingerprint","createdAt","createdBy","lastUsedAt"],"additionalProperties":false},"description":"The site's key, metadata only: the transmitter key the connection names (minting one with front.connection.credentials.create saves it here, as does choosing one in Studio), while it is live and holds only a transmitter's grants. Empty when none is named, or once it is revoked."},"lastContactAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"The latest transmitter check-in or verified traffic: what `status` is decided from"},"transmitterVersion":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The version the transmitter last reported, when it reports one"}},"required":["method","status","hostname","nextVersion","existingMiddleware","managed","checks","installation","credentials","lastContactAt","transmitterVersion"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, PRODUCT_NOT_ENABLED), or the person behind the credential is not an organization owner or admin (ROLE_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"The connection is not a managed CDN (MANAGED_CONNECTION_REQUIRED), or the managed CDN is not available here (MANAGED_CDN_UNAVAILABLE).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.connect:write","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_disconnect_managed_cdn","title":"Disconnect the managed CDN","description":"Starts disconnecting the managed CDN: Ora restores the hostname's original DNS records where it manages them and drains the CDN; follow `connection.installation_changed` on the site's stream. When the DNS is yours to change, the installation's `restoration` asks you to put the original records back and confirm with POST …/connection/dns-restoration. A transmitter has nothing for Ora to undo: remove it from your stack and revoke its key (DELETE …/connection/credentials/{credentialId}). The person behind the credential must be an organization owner or admin (403 ROLE_REQUIRED otherwise).","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."}},"required":["site"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"method":{"anyOf":[{"type":"string","enum":["managed","cloudflare","vercel","nextjs","express","other"]},{"type":"null"}],"description":"Null until a method is saved"},"status":{"type":"string","enum":["not_connected","pending","connected","failed"],"description":"not_connected: no method is saved and Ora never heard from the website. pending: a method is saved and Ora waits for its first contact (the managed CDN is provisioning, or the transmitter is not installed or has not reported yet). connected: the transmitter checked in, or traffic from the hostname was verified, within the last 24 hours. failed: the last check failed, the managed CDN reports an error, or Ora heard nothing for more than 24 hours."},"hostname":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The hostname visitors land on; null until a method is saved"},"nextVersion":{"anyOf":[{"type":"string","enum":["16","13-15"]},{"type":"null"}],"description":"Transmitters only"},"existingMiddleware":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Transmitters only"},"managed":{"anyOf":[{"type":"object","properties":{"hostingProvider":{"type":"string","enum":["wpengine","kinsta","webflow","hostinger","cloudfront","self_hosted"],"description":"Where the website is hosted. GET /hosting?url= detects the common ones from public signals."},"originUrl":{"type":"string","minLength":1,"maxLength":2048,"description":"The origin Ora's CDN fetches pages from: an HTTPS origin with a public hostname (https://origin.acme.com), never the hostname visitors use, and no port, path or query."},"dnsManagement":{"type":"string","enum":["external","wpengine","hostinger","flattened","apex_proxy"],"description":"How the hostname's DNS changes. external: you change records at your DNS provider. flattened: your DNS flattens a root-domain CNAME. wpengine, hostinger: the host manages DNS. apex_proxy: static addresses for a root domain."},"originalDnsRecords":{"minItems":1,"maxItems":16,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":3,"maxLength":253,"description":"The record's hostname: the connection's hostname"},"type":{"type":"string","enum":["A","AAAA","CNAME","ALIAS"],"description":"ALIAS is how DNS panels show an apex alias (ALIAS, ANAME, flattening)"},"value":{"type":"string","minLength":1,"maxLength":253,"description":"An IP address for A and AAAA, a hostname for CNAME and ALIAS"},"ttl":{"anyOf":[{"type":"integer","minimum":0,"maximum":2147483647},{"type":"null"}],"description":"Seconds. Null only for a Route53 alias, which inherits its TTL."},"proxied":{"description":"Whether the DNS provider proxies it (Cloudflare's orange cloud). Required for a subdomain's records.","type":"boolean"},"proxyProvider":{"description":"Who proxies it; only for a proxied record","type":"string","enum":["cloudflare","other","unknown"]},"route53Alias":{"description":"Set for a Route53 alias to a CloudFront distribution","type":"object","properties":{"recordType":{"type":"string","enum":["A","AAAA"],"description":"A: the alias for IPv4 addresses. AAAA: the alias for IPv6 addresses."},"hostedZoneId":{"type":"string","minLength":1,"maxLength":32,"description":"CloudFront's hosted zone id (Z2FDTNDATAQYW2)"}},"required":["recordType","hostedZoneId"],"additionalProperties":false}},"required":["name","type","value","ttl"],"additionalProperties":false},"description":"The hostname's traffic records as they are now, copied from your DNS provider: Ora restores them on disconnect"}},"required":["hostingProvider","originUrl","dnsManagement","originalDnsRecords"],"additionalProperties":false},{"type":"null"}],"description":"The managed method's settings; null for a transmitter"},"checks":{"type":"object","properties":{"live":{"type":"object","properties":{"state":{"type":"string","enum":["pending","verified","failed"],"description":"pending: not checked yet, or still waiting (see message). verified: the check passed. failed: it did not."},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What the check found, in a sentence to show as is"},"checkedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When it was last checked; null before its first check"}},"required":["state","message","checkedAt"],"additionalProperties":false,"description":"The website answers through the connection: the transmitter responds at the hostname, or the managed CDN serves it"},"traffic":{"type":"object","properties":{"state":{"type":"string","enum":["pending","verified","failed"],"description":"pending: not checked yet, or still waiting (see message). verified: the check passed. failed: it did not."},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What the check found, in a sentence to show as is"},"checkedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When it was last checked; null before its first check"}},"required":["state","message","checkedAt"],"additionalProperties":false,"description":"Traffic from the hostname reached Ora since the connection was last saved"},"checkedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the checks last ran; null before the first"},"installation":{"type":"array","items":{"type":"object","properties":{"state":{"type":"string","enum":["pending","verified","failed"],"description":"pending: not checked yet, or still waiting (see message). verified: the check passed. failed: it did not."},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What the check found, in a sentence to show as is"},"checkedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When it was last checked; null before its first check"},"name":{"type":"string","enum":["ownership","certificate","hostname","origin","deployment","credential","routing","dns","traffic"],"description":"What is checked. ownership: you control the hostname (its ownership record). certificate: the CDN's TLS certificate for it is issued. hostname: the CDN activated the hostname. origin: the origin serves this website (its origin proof). deployment: the CDN's setup for the site is deployed. credential: the CDN's key for reporting traffic to Ora is ready. routing: the CDN's route to the site passed its check. dns: the hostname's traffic records point at the CDN. traffic: requests to the hostname reach the site through the CDN."}},"required":["state","message","checkedAt","name"],"additionalProperties":false},"description":"Managed CDN only: each step Ora verifies while provisioning, in order; empty for a transmitter"}},"required":["live","traffic","checkedAt","installation"],"additionalProperties":false,"description":"Whether the website reaches its Front through the connection, as last checked (front.connection.checks.create checks again)"},"installation":{"anyOf":[{"type":"object","properties":{"state":{"type":"string","enum":["draft","canceled","provisioning","awaiting_verification","ready_for_dns","active","error","disconnecting","draining","disconnected"],"description":"Where provisioning is. error: it stopped (see failure; it is retried at nextAttemptAt)."},"stage":{"type":"string","enum":["setup","ready_for_dns","active","disconnecting"],"description":"What happens next. setup: Ora prepares the CDN (follow steps). ready_for_dns: set the traffic records (dns-records). active: done. disconnecting: put the original records back."},"originUrl":{"type":"string","description":"The origin the CDN fetches pages from now; during an origin change it stays live until the new one verifies"},"steps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step's id, stable for its host (e.g. cloudfront-proof)"},"title":{"type":"string","description":"The step in a short line, to show as is"},"body":{"type":"string","description":"What to do, in a paragraph to show as is"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A page at the host where it is done, when there is one"}},"required":["id","title","body","url"],"additionalProperties":false},"description":"What to do at the website's host and DNS, in order"},"originProof":{"anyOf":[{"type":"object","properties":{"path":{"type":"string","description":"Where on the origin to serve the document"},"document":{"type":"object","properties":{"installationId":{"type":"string","description":"The managed installation the proof is for"},"publicHostname":{"type":"string","description":"The hostname visitors land on: the connection's hostname"},"token":{"type":"string","description":"The installation's verification token"}},"required":["installationId","publicHostname","token"],"additionalProperties":false,"description":"Serve exactly this JSON"}},"required":["path","document"],"additionalProperties":false},{"type":"null"}],"description":"How Ora verifies the origin serves this website: serve the document at the path on the origin. The WordPress plugin does it for you (wordpressPlugin). Null when no proof is asked for."},"wordpressPlugin":{"type":"boolean","description":"A WordPress plugin serving the origin proof is available: GET …/connection/wordpress-plugin"},"originChange":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The origin change's id: read the change again at GET …/connection/origin-changes/{changeId}"},"originUrl":{"type":"string","description":"The new origin"},"previousOriginUrl":{"type":"string","description":"The origin the CDN fetched from before: it keeps serving until the new one verifies, and stays if the change fails"},"status":{"type":"string","enum":["pending","verifying","switching","complete","failed"],"description":"pending, verifying, switching: still running. complete: the CDN fetches from the new origin. failed: it did not."},"requestedAt":{"type":"string","description":"UTC, ISO 8601"},"completedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the change finished, complete or failed; null while it runs"},"failure":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"Why, as a stable code (e.g. ORIGIN_CHANGE_CANCELLED)"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why, in a sentence to show as is; null when none was recorded"}},"required":["code","detail"],"additionalProperties":false},{"type":"null"}],"description":"Why it failed; null unless failed"}},"required":["id","originUrl","previousOriginUrl","status","requestedAt","completedAt","failure"],"additionalProperties":false},{"type":"null"}],"description":"The latest origin change, if any"},"restoration":{"anyOf":[{"type":"object","properties":{"confirmedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When you confirmed the original records are back; null until you do"}},"required":["confirmedAt"],"additionalProperties":false},{"type":"null"}],"description":"Set while a disconnect waits for you to confirm the original DNS records are back (POST …/connection/dns-restoration); confirmedAt once you did. Null when nothing is asked."},"failure":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"What went wrong, as a stable code (e.g. PROVIDER_UNAVAILABLE)"},"at":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When it happened; null when not recorded"}},"required":["code","at"],"additionalProperties":false},{"type":"null"}],"description":"The latest failure, while one stands"},"nextAttemptAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When Ora next works on the provisioning (a retry or its next check); null when nothing is scheduled"},"updatedAt":{"type":"string","description":"UTC, ISO 8601"}},"required":["state","stage","originUrl","steps","originProof","wordpressPlugin","originChange","restoration","failure","nextAttemptAt","updatedAt"],"additionalProperties":false},{"type":"null"}],"description":"The managed CDN's provisioning, once its settings were applied; null for a transmitter"},"credentials":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The credential's id: send it as credentialId to revoke the credential"},"fingerprint":{"type":"string","description":"The credential's visible prefix: enough to tell credentials apart, never enough to use one"},"createdAt":{"type":"string","description":"When the credential was made"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The id of the person who made it; null when that is not on record"},"lastUsedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When a transmitter last used it; null if never"}},"required":["id","fingerprint","createdAt","createdBy","lastUsedAt"],"additionalProperties":false},"description":"The site's key, metadata only: the transmitter key the connection names (minting one with front.connection.credentials.create saves it here, as does choosing one in Studio), while it is live and holds only a transmitter's grants. Empty when none is named, or once it is revoked."},"lastContactAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"The latest transmitter check-in or verified traffic: what `status` is decided from"},"transmitterVersion":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The version the transmitter last reported, when it reports one"}},"required":["method","status","hostname","nextVersion","existingMiddleware","managed","checks","installation","credentials","lastContactAt","transmitterVersion"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":true},"request":{"params":["site"]}}}},"/studio/v1/front/sites/{site}/connection/checks":{"post":{"operationId":"front.connection.checks.create","tags":["Front connection"],"summary":"Check the website connection","description":"Checks that the website reaches its Front. A transmitter: Ora probes the hostname and looks for its traffic since the settings were saved; both results are final in the response. The managed CDN: Ora verifies its provisioning again in the background, and `connection.checked` arrives on the stream. A connection verified this way shows `connected`. The person behind the credential must be an organization owner or admin (403 ROLE_REQUIRED otherwise).","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"},{"name":"Idempotency-Key","in":"header","required":false,"description":"A unique value per logical request (a UUID). A retry with the same key and the same request replays the first answer instead of running again; keys are kept 24 hours.","schema":{"type":"string","minLength":1,"maxLength":255}}],"responses":{"202":{"description":"Check the website connection","content":{"application/json":{"schema":{"type":"object","properties":{"live":{"type":"object","properties":{"state":{"type":"string","enum":["pending","verified","failed"],"description":"pending: not checked yet, or still waiting (see message). verified: the check passed. failed: it did not."},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What the check found, in a sentence to show as is"},"checkedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When it was last checked; null before its first check"}},"required":["state","message","checkedAt"],"additionalProperties":false,"description":"The website answers through the connection: the transmitter responds at the hostname, or the managed CDN serves it"},"traffic":{"type":"object","properties":{"state":{"type":"string","enum":["pending","verified","failed"],"description":"pending: not checked yet, or still waiting (see message). verified: the check passed. failed: it did not."},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What the check found, in a sentence to show as is"},"checkedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When it was last checked; null before its first check"}},"required":["state","message","checkedAt"],"additionalProperties":false,"description":"Traffic from the hostname reached Ora since the connection was last saved"},"checkedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the checks last ran; null before the first"},"installation":{"type":"array","items":{"type":"object","properties":{"state":{"type":"string","enum":["pending","verified","failed"],"description":"pending: not checked yet, or still waiting (see message). verified: the check passed. failed: it did not."},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What the check found, in a sentence to show as is"},"checkedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When it was last checked; null before its first check"},"name":{"type":"string","enum":["ownership","certificate","hostname","origin","deployment","credential","routing","dns","traffic"],"description":"What is checked. ownership: you control the hostname (its ownership record). certificate: the CDN's TLS certificate for it is issued. hostname: the CDN activated the hostname. origin: the origin serves this website (its origin proof). deployment: the CDN's setup for the site is deployed. credential: the CDN's key for reporting traffic to Ora is ready. routing: the CDN's route to the site passed its check. dns: the hostname's traffic records point at the CDN. traffic: requests to the hostname reach the site through the CDN."}},"required":["state","message","checkedAt","name"],"additionalProperties":false},"description":"Managed CDN only: each step Ora verifies while provisioning, in order; empty for a transmitter"},"streamUrl":{"type":"string","description":"The site's status stream: `connection.checked` arrives there when checks finish"}},"required":["live","traffic","checkedAt","installation","streamUrl"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, PRODUCT_NOT_ENABLED), or the person behind the credential is not an organization owner or admin (ROLE_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"No method is saved yet (CONNECTION_NOT_SET); the settings changed while checking: read them again (CONNECTION_CHANGED); the managed CDN is not available here (MANAGED_CDN_UNAVAILABLE); or the Idempotency-Key conflicts (IDEMPOTENCY_KEY_REUSED; IDEMPOTENCY_IN_PROGRESS: retry with the same key).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"The site's key, the API key the connection names, is revoked, expired or lacks Agent Front write and serve access: mint a new one, choose another in Studio, or save the connection again here (CREDENTIAL_UNAVAILABLE).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.connect:write","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-idempotent":true,"x-ora-mcp-tool":{"name":"front_check_connection","title":"Check the website connection","description":"Checks that the website reaches its Front. A transmitter: Ora probes the hostname and looks for its traffic since the settings were saved; both results are final in the response. The managed CDN: Ora verifies its provisioning again in the background, and `connection.checked` arrives on the stream. A connection verified this way shows `connected`. The person behind the credential must be an organization owner or admin (403 ROLE_REQUIRED otherwise).","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."}},"required":["site"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"live":{"type":"object","properties":{"state":{"type":"string","enum":["pending","verified","failed"],"description":"pending: not checked yet, or still waiting (see message). verified: the check passed. failed: it did not."},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What the check found, in a sentence to show as is"},"checkedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When it was last checked; null before its first check"}},"required":["state","message","checkedAt"],"additionalProperties":false,"description":"The website answers through the connection: the transmitter responds at the hostname, or the managed CDN serves it"},"traffic":{"type":"object","properties":{"state":{"type":"string","enum":["pending","verified","failed"],"description":"pending: not checked yet, or still waiting (see message). verified: the check passed. failed: it did not."},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What the check found, in a sentence to show as is"},"checkedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When it was last checked; null before its first check"}},"required":["state","message","checkedAt"],"additionalProperties":false,"description":"Traffic from the hostname reached Ora since the connection was last saved"},"checkedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the checks last ran; null before the first"},"installation":{"type":"array","items":{"type":"object","properties":{"state":{"type":"string","enum":["pending","verified","failed"],"description":"pending: not checked yet, or still waiting (see message). verified: the check passed. failed: it did not."},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What the check found, in a sentence to show as is"},"checkedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When it was last checked; null before its first check"},"name":{"type":"string","enum":["ownership","certificate","hostname","origin","deployment","credential","routing","dns","traffic"],"description":"What is checked. ownership: you control the hostname (its ownership record). certificate: the CDN's TLS certificate for it is issued. hostname: the CDN activated the hostname. origin: the origin serves this website (its origin proof). deployment: the CDN's setup for the site is deployed. credential: the CDN's key for reporting traffic to Ora is ready. routing: the CDN's route to the site passed its check. dns: the hostname's traffic records point at the CDN. traffic: requests to the hostname reach the site through the CDN."}},"required":["state","message","checkedAt","name"],"additionalProperties":false},"description":"Managed CDN only: each step Ora verifies while provisioning, in order; empty for a transmitter"},"streamUrl":{"type":"string","description":"The site's status stream: `connection.checked` arrives there when checks finish"}},"required":["live","traffic","checkedAt","installation","streamUrl"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true},"request":{"params":["site"]}}}},"/studio/v1/front/sites/{site}/connection/credentials":{"post":{"operationId":"front.connection.credentials.create","tags":["Front connection"],"summary":"Mint a transmitter credential for the site","description":"Mints the key a transmitter in the website's own stack sends (its ORA_INGEST_KEY): an organization API key holding only agent-front:write and agent-front:serve, the same key the app's Connect step creates. It works for any of the organization's sites and cannot call this API. Minting saves it as the site's key, the one the connection's `credentials` lists, so save a transmitter connection first (PUT …/connection). The secret (`secret`) is in this response only: Ora keeps its hash and never shows it again, and a retry with the same Idempotency-Key never returns it (409 CREDENTIAL_ALREADY_ISSUED). To rotate: mint a new one, update the transmitter, then revoke the old one by its id. Needs front.secrets:reveal, which neither preset includes and no assistant is ever granted, and front.connect:write, as it changes the connection. The person behind the credential must be an organization owner or admin (403 ROLE_REQUIRED otherwise).","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"}],"responses":{"201":{"description":"Mint a transmitter credential for the site","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The credential's id: send it as credentialId to revoke the credential"},"fingerprint":{"type":"string","description":"The credential's visible prefix: enough to tell credentials apart, never enough to use one"},"createdAt":{"type":"string","description":"When the credential was made"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The id of the person who made it; null when that is not on record"},"lastUsedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When a transmitter last used it; null if never"},"secret":{"type":"string","description":"The credential itself: set it as the transmitter's ORA_INGEST_KEY secret. Shown once: Ora keeps only its hash and can never show it again.","x-ora-secret":true}},"required":["id","fingerprint","createdAt","createdBy","lastUsedAt","secret"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE: minting needs front.secrets:reveal and front.connect:write; PRODUCT_NOT_ENABLED), or the person behind the credential is not an organization owner or admin (ROLE_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"No transmitter connection is saved to keep the key: PUT …/connection with a transmitter method first (CONNECTION_NOT_SET, TRANSMITTER_REQUIRED); this Idempotency-Key already minted a credential, whose secret is never shown again (CREDENTIAL_ALREADY_ISSUED); or the organization holds as many credentials and API keys as it may (CREDENTIAL_LIMIT_REACHED: revoke one first).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.secrets:reveal","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-secret-response":true,"x-ora-mcp-tool":false}},"/studio/v1/front/sites/{site}/connection/credentials/{credentialId}":{"delete":{"operationId":"front.connection.credentials.delete","tags":["Front connection"],"summary":"Revoke a transmitter credential","description":"Revokes one of the organization's transmitter keys at once, whichever site keeps it: a transmitter still using it is refused on every site from then on, and no connection lists it any more (revoking it again answers the same). The site's key is in the connection's `credentials`; any key holding only agent-front:write and agent-front:serve can be revoked here, one created in Studio too. To rotate: mint a new one, update the transmitter, then revoke the old one by its id. The person behind the credential must be an organization owner or admin (403 ROLE_REQUIRED otherwise).","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"},{"name":"credentialId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The transmitter credential's id: its `id` in the connection's `credentials`, or as minting it answered it."},"example":"3f6c2a1e-6d2b-4c1a-9a43-5b8f0e7d2c91"}],"responses":{"200":{"description":"Revoke a transmitter credential","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The credential's id: send it as credentialId to revoke the credential"},"fingerprint":{"type":"string","description":"The credential's visible prefix: enough to tell credentials apart, never enough to use one"},"createdAt":{"type":"string","description":"When the credential was made"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The id of the person who made it; null when that is not on record"},"lastUsedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When a transmitter last used it; null if never"},"revokedAt":{"type":"string","description":"When it was revoked: from then on, a transmitter using it is refused on every site"}},"required":["id","fingerprint","createdAt","createdBy","lastUsedAt","revokedAt"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, PRODUCT_NOT_ENABLED), or the person behind the credential is not an organization owner or admin (ROLE_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The site does not exist here (SITE_NOT_FOUND), or the id is not one of the organization's transmitter keys (CREDENTIAL_NOT_FOUND: revoke any other key in Studio, Settings → API keys).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.connect:write","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_revoke_transmitter_credential","title":"Revoke a transmitter credential","description":"Revokes one of the organization's transmitter keys at once, whichever site keeps it: a transmitter still using it is refused on every site from then on, and no connection lists it any more (revoking it again answers the same). The site's key is in the connection's `credentials`; any key holding only agent-front:write and agent-front:serve can be revoked here, one created in Studio too. To rotate: mint a new one, update the transmitter, then revoke the old one by its id. The person behind the credential must be an organization owner or admin (403 ROLE_REQUIRED otherwise).","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"credentialId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The transmitter credential's id: its `id` in the connection's `credentials`, or as minting it answered it."}},"required":["site","credentialId"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The credential's id: send it as credentialId to revoke the credential"},"fingerprint":{"type":"string","description":"The credential's visible prefix: enough to tell credentials apart, never enough to use one"},"createdAt":{"type":"string","description":"When the credential was made"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The id of the person who made it; null when that is not on record"},"lastUsedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When a transmitter last used it; null if never"},"revokedAt":{"type":"string","description":"When it was revoked: from then on, a transmitter using it is refused on every site"}},"required":["id","fingerprint","createdAt","createdBy","lastUsedAt","revokedAt"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"request":{"params":["site","credentialId"]}}}},"/studio/v1/front/sites/{site}/connection/dns-records":{"get":{"operationId":"front.connection.dnsRecords.list","tags":["Front connection"],"summary":"List the DNS records the managed CDN needs","description":"The records to set at your DNS provider for the managed CDN, as it stands now: ownership and certificate records first, the traffic records once the CDN is ready for them, and, while disconnecting, the original records to put back (purpose `restore`). Stable order; a transmitter connection has none.","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"},{"name":"cursor","in":"query","required":false,"schema":{"description":"Where this page starts: the previous page's `nextCursor`. Leave it out for the first page.","type":"string","minLength":1,"maxLength":500}},{"name":"limit","in":"query","required":false,"schema":{"default":50,"description":"The most items one page holds: 1 to 200, 50 when left out.","type":"integer","minimum":1,"maximum":200},"example":50}],"responses":{"200":{"description":"List the DNS records the managed CDN needs","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The record's full name, e.g. www.acme.com"},"type":{"type":"string","enum":["A","AAAA","CNAME","ALIAS","TXT","CAA"],"description":"The record's type. ALIAS is how DNS panels show a root-domain alias (ALIAS, ANAME, flattening)."},"value":{"type":"string","description":"The record's value, exactly as given: an IP address for A and AAAA, a hostname for CNAME and ALIAS, the text for TXT and CAA"},"purpose":{"type":"string","enum":["ownership","certificate","traffic","restore"],"description":"ownership: proves you control the hostname. certificate: lets the CDN issue its TLS certificate. traffic: sends visitors through the CDN (listed only once the CDN is ready for it). restore: an original record to put back when disconnecting."},"ttl":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}],"description":"Seconds; null when the record sets none (a Route53 alias inherits its own)"},"proxied":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Whether to proxy it at the DNS provider; null when it does not matter"},"proxyProvider":{"anyOf":[{"type":"string","enum":["cloudflare","other","unknown"]},{"type":"null"}],"description":"Who proxies it (cloudflare, other or unknown): set on a proxied original record to restore; null otherwise"},"route53Alias":{"anyOf":[{"type":"object","properties":{"recordType":{"type":"string","enum":["A","AAAA"],"description":"A: the alias for IPv4 addresses. AAAA: the alias for IPv6 addresses."},"hostedZoneId":{"type":"string","minLength":1,"maxLength":32,"description":"CloudFront's hosted zone id (Z2FDTNDATAQYW2)"}},"required":["recordType","hostedZoneId"],"additionalProperties":false},{"type":"null"}],"description":"Set on an original record to restore that is a Route53 alias to a CloudFront distribution; null otherwise"},"previous":{"type":"boolean","description":"A certificate record asked for before: keep it until the newer one verifies"}},"required":["name","type","value","purpose","ttl","proxied","proxyProvider","route53Alias","previous"],"additionalProperties":false},"description":"This page's items."},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Send it as `cursor` to read the next page. Null on the last page."}},"required":["items","nextCursor"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.connect:read","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_list_dns_records","title":"List the DNS records the managed CDN needs","description":"The records to set at your DNS provider for the managed CDN, as it stands now: ownership and certificate records first, the traffic records once the CDN is ready for them, and, while disconnecting, the original records to put back (purpose `restore`). Stable order; a transmitter connection has none.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"cursor":{"description":"Where this page starts: the previous page's `nextCursor`. Leave it out for the first page.","type":"string","minLength":1,"maxLength":500},"limit":{"default":50,"description":"The most items one page holds: 1 to 200, 50 when left out.","type":"integer","minimum":1,"maximum":200}},"required":["site"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The record's full name, e.g. www.acme.com"},"type":{"type":"string","enum":["A","AAAA","CNAME","ALIAS","TXT","CAA"],"description":"The record's type. ALIAS is how DNS panels show a root-domain alias (ALIAS, ANAME, flattening)."},"value":{"type":"string","description":"The record's value, exactly as given: an IP address for A and AAAA, a hostname for CNAME and ALIAS, the text for TXT and CAA"},"purpose":{"type":"string","enum":["ownership","certificate","traffic","restore"],"description":"ownership: proves you control the hostname. certificate: lets the CDN issue its TLS certificate. traffic: sends visitors through the CDN (listed only once the CDN is ready for it). restore: an original record to put back when disconnecting."},"ttl":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}],"description":"Seconds; null when the record sets none (a Route53 alias inherits its own)"},"proxied":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Whether to proxy it at the DNS provider; null when it does not matter"},"proxyProvider":{"anyOf":[{"type":"string","enum":["cloudflare","other","unknown"]},{"type":"null"}],"description":"Who proxies it (cloudflare, other or unknown): set on a proxied original record to restore; null otherwise"},"route53Alias":{"anyOf":[{"type":"object","properties":{"recordType":{"type":"string","enum":["A","AAAA"],"description":"A: the alias for IPv4 addresses. AAAA: the alias for IPv6 addresses."},"hostedZoneId":{"type":"string","minLength":1,"maxLength":32,"description":"CloudFront's hosted zone id (Z2FDTNDATAQYW2)"}},"required":["recordType","hostedZoneId"],"additionalProperties":false},{"type":"null"}],"description":"Set on an original record to restore that is a Route53 alias to a CloudFront distribution; null otherwise"},"previous":{"type":"boolean","description":"A certificate record asked for before: keep it until the newer one verifies"}},"required":["name","type","value","purpose","ttl","proxied","proxyProvider","route53Alias","previous"],"additionalProperties":false},"description":"This page's items."},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Send it as `cursor` to read the next page. Null on the last page."}},"required":["items","nextCursor"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"request":{"params":["site"],"query":["cursor","limit"]}}}},"/studio/v1/front/sites/{site}/connection/dns-restoration":{"post":{"operationId":"front.connection.dnsRestoration.create","tags":["Front connection"],"summary":"Confirm the original DNS records are back","description":"During a managed CDN disconnect whose DNS Ora cannot read for itself (the installation's `restoration` is set), confirm you put the original records back: send them as they now are. They must match the saved originals exactly. The disconnect then finishes; returns the connection. The person behind the credential must be an organization owner or admin (403 ROLE_REQUIRED otherwise).","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"},{"name":"Idempotency-Key","in":"header","required":false,"description":"A unique value per logical request (a UUID). A retry with the same key and the same request replays the first answer instead of running again; keys are kept 24 hours.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"records":{"minItems":1,"maxItems":32,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":3,"maxLength":253,"description":"The record's hostname: the connection's hostname"},"type":{"type":"string","enum":["A","AAAA","CNAME","ALIAS"],"description":"ALIAS is how DNS panels show an apex alias (ALIAS, ANAME, flattening)"},"value":{"type":"string","minLength":1,"maxLength":253,"description":"An IP address for A and AAAA, a hostname for CNAME and ALIAS"},"ttl":{"anyOf":[{"type":"integer","minimum":0,"maximum":2147483647},{"type":"null"}],"description":"Seconds. Null only for a Route53 alias, which inherits its TTL."},"proxied":{"description":"Whether the DNS provider proxies it (Cloudflare's orange cloud). Required for a subdomain's records.","type":"boolean"},"proxyProvider":{"description":"Who proxies it; only for a proxied record","type":"string","enum":["cloudflare","other","unknown"]},"route53Alias":{"description":"Set for a Route53 alias to a CloudFront distribution","type":"object","properties":{"recordType":{"type":"string","enum":["A","AAAA"],"description":"A: the alias for IPv4 addresses. AAAA: the alias for IPv6 addresses."},"hostedZoneId":{"type":"string","minLength":1,"maxLength":32,"description":"CloudFront's hosted zone id (Z2FDTNDATAQYW2)"}},"required":["recordType","hostedZoneId"]}},"required":["name","type","value","ttl"]},"description":"The records now at the DNS provider: they must match the connection's saved original records exactly"}},"required":["records"]},"example":{"records":[{"name":"www.acme.com","type":"CNAME","value":"proxy-ssl.webflow.com","ttl":300,"proxied":false}]}}}},"responses":{"200":{"description":"Confirm the original DNS records are back","content":{"application/json":{"schema":{"type":"object","properties":{"method":{"anyOf":[{"type":"string","enum":["managed","cloudflare","vercel","nextjs","express","other"]},{"type":"null"}],"description":"Null until a method is saved"},"status":{"type":"string","enum":["not_connected","pending","connected","failed"],"description":"not_connected: no method is saved and Ora never heard from the website. pending: a method is saved and Ora waits for its first contact (the managed CDN is provisioning, or the transmitter is not installed or has not reported yet). connected: the transmitter checked in, or traffic from the hostname was verified, within the last 24 hours. failed: the last check failed, the managed CDN reports an error, or Ora heard nothing for more than 24 hours."},"hostname":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The hostname visitors land on; null until a method is saved"},"nextVersion":{"anyOf":[{"type":"string","enum":["16","13-15"]},{"type":"null"}],"description":"Transmitters only"},"existingMiddleware":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Transmitters only"},"managed":{"anyOf":[{"type":"object","properties":{"hostingProvider":{"type":"string","enum":["wpengine","kinsta","webflow","hostinger","cloudfront","self_hosted"],"description":"Where the website is hosted. GET /hosting?url= detects the common ones from public signals."},"originUrl":{"type":"string","minLength":1,"maxLength":2048,"description":"The origin Ora's CDN fetches pages from: an HTTPS origin with a public hostname (https://origin.acme.com), never the hostname visitors use, and no port, path or query."},"dnsManagement":{"type":"string","enum":["external","wpengine","hostinger","flattened","apex_proxy"],"description":"How the hostname's DNS changes. external: you change records at your DNS provider. flattened: your DNS flattens a root-domain CNAME. wpengine, hostinger: the host manages DNS. apex_proxy: static addresses for a root domain."},"originalDnsRecords":{"minItems":1,"maxItems":16,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":3,"maxLength":253,"description":"The record's hostname: the connection's hostname"},"type":{"type":"string","enum":["A","AAAA","CNAME","ALIAS"],"description":"ALIAS is how DNS panels show an apex alias (ALIAS, ANAME, flattening)"},"value":{"type":"string","minLength":1,"maxLength":253,"description":"An IP address for A and AAAA, a hostname for CNAME and ALIAS"},"ttl":{"anyOf":[{"type":"integer","minimum":0,"maximum":2147483647},{"type":"null"}],"description":"Seconds. Null only for a Route53 alias, which inherits its TTL."},"proxied":{"description":"Whether the DNS provider proxies it (Cloudflare's orange cloud). Required for a subdomain's records.","type":"boolean"},"proxyProvider":{"description":"Who proxies it; only for a proxied record","type":"string","enum":["cloudflare","other","unknown"]},"route53Alias":{"description":"Set for a Route53 alias to a CloudFront distribution","type":"object","properties":{"recordType":{"type":"string","enum":["A","AAAA"],"description":"A: the alias for IPv4 addresses. AAAA: the alias for IPv6 addresses."},"hostedZoneId":{"type":"string","minLength":1,"maxLength":32,"description":"CloudFront's hosted zone id (Z2FDTNDATAQYW2)"}},"required":["recordType","hostedZoneId"],"additionalProperties":false}},"required":["name","type","value","ttl"],"additionalProperties":false},"description":"The hostname's traffic records as they are now, copied from your DNS provider: Ora restores them on disconnect"}},"required":["hostingProvider","originUrl","dnsManagement","originalDnsRecords"],"additionalProperties":false},{"type":"null"}],"description":"The managed method's settings; null for a transmitter"},"checks":{"type":"object","properties":{"live":{"type":"object","properties":{"state":{"type":"string","enum":["pending","verified","failed"],"description":"pending: not checked yet, or still waiting (see message). verified: the check passed. failed: it did not."},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What the check found, in a sentence to show as is"},"checkedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When it was last checked; null before its first check"}},"required":["state","message","checkedAt"],"additionalProperties":false,"description":"The website answers through the connection: the transmitter responds at the hostname, or the managed CDN serves it"},"traffic":{"type":"object","properties":{"state":{"type":"string","enum":["pending","verified","failed"],"description":"pending: not checked yet, or still waiting (see message). verified: the check passed. failed: it did not."},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What the check found, in a sentence to show as is"},"checkedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When it was last checked; null before its first check"}},"required":["state","message","checkedAt"],"additionalProperties":false,"description":"Traffic from the hostname reached Ora since the connection was last saved"},"checkedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the checks last ran; null before the first"},"installation":{"type":"array","items":{"type":"object","properties":{"state":{"type":"string","enum":["pending","verified","failed"],"description":"pending: not checked yet, or still waiting (see message). verified: the check passed. failed: it did not."},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What the check found, in a sentence to show as is"},"checkedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When it was last checked; null before its first check"},"name":{"type":"string","enum":["ownership","certificate","hostname","origin","deployment","credential","routing","dns","traffic"],"description":"What is checked. ownership: you control the hostname (its ownership record). certificate: the CDN's TLS certificate for it is issued. hostname: the CDN activated the hostname. origin: the origin serves this website (its origin proof). deployment: the CDN's setup for the site is deployed. credential: the CDN's key for reporting traffic to Ora is ready. routing: the CDN's route to the site passed its check. dns: the hostname's traffic records point at the CDN. traffic: requests to the hostname reach the site through the CDN."}},"required":["state","message","checkedAt","name"],"additionalProperties":false},"description":"Managed CDN only: each step Ora verifies while provisioning, in order; empty for a transmitter"}},"required":["live","traffic","checkedAt","installation"],"additionalProperties":false,"description":"Whether the website reaches its Front through the connection, as last checked (front.connection.checks.create checks again)"},"installation":{"anyOf":[{"type":"object","properties":{"state":{"type":"string","enum":["draft","canceled","provisioning","awaiting_verification","ready_for_dns","active","error","disconnecting","draining","disconnected"],"description":"Where provisioning is. error: it stopped (see failure; it is retried at nextAttemptAt)."},"stage":{"type":"string","enum":["setup","ready_for_dns","active","disconnecting"],"description":"What happens next. setup: Ora prepares the CDN (follow steps). ready_for_dns: set the traffic records (dns-records). active: done. disconnecting: put the original records back."},"originUrl":{"type":"string","description":"The origin the CDN fetches pages from now; during an origin change it stays live until the new one verifies"},"steps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step's id, stable for its host (e.g. cloudfront-proof)"},"title":{"type":"string","description":"The step in a short line, to show as is"},"body":{"type":"string","description":"What to do, in a paragraph to show as is"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A page at the host where it is done, when there is one"}},"required":["id","title","body","url"],"additionalProperties":false},"description":"What to do at the website's host and DNS, in order"},"originProof":{"anyOf":[{"type":"object","properties":{"path":{"type":"string","description":"Where on the origin to serve the document"},"document":{"type":"object","properties":{"installationId":{"type":"string","description":"The managed installation the proof is for"},"publicHostname":{"type":"string","description":"The hostname visitors land on: the connection's hostname"},"token":{"type":"string","description":"The installation's verification token"}},"required":["installationId","publicHostname","token"],"additionalProperties":false,"description":"Serve exactly this JSON"}},"required":["path","document"],"additionalProperties":false},{"type":"null"}],"description":"How Ora verifies the origin serves this website: serve the document at the path on the origin. The WordPress plugin does it for you (wordpressPlugin). Null when no proof is asked for."},"wordpressPlugin":{"type":"boolean","description":"A WordPress plugin serving the origin proof is available: GET …/connection/wordpress-plugin"},"originChange":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The origin change's id: read the change again at GET …/connection/origin-changes/{changeId}"},"originUrl":{"type":"string","description":"The new origin"},"previousOriginUrl":{"type":"string","description":"The origin the CDN fetched from before: it keeps serving until the new one verifies, and stays if the change fails"},"status":{"type":"string","enum":["pending","verifying","switching","complete","failed"],"description":"pending, verifying, switching: still running. complete: the CDN fetches from the new origin. failed: it did not."},"requestedAt":{"type":"string","description":"UTC, ISO 8601"},"completedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the change finished, complete or failed; null while it runs"},"failure":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"Why, as a stable code (e.g. ORIGIN_CHANGE_CANCELLED)"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why, in a sentence to show as is; null when none was recorded"}},"required":["code","detail"],"additionalProperties":false},{"type":"null"}],"description":"Why it failed; null unless failed"}},"required":["id","originUrl","previousOriginUrl","status","requestedAt","completedAt","failure"],"additionalProperties":false},{"type":"null"}],"description":"The latest origin change, if any"},"restoration":{"anyOf":[{"type":"object","properties":{"confirmedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When you confirmed the original records are back; null until you do"}},"required":["confirmedAt"],"additionalProperties":false},{"type":"null"}],"description":"Set while a disconnect waits for you to confirm the original DNS records are back (POST …/connection/dns-restoration); confirmedAt once you did. Null when nothing is asked."},"failure":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"What went wrong, as a stable code (e.g. PROVIDER_UNAVAILABLE)"},"at":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When it happened; null when not recorded"}},"required":["code","at"],"additionalProperties":false},{"type":"null"}],"description":"The latest failure, while one stands"},"nextAttemptAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When Ora next works on the provisioning (a retry or its next check); null when nothing is scheduled"},"updatedAt":{"type":"string","description":"UTC, ISO 8601"}},"required":["state","stage","originUrl","steps","originProof","wordpressPlugin","originChange","restoration","failure","nextAttemptAt","updatedAt"],"additionalProperties":false},{"type":"null"}],"description":"The managed CDN's provisioning, once its settings were applied; null for a transmitter"},"credentials":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The credential's id: send it as credentialId to revoke the credential"},"fingerprint":{"type":"string","description":"The credential's visible prefix: enough to tell credentials apart, never enough to use one"},"createdAt":{"type":"string","description":"When the credential was made"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The id of the person who made it; null when that is not on record"},"lastUsedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When a transmitter last used it; null if never"}},"required":["id","fingerprint","createdAt","createdBy","lastUsedAt"],"additionalProperties":false},"description":"The site's key, metadata only: the transmitter key the connection names (minting one with front.connection.credentials.create saves it here, as does choosing one in Studio), while it is live and holds only a transmitter's grants. Empty when none is named, or once it is revoked."},"lastContactAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"The latest transmitter check-in or verified traffic: what `status` is decided from"},"transmitterVersion":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The version the transmitter last reported, when it reports one"}},"required":["method","status","hostname","nextVersion","existingMiddleware","managed","checks","installation","credentials","lastContactAt","transmitterVersion"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, PRODUCT_NOT_ENABLED), or the person behind the credential is not an organization owner or admin (ROLE_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"No disconnect waits for this confirmation (RESTORATION_NOT_PENDING, MANAGED_CONNECTION_REQUIRED); the records differ from the saved originals: read them again (RESTORATION_RECORDS_MISMATCH); the managed CDN is not available here (MANAGED_CDN_UNAVAILABLE); or the Idempotency-Key conflicts (IDEMPOTENCY_KEY_REUSED; IDEMPOTENCY_IN_PROGRESS: retry with the same key).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.connect:write","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-idempotent":true,"x-ora-mcp-tool":{"name":"front_confirm_dns_restored","title":"Confirm the original DNS records are back","description":"During a managed CDN disconnect whose DNS Ora cannot read for itself (the installation's `restoration` is set), confirm you put the original records back: send them as they now are. They must match the saved originals exactly. The disconnect then finishes; returns the connection. The person behind the credential must be an organization owner or admin (403 ROLE_REQUIRED otherwise).","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"records":{"minItems":1,"maxItems":32,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":3,"maxLength":253,"description":"The record's hostname: the connection's hostname"},"type":{"type":"string","enum":["A","AAAA","CNAME","ALIAS"],"description":"ALIAS is how DNS panels show an apex alias (ALIAS, ANAME, flattening)"},"value":{"type":"string","minLength":1,"maxLength":253,"description":"An IP address for A and AAAA, a hostname for CNAME and ALIAS"},"ttl":{"anyOf":[{"type":"integer","minimum":0,"maximum":2147483647},{"type":"null"}],"description":"Seconds. Null only for a Route53 alias, which inherits its TTL."},"proxied":{"description":"Whether the DNS provider proxies it (Cloudflare's orange cloud). Required for a subdomain's records.","type":"boolean"},"proxyProvider":{"description":"Who proxies it; only for a proxied record","type":"string","enum":["cloudflare","other","unknown"]},"route53Alias":{"description":"Set for a Route53 alias to a CloudFront distribution","type":"object","properties":{"recordType":{"type":"string","enum":["A","AAAA"],"description":"A: the alias for IPv4 addresses. AAAA: the alias for IPv6 addresses."},"hostedZoneId":{"type":"string","minLength":1,"maxLength":32,"description":"CloudFront's hosted zone id (Z2FDTNDATAQYW2)"}},"required":["recordType","hostedZoneId"]}},"required":["name","type","value","ttl"]},"description":"The records now at the DNS provider: they must match the connection's saved original records exactly"}},"required":["site","records"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"method":{"anyOf":[{"type":"string","enum":["managed","cloudflare","vercel","nextjs","express","other"]},{"type":"null"}],"description":"Null until a method is saved"},"status":{"type":"string","enum":["not_connected","pending","connected","failed"],"description":"not_connected: no method is saved and Ora never heard from the website. pending: a method is saved and Ora waits for its first contact (the managed CDN is provisioning, or the transmitter is not installed or has not reported yet). connected: the transmitter checked in, or traffic from the hostname was verified, within the last 24 hours. failed: the last check failed, the managed CDN reports an error, or Ora heard nothing for more than 24 hours."},"hostname":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The hostname visitors land on; null until a method is saved"},"nextVersion":{"anyOf":[{"type":"string","enum":["16","13-15"]},{"type":"null"}],"description":"Transmitters only"},"existingMiddleware":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Transmitters only"},"managed":{"anyOf":[{"type":"object","properties":{"hostingProvider":{"type":"string","enum":["wpengine","kinsta","webflow","hostinger","cloudfront","self_hosted"],"description":"Where the website is hosted. GET /hosting?url= detects the common ones from public signals."},"originUrl":{"type":"string","minLength":1,"maxLength":2048,"description":"The origin Ora's CDN fetches pages from: an HTTPS origin with a public hostname (https://origin.acme.com), never the hostname visitors use, and no port, path or query."},"dnsManagement":{"type":"string","enum":["external","wpengine","hostinger","flattened","apex_proxy"],"description":"How the hostname's DNS changes. external: you change records at your DNS provider. flattened: your DNS flattens a root-domain CNAME. wpengine, hostinger: the host manages DNS. apex_proxy: static addresses for a root domain."},"originalDnsRecords":{"minItems":1,"maxItems":16,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":3,"maxLength":253,"description":"The record's hostname: the connection's hostname"},"type":{"type":"string","enum":["A","AAAA","CNAME","ALIAS"],"description":"ALIAS is how DNS panels show an apex alias (ALIAS, ANAME, flattening)"},"value":{"type":"string","minLength":1,"maxLength":253,"description":"An IP address for A and AAAA, a hostname for CNAME and ALIAS"},"ttl":{"anyOf":[{"type":"integer","minimum":0,"maximum":2147483647},{"type":"null"}],"description":"Seconds. Null only for a Route53 alias, which inherits its TTL."},"proxied":{"description":"Whether the DNS provider proxies it (Cloudflare's orange cloud). Required for a subdomain's records.","type":"boolean"},"proxyProvider":{"description":"Who proxies it; only for a proxied record","type":"string","enum":["cloudflare","other","unknown"]},"route53Alias":{"description":"Set for a Route53 alias to a CloudFront distribution","type":"object","properties":{"recordType":{"type":"string","enum":["A","AAAA"],"description":"A: the alias for IPv4 addresses. AAAA: the alias for IPv6 addresses."},"hostedZoneId":{"type":"string","minLength":1,"maxLength":32,"description":"CloudFront's hosted zone id (Z2FDTNDATAQYW2)"}},"required":["recordType","hostedZoneId"],"additionalProperties":false}},"required":["name","type","value","ttl"],"additionalProperties":false},"description":"The hostname's traffic records as they are now, copied from your DNS provider: Ora restores them on disconnect"}},"required":["hostingProvider","originUrl","dnsManagement","originalDnsRecords"],"additionalProperties":false},{"type":"null"}],"description":"The managed method's settings; null for a transmitter"},"checks":{"type":"object","properties":{"live":{"type":"object","properties":{"state":{"type":"string","enum":["pending","verified","failed"],"description":"pending: not checked yet, or still waiting (see message). verified: the check passed. failed: it did not."},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What the check found, in a sentence to show as is"},"checkedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When it was last checked; null before its first check"}},"required":["state","message","checkedAt"],"additionalProperties":false,"description":"The website answers through the connection: the transmitter responds at the hostname, or the managed CDN serves it"},"traffic":{"type":"object","properties":{"state":{"type":"string","enum":["pending","verified","failed"],"description":"pending: not checked yet, or still waiting (see message). verified: the check passed. failed: it did not."},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What the check found, in a sentence to show as is"},"checkedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When it was last checked; null before its first check"}},"required":["state","message","checkedAt"],"additionalProperties":false,"description":"Traffic from the hostname reached Ora since the connection was last saved"},"checkedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the checks last ran; null before the first"},"installation":{"type":"array","items":{"type":"object","properties":{"state":{"type":"string","enum":["pending","verified","failed"],"description":"pending: not checked yet, or still waiting (see message). verified: the check passed. failed: it did not."},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What the check found, in a sentence to show as is"},"checkedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When it was last checked; null before its first check"},"name":{"type":"string","enum":["ownership","certificate","hostname","origin","deployment","credential","routing","dns","traffic"],"description":"What is checked. ownership: you control the hostname (its ownership record). certificate: the CDN's TLS certificate for it is issued. hostname: the CDN activated the hostname. origin: the origin serves this website (its origin proof). deployment: the CDN's setup for the site is deployed. credential: the CDN's key for reporting traffic to Ora is ready. routing: the CDN's route to the site passed its check. dns: the hostname's traffic records point at the CDN. traffic: requests to the hostname reach the site through the CDN."}},"required":["state","message","checkedAt","name"],"additionalProperties":false},"description":"Managed CDN only: each step Ora verifies while provisioning, in order; empty for a transmitter"}},"required":["live","traffic","checkedAt","installation"],"additionalProperties":false,"description":"Whether the website reaches its Front through the connection, as last checked (front.connection.checks.create checks again)"},"installation":{"anyOf":[{"type":"object","properties":{"state":{"type":"string","enum":["draft","canceled","provisioning","awaiting_verification","ready_for_dns","active","error","disconnecting","draining","disconnected"],"description":"Where provisioning is. error: it stopped (see failure; it is retried at nextAttemptAt)."},"stage":{"type":"string","enum":["setup","ready_for_dns","active","disconnecting"],"description":"What happens next. setup: Ora prepares the CDN (follow steps). ready_for_dns: set the traffic records (dns-records). active: done. disconnecting: put the original records back."},"originUrl":{"type":"string","description":"The origin the CDN fetches pages from now; during an origin change it stays live until the new one verifies"},"steps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step's id, stable for its host (e.g. cloudfront-proof)"},"title":{"type":"string","description":"The step in a short line, to show as is"},"body":{"type":"string","description":"What to do, in a paragraph to show as is"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A page at the host where it is done, when there is one"}},"required":["id","title","body","url"],"additionalProperties":false},"description":"What to do at the website's host and DNS, in order"},"originProof":{"anyOf":[{"type":"object","properties":{"path":{"type":"string","description":"Where on the origin to serve the document"},"document":{"type":"object","properties":{"installationId":{"type":"string","description":"The managed installation the proof is for"},"publicHostname":{"type":"string","description":"The hostname visitors land on: the connection's hostname"},"token":{"type":"string","description":"The installation's verification token"}},"required":["installationId","publicHostname","token"],"additionalProperties":false,"description":"Serve exactly this JSON"}},"required":["path","document"],"additionalProperties":false},{"type":"null"}],"description":"How Ora verifies the origin serves this website: serve the document at the path on the origin. The WordPress plugin does it for you (wordpressPlugin). Null when no proof is asked for."},"wordpressPlugin":{"type":"boolean","description":"A WordPress plugin serving the origin proof is available: GET …/connection/wordpress-plugin"},"originChange":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The origin change's id: read the change again at GET …/connection/origin-changes/{changeId}"},"originUrl":{"type":"string","description":"The new origin"},"previousOriginUrl":{"type":"string","description":"The origin the CDN fetched from before: it keeps serving until the new one verifies, and stays if the change fails"},"status":{"type":"string","enum":["pending","verifying","switching","complete","failed"],"description":"pending, verifying, switching: still running. complete: the CDN fetches from the new origin. failed: it did not."},"requestedAt":{"type":"string","description":"UTC, ISO 8601"},"completedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the change finished, complete or failed; null while it runs"},"failure":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"Why, as a stable code (e.g. ORIGIN_CHANGE_CANCELLED)"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why, in a sentence to show as is; null when none was recorded"}},"required":["code","detail"],"additionalProperties":false},{"type":"null"}],"description":"Why it failed; null unless failed"}},"required":["id","originUrl","previousOriginUrl","status","requestedAt","completedAt","failure"],"additionalProperties":false},{"type":"null"}],"description":"The latest origin change, if any"},"restoration":{"anyOf":[{"type":"object","properties":{"confirmedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When you confirmed the original records are back; null until you do"}},"required":["confirmedAt"],"additionalProperties":false},{"type":"null"}],"description":"Set while a disconnect waits for you to confirm the original DNS records are back (POST …/connection/dns-restoration); confirmedAt once you did. Null when nothing is asked."},"failure":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"What went wrong, as a stable code (e.g. PROVIDER_UNAVAILABLE)"},"at":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When it happened; null when not recorded"}},"required":["code","at"],"additionalProperties":false},{"type":"null"}],"description":"The latest failure, while one stands"},"nextAttemptAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When Ora next works on the provisioning (a retry or its next check); null when nothing is scheduled"},"updatedAt":{"type":"string","description":"UTC, ISO 8601"}},"required":["state","stage","originUrl","steps","originProof","wordpressPlugin","originChange","restoration","failure","nextAttemptAt","updatedAt"],"additionalProperties":false},{"type":"null"}],"description":"The managed CDN's provisioning, once its settings were applied; null for a transmitter"},"credentials":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The credential's id: send it as credentialId to revoke the credential"},"fingerprint":{"type":"string","description":"The credential's visible prefix: enough to tell credentials apart, never enough to use one"},"createdAt":{"type":"string","description":"When the credential was made"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The id of the person who made it; null when that is not on record"},"lastUsedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When a transmitter last used it; null if never"}},"required":["id","fingerprint","createdAt","createdBy","lastUsedAt"],"additionalProperties":false},"description":"The site's key, metadata only: the transmitter key the connection names (minting one with front.connection.credentials.create saves it here, as does choosing one in Studio), while it is live and holds only a transmitter's grants. Empty when none is named, or once it is revoked."},"lastContactAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"The latest transmitter check-in or verified traffic: what `status` is decided from"},"transmitterVersion":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The version the transmitter last reported, when it reports one"}},"required":["method","status","hostname","nextVersion","existingMiddleware","managed","checks","installation","credentials","lastContactAt","transmitterVersion"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"request":{"params":["site"],"body":["records"]}}}},"/studio/v1/front/sites/{site}/connection/install":{"get":{"operationId":"front.connection.install.get","tags":["Front connection"],"summary":"Read how to install the website's transmitter","description":"The transmitter for the connection's saved method: its files, environment variables, commands, where it must run and the whole guide. Never a secret value: ORA_INGEST_KEY comes back with `value: null` and `operation: front.connection.credentials.create`, which mints it (needs front.secrets:reveal). Once installed, open `statusUrl`, then POST …/connection/checks.","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"}],"responses":{"200":{"description":"Read how to install the website's transmitter","content":{"application/json":{"schema":{"type":"object","properties":{"method":{"type":"string","enum":["cloudflare","vercel","nextjs","express","other"],"description":"The connection's saved method these instructions are for. cloudflare: a Worker in front of the website. vercel, nextjs: Next.js middleware. express: Express middleware. other: no transmitter yet."},"files":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Where the file goes, relative to the app or Worker root"},"content":{"type":"string","description":"The file, verbatim"}},"required":["path","content"],"additionalProperties":false},"description":"Empty for `other`: there is no transmitter for that stack yet; ask Ora"},"env":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The variable's name, e.g. ORA_INGEST_KEY"},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The value to set; null for a secret, which is never part of a read"},"secret":{"type":"boolean","description":"Set it as a secret, never as a plain variable"},"operation":{"description":"The operation that issues the value, when Ora issues it (front.connection.credentials.create)","type":"string"},"description":{"type":"string","description":"What it is, and how to get it when you make it yourself"}},"required":["name","value","secret","description"],"additionalProperties":false},"description":"The variables the transmitter reads: set each where it runs. Empty for `other`."},"route":{"type":"string","description":"The requests the transmitter must see, as <hostname>/*: verbatim the Cloudflare Worker route"},"commands":{"type":"array","items":{"type":"string"},"description":"Shell commands to run, in order, from the project's root"},"statusUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Once installed, it answers reporting: true and this site's id; then run the connection checks"}},"required":["method","files","env","route","commands","statusUrl"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"No method is saved yet: PUT …/connection first (CONNECTION_NOT_SET); or the method is the managed CDN, which installs nothing in your stack: read …/connection/dns-records (TRANSMITTER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.connect:read","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_get_install_steps","title":"Read how to install the website's transmitter","description":"The transmitter for the connection's saved method: its files, environment variables, commands, where it must run and the whole guide. Never a secret value: ORA_INGEST_KEY comes back with `value: null` and `operation: front.connection.credentials.create`, which mints it (needs front.secrets:reveal). Once installed, open `statusUrl`, then POST …/connection/checks.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."}},"required":["site"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"method":{"type":"string","enum":["cloudflare","vercel","nextjs","express","other"],"description":"The connection's saved method these instructions are for. cloudflare: a Worker in front of the website. vercel, nextjs: Next.js middleware. express: Express middleware. other: no transmitter yet."},"files":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Where the file goes, relative to the app or Worker root"},"content":{"type":"string","description":"The file, verbatim"}},"required":["path","content"],"additionalProperties":false},"description":"Empty for `other`: there is no transmitter for that stack yet; ask Ora"},"env":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The variable's name, e.g. ORA_INGEST_KEY"},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The value to set; null for a secret, which is never part of a read"},"secret":{"type":"boolean","description":"Set it as a secret, never as a plain variable"},"operation":{"description":"The operation that issues the value, when Ora issues it (front.connection.credentials.create)","type":"string"},"description":{"type":"string","description":"What it is, and how to get it when you make it yourself"}},"required":["name","value","secret","description"],"additionalProperties":false},"description":"The variables the transmitter reads: set each where it runs. Empty for `other`."},"route":{"type":"string","description":"The requests the transmitter must see, as <hostname>/*: verbatim the Cloudflare Worker route"},"commands":{"type":"array","items":{"type":"string"},"description":"Shell commands to run, in order, from the project's root"},"statusUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Once installed, it answers reporting: true and this site's id; then run the connection checks"}},"required":["method","files","env","route","commands","statusUrl"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"request":{"params":["site"]}}}},"/studio/v1/front/sites/{site}/connection/origin-changes":{"post":{"operationId":"front.connection.originChanges.create","tags":["Front connection"],"summary":"Change the origin the managed CDN fetches from","description":"Moves an active managed CDN to a new origin. The current origin stays live until the new one verifies; follow GET …/origin-changes/{changeId}, or `connection.origin_change_completed` on the site's stream. Returns the change, still running. The person behind the credential must be an organization owner or admin (403 ROLE_REQUIRED otherwise).","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"},{"name":"Idempotency-Key","in":"header","required":false,"description":"A unique value per logical request (a UUID). A retry with the same key and the same request replays the first answer instead of running again; keys are kept 24 hours.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"originUrl":{"type":"string","minLength":1,"maxLength":2048,"description":"The new HTTPS origin (https://origin2.acme.com): a public hostname, not the hostname visitors use"}},"required":["originUrl"]},"example":{"originUrl":"https://origin2.acme.com"}}}},"responses":{"202":{"description":"Change the origin the managed CDN fetches from","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The origin change's id: read the change again at GET …/connection/origin-changes/{changeId}"},"originUrl":{"type":"string","description":"The new origin"},"previousOriginUrl":{"type":"string","description":"The origin the CDN fetched from before: it keeps serving until the new one verifies, and stays if the change fails"},"status":{"type":"string","enum":["pending","verifying","switching","complete","failed"],"description":"pending, verifying, switching: still running. complete: the CDN fetches from the new origin. failed: it did not."},"requestedAt":{"type":"string","description":"UTC, ISO 8601"},"completedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the change finished, complete or failed; null while it runs"},"failure":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"Why, as a stable code (e.g. ORIGIN_CHANGE_CANCELLED)"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why, in a sentence to show as is; null when none was recorded"}},"required":["code","detail"],"additionalProperties":false},{"type":"null"}],"description":"Why it failed; null unless failed"}},"required":["id","originUrl","previousOriginUrl","status","requestedAt","completedAt","failure"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, PRODUCT_NOT_ENABLED), or the person behind the credential is not an organization owner or admin (ROLE_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"The connection is not a managed CDN (MANAGED_CONNECTION_REQUIRED) or not active yet (CONNECTION_NOT_ACTIVE); another change or check is running (ORIGIN_CHANGE_BUSY); the origin is the current one (ORIGIN_CHANGE_UNCHANGED); the managed CDN is not available here (MANAGED_CDN_UNAVAILABLE); or the Idempotency-Key conflicts (IDEMPOTENCY_KEY_REUSED; IDEMPOTENCY_IN_PROGRESS: retry with the same key).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"The origin is not an independent public HTTPS origin this host supports (ORIGIN_INVALID).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.connect:write","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-idempotent":true,"x-ora-mcp-tool":{"name":"front_change_origin","title":"Change the origin the managed CDN fetches from","description":"Moves an active managed CDN to a new origin. The current origin stays live until the new one verifies; follow GET …/origin-changes/{changeId}, or `connection.origin_change_completed` on the site's stream. Returns the change, still running. The person behind the credential must be an organization owner or admin (403 ROLE_REQUIRED otherwise).","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"originUrl":{"type":"string","minLength":1,"maxLength":2048,"description":"The new HTTPS origin (https://origin2.acme.com): a public hostname, not the hostname visitors use"}},"required":["site","originUrl"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The origin change's id: read the change again at GET …/connection/origin-changes/{changeId}"},"originUrl":{"type":"string","description":"The new origin"},"previousOriginUrl":{"type":"string","description":"The origin the CDN fetched from before: it keeps serving until the new one verifies, and stays if the change fails"},"status":{"type":"string","enum":["pending","verifying","switching","complete","failed"],"description":"pending, verifying, switching: still running. complete: the CDN fetches from the new origin. failed: it did not."},"requestedAt":{"type":"string","description":"UTC, ISO 8601"},"completedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the change finished, complete or failed; null while it runs"},"failure":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"Why, as a stable code (e.g. ORIGIN_CHANGE_CANCELLED)"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why, in a sentence to show as is; null when none was recorded"}},"required":["code","detail"],"additionalProperties":false},{"type":"null"}],"description":"Why it failed; null unless failed"}},"required":["id","originUrl","previousOriginUrl","status","requestedAt","completedAt","failure"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true},"request":{"params":["site"],"body":["originUrl"]}}}},"/studio/v1/front/sites/{site}/connection/origin-changes/{changeId}":{"get":{"operationId":"front.connection.originChanges.get","tags":["Front connection"],"summary":"Read an origin change","description":"Whether an origin change is still running, complete or failed, and why it failed.","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"},{"name":"changeId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The origin change's id, as changing the origin answered it."},"example":"6a1d0c9e-2f4b-4e7a-8c35-91d2b7e4f0a6"}],"responses":{"200":{"description":"Read an origin change","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The origin change's id: read the change again at GET …/connection/origin-changes/{changeId}"},"originUrl":{"type":"string","description":"The new origin"},"previousOriginUrl":{"type":"string","description":"The origin the CDN fetched from before: it keeps serving until the new one verifies, and stays if the change fails"},"status":{"type":"string","enum":["pending","verifying","switching","complete","failed"],"description":"pending, verifying, switching: still running. complete: the CDN fetches from the new origin. failed: it did not."},"requestedAt":{"type":"string","description":"UTC, ISO 8601"},"completedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the change finished, complete or failed; null while it runs"},"failure":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"Why, as a stable code (e.g. ORIGIN_CHANGE_CANCELLED)"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why, in a sentence to show as is; null when none was recorded"}},"required":["code","detail"],"additionalProperties":false},{"type":"null"}],"description":"Why it failed; null unless failed"}},"required":["id","originUrl","previousOriginUrl","status","requestedAt","completedAt","failure"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The site does not exist here (SITE_NOT_FOUND), or the change is not this site's latest (ORIGIN_CHANGE_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.connect:read","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_get_origin_change","title":"Read an origin change","description":"Whether an origin change is still running, complete or failed, and why it failed.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"changeId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The origin change's id, as changing the origin answered it."}},"required":["site","changeId"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The origin change's id: read the change again at GET …/connection/origin-changes/{changeId}"},"originUrl":{"type":"string","description":"The new origin"},"previousOriginUrl":{"type":"string","description":"The origin the CDN fetched from before: it keeps serving until the new one verifies, and stays if the change fails"},"status":{"type":"string","enum":["pending","verifying","switching","complete","failed"],"description":"pending, verifying, switching: still running. complete: the CDN fetches from the new origin. failed: it did not."},"requestedAt":{"type":"string","description":"UTC, ISO 8601"},"completedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the change finished, complete or failed; null while it runs"},"failure":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"Why, as a stable code (e.g. ORIGIN_CHANGE_CANCELLED)"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why, in a sentence to show as is; null when none was recorded"}},"required":["code","detail"],"additionalProperties":false},{"type":"null"}],"description":"Why it failed; null unless failed"}},"required":["id","originUrl","previousOriginUrl","status","requestedAt","completedAt","failure"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"request":{"params":["site","changeId"]}}}},"/studio/v1/front/sites/{site}/connection/wordpress-plugin":{"get":{"operationId":"front.connection.wordpressPlugin.get","tags":["Front connection"],"summary":"Download the WordPress origin plugin","description":"For a managed CDN in front of WordPress (WP Engine, Hostinger): the plugin that serves the origin proof, so Ora can verify the origin. Base64 in JSON: decode it to the zip and upload it in WordPress. Offered once the installation's `wordpressPlugin` is true.","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"}],"responses":{"200":{"description":"Download the WordPress origin plugin","content":{"application/json":{"schema":{"type":"object","properties":{"fileName":{"type":"string","description":"ora-agent-front-origin.zip"},"contentType":{"type":"string","const":"application/zip","description":"The file's media type: always application/zip"},"contentBase64":{"type":"string","description":"The plugin's zip, base64-encoded: decode it, then upload it in WordPress (Plugins, Add New)"}},"required":["fileName","contentType","contentBase64"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"The connection is not a managed CDN (MANAGED_CONNECTION_REQUIRED), or not a WordPress one that has begun (WORDPRESS_PLUGIN_UNAVAILABLE).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.connect:read","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_get_wordpress_plugin","title":"Download the WordPress origin plugin","description":"For a managed CDN in front of WordPress (WP Engine, Hostinger): the plugin that serves the origin proof, so Ora can verify the origin. Base64 in JSON: decode it to the zip and upload it in WordPress. Offered once the installation's `wordpressPlugin` is true.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."}},"required":["site"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"fileName":{"type":"string","description":"ora-agent-front-origin.zip"},"contentType":{"type":"string","const":"application/zip","description":"The file's media type: always application/zip"},"contentBase64":{"type":"string","description":"The plugin's zip, base64-encoded: decode it, then upload it in WordPress (Plugins, Add New)"}},"required":["fileName","contentType","contentBase64"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"request":{"params":["site"]}}}},"/studio/v1/front/sites/{site}/denials":{"get":{"operationId":"front.denials.list","tags":["Front access"],"summary":"List the requests the site denied agents","description":"Requests by agents and tools that the site answered 401 or 403 in the window, newest first. Observations of the answer, never proof of which rule refused a request: the website itself may have. Raw history expires, so this is not a durable audit log; `total` counts every denial still retained. Page with `cursor` and `limit`; a cursor only works with the window it came from.","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"},{"name":"from","in":"query","required":true,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"First day, inclusive (YYYY-MM-DD, UTC)"},"example":"2026-11-04"},{"name":"to","in":"query","required":true,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Last day, inclusive (YYYY-MM-DD, UTC)"},"example":"2026-11-10"},{"name":"cursor","in":"query","required":false,"schema":{"description":"Where this page starts: the previous page's `nextCursor`. Leave it out for the first page.","type":"string","minLength":1,"maxLength":500}},{"name":"limit","in":"query","required":false,"schema":{"default":50,"description":"The most items one page holds: 1 to 200, 50 when left out.","type":"integer","minimum":1,"maximum":200},"example":25}],"responses":{"200":{"description":"List the requests the site denied agents","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"occurredAt":{"type":"string","description":"UTC, ISO 8601"},"visitorId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The agent or tool, as GET …/visitors lists it; null when unnamed"},"operator":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Who runs it; null when Ora cannot tell"},"kind":{"type":"string","enum":["ai_agent","ai_crawler","search_crawler","tool","human","unknown"],"description":"ai_agent: an AI acting for a person now. ai_crawler: an AI company's crawler. search_crawler: a search engine. tool: a script, headless browser or HTTP client. human: a person's browser. unknown: automation Ora could not classify"},"method":{"type":"string","description":"The request's HTTP method (GET, POST)"},"path":{"type":"string","description":"The path requested, without its query string"},"status":{"anyOf":[{"type":"number","const":401},{"type":"number","const":403}],"description":"What the site answered"}},"required":["occurredAt","visitorId","operator","kind","method","path","status"],"additionalProperties":false},"description":"This page's items."},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Send it as `cursor` to read the next page. Null on the last page."},"total":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Every denial in the window still retained, on this page or not"}},"required":["items","nextCursor","total"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.access:read","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_list_denials","title":"List the requests the site denied agents","description":"Requests by agents and tools that the site answered 401 or 403 in the window, newest first. Observations of the answer, never proof of which rule refused a request: the website itself may have. Raw history expires, so this is not a durable audit log; `total` counts every denial still retained. Page with `cursor` and `limit`; a cursor only works with the window it came from.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"from":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"First day, inclusive (YYYY-MM-DD, UTC)"},"to":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Last day, inclusive (YYYY-MM-DD, UTC)"},"cursor":{"description":"Where this page starts: the previous page's `nextCursor`. Leave it out for the first page.","type":"string","minLength":1,"maxLength":500},"limit":{"default":50,"description":"The most items one page holds: 1 to 200, 50 when left out.","type":"integer","minimum":1,"maximum":200}},"required":["site","from","to"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"occurredAt":{"type":"string","description":"UTC, ISO 8601"},"visitorId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The agent or tool, as GET …/visitors lists it; null when unnamed"},"operator":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Who runs it; null when Ora cannot tell"},"kind":{"type":"string","enum":["ai_agent","ai_crawler","search_crawler","tool","human","unknown"],"description":"ai_agent: an AI acting for a person now. ai_crawler: an AI company's crawler. search_crawler: a search engine. tool: a script, headless browser or HTTP client. human: a person's browser. unknown: automation Ora could not classify"},"method":{"type":"string","description":"The request's HTTP method (GET, POST)"},"path":{"type":"string","description":"The path requested, without its query string"},"status":{"anyOf":[{"type":"number","const":401},{"type":"number","const":403}],"description":"What the site answered"}},"required":["occurredAt","visitorId","operator","kind","method","path","status"],"additionalProperties":false},"description":"This page's items."},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Send it as `cursor` to read the next page. Null on the last page."},"total":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Every denial in the window still retained, on this page or not"}},"required":["items","nextCursor","total"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"request":{"params":["site"],"query":["from","to","cursor","limit"]}}}},"/studio/v1/front/sites/{site}/events":{"get":{"operationId":"front.sites.stream","tags":["Front sites"],"summary":"Follow a Front site's status","description":"Server-sent events. On connect: a `site.snapshot`, then live events newer than it, filtered to the caller's scopes. Intermediate events may be lost; a reconnect gets a fresh snapshot (event ids are per connection and Last-Event-ID is ignored). The stream closes when the bearer token expires: reconnect with a fresh one. Heartbeats every 15 seconds.","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"}],"responses":{"200":{"description":"Follow a Front site's status","content":{"text/event-stream":{"schema":{"type":"string","description":"Server-sent events; each event's name and data are listed in x-ora-events."}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.sites:read","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-events":{"action.live_changed":{"description":"An action was turned on or off, or a live tool moved to a new version: what ora last built for it, or the app it was given or had taken away.","scope":"front.actions:read","schema":{"type":"object","properties":{"siteId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The id of the site the event is about"},"version":{"type":"string","minLength":1,"description":"The site's version when the event was sent: compare it with a snapshot's to order them"},"actionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The action's id: its `id` in the site's action list"},"live":{"type":"boolean","description":"Whether agents are offered the action now"}},"required":["siteId","version","actionId","live"],"additionalProperties":false}},"build.failed":{"description":"A build failed.","scope":"front.sites:read","schema":{"type":"object","properties":{"siteId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The id of the site the event is about"},"version":{"type":"string","minLength":1,"description":"The site's version when the event was sent: compare it with a snapshot's to order them"},"build":{"type":"object","properties":{"id":{"type":"string","description":"The build's id"},"kind":{"type":"string","enum":["first","rest_of_site","rebuild"],"description":"first: the site's first build, which reads at most firstBuildPages pages (front.usage.get) so the Front goes live fast. rest_of_site: reads the rest of the site after a first build that filled that allowance, when the plan allows more pages. rebuild: builds the site again (a retry, a rebuild from Studio, or catching up with a bigger plan)."},"state":{"type":"string","enum":["queued","running","live","held","failed","canceled"],"description":"held: finished, waiting to be published"},"step":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The step in progress (find, read, prepare); null once finished"},"pagesFound":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Pages the build found so far, counting no more than it may read. It never goes down."},"pagesRead":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Pages the build has read so far"},"failure":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"The reason as a stable code, such as robots_blocked, bot_protection, unreachable, js_only or no_content"},"detail":{"type":"string","description":"The reason in a sentence to show as is"}},"required":["code","detail"],"additionalProperties":false},{"type":"null"}],"description":"Why the build failed, or why it could not read the whole site"},"startedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the build started; null when unknown"},"finishedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the build ended; null while it is queued or running"}},"required":["id","kind","state","step","pagesFound","pagesRead","failure","startedAt","finishedAt"],"additionalProperties":false,"description":"The build, as it stands now"}},"required":["siteId","version","build"],"additionalProperties":false}},"build.held":{"description":"A build finished and waits to be published.","scope":"front.sites:read","schema":{"type":"object","properties":{"siteId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The id of the site the event is about"},"version":{"type":"string","minLength":1,"description":"The site's version when the event was sent: compare it with a snapshot's to order them"},"build":{"type":"object","properties":{"id":{"type":"string","description":"The build's id"},"kind":{"type":"string","enum":["first","rest_of_site","rebuild"],"description":"first: the site's first build, which reads at most firstBuildPages pages (front.usage.get) so the Front goes live fast. rest_of_site: reads the rest of the site after a first build that filled that allowance, when the plan allows more pages. rebuild: builds the site again (a retry, a rebuild from Studio, or catching up with a bigger plan)."},"state":{"type":"string","enum":["queued","running","live","held","failed","canceled"],"description":"held: finished, waiting to be published"},"step":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The step in progress (find, read, prepare); null once finished"},"pagesFound":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Pages the build found so far, counting no more than it may read. It never goes down."},"pagesRead":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Pages the build has read so far"},"failure":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"The reason as a stable code, such as robots_blocked, bot_protection, unreachable, js_only or no_content"},"detail":{"type":"string","description":"The reason in a sentence to show as is"}},"required":["code","detail"],"additionalProperties":false},{"type":"null"}],"description":"Why the build failed, or why it could not read the whole site"},"startedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the build started; null when unknown"},"finishedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the build ended; null while it is queued or running"}},"required":["id","kind","state","step","pagesFound","pagesRead","failure","startedAt","finishedAt"],"additionalProperties":false,"description":"The build, as it stands now"}},"required":["siteId","version","build"],"additionalProperties":false}},"build.live":{"description":"A build was published: the site serves it.","scope":"front.sites:read","schema":{"type":"object","properties":{"siteId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The id of the site the event is about"},"version":{"type":"string","minLength":1,"description":"The site's version when the event was sent: compare it with a snapshot's to order them"},"build":{"type":"object","properties":{"id":{"type":"string","description":"The build's id"},"kind":{"type":"string","enum":["first","rest_of_site","rebuild"],"description":"first: the site's first build, which reads at most firstBuildPages pages (front.usage.get) so the Front goes live fast. rest_of_site: reads the rest of the site after a first build that filled that allowance, when the plan allows more pages. rebuild: builds the site again (a retry, a rebuild from Studio, or catching up with a bigger plan)."},"state":{"type":"string","enum":["queued","running","live","held","failed","canceled"],"description":"held: finished, waiting to be published"},"step":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The step in progress (find, read, prepare); null once finished"},"pagesFound":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Pages the build found so far, counting no more than it may read. It never goes down."},"pagesRead":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Pages the build has read so far"},"failure":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"The reason as a stable code, such as robots_blocked, bot_protection, unreachable, js_only or no_content"},"detail":{"type":"string","description":"The reason in a sentence to show as is"}},"required":["code","detail"],"additionalProperties":false},{"type":"null"}],"description":"Why the build failed, or why it could not read the whole site"},"startedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the build started; null when unknown"},"finishedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the build ended; null while it is queued or running"}},"required":["id","kind","state","step","pagesFound","pagesRead","failure","startedAt","finishedAt"],"additionalProperties":false,"description":"The build, as it stands now"}},"required":["siteId","version","build"],"additionalProperties":false}},"build.progressed":{"description":"A running build found or read more pages, or moved to its next step.","scope":"front.sites:read","schema":{"type":"object","properties":{"siteId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The id of the site the event is about"},"version":{"type":"string","minLength":1,"description":"The site's version when the event was sent: compare it with a snapshot's to order them"},"build":{"type":"object","properties":{"id":{"type":"string","description":"The build's id"},"kind":{"type":"string","enum":["first","rest_of_site","rebuild"],"description":"first: the site's first build, which reads at most firstBuildPages pages (front.usage.get) so the Front goes live fast. rest_of_site: reads the rest of the site after a first build that filled that allowance, when the plan allows more pages. rebuild: builds the site again (a retry, a rebuild from Studio, or catching up with a bigger plan)."},"state":{"type":"string","enum":["queued","running","live","held","failed","canceled"],"description":"held: finished, waiting to be published"},"step":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The step in progress (find, read, prepare); null once finished"},"pagesFound":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Pages the build found so far, counting no more than it may read. It never goes down."},"pagesRead":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Pages the build has read so far"},"failure":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"The reason as a stable code, such as robots_blocked, bot_protection, unreachable, js_only or no_content"},"detail":{"type":"string","description":"The reason in a sentence to show as is"}},"required":["code","detail"],"additionalProperties":false},{"type":"null"}],"description":"Why the build failed, or why it could not read the whole site"},"startedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the build started; null when unknown"},"finishedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the build ended; null while it is queued or running"}},"required":["id","kind","state","step","pagesFound","pagesRead","failure","startedAt","finishedAt"],"additionalProperties":false,"description":"The build, as it stands now"}},"required":["siteId","version","build"],"additionalProperties":false}},"build.started":{"description":"A build started.","scope":"front.sites:read","schema":{"type":"object","properties":{"siteId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The id of the site the event is about"},"version":{"type":"string","minLength":1,"description":"The site's version when the event was sent: compare it with a snapshot's to order them"},"build":{"type":"object","properties":{"id":{"type":"string","description":"The build's id"},"kind":{"type":"string","enum":["first","rest_of_site","rebuild"],"description":"first: the site's first build, which reads at most firstBuildPages pages (front.usage.get) so the Front goes live fast. rest_of_site: reads the rest of the site after a first build that filled that allowance, when the plan allows more pages. rebuild: builds the site again (a retry, a rebuild from Studio, or catching up with a bigger plan)."},"state":{"type":"string","enum":["queued","running","live","held","failed","canceled"],"description":"held: finished, waiting to be published"},"step":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The step in progress (find, read, prepare); null once finished"},"pagesFound":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Pages the build found so far, counting no more than it may read. It never goes down."},"pagesRead":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Pages the build has read so far"},"failure":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"The reason as a stable code, such as robots_blocked, bot_protection, unreachable, js_only or no_content"},"detail":{"type":"string","description":"The reason in a sentence to show as is"}},"required":["code","detail"],"additionalProperties":false},{"type":"null"}],"description":"Why the build failed, or why it could not read the whole site"},"startedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the build started; null when unknown"},"finishedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the build ended; null while it is queued or running"}},"required":["id","kind","state","step","pagesFound","pagesRead","failure","startedAt","finishedAt"],"additionalProperties":false,"description":"The build, as it stands now"}},"required":["siteId","version","build"],"additionalProperties":false}},"connection.checked":{"description":"The website connection was checked: its status, and each check's result.","scope":"front.connect:read","schema":{"type":"object","properties":{"siteId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The id of the site the event is about"},"version":{"type":"string","minLength":1,"description":"The site's version when the event was sent: compare it with a snapshot's to order them"},"status":{"type":"string","description":"The connection's status after the check (not_connected, pending, connected, failed)"},"checks":{"type":"object","properties":{"live":{"type":"string","description":"pending, verified or failed"},"traffic":{"type":"string","description":"pending, verified or failed"}},"required":["live","traffic"],"additionalProperties":false,"description":"The live and traffic checks' results"},"checkedAt":{"type":"string","description":"UTC, ISO 8601"}},"required":["siteId","version","status","checks","checkedAt"],"additionalProperties":false}},"connection.connected":{"description":"The website connection is verified: agents' traffic reaches the Front. It may repeat: a check or a write that connects the site, a managed installation turning active, and the website's own transmitter checking in (its first check-in, or its first after 24 quiet hours) each send it. No event announces a connection lapsing after 24 hours without contact: read the site (GET S) for that.","scope":"front.connect:read","schema":{"type":"object","properties":{"siteId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The id of the site the event is about"},"version":{"type":"string","minLength":1,"description":"The site's version when the event was sent: compare it with a snapshot's to order them"},"method":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The connection's saved method (managed, cloudflare, vercel, nextjs, express or other); null when none is saved"}},"required":["siteId","version","method"],"additionalProperties":false}},"connection.installation_changed":{"description":"The managed CDN installation moved to another state.","scope":"front.connect:read","schema":{"type":"object","properties":{"siteId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The id of the site the event is about"},"version":{"type":"string","minLength":1,"description":"The site's version when the event was sent: compare it with a snapshot's to order them"},"state":{"type":"string","description":"The installation's new state, as `installation.state` on front.connection.get reads it"}},"required":["siteId","version","state"],"additionalProperties":false}},"connection.origin_change_completed":{"description":"An origin change finished.","scope":"front.connect:read","schema":{"type":"object","properties":{"siteId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The id of the site the event is about"},"version":{"type":"string","minLength":1,"description":"The site's version when the event was sent: compare it with a snapshot's to order them"},"changeId":{"type":"string","description":"The origin change's id, as changing the origin answered it"},"state":{"type":"string","description":"How it ended: complete or failed"}},"required":["siteId","version","changeId","state"],"additionalProperties":false}},"reader_access.changed":{"description":"A check found Ora's reader blocked, or let through.","scope":"front.sites:read","schema":{"type":"object","properties":{"siteId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The id of the site the event is about"},"version":{"type":"string","minLength":1,"description":"The site's version when the event was sent: compare it with a snapshot's to order them"},"outcome":{"type":"string","description":"The check's outcome: in when Ora's reader got through; otherwise challenged, refused or unreachable"},"checkedAt":{"type":"string","description":"UTC, ISO 8601"}},"required":["siteId","version","outcome","checkedAt"],"additionalProperties":false}},"request.received":{"description":"An agent used a request action. Carries ids only: list the site's requests for what it says.","scope":"front.requests:read","schema":{"type":"object","properties":{"siteId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The id of the site the event is about"},"version":{"type":"string","minLength":1,"description":"The site's version when the event was sent: compare it with a snapshot's to order them"},"requestId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The request's id: its `id` in the site's request list"},"actionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The request action the agent used: its `id` in the site's action list"}},"required":["siteId","version","requestId","actionId"],"additionalProperties":false}},"site.snapshot":{"description":"Sent once, first, on every connection: the site as the caller may see it.","scope":"front.sites:read","schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The site's id. It never changes: use it as `{site}` in the other Front operations."},"hostname":{"type":"string","description":"Canonical: punycode, lower case, no leading www., no trailing dot"},"status":{"type":"string","enum":["building","live","held","failed"],"description":"The site's lifecycle, separate from its builds: live once published (a later build never takes it down); before that, building, held (the build finished and waits to be published) or failed."},"build":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","description":"The build's id"},"kind":{"type":"string","enum":["first","rest_of_site","rebuild"],"description":"first: the site's first build, which reads at most firstBuildPages pages (front.usage.get) so the Front goes live fast. rest_of_site: reads the rest of the site after a first build that filled that allowance, when the plan allows more pages. rebuild: builds the site again (a retry, a rebuild from Studio, or catching up with a bigger plan)."},"state":{"type":"string","enum":["queued","running","live","held","failed","canceled"],"description":"held: finished, waiting to be published"},"step":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The step in progress (find, read, prepare); null once finished"},"pagesFound":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Pages the build found so far, counting no more than it may read. It never goes down."},"pagesRead":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Pages the build has read so far"},"failure":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"The reason as a stable code, such as robots_blocked, bot_protection, unreachable, js_only or no_content"},"detail":{"type":"string","description":"The reason in a sentence to show as is"}},"required":["code","detail"],"additionalProperties":false},{"type":"null"}],"description":"Why the build failed, or why it could not read the whole site"},"startedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the build started; null when unknown"},"finishedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the build ended; null while it is queued or running"}},"required":["id","kind","state","step","pagesFound","pagesRead","failure","startedAt","finishedAt"],"additionalProperties":false},{"type":"null"}],"description":"The site's latest build, running or finished; null when none is on record"},"address":{"anyOf":[{"type":"object","properties":{"name":{"type":"string","description":"The address's name (`acme` in https://acme.<serve-domain>): the site's claimed name, or its id while it has none"},"url":{"type":"string","description":"The agent address (`https://acme.<serve-domain>`): where agents reach the site's Front"},"mcpUrl":{"type":"string","description":"The agent address's MCP endpoint (`url` + `/mcp`), for when MCP is on there (see protocols)"},"llmsTxtUrl":{"type":"string","description":"The site's llms.txt at the agent address (`url` + `/llms.txt`): its index for agents"},"open":{"description":"Whether any protocol (NLWeb, MCP) answers visitors at the address. Derived from `protocols`, so present with front.connect:read only; switch the protocols with front.protocols.update.","type":"boolean"}},"required":["name","url","mcpUrl","llmsTxtUrl"],"additionalProperties":false},{"type":"null"}],"description":"The site's agent address: where agents reach its Front. Null until the site is first published."},"connection":{"description":"Only with front.connect:read","type":"object","properties":{"method":{"anyOf":[{"type":"string","enum":["managed","cloudflare","vercel","nextjs","express","other"]},{"type":"null"}],"description":"How the website's traffic reaches its Front. managed: Ora's CDN in front of the website. cloudflare, vercel, nextjs, express: a transmitter in the website's own stack. other: another stack, with no transmitter yet. Null until a method is saved."},"status":{"type":"string","enum":["not_connected","pending","connected","failed"],"description":"not_connected: no method is saved and Ora never heard from the website. pending: a method is saved and Ora waits for the website's first contact. connected: Ora heard from the website within the last 24 hours. failed: the last check failed, the managed CDN reports an error, or Ora heard nothing for over 24 hours."}},"required":["method","status"],"additionalProperties":false},"protocols":{"description":"Only with front.connect:read: which protocols are on","type":"object","properties":{"address":{"type":"object","properties":{"nlweb":{"type":"boolean","description":"Whether NLWeb is on: agents ask questions and get answers from the site's pages (/ask)"},"mcp":{"type":"boolean","description":"Whether MCP is on: assistants connect to the business as an MCP server"}},"required":["nlweb","mcp"],"additionalProperties":false,"description":"At the site's agent address"},"website":{"type":"object","properties":{"nlweb":{"type":"boolean","description":"Whether NLWeb is on: agents ask questions and get answers from the site's pages (/ask)"},"mcp":{"type":"boolean","description":"Whether MCP is on: assistants connect to the business as an MCP server"}},"required":["nlweb","mcp"],"additionalProperties":false,"description":"On the website itself, through its connection"}},"required":["address","website"],"additionalProperties":false},"serving":{"description":"Only with front.pages:read","type":"object","properties":{"mode":{"type":"string","enum":["off","monitor","autopilot"],"description":"How ora serves agents on the website itself (front.serving.get has the detail). off: ora serves nothing there; the connection only reports agent traffic. monitor: ora prepares everything but serves nothing. autopilot: ora serves agents."}},"required":["mode"],"additionalProperties":false},"nextSteps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["retry_setup","allow_reader","connect_website","verify_traffic","serve_agents","add_action"],"description":"retry_setup: the setup failed; retry it. allow_reader: robots.txt or a bot wall turned Ora's reader away; let it in, then check again. connect_website: connect the website so agents reach its Front. verify_traffic: check that agents' traffic reaches the Front. serve_agents: the website is connected; switch Agent Serving on (mode autopilot), the app's last setup step, which for a new site also turns on Ask, MCP, intents and Markdown for agents. add_action: add an action agents can take for your customers."},"done":{"type":"boolean","description":"Whether the step is done. connect_website, verify_traffic, serve_agents and add_action stay listed once done."},"title":{"type":"string","description":"The step, in a sentence to show as is"},"operation":{"type":"string","description":"The operation id that performs the step"}},"required":["id","done","title","operation"],"additionalProperties":false},"description":"What the site needs next, in the order a person meets them. Only steps of areas the caller can read are listed."},"version":{"type":"string","minLength":1,"description":"Monotonically increasing (compare as numbers); orders the site's snapshots and stream events"},"createdAt":{"type":"string","description":"UTC, ISO 8601"},"streamUrl":{"type":"string","description":"The site's status stream (GET, text/event-stream)"}},"required":["id","hostname","status","build","address","nextSteps","version","createdAt","streamUrl"],"additionalProperties":false}},"site.updated":{"description":"The site's status, address or next steps changed: the site as the caller may see it.","scope":"front.sites:read","schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The site's id. It never changes: use it as `{site}` in the other Front operations."},"hostname":{"type":"string","description":"Canonical: punycode, lower case, no leading www., no trailing dot"},"status":{"type":"string","enum":["building","live","held","failed"],"description":"The site's lifecycle, separate from its builds: live once published (a later build never takes it down); before that, building, held (the build finished and waits to be published) or failed."},"build":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","description":"The build's id"},"kind":{"type":"string","enum":["first","rest_of_site","rebuild"],"description":"first: the site's first build, which reads at most firstBuildPages pages (front.usage.get) so the Front goes live fast. rest_of_site: reads the rest of the site after a first build that filled that allowance, when the plan allows more pages. rebuild: builds the site again (a retry, a rebuild from Studio, or catching up with a bigger plan)."},"state":{"type":"string","enum":["queued","running","live","held","failed","canceled"],"description":"held: finished, waiting to be published"},"step":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The step in progress (find, read, prepare); null once finished"},"pagesFound":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Pages the build found so far, counting no more than it may read. It never goes down."},"pagesRead":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Pages the build has read so far"},"failure":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"The reason as a stable code, such as robots_blocked, bot_protection, unreachable, js_only or no_content"},"detail":{"type":"string","description":"The reason in a sentence to show as is"}},"required":["code","detail"],"additionalProperties":false},{"type":"null"}],"description":"Why the build failed, or why it could not read the whole site"},"startedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the build started; null when unknown"},"finishedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the build ended; null while it is queued or running"}},"required":["id","kind","state","step","pagesFound","pagesRead","failure","startedAt","finishedAt"],"additionalProperties":false},{"type":"null"}],"description":"The site's latest build, running or finished; null when none is on record"},"address":{"anyOf":[{"type":"object","properties":{"name":{"type":"string","description":"The address's name (`acme` in https://acme.<serve-domain>): the site's claimed name, or its id while it has none"},"url":{"type":"string","description":"The agent address (`https://acme.<serve-domain>`): where agents reach the site's Front"},"mcpUrl":{"type":"string","description":"The agent address's MCP endpoint (`url` + `/mcp`), for when MCP is on there (see protocols)"},"llmsTxtUrl":{"type":"string","description":"The site's llms.txt at the agent address (`url` + `/llms.txt`): its index for agents"},"open":{"description":"Whether any protocol (NLWeb, MCP) answers visitors at the address. Derived from `protocols`, so present with front.connect:read only; switch the protocols with front.protocols.update.","type":"boolean"}},"required":["name","url","mcpUrl","llmsTxtUrl"],"additionalProperties":false},{"type":"null"}],"description":"The site's agent address: where agents reach its Front. Null until the site is first published."},"connection":{"description":"Only with front.connect:read","type":"object","properties":{"method":{"anyOf":[{"type":"string","enum":["managed","cloudflare","vercel","nextjs","express","other"]},{"type":"null"}],"description":"How the website's traffic reaches its Front. managed: Ora's CDN in front of the website. cloudflare, vercel, nextjs, express: a transmitter in the website's own stack. other: another stack, with no transmitter yet. Null until a method is saved."},"status":{"type":"string","enum":["not_connected","pending","connected","failed"],"description":"not_connected: no method is saved and Ora never heard from the website. pending: a method is saved and Ora waits for the website's first contact. connected: Ora heard from the website within the last 24 hours. failed: the last check failed, the managed CDN reports an error, or Ora heard nothing for over 24 hours."}},"required":["method","status"],"additionalProperties":false},"protocols":{"description":"Only with front.connect:read: which protocols are on","type":"object","properties":{"address":{"type":"object","properties":{"nlweb":{"type":"boolean","description":"Whether NLWeb is on: agents ask questions and get answers from the site's pages (/ask)"},"mcp":{"type":"boolean","description":"Whether MCP is on: assistants connect to the business as an MCP server"}},"required":["nlweb","mcp"],"additionalProperties":false,"description":"At the site's agent address"},"website":{"type":"object","properties":{"nlweb":{"type":"boolean","description":"Whether NLWeb is on: agents ask questions and get answers from the site's pages (/ask)"},"mcp":{"type":"boolean","description":"Whether MCP is on: assistants connect to the business as an MCP server"}},"required":["nlweb","mcp"],"additionalProperties":false,"description":"On the website itself, through its connection"}},"required":["address","website"],"additionalProperties":false},"serving":{"description":"Only with front.pages:read","type":"object","properties":{"mode":{"type":"string","enum":["off","monitor","autopilot"],"description":"How ora serves agents on the website itself (front.serving.get has the detail). off: ora serves nothing there; the connection only reports agent traffic. monitor: ora prepares everything but serves nothing. autopilot: ora serves agents."}},"required":["mode"],"additionalProperties":false},"nextSteps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["retry_setup","allow_reader","connect_website","verify_traffic","serve_agents","add_action"],"description":"retry_setup: the setup failed; retry it. allow_reader: robots.txt or a bot wall turned Ora's reader away; let it in, then check again. connect_website: connect the website so agents reach its Front. verify_traffic: check that agents' traffic reaches the Front. serve_agents: the website is connected; switch Agent Serving on (mode autopilot), the app's last setup step, which for a new site also turns on Ask, MCP, intents and Markdown for agents. add_action: add an action agents can take for your customers."},"done":{"type":"boolean","description":"Whether the step is done. connect_website, verify_traffic, serve_agents and add_action stay listed once done."},"title":{"type":"string","description":"The step, in a sentence to show as is"},"operation":{"type":"string","description":"The operation id that performs the step"}},"required":["id","done","title","operation"],"additionalProperties":false},"description":"What the site needs next, in the order a person meets them. Only steps of areas the caller can read are listed."},"version":{"type":"string","minLength":1,"description":"Monotonically increasing (compare as numbers); orders the site's snapshots and stream events"},"createdAt":{"type":"string","description":"UTC, ISO 8601"},"streamUrl":{"type":"string","description":"The site's status stream (GET, text/event-stream)"}},"required":["id","hostname","status","build","address","nextSteps","version","createdAt","streamUrl"],"additionalProperties":false}},"tool_setup.completed":{"description":"A tool setup finished.","scope":"front.actions:read","schema":{"type":"object","properties":{"siteId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The id of the site the event is about"},"version":{"type":"string","minLength":1,"description":"The site's version when the event was sent: compare it with a snapshot's to order them"},"setupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The tool setup's id, as setting up the site's tools answered it"},"status":{"type":"string","description":"The setup's status: queued, running, succeeded, failed or canceled"}},"required":["siteId","version","setupId","status"],"additionalProperties":false}},"tool_setup.progressed":{"description":"A tool setup moved on.","scope":"front.actions:read","schema":{"type":"object","properties":{"siteId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The id of the site the event is about"},"version":{"type":"string","minLength":1,"description":"The site's version when the event was sent: compare it with a snapshot's to order them"},"setupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The tool setup's id, as setting up the site's tools answered it"},"status":{"type":"string","description":"The setup's status: queued, running, succeeded, failed or canceled"}},"required":["siteId","version","setupId","status"],"additionalProperties":false}}},"x-ora-mcp-tool":false}},"/studio/v1/front/sites/{site}/feedback":{"get":{"operationId":"front.feedback.list","tags":["Front traffic"],"summary":"List what agents reported after using the site","description":"The feedback agents sent after a task on the site, newest first: whether it worked (`success`), half-worked (`partial`) or failed because the site did not have what it needed (`failure`), with the task and what happened in their words. Page with `cursor` and `limit`.","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"},{"name":"cursor","in":"query","required":false,"schema":{"description":"Where this page starts: the previous page's `nextCursor`. Leave it out for the first page.","type":"string","minLength":1,"maxLength":500}},{"name":"limit","in":"query","required":false,"schema":{"default":50,"description":"The most items one page holds: 1 to 200, 50 when left out.","type":"integer","minimum":1,"maximum":200},"example":20}],"responses":{"200":{"description":"List what agents reported after using the site","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The report's id: it never changes"},"outcome":{"type":"string","enum":["success","partial","failure"],"description":"success: the task worked. partial: it half-worked. failure: the site did not have what it needed"},"task":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What it was trying to do"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What happened"},"page":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Where it was, as it said"},"agent":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The agent, when it said (ChatGPT, Claude, a user agent)"},"receivedAt":{"type":"string","description":"UTC, ISO 8601"}},"required":["id","outcome","task","detail","page","agent","receivedAt"],"additionalProperties":false},"description":"This page's items."},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Send it as `cursor` to read the next page. Null on the last page."}},"required":["items","nextCursor"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.traffic:read","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_list_feedback","title":"List what agents reported after using the site","description":"The feedback agents sent after a task on the site, newest first: whether it worked (`success`), half-worked (`partial`) or failed because the site did not have what it needed (`failure`), with the task and what happened in their words. Page with `cursor` and `limit`.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"cursor":{"description":"Where this page starts: the previous page's `nextCursor`. Leave it out for the first page.","type":"string","minLength":1,"maxLength":500},"limit":{"default":50,"description":"The most items one page holds: 1 to 200, 50 when left out.","type":"integer","minimum":1,"maximum":200}},"required":["site"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The report's id: it never changes"},"outcome":{"type":"string","enum":["success","partial","failure"],"description":"success: the task worked. partial: it half-worked. failure: the site did not have what it needed"},"task":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What it was trying to do"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What happened"},"page":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Where it was, as it said"},"agent":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The agent, when it said (ChatGPT, Claude, a user agent)"},"receivedAt":{"type":"string","description":"UTC, ISO 8601"}},"required":["id","outcome","task","detail","page","agent","receivedAt"],"additionalProperties":false},"description":"This page's items."},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Send it as `cursor` to read the next page. Null on the last page."}},"required":["items","nextCursor"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"request":{"params":["site"],"query":["cursor","limit"]}}}},"/studio/v1/front/sites/{site}/mcp-server":{"get":{"operationId":"front.mcpServer.get","tags":["Front connection"],"summary":"Read where the site's MCP tools come from","description":"Where the tools agents get from the site's MCP server come from (`source`): a server ora hosts, with ora's own tools, or the site's own public MCP server, which ora stands in front of. While the site's own server is connected, ora asks it now how it answers and which tools it lists (`server`), so this read takes longer when that server is slow. Also says which of ora's own tools agents are offered. A new site's source is decided at its first publication: its own server when one answers on its website, else a server ora hosts. Agents reach the tools at the agent address's MCP endpoint (front.address.get `mcpUrl`) while MCP is on there (front.protocols.get).","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"}],"responses":{"200":{"description":"Read where the site's MCP tools come from","content":{"application/json":{"schema":{"type":"object","properties":{"source":{"type":"string","enum":["undecided","ora","own_server"],"description":"Where agents' MCP tools come from. ora: a server ora hosts, with ora's own tools: Ask, Send feedback, the site's request actions and, unless switched off (`oraTools`), the tools ora built for the site. own_server: the site's own public MCP server (`server`), which ora stands in front of at the agent address: its tools take the place of the tools ora built, while Ask, Send feedback and the request actions stay. undecided: not chosen yet. A new site's source is decided at its first publication, unless chosen before: own_server when a public MCP server answers on its website (at a path its scan found, /mcp or /api/mcp), else ora."},"server":{"anyOf":[{"type":"object","properties":{"path":{"type":"string","description":"The server's path on the website, e.g. /api/mcp"},"url":{"type":"string","description":"Where the server answers: the website's host (the connection's hostname, else the site's) and the path"},"status":{"type":"string","enum":["reachable","unreachable","not_mcp","needs_sign_in"],"description":"How the server answered when ora asked it, just now. reachable: as a public MCP server. unreachable: ora got no answer. not_mcp: an answer, but not as an MCP server. needs_sign_in: it asks agents to sign in, and ora stands in front of public servers only."},"tools":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The name agents call the tool by"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The tool's title for people, when the server gives one"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What the tool does, as agents read it, when the server says"}},"required":["name","title","description"],"additionalProperties":false},"description":"The server's tools, as it lists them; empty unless it is reachable"}},"required":["path","url","status","tools"],"additionalProperties":false},{"type":"null"}],"description":"The site's own MCP server, while it is connected (source own_server); null otherwise"},"ask":{"type":"boolean","description":"Whether agents are offered ora's Ask tool (`ask`): questions answered from the site's published pages. A tool of the site's own server with the same name takes its place."},"feedback":{"type":"boolean","description":"Whether agents are offered ora's Send feedback tool (`send_feedback`): agents tell the site's team how a task went. A tool of the site's own server with the same name takes its place."},"oraTools":{"type":"boolean","description":"Whether agents are offered the tools ora built for the site (a tool setup builds them). Only while ora hosts the server: while the site's own server is connected, its tools take their place, and this switch is kept for later."}},"required":["source","server","ask","feedback","oraTools"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.connect:read","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_get_mcp_server","title":"Read where the site's MCP tools come from","description":"Where the tools agents get from the site's MCP server come from (`source`): a server ora hosts, with ora's own tools, or the site's own public MCP server, which ora stands in front of. While the site's own server is connected, ora asks it now how it answers and which tools it lists (`server`), so this read takes longer when that server is slow. Also says which of ora's own tools agents are offered. A new site's source is decided at its first publication: its own server when one answers on its website, else a server ora hosts. Agents reach the tools at the agent address's MCP endpoint (front.address.get `mcpUrl`) while MCP is on there (front.protocols.get).","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."}},"required":["site"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"source":{"type":"string","enum":["undecided","ora","own_server"],"description":"Where agents' MCP tools come from. ora: a server ora hosts, with ora's own tools: Ask, Send feedback, the site's request actions and, unless switched off (`oraTools`), the tools ora built for the site. own_server: the site's own public MCP server (`server`), which ora stands in front of at the agent address: its tools take the place of the tools ora built, while Ask, Send feedback and the request actions stay. undecided: not chosen yet. A new site's source is decided at its first publication, unless chosen before: own_server when a public MCP server answers on its website (at a path its scan found, /mcp or /api/mcp), else ora."},"server":{"anyOf":[{"type":"object","properties":{"path":{"type":"string","description":"The server's path on the website, e.g. /api/mcp"},"url":{"type":"string","description":"Where the server answers: the website's host (the connection's hostname, else the site's) and the path"},"status":{"type":"string","enum":["reachable","unreachable","not_mcp","needs_sign_in"],"description":"How the server answered when ora asked it, just now. reachable: as a public MCP server. unreachable: ora got no answer. not_mcp: an answer, but not as an MCP server. needs_sign_in: it asks agents to sign in, and ora stands in front of public servers only."},"tools":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The name agents call the tool by"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The tool's title for people, when the server gives one"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What the tool does, as agents read it, when the server says"}},"required":["name","title","description"],"additionalProperties":false},"description":"The server's tools, as it lists them; empty unless it is reachable"}},"required":["path","url","status","tools"],"additionalProperties":false},{"type":"null"}],"description":"The site's own MCP server, while it is connected (source own_server); null otherwise"},"ask":{"type":"boolean","description":"Whether agents are offered ora's Ask tool (`ask`): questions answered from the site's published pages. A tool of the site's own server with the same name takes its place."},"feedback":{"type":"boolean","description":"Whether agents are offered ora's Send feedback tool (`send_feedback`): agents tell the site's team how a task went. A tool of the site's own server with the same name takes its place."},"oraTools":{"type":"boolean","description":"Whether agents are offered the tools ora built for the site (a tool setup builds them). Only while ora hosts the server: while the site's own server is connected, its tools take their place, and this switch is kept for later."}},"required":["source","server","ask","feedback","oraTools"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true},"request":{"params":["site"]}}},"patch":{"operationId":"front.mcpServer.update","tags":["Front connection"],"summary":"Change where the site's MCP tools come from","description":"Connects the site's own public MCP server at a path of its website, moves it or disconnects it (`server`), lets ora host the server instead (`source`), and switches ora's own tools; only what is sent changes (JSON Merge Patch), and the last write wins. ora saves a server's path only once a public MCP server answers there. Connecting a server at a new path, disconnecting it, and choosing ora where nothing was chosen each switch MCP off, at the agent address and on the website, so agents get the new tools only once MCP is switched on again (front.protocols.update); the switches never touch MCP. A new site's source is decided at its first publication unless chosen here before, and a choice is never overridden. Nothing is built here: as Studio does after a choice, start a tool setup (front.toolSetups.create, `discover: false` beside the site's own server). Agents reach the tools at the agent address's MCP endpoint (front.address.get `mcpUrl`) while MCP is on there (front.protocols.get). Returns the MCP server as it now stands.","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"server":{"description":"{ path }: connect the site's own public MCP server at that path of its website, or move it there; ora first checks that a public MCP server answers there, and saves nothing otherwise. null: disconnect it, and the source is undecided until chosen again. Left out, the server stays as it is.","anyOf":[{"type":"object","properties":{"path":{"type":"string","maxLength":256,"pattern":"^(?:\\/[A-Za-z0-9._~-]+)+$","description":"A path of the website, such as /api/mcp or /mcp: at most 256 characters, a slash before each segment and none at the end, each segment letters, digits, `.`, `_`, `~` or `-` (so no query and no percent-encoding), no `.` or `..` segment, nothing under /.well-known, and none of ora's own paths (/ask, /feedback, /mcp/server-card)."}},"required":["path"]},{"type":"null"}]},"source":{"description":"ora: let ora host the site's MCP server (Studio's Host one for me). While the site's own server is connected, send `server: null` with it.","type":"string","const":"ora"},"ask":{"description":"Offer ora's Ask tool to agents (true) or not (false); left out, it stays","type":"boolean"},"feedback":{"description":"Offer ora's Send feedback tool to agents (true) or not (false); left out, it stays","type":"boolean"},"oraTools":{"description":"Offer the tools ora built for the site (true) or not (false) while ora hosts the server; left out, it stays","type":"boolean"}}},"example":{"server":{"path":"/api/mcp"}}},"application/merge-patch+json":{"schema":{"type":"object","properties":{"server":{"description":"{ path }: connect the site's own public MCP server at that path of its website, or move it there; ora first checks that a public MCP server answers there, and saves nothing otherwise. null: disconnect it, and the source is undecided until chosen again. Left out, the server stays as it is.","anyOf":[{"type":"object","properties":{"path":{"type":"string","maxLength":256,"pattern":"^(?:\\/[A-Za-z0-9._~-]+)+$","description":"A path of the website, such as /api/mcp or /mcp: at most 256 characters, a slash before each segment and none at the end, each segment letters, digits, `.`, `_`, `~` or `-` (so no query and no percent-encoding), no `.` or `..` segment, nothing under /.well-known, and none of ora's own paths (/ask, /feedback, /mcp/server-card)."}},"required":["path"]},{"type":"null"}]},"source":{"description":"ora: let ora host the site's MCP server (Studio's Host one for me). While the site's own server is connected, send `server: null` with it.","type":"string","const":"ora"},"ask":{"description":"Offer ora's Ask tool to agents (true) or not (false); left out, it stays","type":"boolean"},"feedback":{"description":"Offer ora's Send feedback tool to agents (true) or not (false); left out, it stays","type":"boolean"},"oraTools":{"description":"Offer the tools ora built for the site (true) or not (false) while ora hosts the server; left out, it stays","type":"boolean"}}},"example":{"server":{"path":"/api/mcp"}}}}},"responses":{"200":{"description":"Change where the site's MCP tools come from","content":{"application/json":{"schema":{"type":"object","properties":{"source":{"type":"string","enum":["undecided","ora","own_server"],"description":"Where agents' MCP tools come from. ora: a server ora hosts, with ora's own tools: Ask, Send feedback, the site's request actions and, unless switched off (`oraTools`), the tools ora built for the site. own_server: the site's own public MCP server (`server`), which ora stands in front of at the agent address: its tools take the place of the tools ora built, while Ask, Send feedback and the request actions stay. undecided: not chosen yet. A new site's source is decided at its first publication, unless chosen before: own_server when a public MCP server answers on its website (at a path its scan found, /mcp or /api/mcp), else ora."},"server":{"anyOf":[{"type":"object","properties":{"path":{"type":"string","description":"The server's path on the website, e.g. /api/mcp"},"url":{"type":"string","description":"Where the server answers: the website's host (the connection's hostname, else the site's) and the path"},"status":{"type":"string","enum":["reachable","unreachable","not_mcp","needs_sign_in"],"description":"How the server answered when ora asked it, just now. reachable: as a public MCP server. unreachable: ora got no answer. not_mcp: an answer, but not as an MCP server. needs_sign_in: it asks agents to sign in, and ora stands in front of public servers only."},"tools":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The name agents call the tool by"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The tool's title for people, when the server gives one"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What the tool does, as agents read it, when the server says"}},"required":["name","title","description"],"additionalProperties":false},"description":"The server's tools, as it lists them; empty unless it is reachable"}},"required":["path","url","status","tools"],"additionalProperties":false},{"type":"null"}],"description":"The site's own MCP server, while it is connected (source own_server); null otherwise"},"ask":{"type":"boolean","description":"Whether agents are offered ora's Ask tool (`ask`): questions answered from the site's published pages. A tool of the site's own server with the same name takes its place."},"feedback":{"type":"boolean","description":"Whether agents are offered ora's Send feedback tool (`send_feedback`): agents tell the site's team how a task went. A tool of the site's own server with the same name takes its place."},"oraTools":{"type":"boolean","description":"Whether agents are offered the tools ora built for the site (a tool setup builds them). Only while ora hosts the server: while the site's own server is connected, its tools take their place, and this switch is kept for later."}},"required":["source","server","ask","feedback","oraTools"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE): nothing to change, a path that is not a path of the website, or `server` sent together with `source: \"ora\"`.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"The site's own MCP server is connected, so ora cannot host one: send `server: null` with `source: \"ora\"` (MCP_SERVER_CONNECTED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"No public MCP server answered at the path, so nothing was saved (MCP_SERVER_UNUSABLE): ora could not reach it, it did not answer as an MCP server, or it asks agents to sign in; `detail` says which.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.connect:write","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_set_mcp_server","title":"Change where the site's MCP tools come from","description":"Connects the site's own public MCP server at a path of its website, moves it or disconnects it (`server`), lets ora host the server instead (`source`), and switches ora's own tools; only what is sent changes (JSON Merge Patch), and the last write wins. ora saves a server's path only once a public MCP server answers there. Connecting a server at a new path, disconnecting it, and choosing ora where nothing was chosen each switch MCP off, at the agent address and on the website, so agents get the new tools only once MCP is switched on again (front.protocols.update); the switches never touch MCP. A new site's source is decided at its first publication unless chosen here before, and a choice is never overridden. Nothing is built here: as Studio does after a choice, start a tool setup (front.toolSetups.create, `discover: false` beside the site's own server). Agents reach the tools at the agent address's MCP endpoint (front.address.get `mcpUrl`) while MCP is on there (front.protocols.get). Returns the MCP server as it now stands.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"server":{"description":"{ path }: connect the site's own public MCP server at that path of its website, or move it there; ora first checks that a public MCP server answers there, and saves nothing otherwise. null: disconnect it, and the source is undecided until chosen again. Left out, the server stays as it is.","anyOf":[{"type":"object","properties":{"path":{"type":"string","maxLength":256,"pattern":"^(?:\\/[A-Za-z0-9._~-]+)+$","description":"A path of the website, such as /api/mcp or /mcp: at most 256 characters, a slash before each segment and none at the end, each segment letters, digits, `.`, `_`, `~` or `-` (so no query and no percent-encoding), no `.` or `..` segment, nothing under /.well-known, and none of ora's own paths (/ask, /feedback, /mcp/server-card)."}},"required":["path"]},{"type":"null"}]},"source":{"description":"ora: let ora host the site's MCP server (Studio's Host one for me). While the site's own server is connected, send `server: null` with it.","type":"string","const":"ora"},"ask":{"description":"Offer ora's Ask tool to agents (true) or not (false); left out, it stays","type":"boolean"},"feedback":{"description":"Offer ora's Send feedback tool to agents (true) or not (false); left out, it stays","type":"boolean"},"oraTools":{"description":"Offer the tools ora built for the site (true) or not (false) while ora hosts the server; left out, it stays","type":"boolean"}},"required":["site"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"source":{"type":"string","enum":["undecided","ora","own_server"],"description":"Where agents' MCP tools come from. ora: a server ora hosts, with ora's own tools: Ask, Send feedback, the site's request actions and, unless switched off (`oraTools`), the tools ora built for the site. own_server: the site's own public MCP server (`server`), which ora stands in front of at the agent address: its tools take the place of the tools ora built, while Ask, Send feedback and the request actions stay. undecided: not chosen yet. A new site's source is decided at its first publication, unless chosen before: own_server when a public MCP server answers on its website (at a path its scan found, /mcp or /api/mcp), else ora."},"server":{"anyOf":[{"type":"object","properties":{"path":{"type":"string","description":"The server's path on the website, e.g. /api/mcp"},"url":{"type":"string","description":"Where the server answers: the website's host (the connection's hostname, else the site's) and the path"},"status":{"type":"string","enum":["reachable","unreachable","not_mcp","needs_sign_in"],"description":"How the server answered when ora asked it, just now. reachable: as a public MCP server. unreachable: ora got no answer. not_mcp: an answer, but not as an MCP server. needs_sign_in: it asks agents to sign in, and ora stands in front of public servers only."},"tools":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The name agents call the tool by"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The tool's title for people, when the server gives one"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What the tool does, as agents read it, when the server says"}},"required":["name","title","description"],"additionalProperties":false},"description":"The server's tools, as it lists them; empty unless it is reachable"}},"required":["path","url","status","tools"],"additionalProperties":false},{"type":"null"}],"description":"The site's own MCP server, while it is connected (source own_server); null otherwise"},"ask":{"type":"boolean","description":"Whether agents are offered ora's Ask tool (`ask`): questions answered from the site's published pages. A tool of the site's own server with the same name takes its place."},"feedback":{"type":"boolean","description":"Whether agents are offered ora's Send feedback tool (`send_feedback`): agents tell the site's team how a task went. A tool of the site's own server with the same name takes its place."},"oraTools":{"type":"boolean","description":"Whether agents are offered the tools ora built for the site (a tool setup builds them). Only while ora hosts the server: while the site's own server is connected, its tools take their place, and this switch is kept for later."}},"required":["source","server","ask","feedback","oraTools"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":true},"request":{"params":["site"],"body":["server","source","ask","feedback","oraTools"]}}}},"/studio/v1/front/sites/{site}/pages":{"get":{"operationId":"front.pages.list","tags":["Front pages"],"summary":"List the website's pages as agents meet them","description":"Every page ora knows of on the website (from its sitemap, agent traffic, the paths set in Studio, edits and the Front's own pages), most agent requests first, then by path. Each row says what agents get there and which layer of its agent version they get. `path` finds one page, listed even when ora knows nothing of it yet; `q` keeps the pages whose path contains the text. Page with `cursor` and `limit`.","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"},{"name":"cursor","in":"query","required":false,"schema":{"description":"Where this page starts: the previous page's `nextCursor`. Leave it out for the first page.","type":"string","minLength":1,"maxLength":500}},{"name":"limit","in":"query","required":false,"schema":{"default":50,"description":"The most items one page holds: 1 to 200, 50 when left out.","type":"integer","minimum":1,"maximum":200},"example":20},{"name":"path","in":"query","required":false,"schema":{"description":"Find the page at this path; listed even when ora knows nothing of it","type":"string","minLength":1,"maxLength":2048,"pattern":"^\\/(?!\\/)(?!.*:\\/\\/)[^?#\\s]*$"}},{"name":"q","in":"query","required":false,"schema":{"description":"Only pages whose path contains this text (any case)","type":"string","minLength":1,"maxLength":200},"example":"pricing"}],"responses":{"200":{"description":"List the website's pages as agents meet them","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":8192,"pattern":"^[A-Za-z0-9_-]+$","description":"The page's id, from front.pages.list (`?path=` finds any page's). The same for the same path, always."},"path":{"type":"string","description":"The page's path on the website, canonical: repeated slashes collapsed, no trailing /"},"inFront":{"type":"boolean","description":"One of the Front's own pages: what its /ask answers from, served optimized at its agent address"},"sources":{"type":"array","items":{"type":"string","enum":["sitemap","traffic","rule","edit","front"],"description":"sitemap: the website lists it. traffic: agents asked for it. rule: a path set in Studio names it exactly (a path ora leaves alone, or its Live switch). edit: its agent version was edited. front: one of the Front's own pages."},"description":"How ora knows of the page; empty for a path asked for by `path`"},"agentRequests":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}],"description":"Agent requests for the page (its .md copy included) over the last 30 days; null when not counted"},"serving":{"type":"object","properties":{"action":{"type":"string","enum":["origin","serve","block","passthrough"],"description":"origin: the website's own page, untouched. serve: ora answers with `strategies`. block: agents are refused (403). passthrough: ora leaves the page alone (a path ora leaves alone, or its Live switch off in Studio), so agents get the website's own page."},"strategies":{"type":"array","items":{"type":"string"},"description":"What ora runs to answer, in order (e.g. to-markdown); empty unless the action is serve"},"byAgentVersion":{"type":"boolean","description":"True when agents get the page's agent version (the site's Markdown setting, or the page's own edit): at <page>.md and through llms.txt, and at the page's URL while negotiation is on"}},"required":["action","strategies","byAgentVersion"],"additionalProperties":false,"description":"What agents get at the page, as the paths set in Studio and the site's Markdown setting decide it"},"unreadableReason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why ora could not make an automatic version of the page (an app shell, say); null when it could"},"agentVersion":{"type":"object","properties":{"source":{"type":"string","enum":["auto","edited"],"description":"auto: agents get ora's automatic version. edited: agents get a person's edit, verbatim."},"editedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the edit agents get was published; null while automatic"}},"required":["source","editedAt"],"additionalProperties":false,"description":"The page's agent version, the Markdown agents read for it: which layer they get"}},"required":["id","path","inFront","sources","agentRequests","serving","unreadableReason","agentVersion"],"additionalProperties":false},"description":"This page's items."},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Send it as `cursor` to read the next page. Null on the last page."}},"required":["items","nextCursor"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.pages:read","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_list_pages","title":"List the website's pages as agents meet them","description":"Every page ora knows of on the website (from its sitemap, agent traffic, the paths set in Studio, edits and the Front's own pages), most agent requests first, then by path. Each row says what agents get there and which layer of its agent version they get. `path` finds one page, listed even when ora knows nothing of it yet; `q` keeps the pages whose path contains the text. Page with `cursor` and `limit`.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"cursor":{"description":"Where this page starts: the previous page's `nextCursor`. Leave it out for the first page.","type":"string","minLength":1,"maxLength":500},"limit":{"default":50,"description":"The most items one page holds: 1 to 200, 50 when left out.","type":"integer","minimum":1,"maximum":200},"path":{"description":"Find the page at this path; listed even when ora knows nothing of it","type":"string","minLength":1,"maxLength":2048,"pattern":"^\\/(?!\\/)(?!.*:\\/\\/)[^?#\\s]*$"},"q":{"description":"Only pages whose path contains this text (any case)","type":"string","minLength":1,"maxLength":200}},"required":["site"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":8192,"pattern":"^[A-Za-z0-9_-]+$","description":"The page's id, from front.pages.list (`?path=` finds any page's). The same for the same path, always."},"path":{"type":"string","description":"The page's path on the website, canonical: repeated slashes collapsed, no trailing /"},"inFront":{"type":"boolean","description":"One of the Front's own pages: what its /ask answers from, served optimized at its agent address"},"sources":{"type":"array","items":{"type":"string","enum":["sitemap","traffic","rule","edit","front"],"description":"sitemap: the website lists it. traffic: agents asked for it. rule: a path set in Studio names it exactly (a path ora leaves alone, or its Live switch). edit: its agent version was edited. front: one of the Front's own pages."},"description":"How ora knows of the page; empty for a path asked for by `path`"},"agentRequests":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}],"description":"Agent requests for the page (its .md copy included) over the last 30 days; null when not counted"},"serving":{"type":"object","properties":{"action":{"type":"string","enum":["origin","serve","block","passthrough"],"description":"origin: the website's own page, untouched. serve: ora answers with `strategies`. block: agents are refused (403). passthrough: ora leaves the page alone (a path ora leaves alone, or its Live switch off in Studio), so agents get the website's own page."},"strategies":{"type":"array","items":{"type":"string"},"description":"What ora runs to answer, in order (e.g. to-markdown); empty unless the action is serve"},"byAgentVersion":{"type":"boolean","description":"True when agents get the page's agent version (the site's Markdown setting, or the page's own edit): at <page>.md and through llms.txt, and at the page's URL while negotiation is on"}},"required":["action","strategies","byAgentVersion"],"additionalProperties":false,"description":"What agents get at the page, as the paths set in Studio and the site's Markdown setting decide it"},"unreadableReason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why ora could not make an automatic version of the page (an app shell, say); null when it could"},"agentVersion":{"type":"object","properties":{"source":{"type":"string","enum":["auto","edited"],"description":"auto: agents get ora's automatic version. edited: agents get a person's edit, verbatim."},"editedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the edit agents get was published; null while automatic"}},"required":["source","editedAt"],"additionalProperties":false,"description":"The page's agent version, the Markdown agents read for it: which layer they get"}},"required":["id","path","inFront","sources","agentRequests","serving","unreadableReason","agentVersion"],"additionalProperties":false},"description":"This page's items."},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Send it as `cursor` to read the next page. Null on the last page."}},"required":["items","nextCursor"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"request":{"params":["site"],"query":["cursor","limit","path","q"]}}}},"/studio/v1/front/sites/{site}/pages/{pageId}":{"get":{"operationId":"front.pages.get","tags":["Front pages"],"summary":"Read a page and its agent version","description":"One page as agents meet it: how ora knows of it, what agents get there, what the Front holds for it, and its agent version (the Markdown agents read for it) in both layers: ora's automatic version, made fresh from the live page on every read (allow a few seconds), and the edit, which wins while it exists. Any path on the website can be read, listed or not.","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"},{"name":"pageId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":8192,"pattern":"^[A-Za-z0-9_-]+$","description":"The page's id, from front.pages.list (`?path=` finds any page's). The same for the same path, always."},"example":"L3ByaWNpbmc"}],"responses":{"200":{"description":"Read a page and its agent version","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":8192,"pattern":"^[A-Za-z0-9_-]+$","description":"The page's id, from front.pages.list (`?path=` finds any page's). The same for the same path, always."},"path":{"type":"string","description":"The page's path on the website, canonical: repeated slashes collapsed, no trailing /"},"inFront":{"type":"boolean","description":"One of the Front's own pages: what its /ask answers from, served optimized at its agent address"},"sources":{"type":"array","items":{"type":"string","enum":["sitemap","traffic","rule","edit","front"],"description":"sitemap: the website lists it. traffic: agents asked for it. rule: a path set in Studio names it exactly (a path ora leaves alone, or its Live switch). edit: its agent version was edited. front: one of the Front's own pages."},"description":"How ora knows of the page; empty for a path asked for by `path`"},"agentRequests":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}],"description":"Agent requests for the page (its .md copy included) over the last 30 days; null when not counted"},"serving":{"type":"object","properties":{"action":{"type":"string","enum":["origin","serve","block","passthrough"],"description":"origin: the website's own page, untouched. serve: ora answers with `strategies`. block: agents are refused (403). passthrough: ora leaves the page alone (a path ora leaves alone, or its Live switch off in Studio), so agents get the website's own page."},"strategies":{"type":"array","items":{"type":"string"},"description":"What ora runs to answer, in order (e.g. to-markdown); empty unless the action is serve"},"byAgentVersion":{"type":"boolean","description":"True when agents get the page's agent version (the site's Markdown setting, or the page's own edit): at <page>.md and through llms.txt, and at the page's URL while negotiation is on"}},"required":["action","strategies","byAgentVersion"],"additionalProperties":false,"description":"What agents get at the page, as the paths set in Studio and the site's Markdown setting decide it"},"unreadableReason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why ora could not make an automatic version of the page (an app shell, say); null when it could"},"agentVersion":{"type":"object","properties":{"pageId":{"type":"string","minLength":1,"maxLength":8192,"pattern":"^[A-Za-z0-9_-]+$","description":"The page's id, from front.pages.list (`?path=` finds any page's). The same for the same path, always."},"path":{"type":"string","description":"The page's path on the website: the one its pageId stands for"},"source":{"type":"string","enum":["auto","edited"],"description":"auto: agents get ora's automatic version. edited: agents get a person's edit, verbatim."},"editedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the edit agents get was published; null while automatic"},"content":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What agents get: the edit, else the automatic version; null when neither is at hand in this answer"},"generatedContent":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"ora's automatic version, made from the live page; null when it could not (see `generationIssue`) or when this answer did not make it"},"generatedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When ora made the automatic version, for this answer; null when this answer has none"},"generationIssue":{"anyOf":[{"type":"object","properties":{"code":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Machine-readable, when known; busy means try again shortly"},"reason":{"type":"string","description":"Why, written to be shown as is"}},"required":["code","reason"],"additionalProperties":false},{"type":"null"}],"description":"Why there is no automatic version; null when there is"}},"required":["pageId","path","source","editedAt","content","generatedContent","generatedAt","generationIssue"],"additionalProperties":false,"description":"The page's agent version, the Markdown agents read for it, in both layers: ora's automatic version and the edit"},"front":{"anyOf":[{"type":"object","properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The page's title, as the Front read it; null when it has none"},"url":{"type":"string","description":"The address the Front read the page at"},"markdown":{"type":"string","description":"The page's text in the Front: an edit published to it, else what was read"},"readAt":{"type":"string","description":"UTC, ISO 8601"}},"required":["title","url","markdown","readAt"],"additionalProperties":false},{"type":"null"}],"description":"What the Front holds for the page; null when it is not one of them"}},"required":["id","path","inFront","sources","agentRequests","serving","unreadableReason","agentVersion","front"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.pages:read","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_get_page","title":"Read a page and its agent version","description":"One page as agents meet it: how ora knows of it, what agents get there, what the Front holds for it, and its agent version (the Markdown agents read for it) in both layers: ora's automatic version, made fresh from the live page on every read (allow a few seconds), and the edit, which wins while it exists. Any path on the website can be read, listed or not.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"pageId":{"type":"string","minLength":1,"maxLength":8192,"pattern":"^[A-Za-z0-9_-]+$","description":"The page's id, from front.pages.list (`?path=` finds any page's). The same for the same path, always."}},"required":["site","pageId"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":8192,"pattern":"^[A-Za-z0-9_-]+$","description":"The page's id, from front.pages.list (`?path=` finds any page's). The same for the same path, always."},"path":{"type":"string","description":"The page's path on the website, canonical: repeated slashes collapsed, no trailing /"},"inFront":{"type":"boolean","description":"One of the Front's own pages: what its /ask answers from, served optimized at its agent address"},"sources":{"type":"array","items":{"type":"string","enum":["sitemap","traffic","rule","edit","front"],"description":"sitemap: the website lists it. traffic: agents asked for it. rule: a path set in Studio names it exactly (a path ora leaves alone, or its Live switch). edit: its agent version was edited. front: one of the Front's own pages."},"description":"How ora knows of the page; empty for a path asked for by `path`"},"agentRequests":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}],"description":"Agent requests for the page (its .md copy included) over the last 30 days; null when not counted"},"serving":{"type":"object","properties":{"action":{"type":"string","enum":["origin","serve","block","passthrough"],"description":"origin: the website's own page, untouched. serve: ora answers with `strategies`. block: agents are refused (403). passthrough: ora leaves the page alone (a path ora leaves alone, or its Live switch off in Studio), so agents get the website's own page."},"strategies":{"type":"array","items":{"type":"string"},"description":"What ora runs to answer, in order (e.g. to-markdown); empty unless the action is serve"},"byAgentVersion":{"type":"boolean","description":"True when agents get the page's agent version (the site's Markdown setting, or the page's own edit): at <page>.md and through llms.txt, and at the page's URL while negotiation is on"}},"required":["action","strategies","byAgentVersion"],"additionalProperties":false,"description":"What agents get at the page, as the paths set in Studio and the site's Markdown setting decide it"},"unreadableReason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why ora could not make an automatic version of the page (an app shell, say); null when it could"},"agentVersion":{"type":"object","properties":{"pageId":{"type":"string","minLength":1,"maxLength":8192,"pattern":"^[A-Za-z0-9_-]+$","description":"The page's id, from front.pages.list (`?path=` finds any page's). The same for the same path, always."},"path":{"type":"string","description":"The page's path on the website: the one its pageId stands for"},"source":{"type":"string","enum":["auto","edited"],"description":"auto: agents get ora's automatic version. edited: agents get a person's edit, verbatim."},"editedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the edit agents get was published; null while automatic"},"content":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What agents get: the edit, else the automatic version; null when neither is at hand in this answer"},"generatedContent":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"ora's automatic version, made from the live page; null when it could not (see `generationIssue`) or when this answer did not make it"},"generatedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When ora made the automatic version, for this answer; null when this answer has none"},"generationIssue":{"anyOf":[{"type":"object","properties":{"code":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Machine-readable, when known; busy means try again shortly"},"reason":{"type":"string","description":"Why, written to be shown as is"}},"required":["code","reason"],"additionalProperties":false},{"type":"null"}],"description":"Why there is no automatic version; null when there is"}},"required":["pageId","path","source","editedAt","content","generatedContent","generatedAt","generationIssue"],"additionalProperties":false,"description":"The page's agent version, the Markdown agents read for it, in both layers: ora's automatic version and the edit"},"front":{"anyOf":[{"type":"object","properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The page's title, as the Front read it; null when it has none"},"url":{"type":"string","description":"The address the Front read the page at"},"markdown":{"type":"string","description":"The page's text in the Front: an edit published to it, else what was read"},"readAt":{"type":"string","description":"UTC, ISO 8601"}},"required":["title","url","markdown","readAt"],"additionalProperties":false},{"type":"null"}],"description":"What the Front holds for the page; null when it is not one of them"}},"required":["id","path","inFront","sources","agentRequests","serving","unreadableReason","agentVersion","front"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true},"request":{"params":["site","pageId"]}}}},"/studio/v1/front/sites/{site}/pages/{pageId}/agent-version":{"put":{"operationId":"front.pages.agentVersion.update","tags":["Front pages"],"summary":"Publish an edited agent version of a page","description":"Publishes your Markdown as the page's agent version: agents get it verbatim wherever the site serves the page's Markdown (at <page>.md and through llms.txt, and at the page's URL while negotiation is on), even with the site's Markdown setting off, since the edit is the choice; on the website, once serving is in autopilot. The answer carries the edit, not the automatic version. To go back to the automatic version, DELETE the agent version.","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"},{"name":"pageId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":8192,"pattern":"^[A-Za-z0-9_-]+$","description":"The page's id, from front.pages.list (`?path=` finds any page's). The same for the same path, always."},"example":"L3ByaWNpbmc"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"content":{"type":"string","minLength":1,"maxLength":500000,"description":"The page's Markdown for agents, served verbatim. To go back to automatic, DELETE the agent version."}},"required":["content"]},"example":{"content":"# Pricing\n\nStarter: $29 a month. Team: $99 a month, up to 10 seats. Annual billing saves 20%.\n"}}}},"responses":{"200":{"description":"Publish an edited agent version of a page","content":{"application/json":{"schema":{"type":"object","properties":{"pageId":{"type":"string","minLength":1,"maxLength":8192,"pattern":"^[A-Za-z0-9_-]+$","description":"The page's id, from front.pages.list (`?path=` finds any page's). The same for the same path, always."},"path":{"type":"string","description":"The page's path on the website: the one its pageId stands for"},"source":{"type":"string","enum":["auto","edited"],"description":"auto: agents get ora's automatic version. edited: agents get a person's edit, verbatim."},"editedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the edit agents get was published; null while automatic"},"content":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What agents get: the edit, else the automatic version; null when neither is at hand in this answer"},"generatedContent":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"ora's automatic version, made from the live page; null when it could not (see `generationIssue`) or when this answer did not make it"},"generatedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When ora made the automatic version, for this answer; null when this answer has none"},"generationIssue":{"anyOf":[{"type":"object","properties":{"code":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Machine-readable, when known; busy means try again shortly"},"reason":{"type":"string","description":"Why, written to be shown as is"}},"required":["code","reason"],"additionalProperties":false},{"type":"null"}],"description":"Why there is no automatic version; null when there is"}},"required":["pageId","path","source","editedAt","content","generatedContent","generatedAt","generationIssue"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"ora does not serve this site yet (SERVING_NOT_SET_UP): set its serving mode first with front.serving.update (mode off changes nothing else).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.pages:write","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_edit_page","title":"Publish an edited agent version of a page","description":"Publishes your Markdown as the page's agent version: agents get it verbatim wherever the site serves the page's Markdown (at <page>.md and through llms.txt, and at the page's URL while negotiation is on), even with the site's Markdown setting off, since the edit is the choice; on the website, once serving is in autopilot. The answer carries the edit, not the automatic version. To go back to the automatic version, DELETE the agent version.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"pageId":{"type":"string","minLength":1,"maxLength":8192,"pattern":"^[A-Za-z0-9_-]+$","description":"The page's id, from front.pages.list (`?path=` finds any page's). The same for the same path, always."},"content":{"type":"string","minLength":1,"maxLength":500000,"description":"The page's Markdown for agents, served verbatim. To go back to automatic, DELETE the agent version."}},"required":["site","pageId","content"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"pageId":{"type":"string","minLength":1,"maxLength":8192,"pattern":"^[A-Za-z0-9_-]+$","description":"The page's id, from front.pages.list (`?path=` finds any page's). The same for the same path, always."},"path":{"type":"string","description":"The page's path on the website: the one its pageId stands for"},"source":{"type":"string","enum":["auto","edited"],"description":"auto: agents get ora's automatic version. edited: agents get a person's edit, verbatim."},"editedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the edit agents get was published; null while automatic"},"content":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What agents get: the edit, else the automatic version; null when neither is at hand in this answer"},"generatedContent":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"ora's automatic version, made from the live page; null when it could not (see `generationIssue`) or when this answer did not make it"},"generatedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When ora made the automatic version, for this answer; null when this answer has none"},"generationIssue":{"anyOf":[{"type":"object","properties":{"code":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Machine-readable, when known; busy means try again shortly"},"reason":{"type":"string","description":"Why, written to be shown as is"}},"required":["code","reason"],"additionalProperties":false},{"type":"null"}],"description":"Why there is no automatic version; null when there is"}},"required":["pageId","path","source","editedAt","content","generatedContent","generatedAt","generationIssue"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"request":{"params":["site","pageId"],"body":["content"]}}},"delete":{"operationId":"front.pages.agentVersion.delete","tags":["Front pages"],"summary":"Restore a page's automatic agent version","description":"Removes the edit: agents get ora's automatic version of the page again (with the site's Markdown setting off, the page goes back to not being served as Markdown). Nothing is lost: the automatic version was kept fresh all along. The answer does not make the automatic version: read the page to see it.","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"},{"name":"pageId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":8192,"pattern":"^[A-Za-z0-9_-]+$","description":"The page's id, from front.pages.list (`?path=` finds any page's). The same for the same path, always."},"example":"L3ByaWNpbmc"}],"responses":{"200":{"description":"Restore a page's automatic agent version","content":{"application/json":{"schema":{"type":"object","properties":{"pageId":{"type":"string","minLength":1,"maxLength":8192,"pattern":"^[A-Za-z0-9_-]+$","description":"The page's id, from front.pages.list (`?path=` finds any page's). The same for the same path, always."},"path":{"type":"string","description":"The page's path on the website: the one its pageId stands for"},"source":{"type":"string","enum":["auto","edited"],"description":"auto: agents get ora's automatic version. edited: agents get a person's edit, verbatim."},"editedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the edit agents get was published; null while automatic"},"content":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What agents get: the edit, else the automatic version; null when neither is at hand in this answer"},"generatedContent":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"ora's automatic version, made from the live page; null when it could not (see `generationIssue`) or when this answer did not make it"},"generatedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When ora made the automatic version, for this answer; null when this answer has none"},"generationIssue":{"anyOf":[{"type":"object","properties":{"code":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Machine-readable, when known; busy means try again shortly"},"reason":{"type":"string","description":"Why, written to be shown as is"}},"required":["code","reason"],"additionalProperties":false},{"type":"null"}],"description":"Why there is no automatic version; null when there is"}},"required":["pageId","path","source","editedAt","content","generatedContent","generatedAt","generationIssue"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"ora does not serve this site yet (SERVING_NOT_SET_UP): set its serving mode first with front.serving.update (mode off changes nothing else).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.pages:write","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_remove_page_edit","title":"Restore a page's automatic agent version","description":"Removes the edit: agents get ora's automatic version of the page again (with the site's Markdown setting off, the page goes back to not being served as Markdown). Nothing is lost: the automatic version was kept fresh all along. The answer does not make the automatic version: read the page to see it.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"pageId":{"type":"string","minLength":1,"maxLength":8192,"pattern":"^[A-Za-z0-9_-]+$","description":"The page's id, from front.pages.list (`?path=` finds any page's). The same for the same path, always."}},"required":["site","pageId"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"pageId":{"type":"string","minLength":1,"maxLength":8192,"pattern":"^[A-Za-z0-9_-]+$","description":"The page's id, from front.pages.list (`?path=` finds any page's). The same for the same path, always."},"path":{"type":"string","description":"The page's path on the website: the one its pageId stands for"},"source":{"type":"string","enum":["auto","edited"],"description":"auto: agents get ora's automatic version. edited: agents get a person's edit, verbatim."},"editedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the edit agents get was published; null while automatic"},"content":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What agents get: the edit, else the automatic version; null when neither is at hand in this answer"},"generatedContent":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"ora's automatic version, made from the live page; null when it could not (see `generationIssue`) or when this answer did not make it"},"generatedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When ora made the automatic version, for this answer; null when this answer has none"},"generationIssue":{"anyOf":[{"type":"object","properties":{"code":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Machine-readable, when known; busy means try again shortly"},"reason":{"type":"string","description":"Why, written to be shown as is"}},"required":["code","reason"],"additionalProperties":false},{"type":"null"}],"description":"Why there is no automatic version; null when there is"}},"required":["pageId","path","source","editedAt","content","generatedContent","generatedAt","generationIssue"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"request":{"params":["site","pageId"]}}}},"/studio/v1/front/sites/{site}/pages/{pageId}/agent-version/regenerate":{"post":{"operationId":"front.pages.agentVersion.regenerate","tags":["Front pages"],"summary":"Make a page's automatic agent version again","description":"Makes ora's automatic version of the page again from the live page now, and answers with both layers. An edit, when there is one, stays what agents get. When ora cannot make one, `generationIssue` says why (busy: try again shortly).","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"},{"name":"pageId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":8192,"pattern":"^[A-Za-z0-9_-]+$","description":"The page's id, from front.pages.list (`?path=` finds any page's). The same for the same path, always."},"example":"L3ByaWNpbmc"},{"name":"Idempotency-Key","in":"header","required":false,"description":"A unique value per logical request (a UUID). A retry with the same key and the same request replays the first answer instead of running again; keys are kept 24 hours.","schema":{"type":"string","minLength":1,"maxLength":255}}],"responses":{"200":{"description":"Make a page's automatic agent version again","content":{"application/json":{"schema":{"type":"object","properties":{"pageId":{"type":"string","minLength":1,"maxLength":8192,"pattern":"^[A-Za-z0-9_-]+$","description":"The page's id, from front.pages.list (`?path=` finds any page's). The same for the same path, always."},"path":{"type":"string","description":"The page's path on the website: the one its pageId stands for"},"source":{"type":"string","enum":["auto","edited"],"description":"auto: agents get ora's automatic version. edited: agents get a person's edit, verbatim."},"editedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the edit agents get was published; null while automatic"},"content":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What agents get: the edit, else the automatic version; null when neither is at hand in this answer"},"generatedContent":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"ora's automatic version, made from the live page; null when it could not (see `generationIssue`) or when this answer did not make it"},"generatedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When ora made the automatic version, for this answer; null when this answer has none"},"generationIssue":{"anyOf":[{"type":"object","properties":{"code":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Machine-readable, when known; busy means try again shortly"},"reason":{"type":"string","description":"Why, written to be shown as is"}},"required":["code","reason"],"additionalProperties":false},{"type":"null"}],"description":"Why there is no automatic version; null when there is"}},"required":["pageId","path","source","editedAt","content","generatedContent","generatedAt","generationIssue"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"ora does not serve this site yet (SERVING_NOT_SET_UP): set its serving mode first with front.serving.update (mode off changes nothing else). Or the Idempotency-Key conflicts (IDEMPOTENCY_KEY_REUSED, IDEMPOTENCY_IN_PROGRESS).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.pages:write","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-idempotent":true,"x-ora-mcp-tool":{"name":"front_regenerate_page","title":"Make a page's automatic agent version again","description":"Makes ora's automatic version of the page again from the live page now, and answers with both layers. An edit, when there is one, stays what agents get. When ora cannot make one, `generationIssue` says why (busy: try again shortly).","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"pageId":{"type":"string","minLength":1,"maxLength":8192,"pattern":"^[A-Za-z0-9_-]+$","description":"The page's id, from front.pages.list (`?path=` finds any page's). The same for the same path, always."}},"required":["site","pageId"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"pageId":{"type":"string","minLength":1,"maxLength":8192,"pattern":"^[A-Za-z0-9_-]+$","description":"The page's id, from front.pages.list (`?path=` finds any page's). The same for the same path, always."},"path":{"type":"string","description":"The page's path on the website: the one its pageId stands for"},"source":{"type":"string","enum":["auto","edited"],"description":"auto: agents get ora's automatic version. edited: agents get a person's edit, verbatim."},"editedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the edit agents get was published; null while automatic"},"content":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What agents get: the edit, else the automatic version; null when neither is at hand in this answer"},"generatedContent":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"ora's automatic version, made from the live page; null when it could not (see `generationIssue`) or when this answer did not make it"},"generatedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When ora made the automatic version, for this answer; null when this answer has none"},"generationIssue":{"anyOf":[{"type":"object","properties":{"code":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Machine-readable, when known; busy means try again shortly"},"reason":{"type":"string","description":"Why, written to be shown as is"}},"required":["code","reason"],"additionalProperties":false},{"type":"null"}],"description":"Why there is no automatic version; null when there is"}},"required":["pageId","path","source","editedAt","content","generatedContent","generatedAt","generationIssue"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true},"request":{"params":["site","pageId"]}}}},"/studio/v1/front/sites/{site}/pages/{pageId}/screenshot":{"get":{"operationId":"front.pages.screenshot.get","tags":["Front pages"],"summary":"Take a screenshot of a page as people see it","description":"A real browser's screenshot of the page, to compare with what agents get. Taking one loads the page in a browser (allow up to 30 seconds); `status` says why there is none to show (busy: try again shortly; blocked: the website's bot protection turned the browser away).","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"},{"name":"pageId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":8192,"pattern":"^[A-Za-z0-9_-]+$","description":"The page's id, from front.pages.list (`?path=` finds any page's). The same for the same path, always."},"example":"L3ByaWNpbmc"}],"responses":{"200":{"description":"Take a screenshot of a page as people see it","content":{"application/json":{"schema":{"type":"object","properties":{"pageId":{"type":"string","minLength":1,"maxLength":8192,"pattern":"^[A-Za-z0-9_-]+$","description":"The page's id, from front.pages.list (`?path=` finds any page's). The same for the same path, always."},"path":{"type":"string","description":"The page's path on the website: the one its pageId stands for"},"status":{"type":"string","enum":["ready","disabled","busy","failed","blocked"],"description":"ready: `image` holds it. disabled: screenshots are off here. busy: try again shortly. failed: the page could not be captured. blocked: the website's bot protection turned the browser away."},"image":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A PNG as a data URL (data:image/png;base64,…) when ready"},"finalUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The page the browser loaded, after redirects"},"capturedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the browser visited the page (a recent visit is reused for a while); null when disabled or busy"},"blockedBy":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The bot protection that turned the browser away (e.g. Cloudflare)"}},"required":["pageId","path","status","image","finalUrl","capturedAt","blockedBy"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"ora does not serve this site yet (SERVING_NOT_SET_UP): set its serving mode first with front.serving.update (mode off changes nothing else).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.pages:read","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_screenshot_page","title":"Take a screenshot of a page as people see it","description":"A real browser's screenshot of the page, to compare with what agents get. Taking one loads the page in a browser (allow up to 30 seconds); `status` says why there is none to show (busy: try again shortly; blocked: the website's bot protection turned the browser away).","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"pageId":{"type":"string","minLength":1,"maxLength":8192,"pattern":"^[A-Za-z0-9_-]+$","description":"The page's id, from front.pages.list (`?path=` finds any page's). The same for the same path, always."}},"required":["site","pageId"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"pageId":{"type":"string","minLength":1,"maxLength":8192,"pattern":"^[A-Za-z0-9_-]+$","description":"The page's id, from front.pages.list (`?path=` finds any page's). The same for the same path, always."},"path":{"type":"string","description":"The page's path on the website: the one its pageId stands for"},"status":{"type":"string","enum":["ready","disabled","busy","failed","blocked"],"description":"ready: `image` holds it. disabled: screenshots are off here. busy: try again shortly. failed: the page could not be captured. blocked: the website's bot protection turned the browser away."},"image":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A PNG as a data URL (data:image/png;base64,…) when ready"},"finalUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The page the browser loaded, after redirects"},"capturedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the browser visited the page (a recent visit is reused for a while); null when disabled or busy"},"blockedBy":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The bot protection that turned the browser away (e.g. Cloudflare)"}},"required":["pageId","path","status","image","finalUrl","capturedAt","blockedBy"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true},"request":{"params":["site","pageId"]}}}},"/studio/v1/front/sites/{site}/protocols":{"get":{"operationId":"front.protocols.get","tags":["Front connection"],"summary":"Read which protocols agents can use","description":"NLWeb and MCP, each at two doors: the site's agent address (any agent, no key) and the website itself (through its connection), with where agents reach each one while it is on. The website answers only while it is connected, Agent Serving is on (mode autopilot) and the site is live: `websiteAvailability` says whether it does, and the website's endpoints are null while it does not, even for a switch that is on (the switch stays saved).","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"}],"responses":{"200":{"description":"Read which protocols agents can use","content":{"application/json":{"schema":{"type":"object","properties":{"address":{"type":"object","properties":{"nlweb":{"type":"boolean","description":"NLWeb: an agent asks a question and gets answers from the site's pages, with sources (/ask)"},"mcp":{"type":"boolean","description":"MCP: assistants (Claude, ChatGPT, …) connect to the business as a server"}},"required":["nlweb","mcp"],"additionalProperties":false,"description":"At the site's agent address: any agent, with no key. NLWeb opens when the Front is first published, unless already switched; MCP stays off until switched on."},"website":{"type":"object","properties":{"nlweb":{"type":"boolean","description":"NLWeb: an agent asks a question and gets answers from the site's pages, with sources (/ask)"},"mcp":{"type":"boolean","description":"MCP: assistants (Claude, ChatGPT, …) connect to the business as a server"}},"required":["nlweb","mcp"],"additionalProperties":false,"description":"On the website itself, through its connection: /ask, and /mcp or the site's own MCP server path. The saved switches: one that is on answers only while websiteAvailability.available is true"},"websiteAvailability":{"type":"object","properties":{"available":{"type":"boolean","description":"true: the website answers each protocol switched on there. false: a prerequisite is missing, so it answers none, and turning one on is refused"},"reason":{"anyOf":[{"type":"string","enum":["not_connected","agent_serving_off","not_live"]},{"type":"null"}],"description":"The first prerequisite missing, checked in this order; null while available. not_connected: the website is not connected now: its connection's status is pending, failed or not_connected (WEBSITE_NOT_CONNECTED). agent_serving_off: Agent Serving is off: the serving mode is off or monitor, and the website answers only in autopilot; switch it on with front.serving.update {\"mode\":\"autopilot\"} (AGENT_SERVING_OFF). not_live: the site's first build is not published yet, so there is no knowledge index to answer from; follow the site's stream until its status is live (SITE_NOT_LIVE)."}},"required":["available","reason"],"additionalProperties":false,"description":"Whether the website answers its protocols now: it needs a connected website, Agent Serving on (mode autopilot) and a live site. A switch on while one is missing stays saved and answers once it returns. The agent address needs neither a connected website nor Agent Serving."},"endpoints":{"type":"object","properties":{"address":{"type":"object","properties":{"nlweb":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The NLWeb endpoint, ending in /ask"},"mcp":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The MCP endpoint: /mcp, or on the website the site's own MCP server path"}},"required":["nlweb","mcp"],"additionalProperties":false,"description":"At the site's agent address"},"website":{"type":"object","properties":{"nlweb":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The NLWeb endpoint, ending in /ask"},"mcp":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The MCP endpoint: /mcp, or on the website the site's own MCP server path"}},"required":["nlweb","mcp"],"additionalProperties":false,"description":"On the website itself, through its connection; null too while the website does not answer (websiteAvailability), even for a protocol switched on"}},"required":["address","website"],"additionalProperties":false,"description":"Where agents reach each protocol while it is on; null while off"},"mcpServerPath":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The path of the site's own MCP server, when one is saved: the website answers MCP there instead of /mcp"}},"required":["address","website","websiteAvailability","endpoints","mcpServerPath"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.connect:read","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_get_protocols","title":"Read which protocols agents can use","description":"NLWeb and MCP, each at two doors: the site's agent address (any agent, no key) and the website itself (through its connection), with where agents reach each one while it is on. The website answers only while it is connected, Agent Serving is on (mode autopilot) and the site is live: `websiteAvailability` says whether it does, and the website's endpoints are null while it does not, even for a switch that is on (the switch stays saved).","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."}},"required":["site"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"address":{"type":"object","properties":{"nlweb":{"type":"boolean","description":"NLWeb: an agent asks a question and gets answers from the site's pages, with sources (/ask)"},"mcp":{"type":"boolean","description":"MCP: assistants (Claude, ChatGPT, …) connect to the business as a server"}},"required":["nlweb","mcp"],"additionalProperties":false,"description":"At the site's agent address: any agent, with no key. NLWeb opens when the Front is first published, unless already switched; MCP stays off until switched on."},"website":{"type":"object","properties":{"nlweb":{"type":"boolean","description":"NLWeb: an agent asks a question and gets answers from the site's pages, with sources (/ask)"},"mcp":{"type":"boolean","description":"MCP: assistants (Claude, ChatGPT, …) connect to the business as a server"}},"required":["nlweb","mcp"],"additionalProperties":false,"description":"On the website itself, through its connection: /ask, and /mcp or the site's own MCP server path. The saved switches: one that is on answers only while websiteAvailability.available is true"},"websiteAvailability":{"type":"object","properties":{"available":{"type":"boolean","description":"true: the website answers each protocol switched on there. false: a prerequisite is missing, so it answers none, and turning one on is refused"},"reason":{"anyOf":[{"type":"string","enum":["not_connected","agent_serving_off","not_live"]},{"type":"null"}],"description":"The first prerequisite missing, checked in this order; null while available. not_connected: the website is not connected now: its connection's status is pending, failed or not_connected (WEBSITE_NOT_CONNECTED). agent_serving_off: Agent Serving is off: the serving mode is off or monitor, and the website answers only in autopilot; switch it on with front.serving.update {\"mode\":\"autopilot\"} (AGENT_SERVING_OFF). not_live: the site's first build is not published yet, so there is no knowledge index to answer from; follow the site's stream until its status is live (SITE_NOT_LIVE)."}},"required":["available","reason"],"additionalProperties":false,"description":"Whether the website answers its protocols now: it needs a connected website, Agent Serving on (mode autopilot) and a live site. A switch on while one is missing stays saved and answers once it returns. The agent address needs neither a connected website nor Agent Serving."},"endpoints":{"type":"object","properties":{"address":{"type":"object","properties":{"nlweb":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The NLWeb endpoint, ending in /ask"},"mcp":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The MCP endpoint: /mcp, or on the website the site's own MCP server path"}},"required":["nlweb","mcp"],"additionalProperties":false,"description":"At the site's agent address"},"website":{"type":"object","properties":{"nlweb":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The NLWeb endpoint, ending in /ask"},"mcp":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The MCP endpoint: /mcp, or on the website the site's own MCP server path"}},"required":["nlweb","mcp"],"additionalProperties":false,"description":"On the website itself, through its connection; null too while the website does not answer (websiteAvailability), even for a protocol switched on"}},"required":["address","website"],"additionalProperties":false,"description":"Where agents reach each protocol while it is on; null while off"},"mcpServerPath":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The path of the site's own MCP server, when one is saved: the website answers MCP there instead of /mcp"}},"required":["address","website","websiteAvailability","endpoints","mcpServerPath"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"request":{"params":["site"]}}},"patch":{"operationId":"front.protocols.update","tags":["Front connection"],"summary":"Switch protocols on or off","description":"Turns NLWeb or MCP on or off at the agent address or on the website; only the switches sent change (JSON Merge Patch). Turning a website protocol on needs the website to answer: connected, Agent Serving on (mode autopilot) and the site live (`websiteAvailability`); turning anything off never does, nor does an address switch. Usually nothing needs writing here: a new site's first switch to Agent Serving (front.serving.update) turns NLWeb, and MCP unless the site has its own MCP server, on at the address and on the website by itself. Takes effect within the propagation time; returns the protocols.","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"address":{"description":"Switches at the agent address","type":"object","properties":{"nlweb":{"description":"Turn NLWeb on (true) or off (false); leave it out to keep it as it is","type":"boolean"},"mcp":{"description":"Turn MCP on (true) or off (false); leave it out to keep it as it is","type":"boolean"}}},"website":{"description":"Switches on the website. Turning one on needs the website to answer (websiteAvailability: a connected website, Agent Serving on, a live site); turning one off never does.","type":"object","properties":{"nlweb":{"description":"Turn NLWeb on (true) or off (false); leave it out to keep it as it is","type":"boolean"},"mcp":{"description":"Turn MCP on (true) or off (false); leave it out to keep it as it is","type":"boolean"}}}}},"example":{"address":{"nlweb":true,"mcp":true}}},"application/merge-patch+json":{"schema":{"type":"object","properties":{"address":{"description":"Switches at the agent address","type":"object","properties":{"nlweb":{"description":"Turn NLWeb on (true) or off (false); leave it out to keep it as it is","type":"boolean"},"mcp":{"description":"Turn MCP on (true) or off (false); leave it out to keep it as it is","type":"boolean"}}},"website":{"description":"Switches on the website. Turning one on needs the website to answer (websiteAvailability: a connected website, Agent Serving on, a live site); turning one off never does.","type":"object","properties":{"nlweb":{"description":"Turn NLWeb on (true) or off (false); leave it out to keep it as it is","type":"boolean"},"mcp":{"description":"Turn MCP on (true) or off (false); leave it out to keep it as it is","type":"boolean"}}}}},"example":{"address":{"nlweb":true,"mcp":true}}}}},"responses":{"200":{"description":"Switch protocols on or off","content":{"application/json":{"schema":{"type":"object","properties":{"address":{"type":"object","properties":{"nlweb":{"type":"boolean","description":"NLWeb: an agent asks a question and gets answers from the site's pages, with sources (/ask)"},"mcp":{"type":"boolean","description":"MCP: assistants (Claude, ChatGPT, …) connect to the business as a server"}},"required":["nlweb","mcp"],"additionalProperties":false,"description":"At the site's agent address: any agent, with no key. NLWeb opens when the Front is first published, unless already switched; MCP stays off until switched on."},"website":{"type":"object","properties":{"nlweb":{"type":"boolean","description":"NLWeb: an agent asks a question and gets answers from the site's pages, with sources (/ask)"},"mcp":{"type":"boolean","description":"MCP: assistants (Claude, ChatGPT, …) connect to the business as a server"}},"required":["nlweb","mcp"],"additionalProperties":false,"description":"On the website itself, through its connection: /ask, and /mcp or the site's own MCP server path. The saved switches: one that is on answers only while websiteAvailability.available is true"},"websiteAvailability":{"type":"object","properties":{"available":{"type":"boolean","description":"true: the website answers each protocol switched on there. false: a prerequisite is missing, so it answers none, and turning one on is refused"},"reason":{"anyOf":[{"type":"string","enum":["not_connected","agent_serving_off","not_live"]},{"type":"null"}],"description":"The first prerequisite missing, checked in this order; null while available. not_connected: the website is not connected now: its connection's status is pending, failed or not_connected (WEBSITE_NOT_CONNECTED). agent_serving_off: Agent Serving is off: the serving mode is off or monitor, and the website answers only in autopilot; switch it on with front.serving.update {\"mode\":\"autopilot\"} (AGENT_SERVING_OFF). not_live: the site's first build is not published yet, so there is no knowledge index to answer from; follow the site's stream until its status is live (SITE_NOT_LIVE)."}},"required":["available","reason"],"additionalProperties":false,"description":"Whether the website answers its protocols now: it needs a connected website, Agent Serving on (mode autopilot) and a live site. A switch on while one is missing stays saved and answers once it returns. The agent address needs neither a connected website nor Agent Serving."},"endpoints":{"type":"object","properties":{"address":{"type":"object","properties":{"nlweb":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The NLWeb endpoint, ending in /ask"},"mcp":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The MCP endpoint: /mcp, or on the website the site's own MCP server path"}},"required":["nlweb","mcp"],"additionalProperties":false,"description":"At the site's agent address"},"website":{"type":"object","properties":{"nlweb":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The NLWeb endpoint, ending in /ask"},"mcp":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The MCP endpoint: /mcp, or on the website the site's own MCP server path"}},"required":["nlweb","mcp"],"additionalProperties":false,"description":"On the website itself, through its connection; null too while the website does not answer (websiteAvailability), even for a protocol switched on"}},"required":["address","website"],"additionalProperties":false,"description":"Where agents reach each protocol while it is on; null while off"},"mcpServerPath":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The path of the site's own MCP server, when one is saved: the website answers MCP there instead of /mcp"}},"required":["address","website","websiteAvailability","endpoints","mcpServerPath"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"A website protocol cannot turn on before the website is connected (WEBSITE_NOT_CONNECTED), while Agent Serving is off (AGENT_SERVING_OFF: switch it on with front.serving.update, `{\"mode\":\"autopilot\"}`), or before the site's first build is published (SITE_NOT_LIVE), checked in that order; or another setting of the website's paths, such as a path ora leaves alone, already uses /ask or /mcp (PATH_CONFLICT).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"A service the change needs is unavailable. The website's switches are written before the address's: if the address's write fails after them, the answer says so (outcome `unknown`, naming what was saved) and the site's stream announces the website's change. Read the protocols before sending the rest again.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.connect:write","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_set_protocols","title":"Switch protocols on or off","description":"Turns NLWeb or MCP on or off at the agent address or on the website; only the switches sent change (JSON Merge Patch). Turning a website protocol on needs the website to answer: connected, Agent Serving on (mode autopilot) and the site live (`websiteAvailability`); turning anything off never does, nor does an address switch. Usually nothing needs writing here: a new site's first switch to Agent Serving (front.serving.update) turns NLWeb, and MCP unless the site has its own MCP server, on at the address and on the website by itself. Takes effect within the propagation time; returns the protocols.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"address":{"description":"Switches at the agent address","type":"object","properties":{"nlweb":{"description":"Turn NLWeb on (true) or off (false); leave it out to keep it as it is","type":"boolean"},"mcp":{"description":"Turn MCP on (true) or off (false); leave it out to keep it as it is","type":"boolean"}}},"website":{"description":"Switches on the website. Turning one on needs the website to answer (websiteAvailability: a connected website, Agent Serving on, a live site); turning one off never does.","type":"object","properties":{"nlweb":{"description":"Turn NLWeb on (true) or off (false); leave it out to keep it as it is","type":"boolean"},"mcp":{"description":"Turn MCP on (true) or off (false); leave it out to keep it as it is","type":"boolean"}}}},"required":["site"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"address":{"type":"object","properties":{"nlweb":{"type":"boolean","description":"NLWeb: an agent asks a question and gets answers from the site's pages, with sources (/ask)"},"mcp":{"type":"boolean","description":"MCP: assistants (Claude, ChatGPT, …) connect to the business as a server"}},"required":["nlweb","mcp"],"additionalProperties":false,"description":"At the site's agent address: any agent, with no key. NLWeb opens when the Front is first published, unless already switched; MCP stays off until switched on."},"website":{"type":"object","properties":{"nlweb":{"type":"boolean","description":"NLWeb: an agent asks a question and gets answers from the site's pages, with sources (/ask)"},"mcp":{"type":"boolean","description":"MCP: assistants (Claude, ChatGPT, …) connect to the business as a server"}},"required":["nlweb","mcp"],"additionalProperties":false,"description":"On the website itself, through its connection: /ask, and /mcp or the site's own MCP server path. The saved switches: one that is on answers only while websiteAvailability.available is true"},"websiteAvailability":{"type":"object","properties":{"available":{"type":"boolean","description":"true: the website answers each protocol switched on there. false: a prerequisite is missing, so it answers none, and turning one on is refused"},"reason":{"anyOf":[{"type":"string","enum":["not_connected","agent_serving_off","not_live"]},{"type":"null"}],"description":"The first prerequisite missing, checked in this order; null while available. not_connected: the website is not connected now: its connection's status is pending, failed or not_connected (WEBSITE_NOT_CONNECTED). agent_serving_off: Agent Serving is off: the serving mode is off or monitor, and the website answers only in autopilot; switch it on with front.serving.update {\"mode\":\"autopilot\"} (AGENT_SERVING_OFF). not_live: the site's first build is not published yet, so there is no knowledge index to answer from; follow the site's stream until its status is live (SITE_NOT_LIVE)."}},"required":["available","reason"],"additionalProperties":false,"description":"Whether the website answers its protocols now: it needs a connected website, Agent Serving on (mode autopilot) and a live site. A switch on while one is missing stays saved and answers once it returns. The agent address needs neither a connected website nor Agent Serving."},"endpoints":{"type":"object","properties":{"address":{"type":"object","properties":{"nlweb":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The NLWeb endpoint, ending in /ask"},"mcp":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The MCP endpoint: /mcp, or on the website the site's own MCP server path"}},"required":["nlweb","mcp"],"additionalProperties":false,"description":"At the site's agent address"},"website":{"type":"object","properties":{"nlweb":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The NLWeb endpoint, ending in /ask"},"mcp":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The MCP endpoint: /mcp, or on the website the site's own MCP server path"}},"required":["nlweb","mcp"],"additionalProperties":false,"description":"On the website itself, through its connection; null too while the website does not answer (websiteAvailability), even for a protocol switched on"}},"required":["address","website"],"additionalProperties":false,"description":"Where agents reach each protocol while it is on; null while off"},"mcpServerPath":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The path of the site's own MCP server, when one is saved: the website answers MCP there instead of /mcp"}},"required":["address","website","websiteAvailability","endpoints","mcpServerPath"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"request":{"params":["site"],"body":["address","website"]}}}},"/studio/v1/front/sites/{site}/questions":{"get":{"operationId":"front.questions.list","tags":["Front traffic"],"summary":"Read the questions agents asked the site's agent address","description":"Every question agents asked the site's agent address in the window, most asked first (`limit` of them): for each, where it was asked (`sources`), which agents asked it, and how many of its asks the site's pages answered or had nothing for (`notOnSite`). `result=not_on_site` keeps only the questions the pages had nothing for at least once, the gaps worth answering on the website. Also the window's counts, in all and per UTC day: questions asked on every protocol, and those the pages had nothing for; `reads` counts agents that read the address without asking.","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"},{"name":"from","in":"query","required":true,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"First day, inclusive (YYYY-MM-DD, UTC)"},"example":"2026-11-04"},{"name":"to","in":"query","required":true,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Last day, inclusive (YYYY-MM-DD, UTC)"},"example":"2026-11-10"},{"name":"limit","in":"query","required":false,"schema":{"default":20,"description":"How many questions, most asked first","type":"integer","minimum":1,"maximum":100},"example":20},{"name":"result","in":"query","required":false,"schema":{"default":"all","type":"string","enum":["all","not_on_site"],"description":"all: every question asked. not_on_site: only the questions the site's pages had nothing for at least once, the gaps worth answering on the website"},"example":"not_on_site"}],"responses":{"200":{"description":"Read the questions agents asked the site's agent address","content":{"application/json":{"schema":{"type":"object","properties":{"from":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"A UTC day (YYYY-MM-DD)"},"to":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"A UTC day (YYYY-MM-DD)"},"asked":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Questions asked, on every protocol of the agent address: asks an agent sent with text, not Ora's own checks"},"notOnSite":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Questions the site's pages had nothing for"},"reads":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Times agents read the address (its guide, llms.txt, pages) without asking, not Ora's own checks"},"days":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"A UTC day (YYYY-MM-DD)"},"asked":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Questions asked that day, counted like asked"},"notOnSite":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Questions asked that day that the site's pages had nothing for"}},"required":["day","asked","notOnSite"],"additionalProperties":false},"description":"Every UTC day of the window, zero-filled"},"questions":{"type":"array","items":{"type":"object","properties":{"question":{"type":"string","description":"The question as an agent asked it; one of its spellings when asked in several"},"asks":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991,"description":"Times it was asked in the window (in any case, with or without spaces around it), from every source: the answered and notOnSite asks, and those that failed or were cancelled"},"answered":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Asks the site answered: from its pages, or with its own MCP server's tools (own_mcp_server)"},"notOnSite":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Asks the site's pages had nothing for"},"lastAskedAt":{"type":"string","description":"UTC, ISO 8601"},"sources":{"type":"array","items":{"type":"string","enum":["ask","mcp","webmcp","own_mcp_server"],"description":"ask: the agent address's Ask endpoint. mcp: Ora's ask tool over MCP. webmcp: the ask tool the website offers agents in a browser. own_mcp_server: the reason an agent gave when it called the site's own MCP server's tools through Ora"},"description":"Where it was asked"},"agents":{"type":"array","items":{"type":"object","properties":{"visitorId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The agent (GET …/visitors); null for people and unnamed clients"},"operator":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Who runs it; null when Ora cannot tell"}},"required":["visitorId","operator"],"additionalProperties":false},"description":"The agents that asked it (at most 10)"}},"required":["question","asks","answered","notOnSite","lastAskedAt","sources","agents"],"additionalProperties":false},"description":"The questions agents asked in the window, most asked first (at most limit). With result=not_on_site, only those the site's pages had nothing for at least once"}},"required":["from","to","asked","notOnSite","reads","days","questions"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.traffic:read","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_list_questions","title":"Read the questions agents asked the site's agent address","description":"Every question agents asked the site's agent address in the window, most asked first (`limit` of them): for each, where it was asked (`sources`), which agents asked it, and how many of its asks the site's pages answered or had nothing for (`notOnSite`). `result=not_on_site` keeps only the questions the pages had nothing for at least once, the gaps worth answering on the website. Also the window's counts, in all and per UTC day: questions asked on every protocol, and those the pages had nothing for; `reads` counts agents that read the address without asking.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"from":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"First day, inclusive (YYYY-MM-DD, UTC)"},"to":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Last day, inclusive (YYYY-MM-DD, UTC)"},"limit":{"default":20,"description":"How many questions, most asked first","type":"integer","minimum":1,"maximum":100},"result":{"default":"all","type":"string","enum":["all","not_on_site"],"description":"all: every question asked. not_on_site: only the questions the site's pages had nothing for at least once, the gaps worth answering on the website"}},"required":["site","from","to"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"from":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"A UTC day (YYYY-MM-DD)"},"to":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"A UTC day (YYYY-MM-DD)"},"asked":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Questions asked, on every protocol of the agent address: asks an agent sent with text, not Ora's own checks"},"notOnSite":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Questions the site's pages had nothing for"},"reads":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Times agents read the address (its guide, llms.txt, pages) without asking, not Ora's own checks"},"days":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"A UTC day (YYYY-MM-DD)"},"asked":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Questions asked that day, counted like asked"},"notOnSite":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Questions asked that day that the site's pages had nothing for"}},"required":["day","asked","notOnSite"],"additionalProperties":false},"description":"Every UTC day of the window, zero-filled"},"questions":{"type":"array","items":{"type":"object","properties":{"question":{"type":"string","description":"The question as an agent asked it; one of its spellings when asked in several"},"asks":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991,"description":"Times it was asked in the window (in any case, with or without spaces around it), from every source: the answered and notOnSite asks, and those that failed or were cancelled"},"answered":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Asks the site answered: from its pages, or with its own MCP server's tools (own_mcp_server)"},"notOnSite":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Asks the site's pages had nothing for"},"lastAskedAt":{"type":"string","description":"UTC, ISO 8601"},"sources":{"type":"array","items":{"type":"string","enum":["ask","mcp","webmcp","own_mcp_server"],"description":"ask: the agent address's Ask endpoint. mcp: Ora's ask tool over MCP. webmcp: the ask tool the website offers agents in a browser. own_mcp_server: the reason an agent gave when it called the site's own MCP server's tools through Ora"},"description":"Where it was asked"},"agents":{"type":"array","items":{"type":"object","properties":{"visitorId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The agent (GET …/visitors); null for people and unnamed clients"},"operator":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Who runs it; null when Ora cannot tell"}},"required":["visitorId","operator"],"additionalProperties":false},"description":"The agents that asked it (at most 10)"}},"required":["question","asks","answered","notOnSite","lastAskedAt","sources","agents"],"additionalProperties":false},"description":"The questions agents asked in the window, most asked first (at most limit). With result=not_on_site, only those the site's pages had nothing for at least once"}},"required":["from","to","asked","notOnSite","reads","days","questions"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"request":{"params":["site"],"query":["from","to","limit","result"]}}}},"/studio/v1/front/sites/{site}/reader-access":{"get":{"operationId":"front.readerAccess.get","tags":["Front sites"],"summary":"Whether Ora's reader can read the site","description":"The latest check of robots.txt and the home page as Ora's reader (null when none was taken: reading never takes one), and the addresses Ora reads from, for an allow rule in a bot wall.","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"}],"responses":{"200":{"description":"Whether Ora's reader can read the site","content":{"application/json":{"schema":{"type":"object","properties":{"check":{"anyOf":[{"type":"object","properties":{"checkedAt":{"type":"string","description":"UTC, ISO 8601"},"outcome":{"type":"string","enum":["in","challenged","refused","unreachable"],"description":"in: Ora's reader got through; otherwise what stopped it"},"status":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"The HTTP status that decided the outcome; null when nothing answered"},"vendor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The bot protection that answered, when its evidence named one"}},"required":["checkedAt","outcome","status","vendor"],"additionalProperties":false},{"type":"null"}],"description":"The latest check; null when none was taken"},"egressIps":{"type":"array","items":{"type":"string"},"description":"The addresses Ora reads sites from; empty where none are fixed"}},"required":["check","egressIps"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.sites:read","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_get_reader_access","title":"Whether Ora's reader can read the site","description":"The latest check of robots.txt and the home page as Ora's reader (null when none was taken: reading never takes one), and the addresses Ora reads from, for an allow rule in a bot wall.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."}},"required":["site"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"check":{"anyOf":[{"type":"object","properties":{"checkedAt":{"type":"string","description":"UTC, ISO 8601"},"outcome":{"type":"string","enum":["in","challenged","refused","unreachable"],"description":"in: Ora's reader got through; otherwise what stopped it"},"status":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"The HTTP status that decided the outcome; null when nothing answered"},"vendor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The bot protection that answered, when its evidence named one"}},"required":["checkedAt","outcome","status","vendor"],"additionalProperties":false},{"type":"null"}],"description":"The latest check; null when none was taken"},"egressIps":{"type":"array","items":{"type":"string"},"description":"The addresses Ora reads sites from; empty where none are fixed"}},"required":["check","egressIps"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"request":{"params":["site"]}}}},"/studio/v1/front/sites/{site}/reader-access/checks":{"post":{"operationId":"front.readerAccess.check","tags":["Front sites"],"summary":"Check again whether Ora's reader can read the site","description":"Reads robots.txt and the home page as Ora's reader now. When Ora gets in, the site's build starts again (follow the stream). The Front workspace's Check again.","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"},{"name":"Idempotency-Key","in":"header","required":false,"description":"A unique value per logical request (a UUID). A retry with the same key and the same request replays the first answer instead of running again; keys are kept 24 hours.","schema":{"type":"string","minLength":1,"maxLength":255}}],"responses":{"200":{"description":"Check again whether Ora's reader can read the site","content":{"application/json":{"schema":{"type":"object","properties":{"check":{"type":"object","properties":{"checkedAt":{"type":"string","description":"UTC, ISO 8601"},"outcome":{"type":"string","enum":["in","challenged","refused","unreachable"],"description":"in: Ora's reader got through; otherwise what stopped it"},"status":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"The HTTP status that decided the outcome; null when nothing answered"},"vendor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The bot protection that answered, when its evidence named one"}},"required":["checkedAt","outcome","status","vendor"],"additionalProperties":false,"description":"The check just taken"},"egressIps":{"type":"array","items":{"type":"string"},"description":"The addresses Ora reads sites from; empty where none are fixed"},"site":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The site's id. It never changes: use it as `{site}` in the other Front operations."},"hostname":{"type":"string","description":"Canonical: punycode, lower case, no leading www., no trailing dot"},"status":{"type":"string","enum":["building","live","held","failed"],"description":"The site's lifecycle, separate from its builds: live once published (a later build never takes it down); before that, building, held (the build finished and waits to be published) or failed."},"build":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","description":"The build's id"},"kind":{"type":"string","enum":["first","rest_of_site","rebuild"],"description":"first: the site's first build, which reads at most firstBuildPages pages (front.usage.get) so the Front goes live fast. rest_of_site: reads the rest of the site after a first build that filled that allowance, when the plan allows more pages. rebuild: builds the site again (a retry, a rebuild from Studio, or catching up with a bigger plan)."},"state":{"type":"string","enum":["queued","running","live","held","failed","canceled"],"description":"held: finished, waiting to be published"},"step":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The step in progress (find, read, prepare); null once finished"},"pagesFound":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Pages the build found so far, counting no more than it may read. It never goes down."},"pagesRead":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Pages the build has read so far"},"failure":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"The reason as a stable code, such as robots_blocked, bot_protection, unreachable, js_only or no_content"},"detail":{"type":"string","description":"The reason in a sentence to show as is"}},"required":["code","detail"],"additionalProperties":false},{"type":"null"}],"description":"Why the build failed, or why it could not read the whole site"},"startedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the build started; null when unknown"},"finishedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the build ended; null while it is queued or running"}},"required":["id","kind","state","step","pagesFound","pagesRead","failure","startedAt","finishedAt"],"additionalProperties":false},{"type":"null"}],"description":"The site's latest build, running or finished; null when none is on record"},"address":{"anyOf":[{"type":"object","properties":{"name":{"type":"string","description":"The address's name (`acme` in https://acme.<serve-domain>): the site's claimed name, or its id while it has none"},"url":{"type":"string","description":"The agent address (`https://acme.<serve-domain>`): where agents reach the site's Front"},"mcpUrl":{"type":"string","description":"The agent address's MCP endpoint (`url` + `/mcp`), for when MCP is on there (see protocols)"},"llmsTxtUrl":{"type":"string","description":"The site's llms.txt at the agent address (`url` + `/llms.txt`): its index for agents"},"open":{"description":"Whether any protocol (NLWeb, MCP) answers visitors at the address. Derived from `protocols`, so present with front.connect:read only; switch the protocols with front.protocols.update.","type":"boolean"}},"required":["name","url","mcpUrl","llmsTxtUrl"],"additionalProperties":false},{"type":"null"}],"description":"The site's agent address: where agents reach its Front. Null until the site is first published."},"connection":{"description":"Only with front.connect:read","type":"object","properties":{"method":{"anyOf":[{"type":"string","enum":["managed","cloudflare","vercel","nextjs","express","other"]},{"type":"null"}],"description":"How the website's traffic reaches its Front. managed: Ora's CDN in front of the website. cloudflare, vercel, nextjs, express: a transmitter in the website's own stack. other: another stack, with no transmitter yet. Null until a method is saved."},"status":{"type":"string","enum":["not_connected","pending","connected","failed"],"description":"not_connected: no method is saved and Ora never heard from the website. pending: a method is saved and Ora waits for the website's first contact. connected: Ora heard from the website within the last 24 hours. failed: the last check failed, the managed CDN reports an error, or Ora heard nothing for over 24 hours."}},"required":["method","status"],"additionalProperties":false},"protocols":{"description":"Only with front.connect:read: which protocols are on","type":"object","properties":{"address":{"type":"object","properties":{"nlweb":{"type":"boolean","description":"Whether NLWeb is on: agents ask questions and get answers from the site's pages (/ask)"},"mcp":{"type":"boolean","description":"Whether MCP is on: assistants connect to the business as an MCP server"}},"required":["nlweb","mcp"],"additionalProperties":false,"description":"At the site's agent address"},"website":{"type":"object","properties":{"nlweb":{"type":"boolean","description":"Whether NLWeb is on: agents ask questions and get answers from the site's pages (/ask)"},"mcp":{"type":"boolean","description":"Whether MCP is on: assistants connect to the business as an MCP server"}},"required":["nlweb","mcp"],"additionalProperties":false,"description":"On the website itself, through its connection"}},"required":["address","website"],"additionalProperties":false},"serving":{"description":"Only with front.pages:read","type":"object","properties":{"mode":{"type":"string","enum":["off","monitor","autopilot"],"description":"How ora serves agents on the website itself (front.serving.get has the detail). off: ora serves nothing there; the connection only reports agent traffic. monitor: ora prepares everything but serves nothing. autopilot: ora serves agents."}},"required":["mode"],"additionalProperties":false},"nextSteps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["retry_setup","allow_reader","connect_website","verify_traffic","serve_agents","add_action"],"description":"retry_setup: the setup failed; retry it. allow_reader: robots.txt or a bot wall turned Ora's reader away; let it in, then check again. connect_website: connect the website so agents reach its Front. verify_traffic: check that agents' traffic reaches the Front. serve_agents: the website is connected; switch Agent Serving on (mode autopilot), the app's last setup step, which for a new site also turns on Ask, MCP, intents and Markdown for agents. add_action: add an action agents can take for your customers."},"done":{"type":"boolean","description":"Whether the step is done. connect_website, verify_traffic, serve_agents and add_action stay listed once done."},"title":{"type":"string","description":"The step, in a sentence to show as is"},"operation":{"type":"string","description":"The operation id that performs the step"}},"required":["id","done","title","operation"],"additionalProperties":false},"description":"What the site needs next, in the order a person meets them. Only steps of areas the caller can read are listed."},"version":{"type":"string","minLength":1,"description":"Monotonically increasing (compare as numbers); orders the site's snapshots and stream events"},"createdAt":{"type":"string","description":"UTC, ISO 8601"},"streamUrl":{"type":"string","description":"The site's status stream (GET, text/event-stream)"}},"required":["id","hostname","status","build","address","nextSteps","version","createdAt","streamUrl"],"additionalProperties":false,"description":"The site after the check. When a wall had stopped its build and Ora's reader now got in, its build started again."}},"required":["check","egressIps","site"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"The Idempotency-Key was used with a different request (IDEMPOTENCY_KEY_REUSED), or its first request is still running (IDEMPOTENCY_IN_PROGRESS: retry with the same key).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.sites:write","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-idempotent":true,"x-ora-mcp-tool":{"name":"front_check_reader_access","title":"Check again whether Ora's reader can read the site","description":"Reads robots.txt and the home page as Ora's reader now. When Ora gets in, the site's build starts again (follow the stream). The Front workspace's Check again.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."}},"required":["site"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"check":{"type":"object","properties":{"checkedAt":{"type":"string","description":"UTC, ISO 8601"},"outcome":{"type":"string","enum":["in","challenged","refused","unreachable"],"description":"in: Ora's reader got through; otherwise what stopped it"},"status":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"The HTTP status that decided the outcome; null when nothing answered"},"vendor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The bot protection that answered, when its evidence named one"}},"required":["checkedAt","outcome","status","vendor"],"additionalProperties":false,"description":"The check just taken"},"egressIps":{"type":"array","items":{"type":"string"},"description":"The addresses Ora reads sites from; empty where none are fixed"},"site":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The site's id. It never changes: use it as `{site}` in the other Front operations."},"hostname":{"type":"string","description":"Canonical: punycode, lower case, no leading www., no trailing dot"},"status":{"type":"string","enum":["building","live","held","failed"],"description":"The site's lifecycle, separate from its builds: live once published (a later build never takes it down); before that, building, held (the build finished and waits to be published) or failed."},"build":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","description":"The build's id"},"kind":{"type":"string","enum":["first","rest_of_site","rebuild"],"description":"first: the site's first build, which reads at most firstBuildPages pages (front.usage.get) so the Front goes live fast. rest_of_site: reads the rest of the site after a first build that filled that allowance, when the plan allows more pages. rebuild: builds the site again (a retry, a rebuild from Studio, or catching up with a bigger plan)."},"state":{"type":"string","enum":["queued","running","live","held","failed","canceled"],"description":"held: finished, waiting to be published"},"step":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The step in progress (find, read, prepare); null once finished"},"pagesFound":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Pages the build found so far, counting no more than it may read. It never goes down."},"pagesRead":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Pages the build has read so far"},"failure":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"The reason as a stable code, such as robots_blocked, bot_protection, unreachable, js_only or no_content"},"detail":{"type":"string","description":"The reason in a sentence to show as is"}},"required":["code","detail"],"additionalProperties":false},{"type":"null"}],"description":"Why the build failed, or why it could not read the whole site"},"startedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the build started; null when unknown"},"finishedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the build ended; null while it is queued or running"}},"required":["id","kind","state","step","pagesFound","pagesRead","failure","startedAt","finishedAt"],"additionalProperties":false},{"type":"null"}],"description":"The site's latest build, running or finished; null when none is on record"},"address":{"anyOf":[{"type":"object","properties":{"name":{"type":"string","description":"The address's name (`acme` in https://acme.<serve-domain>): the site's claimed name, or its id while it has none"},"url":{"type":"string","description":"The agent address (`https://acme.<serve-domain>`): where agents reach the site's Front"},"mcpUrl":{"type":"string","description":"The agent address's MCP endpoint (`url` + `/mcp`), for when MCP is on there (see protocols)"},"llmsTxtUrl":{"type":"string","description":"The site's llms.txt at the agent address (`url` + `/llms.txt`): its index for agents"},"open":{"description":"Whether any protocol (NLWeb, MCP) answers visitors at the address. Derived from `protocols`, so present with front.connect:read only; switch the protocols with front.protocols.update.","type":"boolean"}},"required":["name","url","mcpUrl","llmsTxtUrl"],"additionalProperties":false},{"type":"null"}],"description":"The site's agent address: where agents reach its Front. Null until the site is first published."},"connection":{"description":"Only with front.connect:read","type":"object","properties":{"method":{"anyOf":[{"type":"string","enum":["managed","cloudflare","vercel","nextjs","express","other"]},{"type":"null"}],"description":"How the website's traffic reaches its Front. managed: Ora's CDN in front of the website. cloudflare, vercel, nextjs, express: a transmitter in the website's own stack. other: another stack, with no transmitter yet. Null until a method is saved."},"status":{"type":"string","enum":["not_connected","pending","connected","failed"],"description":"not_connected: no method is saved and Ora never heard from the website. pending: a method is saved and Ora waits for the website's first contact. connected: Ora heard from the website within the last 24 hours. failed: the last check failed, the managed CDN reports an error, or Ora heard nothing for over 24 hours."}},"required":["method","status"],"additionalProperties":false},"protocols":{"description":"Only with front.connect:read: which protocols are on","type":"object","properties":{"address":{"type":"object","properties":{"nlweb":{"type":"boolean","description":"Whether NLWeb is on: agents ask questions and get answers from the site's pages (/ask)"},"mcp":{"type":"boolean","description":"Whether MCP is on: assistants connect to the business as an MCP server"}},"required":["nlweb","mcp"],"additionalProperties":false,"description":"At the site's agent address"},"website":{"type":"object","properties":{"nlweb":{"type":"boolean","description":"Whether NLWeb is on: agents ask questions and get answers from the site's pages (/ask)"},"mcp":{"type":"boolean","description":"Whether MCP is on: assistants connect to the business as an MCP server"}},"required":["nlweb","mcp"],"additionalProperties":false,"description":"On the website itself, through its connection"}},"required":["address","website"],"additionalProperties":false},"serving":{"description":"Only with front.pages:read","type":"object","properties":{"mode":{"type":"string","enum":["off","monitor","autopilot"],"description":"How ora serves agents on the website itself (front.serving.get has the detail). off: ora serves nothing there; the connection only reports agent traffic. monitor: ora prepares everything but serves nothing. autopilot: ora serves agents."}},"required":["mode"],"additionalProperties":false},"nextSteps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["retry_setup","allow_reader","connect_website","verify_traffic","serve_agents","add_action"],"description":"retry_setup: the setup failed; retry it. allow_reader: robots.txt or a bot wall turned Ora's reader away; let it in, then check again. connect_website: connect the website so agents reach its Front. verify_traffic: check that agents' traffic reaches the Front. serve_agents: the website is connected; switch Agent Serving on (mode autopilot), the app's last setup step, which for a new site also turns on Ask, MCP, intents and Markdown for agents. add_action: add an action agents can take for your customers."},"done":{"type":"boolean","description":"Whether the step is done. connect_website, verify_traffic, serve_agents and add_action stay listed once done."},"title":{"type":"string","description":"The step, in a sentence to show as is"},"operation":{"type":"string","description":"The operation id that performs the step"}},"required":["id","done","title","operation"],"additionalProperties":false},"description":"What the site needs next, in the order a person meets them. Only steps of areas the caller can read are listed."},"version":{"type":"string","minLength":1,"description":"Monotonically increasing (compare as numbers); orders the site's snapshots and stream events"},"createdAt":{"type":"string","description":"UTC, ISO 8601"},"streamUrl":{"type":"string","description":"The site's status stream (GET, text/event-stream)"}},"required":["id","hostname","status","build","address","nextSteps","version","createdAt","streamUrl"],"additionalProperties":false,"description":"The site after the check. When a wall had stopped its build and Ora's reader now got in, its build started again."}},"required":["check","egressIps","site"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true},"request":{"params":["site"]}}}},"/studio/v1/front/sites/{site}/requests":{"get":{"operationId":"front.requests.list","tags":["Front actions"],"summary":"List the requests agents made","description":"What agents sent through the site's request actions for the people they act for, newest first: which action, which agent, what the person submitted (`fields`) and whether it was handled. `status=open` lists what waits on you; `actionId` one action's. A link action hands the person a page and keeps nothing, so it lists no requests. Page with `cursor` and `limit`. `request.received` on the site's stream says when to read it again.","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"},{"name":"cursor","in":"query","required":false,"schema":{"description":"Where this page starts: the previous page's `nextCursor`. Leave it out for the first page.","type":"string","minLength":1,"maxLength":500}},{"name":"limit","in":"query","required":false,"schema":{"default":50,"description":"The most items one page holds: 1 to 200, 50 when left out.","type":"integer","minimum":1,"maximum":200}},{"name":"status","in":"query","required":false,"schema":{"description":"Only requests with this status. open: it waits on you. handled: you answered it, or your webhook took it.","type":"string","enum":["open","handled"]},"example":"open"},{"name":"actionId","in":"query","required":false,"schema":{"description":"Only the requests that came through this action","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"List the requests agents made","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The request's id: send it as requestId to mark the request handled or open"},"actionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The request action it came through (it may since have been deleted)"},"actionName":{"type":"string","description":"The name the agent called"},"actionTitle":{"type":"string","description":"The action's title when the request came in"},"agent":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The agent that made it, when it said (ChatGPT, Claude, a user agent)"},"status":{"type":"string","enum":["open","handled"],"description":"open: waits on you. handled: you answered it, or your webhook took it"},"receivedAt":{"type":"string","description":"UTC, ISO 8601"},"handledAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When it was handled (you marked it, or your webhook took it); null while open"},"fields":{"description":"What the person submitted, by field name. Only with front.requests:read","type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["id","actionId","actionName","actionTitle","agent","status","receivedAt","handledAt"],"additionalProperties":false},"description":"This page's items."},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Send it as `cursor` to read the next page. Null on the last page."}},"required":["items","nextCursor"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.requests:read","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_list_requests","title":"List the requests agents made","description":"What agents sent through the site's request actions for the people they act for, newest first: which action, which agent, what the person submitted (`fields`) and whether it was handled. `status=open` lists what waits on you; `actionId` one action's. A link action hands the person a page and keeps nothing, so it lists no requests. Page with `cursor` and `limit`. `request.received` on the site's stream says when to read it again.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"cursor":{"description":"Where this page starts: the previous page's `nextCursor`. Leave it out for the first page.","type":"string","minLength":1,"maxLength":500},"limit":{"default":50,"description":"The most items one page holds: 1 to 200, 50 when left out.","type":"integer","minimum":1,"maximum":200},"status":{"description":"Only requests with this status. open: it waits on you. handled: you answered it, or your webhook took it.","type":"string","enum":["open","handled"]},"actionId":{"description":"Only the requests that came through this action","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["site"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The request's id: send it as requestId to mark the request handled or open"},"actionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The request action it came through (it may since have been deleted)"},"actionName":{"type":"string","description":"The name the agent called"},"actionTitle":{"type":"string","description":"The action's title when the request came in"},"agent":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The agent that made it, when it said (ChatGPT, Claude, a user agent)"},"status":{"type":"string","enum":["open","handled"],"description":"open: waits on you. handled: you answered it, or your webhook took it"},"receivedAt":{"type":"string","description":"UTC, ISO 8601"},"handledAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When it was handled (you marked it, or your webhook took it); null while open"},"fields":{"description":"What the person submitted, by field name. Only with front.requests:read","type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["id","actionId","actionName","actionTitle","agent","status","receivedAt","handledAt"],"additionalProperties":false},"description":"This page's items."},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Send it as `cursor` to read the next page. Null on the last page."}},"required":["items","nextCursor"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"request":{"params":["site"],"query":["cursor","limit","status","actionId"]}}}},"/studio/v1/front/sites/{site}/requests/{requestId}":{"patch":{"operationId":"front.requests.update","tags":["Front actions"],"summary":"Mark a request handled, or open again","description":"JSON Merge Patch: `status: handled` once you answered the person, `open` to keep it waiting. Safe to repeat. Answers the request; `fields` only with front.requests:read.","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"},{"name":"requestId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The request's id: its `id` in the site's request list."},"example":"2e6a9c13-7f4b-4d2a-8e5c-1b9f3d7a6c48"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["open","handled"],"description":"handled: you answered the person, so it no longer waits on you. open: it waits on you again."}},"required":["status"]},"example":{"status":"handled"}},"application/merge-patch+json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["open","handled"],"description":"handled: you answered the person, so it no longer waits on you. open: it waits on you again."}},"required":["status"]},"example":{"status":"handled"}}}},"responses":{"200":{"description":"Mark a request handled, or open again","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The request's id: send it as requestId to mark the request handled or open"},"actionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The request action it came through (it may since have been deleted)"},"actionName":{"type":"string","description":"The name the agent called"},"actionTitle":{"type":"string","description":"The action's title when the request came in"},"agent":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The agent that made it, when it said (ChatGPT, Claude, a user agent)"},"status":{"type":"string","enum":["open","handled"],"description":"open: waits on you. handled: you answered it, or your webhook took it"},"receivedAt":{"type":"string","description":"UTC, ISO 8601"},"handledAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When it was handled (you marked it, or your webhook took it); null while open"},"fields":{"description":"What the person submitted, by field name. Only with front.requests:read","type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["id","actionId","actionName","actionTitle","agent","status","receivedAt","handledAt"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.requests:write","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_mark_request_handled","title":"Mark a request handled, or open again","description":"JSON Merge Patch: `status: handled` once you answered the person, `open` to keep it waiting. Safe to repeat. Answers the request; `fields` only with front.requests:read.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"requestId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The request's id: its `id` in the site's request list."},"status":{"type":"string","enum":["open","handled"],"description":"handled: you answered the person, so it no longer waits on you. open: it waits on you again."}},"required":["site","requestId","status"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The request's id: send it as requestId to mark the request handled or open"},"actionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The request action it came through (it may since have been deleted)"},"actionName":{"type":"string","description":"The name the agent called"},"actionTitle":{"type":"string","description":"The action's title when the request came in"},"agent":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The agent that made it, when it said (ChatGPT, Claude, a user agent)"},"status":{"type":"string","enum":["open","handled"],"description":"open: waits on you. handled: you answered it, or your webhook took it"},"receivedAt":{"type":"string","description":"UTC, ISO 8601"},"handledAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When it was handled (you marked it, or your webhook took it); null while open"},"fields":{"description":"What the person submitted, by field name. Only with front.requests:read","type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["id","actionId","actionName","actionTitle","agent","status","receivedAt","handledAt"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"request":{"params":["site","requestId"],"body":["status"]}}}},"/studio/v1/front/sites/{site}/retry":{"post":{"operationId":"front.sites.retry","tags":["Front sites"],"summary":"Retry a failed setup","description":"Starts the site's build again after its setup failed, as the Front workspace's Try again does. Only a site whose status is `failed` can be retried (409 SETUP_NOT_FAILED otherwise); follow the stream.","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"},{"name":"Idempotency-Key","in":"header","required":false,"description":"A unique value per logical request (a UUID). A retry with the same key and the same request replays the first answer instead of running again; keys are kept 24 hours.","schema":{"type":"string","minLength":1,"maxLength":255}}],"responses":{"202":{"description":"Retry a failed setup","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The site's id. It never changes: use it as `{site}` in the other Front operations."},"hostname":{"type":"string","description":"Canonical: punycode, lower case, no leading www., no trailing dot"},"status":{"type":"string","enum":["building","live","held","failed"],"description":"The site's lifecycle, separate from its builds: live once published (a later build never takes it down); before that, building, held (the build finished and waits to be published) or failed."},"build":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","description":"The build's id"},"kind":{"type":"string","enum":["first","rest_of_site","rebuild"],"description":"first: the site's first build, which reads at most firstBuildPages pages (front.usage.get) so the Front goes live fast. rest_of_site: reads the rest of the site after a first build that filled that allowance, when the plan allows more pages. rebuild: builds the site again (a retry, a rebuild from Studio, or catching up with a bigger plan)."},"state":{"type":"string","enum":["queued","running","live","held","failed","canceled"],"description":"held: finished, waiting to be published"},"step":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The step in progress (find, read, prepare); null once finished"},"pagesFound":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Pages the build found so far, counting no more than it may read. It never goes down."},"pagesRead":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Pages the build has read so far"},"failure":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"The reason as a stable code, such as robots_blocked, bot_protection, unreachable, js_only or no_content"},"detail":{"type":"string","description":"The reason in a sentence to show as is"}},"required":["code","detail"],"additionalProperties":false},{"type":"null"}],"description":"Why the build failed, or why it could not read the whole site"},"startedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the build started; null when unknown"},"finishedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the build ended; null while it is queued or running"}},"required":["id","kind","state","step","pagesFound","pagesRead","failure","startedAt","finishedAt"],"additionalProperties":false},{"type":"null"}],"description":"The site's latest build, running or finished; null when none is on record"},"address":{"anyOf":[{"type":"object","properties":{"name":{"type":"string","description":"The address's name (`acme` in https://acme.<serve-domain>): the site's claimed name, or its id while it has none"},"url":{"type":"string","description":"The agent address (`https://acme.<serve-domain>`): where agents reach the site's Front"},"mcpUrl":{"type":"string","description":"The agent address's MCP endpoint (`url` + `/mcp`), for when MCP is on there (see protocols)"},"llmsTxtUrl":{"type":"string","description":"The site's llms.txt at the agent address (`url` + `/llms.txt`): its index for agents"},"open":{"description":"Whether any protocol (NLWeb, MCP) answers visitors at the address. Derived from `protocols`, so present with front.connect:read only; switch the protocols with front.protocols.update.","type":"boolean"}},"required":["name","url","mcpUrl","llmsTxtUrl"],"additionalProperties":false},{"type":"null"}],"description":"The site's agent address: where agents reach its Front. Null until the site is first published."},"connection":{"description":"Only with front.connect:read","type":"object","properties":{"method":{"anyOf":[{"type":"string","enum":["managed","cloudflare","vercel","nextjs","express","other"]},{"type":"null"}],"description":"How the website's traffic reaches its Front. managed: Ora's CDN in front of the website. cloudflare, vercel, nextjs, express: a transmitter in the website's own stack. other: another stack, with no transmitter yet. Null until a method is saved."},"status":{"type":"string","enum":["not_connected","pending","connected","failed"],"description":"not_connected: no method is saved and Ora never heard from the website. pending: a method is saved and Ora waits for the website's first contact. connected: Ora heard from the website within the last 24 hours. failed: the last check failed, the managed CDN reports an error, or Ora heard nothing for over 24 hours."}},"required":["method","status"],"additionalProperties":false},"protocols":{"description":"Only with front.connect:read: which protocols are on","type":"object","properties":{"address":{"type":"object","properties":{"nlweb":{"type":"boolean","description":"Whether NLWeb is on: agents ask questions and get answers from the site's pages (/ask)"},"mcp":{"type":"boolean","description":"Whether MCP is on: assistants connect to the business as an MCP server"}},"required":["nlweb","mcp"],"additionalProperties":false,"description":"At the site's agent address"},"website":{"type":"object","properties":{"nlweb":{"type":"boolean","description":"Whether NLWeb is on: agents ask questions and get answers from the site's pages (/ask)"},"mcp":{"type":"boolean","description":"Whether MCP is on: assistants connect to the business as an MCP server"}},"required":["nlweb","mcp"],"additionalProperties":false,"description":"On the website itself, through its connection"}},"required":["address","website"],"additionalProperties":false},"serving":{"description":"Only with front.pages:read","type":"object","properties":{"mode":{"type":"string","enum":["off","monitor","autopilot"],"description":"How ora serves agents on the website itself (front.serving.get has the detail). off: ora serves nothing there; the connection only reports agent traffic. monitor: ora prepares everything but serves nothing. autopilot: ora serves agents."}},"required":["mode"],"additionalProperties":false},"nextSteps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["retry_setup","allow_reader","connect_website","verify_traffic","serve_agents","add_action"],"description":"retry_setup: the setup failed; retry it. allow_reader: robots.txt or a bot wall turned Ora's reader away; let it in, then check again. connect_website: connect the website so agents reach its Front. verify_traffic: check that agents' traffic reaches the Front. serve_agents: the website is connected; switch Agent Serving on (mode autopilot), the app's last setup step, which for a new site also turns on Ask, MCP, intents and Markdown for agents. add_action: add an action agents can take for your customers."},"done":{"type":"boolean","description":"Whether the step is done. connect_website, verify_traffic, serve_agents and add_action stay listed once done."},"title":{"type":"string","description":"The step, in a sentence to show as is"},"operation":{"type":"string","description":"The operation id that performs the step"}},"required":["id","done","title","operation"],"additionalProperties":false},"description":"What the site needs next, in the order a person meets them. Only steps of areas the caller can read are listed."},"version":{"type":"string","minLength":1,"description":"Monotonically increasing (compare as numbers); orders the site's snapshots and stream events"},"createdAt":{"type":"string","description":"UTC, ISO 8601"},"streamUrl":{"type":"string","description":"The site's status stream (GET, text/event-stream)"}},"required":["id","hostname","status","build","address","nextSteps","version","createdAt","streamUrl"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"402":{"description":"The plan's page limit is reached (LIMIT_EXCEEDED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"The site's setup has not failed (SETUP_NOT_FAILED), or the Idempotency-Key conflicts (IDEMPOTENCY_KEY_REUSED, IDEMPOTENCY_IN_PROGRESS).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.sites:write","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-idempotent":true,"x-ora-mcp-tool":{"name":"front_retry_setup","title":"Retry a failed setup","description":"Starts the site's build again after its setup failed, as the Front workspace's Try again does. Only a site whose status is `failed` can be retried (409 SETUP_NOT_FAILED otherwise); follow the stream.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."}},"required":["site"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The site's id. It never changes: use it as `{site}` in the other Front operations."},"hostname":{"type":"string","description":"Canonical: punycode, lower case, no leading www., no trailing dot"},"status":{"type":"string","enum":["building","live","held","failed"],"description":"The site's lifecycle, separate from its builds: live once published (a later build never takes it down); before that, building, held (the build finished and waits to be published) or failed."},"build":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","description":"The build's id"},"kind":{"type":"string","enum":["first","rest_of_site","rebuild"],"description":"first: the site's first build, which reads at most firstBuildPages pages (front.usage.get) so the Front goes live fast. rest_of_site: reads the rest of the site after a first build that filled that allowance, when the plan allows more pages. rebuild: builds the site again (a retry, a rebuild from Studio, or catching up with a bigger plan)."},"state":{"type":"string","enum":["queued","running","live","held","failed","canceled"],"description":"held: finished, waiting to be published"},"step":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The step in progress (find, read, prepare); null once finished"},"pagesFound":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Pages the build found so far, counting no more than it may read. It never goes down."},"pagesRead":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Pages the build has read so far"},"failure":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"The reason as a stable code, such as robots_blocked, bot_protection, unreachable, js_only or no_content"},"detail":{"type":"string","description":"The reason in a sentence to show as is"}},"required":["code","detail"],"additionalProperties":false},{"type":"null"}],"description":"Why the build failed, or why it could not read the whole site"},"startedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the build started; null when unknown"},"finishedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the build ended; null while it is queued or running"}},"required":["id","kind","state","step","pagesFound","pagesRead","failure","startedAt","finishedAt"],"additionalProperties":false},{"type":"null"}],"description":"The site's latest build, running or finished; null when none is on record"},"address":{"anyOf":[{"type":"object","properties":{"name":{"type":"string","description":"The address's name (`acme` in https://acme.<serve-domain>): the site's claimed name, or its id while it has none"},"url":{"type":"string","description":"The agent address (`https://acme.<serve-domain>`): where agents reach the site's Front"},"mcpUrl":{"type":"string","description":"The agent address's MCP endpoint (`url` + `/mcp`), for when MCP is on there (see protocols)"},"llmsTxtUrl":{"type":"string","description":"The site's llms.txt at the agent address (`url` + `/llms.txt`): its index for agents"},"open":{"description":"Whether any protocol (NLWeb, MCP) answers visitors at the address. Derived from `protocols`, so present with front.connect:read only; switch the protocols with front.protocols.update.","type":"boolean"}},"required":["name","url","mcpUrl","llmsTxtUrl"],"additionalProperties":false},{"type":"null"}],"description":"The site's agent address: where agents reach its Front. Null until the site is first published."},"connection":{"description":"Only with front.connect:read","type":"object","properties":{"method":{"anyOf":[{"type":"string","enum":["managed","cloudflare","vercel","nextjs","express","other"]},{"type":"null"}],"description":"How the website's traffic reaches its Front. managed: Ora's CDN in front of the website. cloudflare, vercel, nextjs, express: a transmitter in the website's own stack. other: another stack, with no transmitter yet. Null until a method is saved."},"status":{"type":"string","enum":["not_connected","pending","connected","failed"],"description":"not_connected: no method is saved and Ora never heard from the website. pending: a method is saved and Ora waits for the website's first contact. connected: Ora heard from the website within the last 24 hours. failed: the last check failed, the managed CDN reports an error, or Ora heard nothing for over 24 hours."}},"required":["method","status"],"additionalProperties":false},"protocols":{"description":"Only with front.connect:read: which protocols are on","type":"object","properties":{"address":{"type":"object","properties":{"nlweb":{"type":"boolean","description":"Whether NLWeb is on: agents ask questions and get answers from the site's pages (/ask)"},"mcp":{"type":"boolean","description":"Whether MCP is on: assistants connect to the business as an MCP server"}},"required":["nlweb","mcp"],"additionalProperties":false,"description":"At the site's agent address"},"website":{"type":"object","properties":{"nlweb":{"type":"boolean","description":"Whether NLWeb is on: agents ask questions and get answers from the site's pages (/ask)"},"mcp":{"type":"boolean","description":"Whether MCP is on: assistants connect to the business as an MCP server"}},"required":["nlweb","mcp"],"additionalProperties":false,"description":"On the website itself, through its connection"}},"required":["address","website"],"additionalProperties":false},"serving":{"description":"Only with front.pages:read","type":"object","properties":{"mode":{"type":"string","enum":["off","monitor","autopilot"],"description":"How ora serves agents on the website itself (front.serving.get has the detail). off: ora serves nothing there; the connection only reports agent traffic. monitor: ora prepares everything but serves nothing. autopilot: ora serves agents."}},"required":["mode"],"additionalProperties":false},"nextSteps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["retry_setup","allow_reader","connect_website","verify_traffic","serve_agents","add_action"],"description":"retry_setup: the setup failed; retry it. allow_reader: robots.txt or a bot wall turned Ora's reader away; let it in, then check again. connect_website: connect the website so agents reach its Front. verify_traffic: check that agents' traffic reaches the Front. serve_agents: the website is connected; switch Agent Serving on (mode autopilot), the app's last setup step, which for a new site also turns on Ask, MCP, intents and Markdown for agents. add_action: add an action agents can take for your customers."},"done":{"type":"boolean","description":"Whether the step is done. connect_website, verify_traffic, serve_agents and add_action stay listed once done."},"title":{"type":"string","description":"The step, in a sentence to show as is"},"operation":{"type":"string","description":"The operation id that performs the step"}},"required":["id","done","title","operation"],"additionalProperties":false},"description":"What the site needs next, in the order a person meets them. Only steps of areas the caller can read are listed."},"version":{"type":"string","minLength":1,"description":"Monotonically increasing (compare as numbers); orders the site's snapshots and stream events"},"createdAt":{"type":"string","description":"UTC, ISO 8601"},"streamUrl":{"type":"string","description":"The site's status stream (GET, text/event-stream)"}},"required":["id","hostname","status","build","address","nextSteps","version","createdAt","streamUrl"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true},"request":{"params":["site"]}}}},"/studio/v1/front/sites/{site}/score":{"get":{"operationId":"front.score.get","tags":["Front sites"],"summary":"Read the site's Ora Score","description":"How well agents can use the website (0 to 100), on its own and through its Front.","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"}],"responses":{"200":{"description":"Read the site's Ora Score","content":{"application/json":{"schema":{"type":"object","properties":{"value":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The website's own score, 0 to 100; null until scored"},"grade":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The website's letter grade, from A+ (best) to F; null until scored"},"withFront":{"anyOf":[{"type":"object","properties":{"value":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The score through the Front, 0 to 100"},"grade":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Its letter grade, from A+ (best) to F"}},"required":["value","grade"],"additionalProperties":false},{"type":"null"}],"description":"The score agents get through the site's Front; null until it has an address"},"checkedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the website was last scored; null until scored"}},"required":["value","grade","withFront","checkedAt"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.sites:read","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_get_score","title":"Read the site's Ora Score","description":"How well agents can use the website (0 to 100), on its own and through its Front.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."}},"required":["site"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"value":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The website's own score, 0 to 100; null until scored"},"grade":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The website's letter grade, from A+ (best) to F; null until scored"},"withFront":{"anyOf":[{"type":"object","properties":{"value":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The score through the Front, 0 to 100"},"grade":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Its letter grade, from A+ (best) to F"}},"required":["value","grade"],"additionalProperties":false},{"type":"null"}],"description":"The score agents get through the site's Front; null until it has an address"},"checkedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the website was last scored; null until scored"}},"required":["value","grade","withFront","checkedAt"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"request":{"params":["site"]}}}},"/studio/v1/front/sites/{site}/serving":{"get":{"operationId":"front.serving.get","tags":["Front pages"],"summary":"Read how ora serves agents on the website","description":"The site's serving as one setting: the mode (off, monitor or autopilot), Markdown for pages, and the agent files. Reaching agents on the website needs a connected website; a change reaches its edge within `propagationSeconds`.","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"}],"responses":{"200":{"description":"Read how ora serves agents on the website","content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","enum":["off","monitor","autopilot"],"description":"off (the default): ora serves nothing on the website; the connection only reports agent traffic. monitor: ora prepares everything, so previews show what it would serve, but serves nothing. autopilot: ora serves agents (Agent Serving, in the app)."},"markdown":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Give agents a Markdown version of every page when they ask for one: at <page>.md and through llms.txt"},"negotiate":{"type":"boolean","description":"Also give it to recognized agents at the page's own URL (people always get the page). Needs enabled."}},"required":["enabled","negotiate"],"additionalProperties":false,"description":"The Markdown version of every page: whether agents get it, and where"},"agentFiles":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Serve the agent files (llms.txt, robots.txt, …) at their paths on the website; off leaves those paths to the website. ora keeps the files current either way."}},"required":["enabled"],"additionalProperties":false,"description":"The agent files switch: whether ora serves llms.txt, robots.txt and the rest on the website"},"propagationSeconds":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"How long, at most, a change takes to reach the website's edge"}},"required":["mode","markdown","agentFiles","propagationSeconds"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.pages:read","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_get_serving","title":"Read how ora serves agents on the website","description":"The site's serving as one setting: the mode (off, monitor or autopilot), Markdown for pages, and the agent files. Reaching agents on the website needs a connected website; a change reaches its edge within `propagationSeconds`.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."}},"required":["site"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["off","monitor","autopilot"],"description":"off (the default): ora serves nothing on the website; the connection only reports agent traffic. monitor: ora prepares everything, so previews show what it would serve, but serves nothing. autopilot: ora serves agents (Agent Serving, in the app)."},"markdown":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Give agents a Markdown version of every page when they ask for one: at <page>.md and through llms.txt"},"negotiate":{"type":"boolean","description":"Also give it to recognized agents at the page's own URL (people always get the page). Needs enabled."}},"required":["enabled","negotiate"],"additionalProperties":false,"description":"The Markdown version of every page: whether agents get it, and where"},"agentFiles":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Serve the agent files (llms.txt, robots.txt, …) at their paths on the website; off leaves those paths to the website. ora keeps the files current either way."}},"required":["enabled"],"additionalProperties":false,"description":"The agent files switch: whether ora serves llms.txt, robots.txt and the rest on the website"},"propagationSeconds":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"How long, at most, a change takes to reach the website's edge"}},"required":["mode","markdown","agentFiles","propagationSeconds"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"request":{"params":["site"]}}},"patch":{"operationId":"front.serving.update","tags":["Front pages"],"summary":"Change how ora serves agents on the website","description":"A JSON Merge Patch of the site's serving: send only what changes. autopilot puts ora in front of agents on the website at once; turning on monitor or autopilot makes the agent files too. Turning Markdown off turns negotiation off with it. A new site gets Agent Serving's defaults on its first switch to autopilot, as the app's setup does: Ask, MCP (unless the site has its own MCP server, whose tools wait for review), intents and Markdown at the page's own URL, each only where nothing was saved. A site that existed before them is never written.","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","enum":["off","monitor","autopilot"],"description":"off (the default): ora serves nothing on the website; the connection only reports agent traffic. monitor: ora prepares everything, so previews show what it would serve, but serves nothing. autopilot: ora serves agents (Agent Serving, in the app)."},"markdown":{"description":"The Markdown switches to change; a member left out keeps its value. Turning enabled off turns negotiate off too","type":"object","properties":{"enabled":{"type":"boolean","description":"Give agents a Markdown version of every page when they ask for one: at <page>.md and through llms.txt"},"negotiate":{"type":"boolean","description":"Also give it to recognized agents at the page's own URL (people always get the page). Needs enabled."}}},"agentFiles":{"description":"The agent files switch to change; left out, it keeps its value","type":"object","properties":{"enabled":{"type":"boolean","description":"Serve the agent files (llms.txt, robots.txt, …) at their paths on the website; off leaves those paths to the website. ora keeps the files current either way."}}}}},"example":{"mode":"autopilot"}},"application/merge-patch+json":{"schema":{"type":"object","properties":{"mode":{"type":"string","enum":["off","monitor","autopilot"],"description":"off (the default): ora serves nothing on the website; the connection only reports agent traffic. monitor: ora prepares everything, so previews show what it would serve, but serves nothing. autopilot: ora serves agents (Agent Serving, in the app)."},"markdown":{"description":"The Markdown switches to change; a member left out keeps its value. Turning enabled off turns negotiate off too","type":"object","properties":{"enabled":{"type":"boolean","description":"Give agents a Markdown version of every page when they ask for one: at <page>.md and through llms.txt"},"negotiate":{"type":"boolean","description":"Also give it to recognized agents at the page's own URL (people always get the page). Needs enabled."}}},"agentFiles":{"description":"The agent files switch to change; left out, it keeps its value","type":"object","properties":{"enabled":{"type":"boolean","description":"Serve the agent files (llms.txt, robots.txt, …) at their paths on the website; off leaves those paths to the website. ora keeps the files current either way."}}}}},"example":{"mode":"autopilot"}}}},"responses":{"200":{"description":"Change how ora serves agents on the website","content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","enum":["off","monitor","autopilot"],"description":"off (the default): ora serves nothing on the website; the connection only reports agent traffic. monitor: ora prepares everything, so previews show what it would serve, but serves nothing. autopilot: ora serves agents (Agent Serving, in the app)."},"markdown":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Give agents a Markdown version of every page when they ask for one: at <page>.md and through llms.txt"},"negotiate":{"type":"boolean","description":"Also give it to recognized agents at the page's own URL (people always get the page). Needs enabled."}},"required":["enabled","negotiate"],"additionalProperties":false,"description":"The Markdown version of every page: whether agents get it, and where"},"agentFiles":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Serve the agent files (llms.txt, robots.txt, …) at their paths on the website; off leaves those paths to the website. ora keeps the files current either way."}},"required":["enabled"],"additionalProperties":false,"description":"The agent files switch: whether ora serves llms.txt, robots.txt and the rest on the website"},"propagationSeconds":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"How long, at most, a change takes to reach the website's edge"}},"required":["mode","markdown","agentFiles","propagationSeconds"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"ora does not serve this site yet and the change has no `mode` (SERVING_NOT_SET_UP): send `mode` with the first change (off changes nothing else).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.pages:write","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_set_serving_mode","title":"Change how ora serves agents on the website","description":"A JSON Merge Patch of the site's serving: send only what changes. autopilot puts ora in front of agents on the website at once; turning on monitor or autopilot makes the agent files too. Turning Markdown off turns negotiation off with it. A new site gets Agent Serving's defaults on its first switch to autopilot, as the app's setup does: Ask, MCP (unless the site has its own MCP server, whose tools wait for review), intents and Markdown at the page's own URL, each only where nothing was saved. A site that existed before them is never written.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"mode":{"type":"string","enum":["off","monitor","autopilot"],"description":"off (the default): ora serves nothing on the website; the connection only reports agent traffic. monitor: ora prepares everything, so previews show what it would serve, but serves nothing. autopilot: ora serves agents (Agent Serving, in the app)."},"markdown":{"description":"The Markdown switches to change; a member left out keeps its value. Turning enabled off turns negotiate off too","type":"object","properties":{"enabled":{"type":"boolean","description":"Give agents a Markdown version of every page when they ask for one: at <page>.md and through llms.txt"},"negotiate":{"type":"boolean","description":"Also give it to recognized agents at the page's own URL (people always get the page). Needs enabled."}}},"agentFiles":{"description":"The agent files switch to change; left out, it keeps its value","type":"object","properties":{"enabled":{"type":"boolean","description":"Serve the agent files (llms.txt, robots.txt, …) at their paths on the website; off leaves those paths to the website. ora keeps the files current either way."}}}},"required":["site"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["off","monitor","autopilot"],"description":"off (the default): ora serves nothing on the website; the connection only reports agent traffic. monitor: ora prepares everything, so previews show what it would serve, but serves nothing. autopilot: ora serves agents (Agent Serving, in the app)."},"markdown":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Give agents a Markdown version of every page when they ask for one: at <page>.md and through llms.txt"},"negotiate":{"type":"boolean","description":"Also give it to recognized agents at the page's own URL (people always get the page). Needs enabled."}},"required":["enabled","negotiate"],"additionalProperties":false,"description":"The Markdown version of every page: whether agents get it, and where"},"agentFiles":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Serve the agent files (llms.txt, robots.txt, …) at their paths on the website; off leaves those paths to the website. ora keeps the files current either way."}},"required":["enabled"],"additionalProperties":false,"description":"The agent files switch: whether ora serves llms.txt, robots.txt and the rest on the website"},"propagationSeconds":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"How long, at most, a change takes to reach the website's edge"}},"required":["mode","markdown","agentFiles","propagationSeconds"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"request":{"params":["site"],"body":["mode","markdown","agentFiles"]}}}},"/studio/v1/front/sites/{site}/tool-setups":{"post":{"operationId":"front.toolSetups.create","tags":["Front actions"],"summary":"Set up the site's tools","description":"As the Actions page's Set up tools (and Try again) does: ora reads what kind of site it is, adds the request actions that kind of business wants (live at once), then runs a discovery that finds, builds and checks up to five tool actions, each going live as it verifies. Request actions the site already has, or deleted, are not added again. `discover: false` adds the request actions only (a site whose own MCP server brings its tools): such a setup has no run (`id` null) and is succeeded at once. Answers 202 with the setup; follow `tool_setup.*` on the site's stream (`streamUrl`) or read it again. As in Studio, a setup starts only for a site never set up, one whose last setup failed, or one with no tool actions yet; a site is set up at most three times. A new site's tools set themselves up once its Front is first published.","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"},{"name":"Idempotency-Key","in":"header","required":false,"description":"A unique value per logical request (a UUID). A retry with the same key and the same request replays the first answer instead of running again; keys are kept 24 hours.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"discover":{"default":true,"description":"false: add the request actions only (a site whose own MCP server brings its tools); no discovery runs","type":"boolean"}}},"example":{"discover":true}}}},"responses":{"202":{"description":"Set up the site's tools","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}],"description":"The setup's run. null when it ran no discovery (discover: false, or discovery is unavailable here): it only added request actions, and is already succeeded"},"status":{"type":"string","enum":["queued","running","succeeded","failed","canceled"],"description":"succeeded with nothing built: ora found nothing to build here, not a failure"},"step":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What the run is doing now; null once it settled"},"actions":{"type":"object","properties":{"built":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Tool actions the run built"},"verified":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Of those, the ones that work"},"live":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Of those, the ones it made live"}},"required":["built","verified","live"],"additionalProperties":false,"description":"Tool actions only, all 0 without a run: the request actions the setup adds are not counted"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why it failed; what it added before stays"},"createdAt":{"type":"string","description":"UTC, ISO 8601"},"startedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the run started; null until it does"},"finishedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the run ended; null while it is queued or running"},"streamUrl":{"type":"string","description":"The site's status stream (GET, text/event-stream), where tool_setup.* events arrive"}},"required":["id","status","step","actions","error","createdAt","startedAt","finishedAt","streamUrl"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"The site's setup finished and its tool actions are there (TOOLS_ALREADY_SET_UP), it is being set up already (SETUP_IN_PROGRESS), it was set up three times (SETUP_ATTEMPTS_EXHAUSTED), or the Idempotency-Key conflicts (IDEMPOTENCY_KEY_REUSED, IDEMPOTENCY_IN_PROGRESS).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.actions:write","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-idempotent":true,"x-ora-mcp-tool":{"name":"front_set_up_tools","title":"Set up the site's tools","description":"As the Actions page's Set up tools (and Try again) does: ora reads what kind of site it is, adds the request actions that kind of business wants (live at once), then runs a discovery that finds, builds and checks up to five tool actions, each going live as it verifies. Request actions the site already has, or deleted, are not added again. `discover: false` adds the request actions only (a site whose own MCP server brings its tools): such a setup has no run (`id` null) and is succeeded at once. Answers 202 with the setup; follow `tool_setup.*` on the site's stream (`streamUrl`) or read it again. As in Studio, a setup starts only for a site never set up, one whose last setup failed, or one with no tool actions yet; a site is set up at most three times. A new site's tools set themselves up once its Front is first published.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"discover":{"default":true,"description":"false: add the request actions only (a site whose own MCP server brings its tools); no discovery runs","type":"boolean"}},"required":["site"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}],"description":"The setup's run. null when it ran no discovery (discover: false, or discovery is unavailable here): it only added request actions, and is already succeeded"},"status":{"type":"string","enum":["queued","running","succeeded","failed","canceled"],"description":"succeeded with nothing built: ora found nothing to build here, not a failure"},"step":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What the run is doing now; null once it settled"},"actions":{"type":"object","properties":{"built":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Tool actions the run built"},"verified":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Of those, the ones that work"},"live":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Of those, the ones it made live"}},"required":["built","verified","live"],"additionalProperties":false,"description":"Tool actions only, all 0 without a run: the request actions the setup adds are not counted"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why it failed; what it added before stays"},"createdAt":{"type":"string","description":"UTC, ISO 8601"},"startedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the run started; null until it does"},"finishedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the run ended; null while it is queued or running"},"streamUrl":{"type":"string","description":"The site's status stream (GET, text/event-stream), where tool_setup.* events arrive"}},"required":["id","status","step","actions","error","createdAt","startedAt","finishedAt","streamUrl"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true},"request":{"params":["site"],"body":["discover"]}}}},"/studio/v1/front/sites/{site}/tool-setups/{setupId}":{"get":{"operationId":"front.toolSetups.get","tags":["Front actions"],"summary":"Read a tool setup","description":"One setup run: its status, the step it is on, and how many tool actions it built, verified and made live. succeeded with nothing built means ora found nothing to build on this site, not a failure; failed keeps what it added. `tool_setup.progressed` and `tool_setup.completed` on the site's stream say when to read it again.","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"},{"name":"setupId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The tool setup's id, as setting up the site's tools answered it."},"example":"9a4d7e21-5c3b-4b8f-a6e2-3f1c8d5b7e90"}],"responses":{"200":{"description":"Read a tool setup","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}],"description":"The setup's run. null when it ran no discovery (discover: false, or discovery is unavailable here): it only added request actions, and is already succeeded"},"status":{"type":"string","enum":["queued","running","succeeded","failed","canceled"],"description":"succeeded with nothing built: ora found nothing to build here, not a failure"},"step":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What the run is doing now; null once it settled"},"actions":{"type":"object","properties":{"built":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Tool actions the run built"},"verified":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Of those, the ones that work"},"live":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Of those, the ones it made live"}},"required":["built","verified","live"],"additionalProperties":false,"description":"Tool actions only, all 0 without a run: the request actions the setup adds are not counted"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why it failed; what it added before stays"},"createdAt":{"type":"string","description":"UTC, ISO 8601"},"startedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the run started; null until it does"},"finishedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the run ended; null while it is queued or running"},"streamUrl":{"type":"string","description":"The site's status stream (GET, text/event-stream), where tool_setup.* events arrive"}},"required":["id","status","step","actions","error","createdAt","startedAt","finishedAt","streamUrl"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.actions:read","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_get_tool_setup","title":"Read a tool setup","description":"One setup run: its status, the step it is on, and how many tool actions it built, verified and made live. succeeded with nothing built means ora found nothing to build on this site, not a failure; failed keeps what it added. `tool_setup.progressed` and `tool_setup.completed` on the site's stream say when to read it again.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"setupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The tool setup's id, as setting up the site's tools answered it."}},"required":["site","setupId"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}],"description":"The setup's run. null when it ran no discovery (discover: false, or discovery is unavailable here): it only added request actions, and is already succeeded"},"status":{"type":"string","enum":["queued","running","succeeded","failed","canceled"],"description":"succeeded with nothing built: ora found nothing to build here, not a failure"},"step":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What the run is doing now; null once it settled"},"actions":{"type":"object","properties":{"built":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Tool actions the run built"},"verified":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Of those, the ones that work"},"live":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Of those, the ones it made live"}},"required":["built","verified","live"],"additionalProperties":false,"description":"Tool actions only, all 0 without a run: the request actions the setup adds are not counted"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why it failed; what it added before stays"},"createdAt":{"type":"string","description":"UTC, ISO 8601"},"startedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the run started; null until it does"},"finishedAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When the run ended; null while it is queued or running"},"streamUrl":{"type":"string","description":"The site's status stream (GET, text/event-stream), where tool_setup.* events arrive"}},"required":["id","status","step","actions","error","createdAt","startedAt","finishedAt","streamUrl"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"request":{"params":["site","setupId"]}}}},"/studio/v1/front/sites/{site}/traffic":{"get":{"operationId":"front.traffic.get","tags":["Front traffic"],"summary":"Read the site's traffic and how much of it is agents","description":"The site's traffic in the window: requests by agents, people and other clients, with agents' share of it; every request broken down by client, kind, purpose and response class; and per UTC day how much was a live read (an AI fetching a page for a person who was waiting). `page` narrows every figure to those pages. Days under 100 requests are `lowVolume`: true, but too thin to compare.","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"},{"name":"from","in":"query","required":true,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"First day, inclusive (YYYY-MM-DD, UTC)"},"example":"2026-11-04"},{"name":"to","in":"query","required":true,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Last day, inclusive (YYYY-MM-DD, UTC)"},"example":"2026-11-10"},{"name":"page","in":"query","required":false,"schema":{"description":"Only these pages: paths starting with /, repeat the parameter for several (at most 50)","anyOf":[{"type":"string","maxLength":2048,"pattern":"^\\/.*"},{"maxItems":50,"type":"array","items":{"type":"string","maxLength":2048,"pattern":"^\\/.*"}}]}}],"responses":{"200":{"description":"Read the site's traffic and how much of it is agents","content":{"application/json":{"schema":{"type":"object","properties":{"from":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"A UTC day (YYYY-MM-DD)"},"to":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"A UTC day (YYYY-MM-DD)"},"pageFilter":{"type":"array","items":{"type":"string"},"description":"The pages every figure is narrowed to; empty: the whole site"},"totals":{"type":"object","properties":{"requests":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Every request in the window: agents, people and the rest"},"agentRequests":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"By identified agents and crawlers (ai_agent, ai_crawler, search_crawler)"},"humanRequests":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"By people's browsers"},"unknownRequests":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The rest: tools, scripts and clients Ora could not classify"},"agentPercent":{"type":"number","minimum":0,"maximum":100,"description":"agentRequests of requests: how much of the traffic is agents"}},"required":["requests","agentRequests","humanRequests","unknownRequests","agentPercent"],"additionalProperties":false,"description":"The window's requests, by who made them"},"breakdown":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["ai_agent","ai_crawler","search_crawler","tool","human","unknown"],"description":"ai_agent: an AI acting for a person now. ai_crawler: an AI company's crawler. search_crawler: a search engine. tool: a script, headless browser or HTTP client. human: a person's browser. unknown: automation Ora could not classify"},"visitorId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The agent (GET …/visitors); null for people and unnamed clients"},"operator":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Who runs it; null when Ora cannot tell"},"purpose":{"anyOf":[{"type":"string","enum":["training_crawl","search_index","live_fetch","agent_action","browsing"],"description":"training_crawl: harvesting pages to train a model. search_index: indexing the site so an answer engine can cite it. live_fetch: fetching a page for a person who is waiting. agent_action: acting for a user (tools, headless browsers). browsing: a person"},{"type":"null"}],"description":"Why the client came. training_crawl: harvesting pages to train a model. search_index: indexing the site so an answer engine can cite it. live_fetch: fetching a page for a person who is waiting. agent_action: acting for a user (tools, headless browsers). browsing: a person. Null when Ora could not tell, or the purpose is not one of these yet."},"statusClass":{"type":"string","description":"The response class: 2xx, 3xx, 4xx or 5xx"},"requests":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Requests by this client in the window that got a response in this class"},"distinctClients":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}],"description":"Distinct clients behind these requests (daily hashes); null when the site's transmitter sends none"},"percent":{"type":"number","minimum":0,"maximum":100,"description":"Of every request in the window"}},"required":["kind","visitorId","operator","purpose","statusClass","requests","distinctClients","percent"],"additionalProperties":false},"description":"Every request of the window, by client, kind, purpose and class"},"days":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"A UTC day (YYYY-MM-DD)"},"requests":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Every request that day: agents, people and the rest"},"agentRequests":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"By identified agents and crawlers"},"liveRequests":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Live reads: an AI fetching a page for a person who was waiting"},"livePercent":{"type":"number","minimum":0,"maximum":100,"description":"liveRequests of requests"},"lowVolume":{"type":"boolean","description":"Fewer than 100 requests that day: true, but too thin to compare with other days"}},"required":["day","requests","agentRequests","liveRequests","livePercent","lowVolume"],"additionalProperties":false},"description":"The UTC days of the window that had traffic, oldest first"}},"required":["from","to","pageFilter","totals","breakdown","days"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.traffic:read","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_get_traffic","title":"Read the site's traffic and how much of it is agents","description":"The site's traffic in the window: requests by agents, people and other clients, with agents' share of it; every request broken down by client, kind, purpose and response class; and per UTC day how much was a live read (an AI fetching a page for a person who was waiting). `page` narrows every figure to those pages. Days under 100 requests are `lowVolume`: true, but too thin to compare.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"from":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"First day, inclusive (YYYY-MM-DD, UTC)"},"to":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Last day, inclusive (YYYY-MM-DD, UTC)"},"page":{"description":"Only these pages: paths starting with /, repeat the parameter for several (at most 50)","anyOf":[{"type":"string","maxLength":2048,"pattern":"^\\/.*"},{"maxItems":50,"type":"array","items":{"type":"string","maxLength":2048,"pattern":"^\\/.*"}}]}},"required":["site","from","to"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"from":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"A UTC day (YYYY-MM-DD)"},"to":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"A UTC day (YYYY-MM-DD)"},"pageFilter":{"type":"array","items":{"type":"string"},"description":"The pages every figure is narrowed to; empty: the whole site"},"totals":{"type":"object","properties":{"requests":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Every request in the window: agents, people and the rest"},"agentRequests":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"By identified agents and crawlers (ai_agent, ai_crawler, search_crawler)"},"humanRequests":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"By people's browsers"},"unknownRequests":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The rest: tools, scripts and clients Ora could not classify"},"agentPercent":{"type":"number","minimum":0,"maximum":100,"description":"agentRequests of requests: how much of the traffic is agents"}},"required":["requests","agentRequests","humanRequests","unknownRequests","agentPercent"],"additionalProperties":false,"description":"The window's requests, by who made them"},"breakdown":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["ai_agent","ai_crawler","search_crawler","tool","human","unknown"],"description":"ai_agent: an AI acting for a person now. ai_crawler: an AI company's crawler. search_crawler: a search engine. tool: a script, headless browser or HTTP client. human: a person's browser. unknown: automation Ora could not classify"},"visitorId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The agent (GET …/visitors); null for people and unnamed clients"},"operator":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Who runs it; null when Ora cannot tell"},"purpose":{"anyOf":[{"type":"string","enum":["training_crawl","search_index","live_fetch","agent_action","browsing"],"description":"training_crawl: harvesting pages to train a model. search_index: indexing the site so an answer engine can cite it. live_fetch: fetching a page for a person who is waiting. agent_action: acting for a user (tools, headless browsers). browsing: a person"},{"type":"null"}],"description":"Why the client came. training_crawl: harvesting pages to train a model. search_index: indexing the site so an answer engine can cite it. live_fetch: fetching a page for a person who is waiting. agent_action: acting for a user (tools, headless browsers). browsing: a person. Null when Ora could not tell, or the purpose is not one of these yet."},"statusClass":{"type":"string","description":"The response class: 2xx, 3xx, 4xx or 5xx"},"requests":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Requests by this client in the window that got a response in this class"},"distinctClients":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}],"description":"Distinct clients behind these requests (daily hashes); null when the site's transmitter sends none"},"percent":{"type":"number","minimum":0,"maximum":100,"description":"Of every request in the window"}},"required":["kind","visitorId","operator","purpose","statusClass","requests","distinctClients","percent"],"additionalProperties":false},"description":"Every request of the window, by client, kind, purpose and class"},"days":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"A UTC day (YYYY-MM-DD)"},"requests":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Every request that day: agents, people and the rest"},"agentRequests":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"By identified agents and crawlers"},"liveRequests":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Live reads: an AI fetching a page for a person who was waiting"},"livePercent":{"type":"number","minimum":0,"maximum":100,"description":"liveRequests of requests"},"lowVolume":{"type":"boolean","description":"Fewer than 100 requests that day: true, but too thin to compare with other days"}},"required":["day","requests","agentRequests","liveRequests","livePercent","lowVolume"],"additionalProperties":false},"description":"The UTC days of the window that had traffic, oldest first"}},"required":["from","to","pageFilter","totals","breakdown","days"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"request":{"params":["site"],"query":["from","to","page"]}}}},"/studio/v1/front/sites/{site}/traffic/answers":{"get":{"operationId":"front.traffic.answers.list","tags":["Front traffic"],"summary":"Count the answers the site's Front served agents","description":"How many answers the site's Front served to agents in the window, per UTC day (every day, zero-filled), and their total.","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"},{"name":"from","in":"query","required":true,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"First day, inclusive (YYYY-MM-DD, UTC)"},"example":"2026-11-04"},{"name":"to","in":"query","required":true,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Last day, inclusive (YYYY-MM-DD, UTC)"},"example":"2026-11-10"}],"responses":{"200":{"description":"Count the answers the site's Front served agents","content":{"application/json":{"schema":{"type":"object","properties":{"from":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"A UTC day (YYYY-MM-DD)"},"to":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"A UTC day (YYYY-MM-DD)"},"total":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Answers the site's Front served to agents in the window (a page, a file or an answer to a question): the days added up"},"days":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"A UTC day (YYYY-MM-DD)"},"answers":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Answers served that UTC day"}},"required":["day","answers"],"additionalProperties":false},"description":"Every UTC day of the window, zero-filled"}},"required":["from","to","total","days"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.traffic:read","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_count_answers","title":"Count the answers the site's Front served agents","description":"How many answers the site's Front served to agents in the window, per UTC day (every day, zero-filled), and their total.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"from":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"First day, inclusive (YYYY-MM-DD, UTC)"},"to":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Last day, inclusive (YYYY-MM-DD, UTC)"}},"required":["site","from","to"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"from":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"A UTC day (YYYY-MM-DD)"},"to":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"A UTC day (YYYY-MM-DD)"},"total":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Answers the site's Front served to agents in the window (a page, a file or an answer to a question): the days added up"},"days":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"A UTC day (YYYY-MM-DD)"},"answers":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Answers served that UTC day"}},"required":["day","answers"],"additionalProperties":false},"description":"Every UTC day of the window, zero-filled"}},"required":["from","to","total","days"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"request":{"params":["site"],"query":["from","to"]}}}},"/studio/v1/front/sites/{site}/traffic/hosts":{"get":{"operationId":"front.traffic.hosts.list","tags":["Front traffic"],"summary":"List the site's hosts that report traffic","description":"The site's hostname and its subdomains that have reported traffic to Ora, busiest first, with the first and last UTC day each did. An empty list means no traffic has arrived yet: connect the website (front.connection.update).","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"}],"responses":{"200":{"description":"List the site's hosts that report traffic","content":{"application/json":{"schema":{"type":"object","properties":{"hosts":{"type":"array","items":{"type":"object","properties":{"host":{"type":"string","description":"The hostname: the site's own, or one of its subdomains"},"requests":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Every request it reported"},"peopleAndAgentRequests":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Requests by people and agents (live AI reads, crawlers), without tools, scripts and unknown clients"},"firstDay":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"The first UTC day it reported traffic"},"lastDay":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"The latest UTC day it reported traffic"}},"required":["host","requests","peopleAndAgentRequests","firstDay","lastDay"],"additionalProperties":false},"description":"The site's hostname and its subdomains that have reported traffic, most people and agent requests first"}},"required":["hosts"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.traffic:read","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_list_traffic_hosts","title":"List the site's hosts that report traffic","description":"The site's hostname and its subdomains that have reported traffic to Ora, busiest first, with the first and last UTC day each did. An empty list means no traffic has arrived yet: connect the website (front.connection.update).","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."}},"required":["site"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"hosts":{"type":"array","items":{"type":"object","properties":{"host":{"type":"string","description":"The hostname: the site's own, or one of its subdomains"},"requests":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Every request it reported"},"peopleAndAgentRequests":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Requests by people and agents (live AI reads, crawlers), without tools, scripts and unknown clients"},"firstDay":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"The first UTC day it reported traffic"},"lastDay":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"The latest UTC day it reported traffic"}},"required":["host","requests","peopleAndAgentRequests","firstDay","lastDay"],"additionalProperties":false},"description":"The site's hostname and its subdomains that have reported traffic, most people and agent requests first"}},"required":["hosts"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"request":{"params":["site"]}}}},"/studio/v1/front/sites/{site}/traffic/misses":{"get":{"operationId":"front.traffic.misses.list","tags":["Front traffic"],"summary":"List what agents asked for and did not get","description":"The paths agents requested in the window that the site answered with a 4xx, the most missed first: content gaps to fill. Paths missed fewer than `minMisses` times are left out as noise. `agents=live` keeps only live reads for a waiting person (a crawler refused by a rule is not a page an agent failed to get).","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"},{"name":"from","in":"query","required":true,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"First day, inclusive (YYYY-MM-DD, UTC)"},"example":"2026-11-04"},{"name":"to","in":"query","required":true,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Last day, inclusive (YYYY-MM-DD, UTC)"},"example":"2026-11-10"},{"name":"agents","in":"query","required":false,"schema":{"default":"all","type":"string","enum":["all","live","crawl"],"description":"all: every agent. live: AIs reading for a person who was waiting. crawl: crawlers"},"example":"live"},{"name":"limit","in":"query","required":false,"schema":{"default":50,"description":"How many paths, most missed first","type":"integer","minimum":1,"maximum":500}},{"name":"minMisses","in":"query","required":false,"schema":{"default":5,"description":"Leave out paths missed fewer times than this: below it a miss is noise (a stray probe, a typo)","type":"integer","minimum":1,"maximum":10000}}],"responses":{"200":{"description":"List what agents asked for and did not get","content":{"application/json":{"schema":{"type":"object","properties":{"from":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"A UTC day (YYYY-MM-DD)"},"to":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"A UTC day (YYYY-MM-DD)"},"agents":{"type":"string","enum":["all","live","crawl"],"description":"all: every agent. live: AIs reading for a person who was waiting. crawl: crawlers"},"paths":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"The path as Ora stores it (your redaction may fold parts of it)"},"misses":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Requests for it answered 4xx"},"visitorIds":{"type":"array","items":{"type":"string"},"description":"The agents that missed it"},"lastSeenAt":{"type":"string","description":"UTC, ISO 8601"},"statuses":{"type":"array","items":{"type":"object","properties":{"status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The 4xx status"},"requests":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Requests for it answered with this status, among requests still retained (can total less than misses)"},"agents":{"type":"array","items":{"type":"object","properties":{"visitorId":{"type":"string","description":"The agent, as GET …/visitors lists it"},"operator":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Who runs it; null when Ora cannot tell"}},"required":["visitorId","operator"],"additionalProperties":false},"description":"The agents that got this status for it (at most 10)"}},"required":["status","requests","agents"],"additionalProperties":false},"description":"What the site answered, and to whom"}},"required":["path","misses","visitorIds","lastSeenAt","statuses"],"additionalProperties":false},"description":"The paths agents asked for and got a 4xx, most missed first (each missed at least minMisses times)"}},"required":["from","to","agents","paths"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.traffic:read","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_list_missed_paths","title":"List what agents asked for and did not get","description":"The paths agents requested in the window that the site answered with a 4xx, the most missed first: content gaps to fill. Paths missed fewer than `minMisses` times are left out as noise. `agents=live` keeps only live reads for a waiting person (a crawler refused by a rule is not a page an agent failed to get).","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"from":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"First day, inclusive (YYYY-MM-DD, UTC)"},"to":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Last day, inclusive (YYYY-MM-DD, UTC)"},"agents":{"default":"all","type":"string","enum":["all","live","crawl"],"description":"all: every agent. live: AIs reading for a person who was waiting. crawl: crawlers"},"limit":{"default":50,"description":"How many paths, most missed first","type":"integer","minimum":1,"maximum":500},"minMisses":{"default":5,"description":"Leave out paths missed fewer times than this: below it a miss is noise (a stray probe, a typo)","type":"integer","minimum":1,"maximum":10000}},"required":["site","from","to"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"from":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"A UTC day (YYYY-MM-DD)"},"to":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"A UTC day (YYYY-MM-DD)"},"agents":{"type":"string","enum":["all","live","crawl"],"description":"all: every agent. live: AIs reading for a person who was waiting. crawl: crawlers"},"paths":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"The path as Ora stores it (your redaction may fold parts of it)"},"misses":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Requests for it answered 4xx"},"visitorIds":{"type":"array","items":{"type":"string"},"description":"The agents that missed it"},"lastSeenAt":{"type":"string","description":"UTC, ISO 8601"},"statuses":{"type":"array","items":{"type":"object","properties":{"status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The 4xx status"},"requests":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Requests for it answered with this status, among requests still retained (can total less than misses)"},"agents":{"type":"array","items":{"type":"object","properties":{"visitorId":{"type":"string","description":"The agent, as GET …/visitors lists it"},"operator":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Who runs it; null when Ora cannot tell"}},"required":["visitorId","operator"],"additionalProperties":false},"description":"The agents that got this status for it (at most 10)"}},"required":["status","requests","agents"],"additionalProperties":false},"description":"What the site answered, and to whom"}},"required":["path","misses","visitorIds","lastSeenAt","statuses"],"additionalProperties":false},"description":"The paths agents asked for and got a 4xx, most missed first (each missed at least minMisses times)"}},"required":["from","to","agents","paths"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"request":{"params":["site"],"query":["from","to","agents","limit","minMisses"]}}}},"/studio/v1/front/sites/{site}/traffic/pages":{"get":{"operationId":"front.traffic.pages.list","tags":["Front traffic"],"summary":"List the paths agents read most","description":"The paths agents read most in the window, busiest first, against people's reads of the same paths, with which agents did the reading. `agents=live` counts only live reads for a waiting person, `agents=crawl` only crawlers. Pass `group` (a path from the list) to also get the real pages behind it; `page` narrows the list to those pages.","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"},{"name":"from","in":"query","required":true,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"First day, inclusive (YYYY-MM-DD, UTC)"},"example":"2026-11-04"},{"name":"to","in":"query","required":true,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Last day, inclusive (YYYY-MM-DD, UTC)"},"example":"2026-11-10"},{"name":"agents","in":"query","required":false,"schema":{"default":"all","type":"string","enum":["all","live","crawl"],"description":"all: every agent. live: AIs reading for a person who was waiting. crawl: crawlers"},"example":"live"},{"name":"limit","in":"query","required":false,"schema":{"default":50,"description":"How many paths, busiest first","type":"integer","minimum":1,"maximum":500},"example":20},{"name":"page","in":"query","required":false,"schema":{"description":"Only these pages: paths starting with /, repeat the parameter for several (at most 50)","anyOf":[{"type":"string","maxLength":2048,"pattern":"^\\/.*"},{"maxItems":50,"type":"array","items":{"type":"string","maxLength":2048,"pattern":"^\\/.*"}}]}},{"name":"group","in":"query","required":false,"schema":{"description":"A path from this list: also return the real pages behind it, by agent reads","type":"string","minLength":1,"maxLength":2048}}],"responses":{"200":{"description":"List the paths agents read most","content":{"application/json":{"schema":{"type":"object","properties":{"from":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"A UTC day (YYYY-MM-DD)"},"to":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"A UTC day (YYYY-MM-DD)"},"agents":{"type":"string","enum":["all","live","crawl"],"description":"all: every agent. live: AIs reading for a person who was waiting. crawl: crawlers"},"pageFilter":{"type":"array","items":{"type":"string"},"description":"The pages every figure is narrowed to; empty: the whole site"},"paths":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"The path as Ora stores it (your redaction may fold parts of it)"},"agentRequests":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Agents' requests for it that the site answered 2xx (the agents asked for)"},"humanRequests":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Requests for it from people's browsers that the site answered 2xx"},"agentToHumanRatio":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"agentRequests per humanRequests; null when no person read it (a page only agents read)"},"lastSeenAt":{"type":"string","description":"UTC, ISO 8601"},"agents":{"type":"array","items":{"type":"object","properties":{"visitorId":{"type":"string","description":"The agent, as GET …/visitors lists it"},"requests":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Its requests for this path that the site answered 2xx"},"percent":{"type":"number","minimum":0,"maximum":100,"description":"Percent, 0 to 100"}},"required":["visitorId","requests","percent"],"additionalProperties":false},"description":"Who read it, most first; percent of this path's agent reads"}},"required":["path","agentRequests","humanRequests","agentToHumanRatio","lastSeenAt","agents"],"additionalProperties":false},"description":"The paths agents read most, busiest first"},"group":{"anyOf":[{"type":"object","properties":{"path":{"type":"string","description":"The path as Ora stores it (your redaction may fold parts of it)"},"pages":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"A real page behind the grouped path, as it was requested"},"requests":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Agents' requests for it that the site answered 2xx, among requests still retained"}},"required":["path","requests"],"additionalProperties":false},"description":"Most read first (at most 50)"},"totalPages":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Every real page behind it, listed or not"},"totalRequests":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Agents' requests the site answered 2xx for every real page behind it, listed or not, among requests still retained"}},"required":["path","pages","totalPages","totalRequests"],"additionalProperties":false},{"type":"null"}],"description":"The pages behind `group`, when it was asked for; else null"}},"required":["from","to","agents","pageFilter","paths","group"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.traffic:read","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_list_top_pages","title":"List the paths agents read most","description":"The paths agents read most in the window, busiest first, against people's reads of the same paths, with which agents did the reading. `agents=live` counts only live reads for a waiting person, `agents=crawl` only crawlers. Pass `group` (a path from the list) to also get the real pages behind it; `page` narrows the list to those pages.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"from":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"First day, inclusive (YYYY-MM-DD, UTC)"},"to":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Last day, inclusive (YYYY-MM-DD, UTC)"},"agents":{"default":"all","type":"string","enum":["all","live","crawl"],"description":"all: every agent. live: AIs reading for a person who was waiting. crawl: crawlers"},"limit":{"default":50,"description":"How many paths, busiest first","type":"integer","minimum":1,"maximum":500},"page":{"description":"Only these pages: paths starting with /, repeat the parameter for several (at most 50)","anyOf":[{"type":"string","maxLength":2048,"pattern":"^\\/.*"},{"maxItems":50,"type":"array","items":{"type":"string","maxLength":2048,"pattern":"^\\/.*"}}]},"group":{"description":"A path from this list: also return the real pages behind it, by agent reads","type":"string","minLength":1,"maxLength":2048}},"required":["site","from","to"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"from":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"A UTC day (YYYY-MM-DD)"},"to":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"A UTC day (YYYY-MM-DD)"},"agents":{"type":"string","enum":["all","live","crawl"],"description":"all: every agent. live: AIs reading for a person who was waiting. crawl: crawlers"},"pageFilter":{"type":"array","items":{"type":"string"},"description":"The pages every figure is narrowed to; empty: the whole site"},"paths":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"The path as Ora stores it (your redaction may fold parts of it)"},"agentRequests":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Agents' requests for it that the site answered 2xx (the agents asked for)"},"humanRequests":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Requests for it from people's browsers that the site answered 2xx"},"agentToHumanRatio":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"agentRequests per humanRequests; null when no person read it (a page only agents read)"},"lastSeenAt":{"type":"string","description":"UTC, ISO 8601"},"agents":{"type":"array","items":{"type":"object","properties":{"visitorId":{"type":"string","description":"The agent, as GET …/visitors lists it"},"requests":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Its requests for this path that the site answered 2xx"},"percent":{"type":"number","minimum":0,"maximum":100,"description":"Percent, 0 to 100"}},"required":["visitorId","requests","percent"],"additionalProperties":false},"description":"Who read it, most first; percent of this path's agent reads"}},"required":["path","agentRequests","humanRequests","agentToHumanRatio","lastSeenAt","agents"],"additionalProperties":false},"description":"The paths agents read most, busiest first"},"group":{"anyOf":[{"type":"object","properties":{"path":{"type":"string","description":"The path as Ora stores it (your redaction may fold parts of it)"},"pages":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"A real page behind the grouped path, as it was requested"},"requests":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Agents' requests for it that the site answered 2xx, among requests still retained"}},"required":["path","requests"],"additionalProperties":false},"description":"Most read first (at most 50)"},"totalPages":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Every real page behind it, listed or not"},"totalRequests":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Agents' requests the site answered 2xx for every real page behind it, listed or not, among requests still retained"}},"required":["path","pages","totalPages","totalRequests"],"additionalProperties":false},{"type":"null"}],"description":"The pages behind `group`, when it was asked for; else null"}},"required":["from","to","agents","pageFilter","paths","group"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"request":{"params":["site"],"query":["from","to","agents","limit","page","group"]}}}},"/studio/v1/front/sites/{site}/traffic/protocols":{"get":{"operationId":"front.traffic.protocols.list","tags":["Front traffic"],"summary":"Read how agents used the site's agent protocols","description":"How agents used the site's agent protocols in the window: `/ask` questions and MCP calls (the agent address's ask tool, and the site's own MCP server's tools through Ora's gateway), by outcome, per UTC day and by caller; and the WebMCP tools agents called on the site's own pages. `callers=agents` keeps only agents' calls (no people, none of Ora's own checks; an ask counts once it asks something, a call to the site's own MCP tools whether or not it says why), and `otherCalls` then counts the rest. `callers` never narrows WebMCP.","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"},{"name":"from","in":"query","required":true,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"First day, inclusive (YYYY-MM-DD, UTC)"},"example":"2026-11-04"},{"name":"to","in":"query","required":true,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Last day, inclusive (YYYY-MM-DD, UTC)"},"example":"2026-11-10"},{"name":"callers","in":"query","required":false,"schema":{"default":"all","description":"all: every call. agents: only agents' calls, without people or Ora's own checks (an ask counts once it asks something, a call to the site's own MCP tools whether or not it says why). WebMCP always counts every call.","type":"string","enum":["all","agents"]},"example":"agents"}],"responses":{"200":{"description":"Read how agents used the site's agent protocols","content":{"application/json":{"schema":{"type":"object","properties":{"from":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"A UTC day (YYYY-MM-DD)"},"to":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"A UTC day (YYYY-MM-DD)"},"callers":{"type":"string","enum":["all","agents"],"description":"The callers parameter, echoed: whose calls ask and mcp count (webmcp counts every call). all: every call. agents: only agents' calls, without people, asks that asked nothing, or Ora's own checks"},"ask":{"type":"object","properties":{"calls":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Calls in the window; answered, noResults, failed and cancelled add up to it"},"answered":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Calls that got an answer"},"noResults":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Calls the site's pages had nothing for"},"failed":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Calls that ended in an error"},"cancelled":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Calls the caller dropped before the answer reached it"},"otherCalls":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}],"description":"With callers=agents: the protocol's other calls (people, empty requests, Ora's own checks); else null"},"days":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"A UTC day (YYYY-MM-DD)"},"calls":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Calls that UTC day"}},"required":["day","calls"],"additionalProperties":false},"description":"Every UTC day of the window"},"agents":{"type":"array","items":{"type":"object","properties":{"visitorId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The agent (GET …/visitors); null for people and unnamed clients"},"operator":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Who runs it; null when Ora cannot tell"},"kind":{"type":"string","enum":["ai_agent","ai_crawler","search_crawler","tool","human","unknown"],"description":"ai_agent: an AI acting for a person now. ai_crawler: an AI company's crawler. search_crawler: a search engine. tool: a script, headless browser or HTTP client. human: a person's browser. unknown: automation Ora could not classify"},"calls":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Its calls in the window"}},"required":["visitorId","operator","kind","calls"],"additionalProperties":false},"description":"Who called, most calls first (at most 20)"}},"required":["calls","answered","noResults","failed","cancelled","otherCalls","days","agents"],"additionalProperties":false,"description":"/ask: questions in plain language to the agent address (NLWeb)"},"mcp":{"type":"object","properties":{"calls":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Calls in the window; answered, noResults, failed and cancelled add up to it"},"answered":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Calls that got an answer"},"noResults":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Calls the site's pages had nothing for"},"failed":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Calls that ended in an error"},"cancelled":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Calls the caller dropped before the answer reached it"},"otherCalls":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}],"description":"With callers=agents: the protocol's other calls (people, empty requests, Ora's own checks); else null"},"days":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"A UTC day (YYYY-MM-DD)"},"calls":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Calls that UTC day"}},"required":["day","calls"],"additionalProperties":false},"description":"Every UTC day of the window"},"agents":{"type":"array","items":{"type":"object","properties":{"visitorId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The agent (GET …/visitors); null for people and unnamed clients"},"operator":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Who runs it; null when Ora cannot tell"},"kind":{"type":"string","enum":["ai_agent","ai_crawler","search_crawler","tool","human","unknown"],"description":"ai_agent: an AI acting for a person now. ai_crawler: an AI company's crawler. search_crawler: a search engine. tool: a script, headless browser or HTTP client. human: a person's browser. unknown: automation Ora could not classify"},"calls":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Its calls in the window"}},"required":["visitorId","operator","kind","calls"],"additionalProperties":false},"description":"Who called, most calls first (at most 20)"}},"required":["calls","answered","noResults","failed","cancelled","otherCalls","days","agents"],"additionalProperties":false,"description":"MCP calls: to the agent address's ask tool, and to the site's own MCP server's tools through Ora's gateway"},"webmcp":{"type":"object","properties":{"calls":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Calls to every WebMCP tool in the window"},"withIntent":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Calls that said what the agent was trying to do"},"tools":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The tool's name, as the page registers it"},"calls":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Calls to it in the window"},"withIntent":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Calls to it that said what the agent was trying to do"},"distinctIntents":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Different things agents said they were trying to do with it"}},"required":["name","calls","withIntent","distinctIntents"],"additionalProperties":false},"description":"Each WebMCP tool agents called on the site's pages"}},"required":["calls","withIntent","tools"],"additionalProperties":false,"description":"WebMCP: the tools agents called in a browser on the site's own pages"}},"required":["from","to","callers","ask","mcp","webmcp"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.traffic:read","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_get_protocol_usage","title":"Read how agents used the site's agent protocols","description":"How agents used the site's agent protocols in the window: `/ask` questions and MCP calls (the agent address's ask tool, and the site's own MCP server's tools through Ora's gateway), by outcome, per UTC day and by caller; and the WebMCP tools agents called on the site's own pages. `callers=agents` keeps only agents' calls (no people, none of Ora's own checks; an ask counts once it asks something, a call to the site's own MCP tools whether or not it says why), and `otherCalls` then counts the rest. `callers` never narrows WebMCP.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"from":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"First day, inclusive (YYYY-MM-DD, UTC)"},"to":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Last day, inclusive (YYYY-MM-DD, UTC)"},"callers":{"default":"all","description":"all: every call. agents: only agents' calls, without people or Ora's own checks (an ask counts once it asks something, a call to the site's own MCP tools whether or not it says why). WebMCP always counts every call.","type":"string","enum":["all","agents"]}},"required":["site","from","to"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"from":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"A UTC day (YYYY-MM-DD)"},"to":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"A UTC day (YYYY-MM-DD)"},"callers":{"type":"string","enum":["all","agents"],"description":"The callers parameter, echoed: whose calls ask and mcp count (webmcp counts every call). all: every call. agents: only agents' calls, without people, asks that asked nothing, or Ora's own checks"},"ask":{"type":"object","properties":{"calls":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Calls in the window; answered, noResults, failed and cancelled add up to it"},"answered":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Calls that got an answer"},"noResults":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Calls the site's pages had nothing for"},"failed":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Calls that ended in an error"},"cancelled":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Calls the caller dropped before the answer reached it"},"otherCalls":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}],"description":"With callers=agents: the protocol's other calls (people, empty requests, Ora's own checks); else null"},"days":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"A UTC day (YYYY-MM-DD)"},"calls":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Calls that UTC day"}},"required":["day","calls"],"additionalProperties":false},"description":"Every UTC day of the window"},"agents":{"type":"array","items":{"type":"object","properties":{"visitorId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The agent (GET …/visitors); null for people and unnamed clients"},"operator":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Who runs it; null when Ora cannot tell"},"kind":{"type":"string","enum":["ai_agent","ai_crawler","search_crawler","tool","human","unknown"],"description":"ai_agent: an AI acting for a person now. ai_crawler: an AI company's crawler. search_crawler: a search engine. tool: a script, headless browser or HTTP client. human: a person's browser. unknown: automation Ora could not classify"},"calls":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Its calls in the window"}},"required":["visitorId","operator","kind","calls"],"additionalProperties":false},"description":"Who called, most calls first (at most 20)"}},"required":["calls","answered","noResults","failed","cancelled","otherCalls","days","agents"],"additionalProperties":false,"description":"/ask: questions in plain language to the agent address (NLWeb)"},"mcp":{"type":"object","properties":{"calls":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Calls in the window; answered, noResults, failed and cancelled add up to it"},"answered":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Calls that got an answer"},"noResults":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Calls the site's pages had nothing for"},"failed":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Calls that ended in an error"},"cancelled":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Calls the caller dropped before the answer reached it"},"otherCalls":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}],"description":"With callers=agents: the protocol's other calls (people, empty requests, Ora's own checks); else null"},"days":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"A UTC day (YYYY-MM-DD)"},"calls":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Calls that UTC day"}},"required":["day","calls"],"additionalProperties":false},"description":"Every UTC day of the window"},"agents":{"type":"array","items":{"type":"object","properties":{"visitorId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The agent (GET …/visitors); null for people and unnamed clients"},"operator":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Who runs it; null when Ora cannot tell"},"kind":{"type":"string","enum":["ai_agent","ai_crawler","search_crawler","tool","human","unknown"],"description":"ai_agent: an AI acting for a person now. ai_crawler: an AI company's crawler. search_crawler: a search engine. tool: a script, headless browser or HTTP client. human: a person's browser. unknown: automation Ora could not classify"},"calls":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Its calls in the window"}},"required":["visitorId","operator","kind","calls"],"additionalProperties":false},"description":"Who called, most calls first (at most 20)"}},"required":["calls","answered","noResults","failed","cancelled","otherCalls","days","agents"],"additionalProperties":false,"description":"MCP calls: to the agent address's ask tool, and to the site's own MCP server's tools through Ora's gateway"},"webmcp":{"type":"object","properties":{"calls":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Calls to every WebMCP tool in the window"},"withIntent":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Calls that said what the agent was trying to do"},"tools":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The tool's name, as the page registers it"},"calls":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Calls to it in the window"},"withIntent":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Calls to it that said what the agent was trying to do"},"distinctIntents":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Different things agents said they were trying to do with it"}},"required":["name","calls","withIntent","distinctIntents"],"additionalProperties":false},"description":"Each WebMCP tool agents called on the site's pages"}},"required":["calls","withIntent","tools"],"additionalProperties":false,"description":"WebMCP: the tools agents called in a browser on the site's own pages"}},"required":["from","to","callers","ask","mcp","webmcp"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"request":{"params":["site"],"query":["from","to","callers"]}}}},"/studio/v1/front/sites/{site}/traffic/referrals":{"get":{"operationId":"front.traffic.referrals.list","tags":["Front traffic"],"summary":"List the AI surfaces that send people to the site","description":"The AI surfaces (ChatGPT, Perplexity, …) that sent people to the site in the window, busiest first, and the pages those people landed on. Arrivals are people following a link, never crawlers. `people` is null when the site's transmitter sends no visitor identity: people cannot be counted then, which is not zero.","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"},{"name":"from","in":"query","required":true,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"First day, inclusive (YYYY-MM-DD, UTC)"},"example":"2026-11-04"},{"name":"to","in":"query","required":true,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Last day, inclusive (YYYY-MM-DD, UTC)"},"example":"2026-11-10"},{"name":"limit","in":"query","required":false,"schema":{"default":12,"description":"How many surfaces, busiest first","type":"integer","minimum":1,"maximum":50}},{"name":"page","in":"query","required":false,"schema":{"description":"Only these pages: paths starting with /, repeat the parameter for several (at most 50)","anyOf":[{"type":"string","maxLength":2048,"pattern":"^\\/.*"},{"maxItems":50,"type":"array","items":{"type":"string","maxLength":2048,"pattern":"^\\/.*"}}]}}],"responses":{"200":{"description":"List the AI surfaces that send people to the site","content":{"application/json":{"schema":{"type":"object","properties":{"from":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"A UTC day (YYYY-MM-DD)"},"to":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"A UTC day (YYYY-MM-DD)"},"pageFilter":{"type":"array","items":{"type":"string"},"description":"The pages every figure is narrowed to; empty: the whole site"},"surfaces":{"type":"array","items":{"type":"object","properties":{"surface":{"type":"string","description":"The product people came from (ChatGPT, Perplexity), not its company"},"arrivals":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Times people arrived from it, by following its link or carrying its campaign tag"},"people":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}],"description":"Distinct people (daily hashes); null when the site's transmitter sends no visitor identity, never 0"},"landingPageCount":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Distinct pages they landed on"},"percent":{"type":"number","minimum":0,"maximum":100,"description":"Share of the arrivals from the surfaces listed (`totalArrivals`), not of all traffic: `limit` decides which surfaces are listed"},"lastSeenAt":{"type":"string","description":"UTC, ISO 8601"}},"required":["surface","arrivals","people","landingPageCount","percent","lastSeenAt"],"additionalProperties":false},"description":"The AI surfaces that sent people to the site, busiest first (at most limit)"},"landingPages":{"type":"array","items":{"type":"object","properties":{"surface":{"type":"string","description":"The product they came from, as surfaces names it"},"path":{"type":"string","description":"The path as Ora stores it (your redaction may fold parts of it)"},"arrivals":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Times people from that surface arrived on this page"},"people":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}],"description":"Distinct people (daily hashes); null when the site's transmitter sends no visitor identity, never 0"},"lastSeenAt":{"type":"string","description":"UTC, ISO 8601"}},"required":["surface","path","arrivals","people","lastSeenAt"],"additionalProperties":false},"description":"Where each surface's people landed, busiest first (at most 100)"},"totalArrivals":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Arrivals from the surfaces listed, added up: what each one's percent is of"}},"required":["from","to","pageFilter","surfaces","landingPages","totalArrivals"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.traffic:read","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_list_referrals","title":"List the AI surfaces that send people to the site","description":"The AI surfaces (ChatGPT, Perplexity, …) that sent people to the site in the window, busiest first, and the pages those people landed on. Arrivals are people following a link, never crawlers. `people` is null when the site's transmitter sends no visitor identity: people cannot be counted then, which is not zero.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"from":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"First day, inclusive (YYYY-MM-DD, UTC)"},"to":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Last day, inclusive (YYYY-MM-DD, UTC)"},"limit":{"default":12,"description":"How many surfaces, busiest first","type":"integer","minimum":1,"maximum":50},"page":{"description":"Only these pages: paths starting with /, repeat the parameter for several (at most 50)","anyOf":[{"type":"string","maxLength":2048,"pattern":"^\\/.*"},{"maxItems":50,"type":"array","items":{"type":"string","maxLength":2048,"pattern":"^\\/.*"}}]}},"required":["site","from","to"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"from":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"A UTC day (YYYY-MM-DD)"},"to":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"A UTC day (YYYY-MM-DD)"},"pageFilter":{"type":"array","items":{"type":"string"},"description":"The pages every figure is narrowed to; empty: the whole site"},"surfaces":{"type":"array","items":{"type":"object","properties":{"surface":{"type":"string","description":"The product people came from (ChatGPT, Perplexity), not its company"},"arrivals":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Times people arrived from it, by following its link or carrying its campaign tag"},"people":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}],"description":"Distinct people (daily hashes); null when the site's transmitter sends no visitor identity, never 0"},"landingPageCount":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Distinct pages they landed on"},"percent":{"type":"number","minimum":0,"maximum":100,"description":"Share of the arrivals from the surfaces listed (`totalArrivals`), not of all traffic: `limit` decides which surfaces are listed"},"lastSeenAt":{"type":"string","description":"UTC, ISO 8601"}},"required":["surface","arrivals","people","landingPageCount","percent","lastSeenAt"],"additionalProperties":false},"description":"The AI surfaces that sent people to the site, busiest first (at most limit)"},"landingPages":{"type":"array","items":{"type":"object","properties":{"surface":{"type":"string","description":"The product they came from, as surfaces names it"},"path":{"type":"string","description":"The path as Ora stores it (your redaction may fold parts of it)"},"arrivals":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Times people from that surface arrived on this page"},"people":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}],"description":"Distinct people (daily hashes); null when the site's transmitter sends no visitor identity, never 0"},"lastSeenAt":{"type":"string","description":"UTC, ISO 8601"}},"required":["surface","path","arrivals","people","lastSeenAt"],"additionalProperties":false},"description":"Where each surface's people landed, busiest first (at most 100)"},"totalArrivals":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Arrivals from the surfaces listed, added up: what each one's percent is of"}},"required":["from","to","pageFilter","surfaces","landingPages","totalArrivals"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"request":{"params":["site"],"query":["from","to","limit","page"]}}}},"/studio/v1/front/sites/{site}/visitors":{"get":{"operationId":"front.visitors.list","tags":["Front access"],"summary":"List the agents that visit the site","description":"The agents that visited the site in the window, busiest first, with the evidence of who they are and what the site does with each: its own rule (`rule`) and what applies (`access`: the rule, else the category default, else allow). Counts are requests, not people. When `identityChecked` is false the site's transmitter cannot prove identity, so verified and impersonator requests are not measured. `include=all` adds every agent Ora knows that did not visit, so you can rule on one before it comes; `unidentified` lists the busiest automation Ora could not name.","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"},{"name":"from","in":"query","required":true,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"First day, inclusive (YYYY-MM-DD, UTC)"},"example":"2026-11-04"},{"name":"to","in":"query","required":true,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Last day, inclusive (YYYY-MM-DD, UTC)"},"example":"2026-11-10"},{"name":"include","in":"query","required":false,"schema":{"default":"seen","description":"seen: the agents that visited in the window. all: also every agent Ora knows that did not, so you can rule on one before it comes","type":"string","enum":["seen","all"]}}],"responses":{"200":{"description":"List the agents that visit the site","content":{"application/json":{"schema":{"type":"object","properties":{"from":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"A UTC day (YYYY-MM-DD)"},"to":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"A UTC day (YYYY-MM-DD)"},"identityChecked":{"type":"boolean","description":"Whether the site's transmitter can prove who an agent is. When false, verified and impersonator requests are not measured and read 0"},"totals":{"type":"object","properties":{"requests":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Every request by an agent, a tool or unnamed automation"},"verifiedRequests":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Requests proven to come from the agent they name: its published addresses, or a valid Web Bot Auth signature"},"impersonatorRequests":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Requests that named a known agent but came from outside its published addresses"},"blockedRequests":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Requests the site's edge refused (403) under the site's access, added up over the agents in visitors"}},"required":["requests","verifiedRequests","impersonatorRequests","blockedRequests"],"additionalProperties":false,"description":"The window's requests by agents, tools and unnamed automation, in all"},"visitors":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"description":"An agent's id as GET …/visitors lists it (gptbot, chatgpt-user). Not a UUID"},"name":{"type":"string","description":"How it names itself in its user agent (GPTBot, ChatGPT-User); its id when Ora has no other"},"operator":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Who runs it (openai, anthropic); null when Ora cannot tell"},"kind":{"type":"string","enum":["ai_agent","ai_crawler","search_crawler","tool","human","unknown"],"description":"ai_agent: an AI acting for a person now. ai_crawler: an AI company's crawler. search_crawler: a search engine. tool: a script, headless browser or HTTP client. human: a person's browser. unknown: automation Ora could not classify"},"purpose":{"anyOf":[{"type":"string","enum":["training_crawl","search_index","live_fetch","agent_action","browsing"],"description":"training_crawl: harvesting pages to train a model. search_index: indexing the site so an answer engine can cite it. live_fetch: fetching a page for a person who is waiting. agent_action: acting for a user (tools, headless browsers). browsing: a person"},{"type":"null"}],"description":"Why the client came. training_crawl: harvesting pages to train a model. search_index: indexing the site so an answer engine can cite it. live_fetch: fetching a page for a person who is waiting. agent_action: acting for a user (tools, headless browsers). browsing: a person. Null when Ora could not tell, or the purpose is not one of these yet."},"requests":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Its requests in the window"},"verifiedRequests":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Requests proven to be it: from its published addresses, or with a valid Web Bot Auth signature"},"impersonatorRequests":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Requests that named it but came from outside its published addresses"},"blockedRequests":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Requests the site's edge refused (403) under the site's access"},"lastSeenAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"Its latest request in the window; null when it did not visit"},"rule":{"anyOf":[{"type":"string","enum":["allow","disallow","block"],"description":"allow: welcome, on the record (an Allow line in robots.txt). disallow: a robots.txt Disallow, a polite request well-behaved agents honour and others ignore. block: that Disallow AND a 403 at the site's edge, before the request reaches the website"},{"type":"null"}],"description":"The site's own rule for it; null when it has none (its category default, or allow, applies)"},"access":{"type":"object","properties":{"action":{"type":"string","enum":["allow","disallow","block"],"description":"allow: welcome, on the record (an Allow line in robots.txt). disallow: a robots.txt Disallow, a polite request well-behaved agents honour and others ignore. block: that Disallow AND a 403 at the site's edge, before the request reaches the website"},"source":{"type":"string","enum":["rule","category","default"],"description":"rule: the site's rule for this agent. category: its category's default. default: nobody decided, so allow"}},"required":["action","source"],"additionalProperties":false,"description":"What applies to it now: its rule, else its category default, else allow"},"categoryExempt":{"type":"boolean","description":"A search engine, link preview or monitor: it always gets the site's normal page, category defaults never apply to it, and blocking it can cost search ranking or link previews"},"known":{"type":"boolean","description":"Whether Ora's agent catalog lists it. Only a known agent can be given a rule"}},"required":["id","name","operator","kind","purpose","requests","verifiedRequests","impersonatorRequests","blockedRequests","lastSeenAt","rule","access","categoryExempt","known"],"additionalProperties":false},"description":"The agents that visited, busiest first; with include=all, then the others by id"},"unidentified":{"type":"array","items":{"type":"object","properties":{"userAgent":{"type":"string","description":"The user agent it sent"},"requests":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Its requests in the window"}},"required":["userAgent","requests"],"additionalProperties":false},"description":"The busiest automation Ora could not name (at most 20). It cannot be given a rule"}},"required":["from","to","identityChecked","totals","visitors","unidentified"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.access:read","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_list_visitors","title":"List the agents that visit the site","description":"The agents that visited the site in the window, busiest first, with the evidence of who they are and what the site does with each: its own rule (`rule`) and what applies (`access`: the rule, else the category default, else allow). Counts are requests, not people. When `identityChecked` is false the site's transmitter cannot prove identity, so verified and impersonator requests are not measured. `include=all` adds every agent Ora knows that did not visit, so you can rule on one before it comes; `unidentified` lists the busiest automation Ora could not name.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"from":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"First day, inclusive (YYYY-MM-DD, UTC)"},"to":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Last day, inclusive (YYYY-MM-DD, UTC)"},"include":{"default":"seen","description":"seen: the agents that visited in the window. all: also every agent Ora knows that did not, so you can rule on one before it comes","type":"string","enum":["seen","all"]}},"required":["site","from","to"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"from":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"A UTC day (YYYY-MM-DD)"},"to":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"A UTC day (YYYY-MM-DD)"},"identityChecked":{"type":"boolean","description":"Whether the site's transmitter can prove who an agent is. When false, verified and impersonator requests are not measured and read 0"},"totals":{"type":"object","properties":{"requests":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Every request by an agent, a tool or unnamed automation"},"verifiedRequests":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Requests proven to come from the agent they name: its published addresses, or a valid Web Bot Auth signature"},"impersonatorRequests":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Requests that named a known agent but came from outside its published addresses"},"blockedRequests":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Requests the site's edge refused (403) under the site's access, added up over the agents in visitors"}},"required":["requests","verifiedRequests","impersonatorRequests","blockedRequests"],"additionalProperties":false,"description":"The window's requests by agents, tools and unnamed automation, in all"},"visitors":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"description":"An agent's id as GET …/visitors lists it (gptbot, chatgpt-user). Not a UUID"},"name":{"type":"string","description":"How it names itself in its user agent (GPTBot, ChatGPT-User); its id when Ora has no other"},"operator":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Who runs it (openai, anthropic); null when Ora cannot tell"},"kind":{"type":"string","enum":["ai_agent","ai_crawler","search_crawler","tool","human","unknown"],"description":"ai_agent: an AI acting for a person now. ai_crawler: an AI company's crawler. search_crawler: a search engine. tool: a script, headless browser or HTTP client. human: a person's browser. unknown: automation Ora could not classify"},"purpose":{"anyOf":[{"type":"string","enum":["training_crawl","search_index","live_fetch","agent_action","browsing"],"description":"training_crawl: harvesting pages to train a model. search_index: indexing the site so an answer engine can cite it. live_fetch: fetching a page for a person who is waiting. agent_action: acting for a user (tools, headless browsers). browsing: a person"},{"type":"null"}],"description":"Why the client came. training_crawl: harvesting pages to train a model. search_index: indexing the site so an answer engine can cite it. live_fetch: fetching a page for a person who is waiting. agent_action: acting for a user (tools, headless browsers). browsing: a person. Null when Ora could not tell, or the purpose is not one of these yet."},"requests":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Its requests in the window"},"verifiedRequests":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Requests proven to be it: from its published addresses, or with a valid Web Bot Auth signature"},"impersonatorRequests":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Requests that named it but came from outside its published addresses"},"blockedRequests":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Requests the site's edge refused (403) under the site's access"},"lastSeenAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"Its latest request in the window; null when it did not visit"},"rule":{"anyOf":[{"type":"string","enum":["allow","disallow","block"],"description":"allow: welcome, on the record (an Allow line in robots.txt). disallow: a robots.txt Disallow, a polite request well-behaved agents honour and others ignore. block: that Disallow AND a 403 at the site's edge, before the request reaches the website"},{"type":"null"}],"description":"The site's own rule for it; null when it has none (its category default, or allow, applies)"},"access":{"type":"object","properties":{"action":{"type":"string","enum":["allow","disallow","block"],"description":"allow: welcome, on the record (an Allow line in robots.txt). disallow: a robots.txt Disallow, a polite request well-behaved agents honour and others ignore. block: that Disallow AND a 403 at the site's edge, before the request reaches the website"},"source":{"type":"string","enum":["rule","category","default"],"description":"rule: the site's rule for this agent. category: its category's default. default: nobody decided, so allow"}},"required":["action","source"],"additionalProperties":false,"description":"What applies to it now: its rule, else its category default, else allow"},"categoryExempt":{"type":"boolean","description":"A search engine, link preview or monitor: it always gets the site's normal page, category defaults never apply to it, and blocking it can cost search ranking or link previews"},"known":{"type":"boolean","description":"Whether Ora's agent catalog lists it. Only a known agent can be given a rule"}},"required":["id","name","operator","kind","purpose","requests","verifiedRequests","impersonatorRequests","blockedRequests","lastSeenAt","rule","access","categoryExempt","known"],"additionalProperties":false},"description":"The agents that visited, busiest first; with include=all, then the others by id"},"unidentified":{"type":"array","items":{"type":"object","properties":{"userAgent":{"type":"string","description":"The user agent it sent"},"requests":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Its requests in the window"}},"required":["userAgent","requests"],"additionalProperties":false},"description":"The busiest automation Ora could not name (at most 20). It cannot be given a rule"}},"required":["from","to","identityChecked","totals","visitors","unidentified"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"request":{"params":["site"],"query":["from","to","include"]}}}},"/studio/v1/front/sites/{site}/visitors/{visitorId}/rule":{"put":{"operationId":"front.visitors.rule.update","tags":["Front access"],"summary":"Allow or block one agent","description":"Sets the site's own rule for one agent (its id from GET …/visitors): `allow` (welcome, on the record) or `block` (a robots.txt Disallow and a 403 at the site's edge). The rule wins over the agent's category default and applies while the site's access is enforced (GET …/access). Blocking an agent whose `categoryExempt` is true (a search engine, link preview or monitor) can cost search ranking or link previews. Safe to repeat. Returns the rule and what now applies.","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"},{"name":"visitorId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"description":"An agent's id as GET …/visitors lists it (gptbot, chatgpt-user). Not a UUID"},"example":"gptbot"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"action":{"type":"string","enum":["allow","block"],"description":"allow: agents may come in (an agent's own rule also writes an Allow line in robots.txt). block: a robots.txt Disallow AND a 403 at the site's edge, before the request reaches the website"}},"required":["action"]},"example":{"action":"block"}}}},"responses":{"200":{"description":"Allow or block one agent","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"description":"An agent's id as GET …/visitors lists it (gptbot, chatgpt-user). Not a UUID"},"rule":{"anyOf":[{"type":"string","enum":["allow","disallow","block"],"description":"allow: welcome, on the record (an Allow line in robots.txt). disallow: a robots.txt Disallow, a polite request well-behaved agents honour and others ignore. block: that Disallow AND a 403 at the site's edge, before the request reaches the website"},{"type":"null"}],"description":"The site's own rule for it; null when it has none (its category default, or allow, applies)"},"access":{"type":"object","properties":{"action":{"type":"string","enum":["allow","disallow","block"],"description":"allow: welcome, on the record (an Allow line in robots.txt). disallow: a robots.txt Disallow, a polite request well-behaved agents honour and others ignore. block: that Disallow AND a 403 at the site's edge, before the request reaches the website"},"source":{"type":"string","enum":["rule","category","default"],"description":"rule: the site's rule for this agent. category: its category's default. default: nobody decided, so allow"}},"required":["action","source"],"additionalProperties":false,"description":"What applies to it now: its rule, else its category default, else allow"}},"required":["id","rule","access"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"The site's website is not connected yet, so there is nothing to apply access to (WEBSITE_NOT_CONNECTED): connect it first (front.connection.update).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"The visitor is a person's browser, not an agent: it cannot be given a rule (NOT_RULABLE).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.access:write","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_set_agent_access","title":"Allow or block one agent","description":"Sets the site's own rule for one agent (its id from GET …/visitors): `allow` (welcome, on the record) or `block` (a robots.txt Disallow and a 403 at the site's edge). The rule wins over the agent's category default and applies while the site's access is enforced (GET …/access). Blocking an agent whose `categoryExempt` is true (a search engine, link preview or monitor) can cost search ranking or link previews. Safe to repeat. Returns the rule and what now applies.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"visitorId":{"type":"string","minLength":1,"maxLength":64,"description":"An agent's id as GET …/visitors lists it (gptbot, chatgpt-user). Not a UUID"},"action":{"type":"string","enum":["allow","block"],"description":"allow: agents may come in (an agent's own rule also writes an Allow line in robots.txt). block: a robots.txt Disallow AND a 403 at the site's edge, before the request reaches the website"}},"required":["site","visitorId","action"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"description":"An agent's id as GET …/visitors lists it (gptbot, chatgpt-user). Not a UUID"},"rule":{"anyOf":[{"type":"string","enum":["allow","disallow","block"],"description":"allow: welcome, on the record (an Allow line in robots.txt). disallow: a robots.txt Disallow, a polite request well-behaved agents honour and others ignore. block: that Disallow AND a 403 at the site's edge, before the request reaches the website"},{"type":"null"}],"description":"The site's own rule for it; null when it has none (its category default, or allow, applies)"},"access":{"type":"object","properties":{"action":{"type":"string","enum":["allow","disallow","block"],"description":"allow: welcome, on the record (an Allow line in robots.txt). disallow: a robots.txt Disallow, a polite request well-behaved agents honour and others ignore. block: that Disallow AND a 403 at the site's edge, before the request reaches the website"},"source":{"type":"string","enum":["rule","category","default"],"description":"rule: the site's rule for this agent. category: its category's default. default: nobody decided, so allow"}},"required":["action","source"],"additionalProperties":false,"description":"What applies to it now: its rule, else its category default, else allow"}},"required":["id","rule","access"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"request":{"params":["site","visitorId"],"body":["action"]}}},"delete":{"operationId":"front.visitors.rule.delete","tags":["Front access"],"summary":"Remove the site's rule for one agent","description":"The agent falls back to its category default (GET …/access), or allow. Returns what now applies to it. Safe to repeat: removing a rule the agent does not have changes nothing.","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"},{"name":"visitorId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"description":"An agent's id as GET …/visitors lists it (gptbot, chatgpt-user). Not a UUID"},"example":"gptbot"}],"responses":{"200":{"description":"Remove the site's rule for one agent","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"description":"An agent's id as GET …/visitors lists it (gptbot, chatgpt-user). Not a UUID"},"rule":{"anyOf":[{"type":"string","enum":["allow","disallow","block"],"description":"allow: welcome, on the record (an Allow line in robots.txt). disallow: a robots.txt Disallow, a polite request well-behaved agents honour and others ignore. block: that Disallow AND a 403 at the site's edge, before the request reaches the website"},{"type":"null"}],"description":"The site's own rule for it; null when it has none (its category default, or allow, applies)"},"access":{"type":"object","properties":{"action":{"type":"string","enum":["allow","disallow","block"],"description":"allow: welcome, on the record (an Allow line in robots.txt). disallow: a robots.txt Disallow, a polite request well-behaved agents honour and others ignore. block: that Disallow AND a 403 at the site's edge, before the request reaches the website"},"source":{"type":"string","enum":["rule","category","default"],"description":"rule: the site's rule for this agent. category: its category's default. default: nobody decided, so allow"}},"required":["action","source"],"additionalProperties":false,"description":"What applies to it now: its rule, else its category default, else allow"}},"required":["id","rule","access"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.access:write","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_remove_agent_rule","title":"Remove the site's rule for one agent","description":"The agent falls back to its category default (GET …/access), or allow. Returns what now applies to it. Safe to repeat: removing a rule the agent does not have changes nothing.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"visitorId":{"type":"string","minLength":1,"maxLength":64,"description":"An agent's id as GET …/visitors lists it (gptbot, chatgpt-user). Not a UUID"}},"required":["site","visitorId"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"description":"An agent's id as GET …/visitors lists it (gptbot, chatgpt-user). Not a UUID"},"rule":{"anyOf":[{"type":"string","enum":["allow","disallow","block"],"description":"allow: welcome, on the record (an Allow line in robots.txt). disallow: a robots.txt Disallow, a polite request well-behaved agents honour and others ignore. block: that Disallow AND a 403 at the site's edge, before the request reaches the website"},{"type":"null"}],"description":"The site's own rule for it; null when it has none (its category default, or allow, applies)"},"access":{"type":"object","properties":{"action":{"type":"string","enum":["allow","disallow","block"],"description":"allow: welcome, on the record (an Allow line in robots.txt). disallow: a robots.txt Disallow, a polite request well-behaved agents honour and others ignore. block: that Disallow AND a 403 at the site's edge, before the request reaches the website"},"source":{"type":"string","enum":["rule","category","default"],"description":"rule: the site's rule for this agent. category: its category's default. default: nobody decided, so allow"}},"required":["action","source"],"additionalProperties":false,"description":"What applies to it now: its rule, else its category default, else allow"}},"required":["id","rule","access"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"request":{"params":["site","visitorId"]}}}},"/studio/v1/front/sites/{site}/webhook-signing-key/reveal":{"post":{"operationId":"front.webhookSigningKey.reveal","tags":["Front actions"],"summary":"Reveal the site's webhook signing key","description":"The key a deliver action signs each request it POSTs to its webhook with: the signature is in `signatureHeader`, `sha256=` and the hex HMAC-SHA256 of the exact body bytes, keyed with this key. A secret: it needs front.secrets:reveal, which neither preset grants and no third-party assistant is given; every reveal is audited, and the answer is never stored or replayed. Keep it in your secret store.","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"}],"responses":{"200":{"description":"Reveal the site's webhook signing key","content":{"application/json":{"schema":{"type":"object","properties":{"fingerprint":{"type":"string","description":"Identifies the key without revealing it"},"algorithm":{"type":"string","description":"hmac-sha256: the header's value is `sha256=` and the hex HMAC-SHA256 of the exact body bytes, keyed with the key"},"signatureHeader":{"type":"string","description":"The header every delivered request carries its signature in (x-ora-signature)"},"createdAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"Since when deliveries are signed with it; null when not recorded"},"secret":{"type":"string","description":"The site's signing key (hex). Keep it in your secret store","x-ora-secret":true}},"required":["fingerprint","algorithm","signatureHeader","createdAt","secret"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The site does not exist here (SITE_NOT_FOUND), or this deployment signs no deliveries (SIGNING_KEY_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.secrets:reveal","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-secret-response":true,"x-ora-mcp-tool":false}},"/studio/v1/front/sites/{site}/webmcp":{"get":{"operationId":"front.webmcp.get","tags":["Front connection"],"summary":"Read the site's WebMCP tools","description":"The tools the website's pages register for agents in a browser (WebMCP), generated from the site's pages, and the script the website embeds to offer them. `tools` is null before the first generation.","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"}],"responses":{"200":{"description":"Read the site's WebMCP tools","content":{"application/json":{"schema":{"type":"object","properties":{"tools":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The tool's name, as the script registers it for agents"},"description":{"type":"string","description":"What the tool does, as agents read it"}},"required":["name","description"],"additionalProperties":false}},{"type":"null"}],"description":"The tools generated from the site's pages; null before the first generation"},"siteSummary":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"One line about the site, as the tools present it"},"scriptUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The script the website embeds (<script src>) so agents in a browser get the tools; null until the Front is published"},"skipReason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last generation produced no tools, when it produced none"},"notice":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the ask tool is left out, when it is: NLWeb is off where the tools would call it"}},"required":["tools","siteSummary","scriptUrl","skipReason","notice"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.connect:read","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_get_webmcp_tools","title":"Read the site's WebMCP tools","description":"The tools the website's pages register for agents in a browser (WebMCP), generated from the site's pages, and the script the website embeds to offer them. `tools` is null before the first generation.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."}},"required":["site"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"tools":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The tool's name, as the script registers it for agents"},"description":{"type":"string","description":"What the tool does, as agents read it"}},"required":["name","description"],"additionalProperties":false}},{"type":"null"}],"description":"The tools generated from the site's pages; null before the first generation"},"siteSummary":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"One line about the site, as the tools present it"},"scriptUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The script the website embeds (<script src>) so agents in a browser get the tools; null until the Front is published"},"skipReason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last generation produced no tools, when it produced none"},"notice":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the ask tool is left out, when it is: NLWeb is off where the tools would call it"}},"required":["tools","siteSummary","scriptUrl","skipReason","notice"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"request":{"params":["site"]}}}},"/studio/v1/front/sites/{site}/webmcp/generate":{"post":{"operationId":"front.webmcp.generate","tags":["Front connection"],"summary":"Generate the site's WebMCP tools","description":"Generates the WebMCP tools again from the pages Ora knows, replacing the previous ones. Deterministic: the same pages give the same tools. Returns them; `skipReason` says why none came out.","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."},"example":"acme.com"},{"name":"Idempotency-Key","in":"header","required":false,"description":"A unique value per logical request (a UUID). A retry with the same key and the same request replays the first answer instead of running again; keys are kept 24 hours.","schema":{"type":"string","minLength":1,"maxLength":255}}],"responses":{"200":{"description":"Generate the site's WebMCP tools","content":{"application/json":{"schema":{"type":"object","properties":{"tools":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The tool's name, as the script registers it for agents"},"description":{"type":"string","description":"What the tool does, as agents read it"}},"required":["name","description"],"additionalProperties":false}},{"type":"null"}],"description":"The tools generated from the site's pages; null before the first generation"},"siteSummary":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"One line about the site, as the tools present it"},"scriptUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The script the website embeds (<script src>) so agents in a browser get the tools; null until the Front is published"},"skipReason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last generation produced no tools, when it produced none"},"notice":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the ask tool is left out, when it is: NLWeb is off where the tools would call it"}},"required":["tools","siteSummary","scriptUrl","skipReason","notice"],"additionalProperties":false}}}},"400":{"description":"The request is malformed (INVALID_REQUEST, INVALID_SITE, CURSOR_FILTER_MISMATCH).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The addressed resource does not exist here (SITE_NOT_FOUND, <RESOURCE>_NOT_FOUND).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"The site's first build is not published yet (SITE_NOT_LIVE), or the Idempotency-Key conflicts (IDEMPOTENCY_KEY_REUSED; IDEMPOTENCY_IN_PROGRESS: retry with the same key).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.connect:write","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-idempotent":true,"x-ora-mcp-tool":{"name":"front_generate_webmcp_tools","title":"Generate the site's WebMCP tools","description":"Generates the WebMCP tools again from the pages Ora knows, replacing the previous ones. Deterministic: the same pages give the same tools. Returns them; `skipReason` says why none came out.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"site":{"type":"string","minLength":1,"maxLength":253,"description":"The site's id, or its hostname (`acme.com`). Store the id: it never changes."}},"required":["site"],"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"tools":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The tool's name, as the script registers it for agents"},"description":{"type":"string","description":"What the tool does, as agents read it"}},"required":["name","description"],"additionalProperties":false}},{"type":"null"}],"description":"The tools generated from the site's pages; null before the first generation"},"siteSummary":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"One line about the site, as the tools present it"},"scriptUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The script the website embeds (<script src>) so agents in a browser get the tools; null until the Front is published"},"skipReason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last generation produced no tools, when it produced none"},"notice":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the ask tool is left out, when it is: NLWeb is off where the tools would call it"}},"required":["tools","siteSummary","scriptUrl","skipReason","notice"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"request":{"params":["site"]}}}},"/studio/v1/front/usage":{"get":{"operationId":"front.usage.get","tags":["Front sites"],"summary":"Read the organization's Front plan and usage","description":"The plan, its limits (null: no limit) and what the organization's sites use of them.","responses":{"200":{"description":"Read the organization's Front plan and usage","content":{"application/json":{"schema":{"type":"object","properties":{"plan":{"type":"object","properties":{"name":{"type":"string","description":"The plan's key, e.g. `free` or `growth` (`unknown` while billing cannot be read)"},"displayName":{"type":"string","description":"The plan's name as Studio shows it, e.g. Growth"}},"required":["name","displayName"],"additionalProperties":false,"description":"The organization's plan"},"limits":{"type":"object","properties":{"sites":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}],"description":"The most Front sites the organization may have"},"pages":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}],"description":"The most pages the sites may hold: all together, or each site on its own where `usage.pages` is null"},"answers":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}],"description":"The most agent answers the sites may serve per billing period (Agent servings, in Studio)"}},"required":["sites","pages","answers"],"additionalProperties":false,"description":"What the plan allows; null: no limit"},"usage":{"type":"object","properties":{"sites":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"How many Front sites the organization has"},"pages":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}],"description":"How many pages the sites hold together; null where each site has its own page limit"},"answers":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"How many agent answers the sites served this billing period"},"answersPaused":{"type":"boolean","description":"Answers reached the limit and the agent stopped answering"},"resetsAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When `answers` starts again from zero, with the billing period; null when billing gives no date"}},"required":["sites","pages","answers","answersPaused","resetsAt"],"additionalProperties":false,"description":"What the organization uses of those limits"},"firstBuildPages":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991,"description":"Pages every site's first build reads"}},"required":["plan","limits","usage","firstBuildPages"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid (UNAUTHENTICATED, UNSUPPORTED_PRINCIPAL, USER_REQUIRED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (INSUFFICIENT_SCOPE, ROLE_REQUIRED, PRODUCT_NOT_ENABLED).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests (RATE_LIMITED); see Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Temporarily unavailable (UNAVAILABLE); `outcome` says whether a write may have committed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":[]}],"x-ora-visibility":"public","x-ora-scope":"front.sites:read","x-ora-product":"studio","x-ora-stability":"beta","x-ora-service":"studio-service","x-ora-mcp-tool":{"name":"front_get_usage","title":"Read the organization's Front plan and usage","description":"The plan, its limits (null: no limit) and what the organization's sites use of them.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{},"additionalProperties":false},"outputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"plan":{"type":"object","properties":{"name":{"type":"string","description":"The plan's key, e.g. `free` or `growth` (`unknown` while billing cannot be read)"},"displayName":{"type":"string","description":"The plan's name as Studio shows it, e.g. Growth"}},"required":["name","displayName"],"additionalProperties":false,"description":"The organization's plan"},"limits":{"type":"object","properties":{"sites":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}],"description":"The most Front sites the organization may have"},"pages":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}],"description":"The most pages the sites may hold: all together, or each site on its own where `usage.pages` is null"},"answers":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}],"description":"The most agent answers the sites may serve per billing period (Agent servings, in Studio)"}},"required":["sites","pages","answers"],"additionalProperties":false,"description":"What the plan allows; null: no limit"},"usage":{"type":"object","properties":{"sites":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"How many Front sites the organization has"},"pages":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}],"description":"How many pages the sites hold together; null where each site has its own page limit"},"answers":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"How many agent answers the sites served this billing period"},"answersPaused":{"type":"boolean","description":"Answers reached the limit and the agent stopped answering"},"resetsAt":{"anyOf":[{"type":"string","description":"UTC, ISO 8601"},{"type":"null"}],"description":"When `answers` starts again from zero, with the billing period; null when billing gives no date"}},"required":["sites","pages","answers","answersPaused","resetsAt"],"additionalProperties":false,"description":"What the organization uses of those limits"},"firstBuildPages":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991,"description":"Pages every site's first build reads"}},"required":["plan","limits","usage","firstBuildPages"],"additionalProperties":false},{"type":"object","properties":{"title":{"description":"The problem in a few words","type":"string"},"status":{"description":"The HTTP status the operation answered with","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong with this call, to show as is","type":"string"},"code":{"type":"string","minLength":1,"description":"Stable and machine-readable (e.g. SITE_NOT_FOUND): the thing to branch on"},"requestId":{"type":"string","minLength":1,"description":"What an operator searches the logs for: quote it when asking for help"},"retryable":{"type":"boolean","description":"Whether repeating the call can succeed"},"outcome":{"type":"string","enum":["not_applied","applied","unknown"],"description":"not_applied: nothing changed. applied: the change was applied. unknown: a write may have committed, so check the current state before repeating it: a repeat runs it again"},"retryAfter":{"description":"Seconds to wait before repeating the call, when known","type":"number","minimum":0},"reuseIdempotencyKey":{"description":"True only while the same request is still running: re-sending that very request gets its result once it finishes. Never set for a finished answer, an unknown one included","type":"boolean"},"nextSteps":{"description":"Steps that would resolve the problem, when there are any","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The step, as the site's own nextSteps name it"},"title":{"description":"The step in a sentence, to show as is","type":"string"},"operation":{"description":"The operation that takes the step, e.g. front.connection.update","type":"string"},"done":{"description":"True for a step already taken: listed for context, not to do","type":"boolean"}},"required":["id"],"additionalProperties":false}},"errors":{"description":"Which inputs were invalid, so the call can be corrected","type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Which input, e.g. hostname"},"message":{"type":"string","description":"What is wrong with it, to show as is"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","requestId","retryable","outcome"],"additionalProperties":false}]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"request":{}}}},"/studio/v1/goals/{goalId}":{"patch":{"operationId":"goals.update","summary":"Edit a goal's title, statement, config, or active flag","parameters":[{"name":"goalId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"statement":{"type":"string","maxLength":2000},"isActive":{"type":"boolean"},"config":{},"types":{"anyOf":[{"type":"string","const":"all"},{"minItems":1,"maxItems":6,"type":"array","items":{"type":"string","enum":["discover","choose","verify","inform","guide","act"]}}]},"category":{"type":"string","enum":["recommended","answered","accurate","informed","capability","real_steps","safe","task_done","other"]}},"additionalProperties":false}}}},"responses":{"200":{"description":"Edit a goal's title, statement, config, or active flag","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{"type":"object","properties":{"id":{"type":"string"},"intentId":{"type":"string"},"kind":{"type":"string","enum":["target_match","state_assertion","answer_check"]},"criterionGroup":{"anyOf":[{"type":"string","enum":["discover","choose","verify","inform","guide","act"]},{"type":"null"}]},"allTypes":{"type":"boolean"},"types":{"type":"array","items":{"type":"string","enum":["discover","choose","verify","inform","guide","act"]}},"category":{"anyOf":[{"type":"string","enum":["recommended","answered","accurate","informed","capability","real_steps","safe","task_done","other"]},{"type":"null"}]},"categorySetBy":{"anyOf":[{"type":"string","enum":["ora","caller"]},{"type":"null"}]},"isDrafted":{"type":"boolean"},"title":{"type":"string"},"statement":{"anyOf":[{"type":"string"},{"type":"null"}]},"config":{},"isActive":{"type":"boolean"},"position":{"type":"number"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","intentId","kind","criterionGroup","allTypes","types","category","categorySetBy","isDrafted","title","statement","config","isActive","position","createdBy","createdAt","updatedAt"],"additionalProperties":false}},"required":["success","data"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"intents:write","x-ora-product":"studio","x-ora-service":"studio-service"},"delete":{"operationId":"goals.delete","summary":"Deactivate a goal (soft delete: isActive=false)","parameters":[{"name":"goalId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Deactivate a goal (soft delete: isActive=false)","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":false}},"required":["success","data"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"intents:write","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/icps":{"get":{"operationId":"icps.list","summary":"List the ICPs a tracked domain holds","parameters":[{"name":"domainId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"List the ICPs a tracked domain holds","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{"type":"object","properties":{"icps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"description":{"type":"string"}},"required":["id","label","description"],"additionalProperties":false}}},"required":["icps"],"additionalProperties":false}},"required":["success","data"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"intents:read","x-ora-product":"studio","x-ora-service":"studio-service"},"post":{"operationId":"icps.create","summary":"Record an ICP for a tracked domain (get-or-create on its label)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"domainId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":{"type":"string","minLength":1,"maxLength":2000},"label":{"type":"string","minLength":1,"maxLength":80}},"required":["domainId","description"]}}}},"responses":{"200":{"description":"Record an ICP for a tracked domain (get-or-create on its label)","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"description":{"type":"string"}},"required":["id","label","description"],"additionalProperties":false}},"required":["success","data"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"intents:write","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/icps/{id}":{"patch":{"operationId":"icps.update","summary":"Rename, re-describe or archive an ICP","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":80},"description":{"type":"string","minLength":1,"maxLength":2000},"isActive":{"type":"boolean"}}}}}},"responses":{"200":{"description":"Rename, re-describe or archive an ICP","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{"type":"object","properties":{"updated":{"type":"boolean"}},"required":["updated"],"additionalProperties":false}},"required":["success","data"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"intents:write","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/intents":{"get":{"operationId":"intents.list","summary":"List the org's intents","parameters":[{"name":"window","in":"query","required":false,"schema":{"default":"30d","type":"string","enum":["7d","30d","90d"]}}],"responses":{"200":{"description":"List the org's intents","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"slug":{"type":"string"},"domainId":{"anyOf":[{"type":"string"},{"type":"null"}]},"promptCount":{"type":"number"},"tags":{"type":"array","items":{"type":"string"}},"goalKinds":{"type":"array","items":{"type":"string","enum":["target_match","state_assertion","answer_check"]}},"stageTags":{"type":"array","items":{"type":"string","enum":["discovery","access","use"]}},"success":{"anyOf":[{"type":"number"},{"type":"null"}]},"friction":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"healthy"}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"stage"},"stage":{"type":"string","enum":["discovery","access","use"]},"broke":{"type":"number"},"reached":{"type":"number"}},"required":["kind","stage","broke","reached"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"multiple"},"broke":{"type":"number"},"reached":{"type":"number"}},"required":["kind","broke","reached"],"additionalProperties":false}]},"health":{"type":"object","properties":{"band":{"type":"string","enum":["healthy","watch","broken","unknown"]},"score":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["band","score"],"additionalProperties":false},"sparkline":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string"},"value":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["day","value"],"additionalProperties":false}},"coverage":{"type":"object","properties":{"runs":{"type":"number"},"conclusive":{"type":"number"},"unmeasurable":{"type":"number"},"expected":{"type":"number"}},"required":["runs","conclusive","unmeasurable","expected"],"additionalProperties":false},"lowSample":{"type":"boolean"},"measurementPolicy":{"type":"object","properties":{"cadence":{"default":"daily","type":"string","enum":["daily","weekly","monthly","manual"]},"mcp_server_ids":{"default":[],"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"agents":{"default":[],"maxItems":20,"type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1},"model":{"type":"string","minLength":1,"description":"The model id, as GET /studio/v1/agents lists it for this harness (CLI: ora intents agents)."},"mcp_server_ids":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"skill_ids":{"default":[],"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"browser":{"type":"object","properties":{"webdriver":{"type":"boolean"},"webmcp":{"type":"boolean"},"webmcpTargetUrl":{"type":"string","maxLength":500,"format":"uri"},"webmcpSurface":{"type":"string","enum":["native","shim"]}},"additionalProperties":false}},"required":["harness","model","mcp_server_ids","skill_ids"],"additionalProperties":false}},"skill_ids":{"default":[],"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"browser":{"type":"object","properties":{"webdriver":{"type":"boolean"},"webmcp":{"type":"boolean"},"webmcpTargetUrl":{"type":"string","maxLength":500,"format":"uri"},"webmcpSurface":{"type":"string","enum":["native","shim"]}},"additionalProperties":false},"competitors":{"default":[],"maxItems":6,"type":"array","items":{"type":"string","minLength":1}}},"required":["cadence","mcp_server_ids","agents","skill_ids","competitors"],"additionalProperties":false}},"required":["id","title","slug","domainId","promptCount","tags","goalKinds","stageTags","success","friction","health","sparkline","coverage","lowSample","measurementPolicy"],"additionalProperties":false}}},"required":["success","data"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"intents:read","x-ora-product":"studio","x-ora-service":"studio-service"},"post":{"operationId":"intents.create","summary":"Create an intent","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1},"layer":{"type":"string","enum":["discovery","access","use"]},"description":{"type":"string"},"domainId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"criteria":{"minItems":1,"maxItems":48,"type":"array","items":{"type":"object","properties":{"statement":{"type":"string","minLength":1,"maxLength":300},"types":{"anyOf":[{"type":"string","const":"all"},{"minItems":1,"maxItems":6,"type":"array","items":{"type":"string","enum":["discover","choose","verify","inform","guide","act"]}}]},"category":{"type":"string","enum":["recommended","answered","accurate","informed","capability","real_steps","safe","task_done","other"]},"needsTools":{"type":"boolean"}},"required":["statement"]}}},"required":["title"]},"example":{"title":"Best AEO platform for B2B SaaS","layer":"discovery"}}}},"responses":{"200":{"description":"Create an intent","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{"type":"object","properties":{"id":{"type":"string"},"layer":{"type":"string","enum":["discovery","access","use"]}},"required":["id","layer"],"additionalProperties":false}},"required":["success","data"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Who an api key acts as could not be decided: the lookup of its creator did not complete (api_key_owner_lookup_failed). Nothing was written; retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"intents:write","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/intents/bulk":{"post":{"operationId":"intents.bulkAction","summary":"Pause, resume, or delete a selection of intents","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"action":{"type":"string","enum":["pause","resume","delete"]},"ids":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["action","ids"]}}}},"responses":{"200":{"description":"Pause, resume, or delete a selection of intents","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{"type":"object","properties":{"intents":{"type":"number"},"prompts":{"type":"number"}},"required":["intents","prompts"],"additionalProperties":false}},"required":["success","data"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"intents:write","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/intents/bulk-create":{"post":{"operationId":"intents.bulkCreate","summary":"Bulk-create intents with their prompts (CSV import / create-modal commit)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"source":{"type":"string","enum":["csv","manual","generated"]},"intents":{"minItems":1,"maxItems":2000,"type":"array","items":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":255},"layer":{"type":"string","enum":["discovery","access","use"]},"persona":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"goal":{"type":"object","properties":{"statement":{"type":"string","minLength":1,"maxLength":300}},"required":["statement"]},"criteria":{"maxItems":48,"type":"array","items":{"type":"object","properties":{"statement":{"type":"string","minLength":1,"maxLength":300},"types":{"anyOf":[{"type":"string","const":"all"},{"minItems":1,"maxItems":6,"type":"array","items":{"type":"string","enum":["discover","choose","verify","inform","guide","act"]}}]},"category":{"type":"string","enum":["recommended","answered","accurate","informed","capability","real_steps","safe","task_done","other"]},"needsTools":{"type":"boolean"}},"required":["statement"]}},"agents":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1},"model":{"type":"string","minLength":1,"description":"The model id, as GET /studio/v1/agents lists it for this harness (CLI: ora intents agents)."},"mcp_server_ids":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"skill_ids":{"default":[],"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"browser":{"type":"object","properties":{"webdriver":{"type":"boolean"},"webmcp":{"type":"boolean"},"webmcpTargetUrl":{"type":"string","maxLength":500,"format":"uri"},"webmcpSurface":{"type":"string","enum":["native","shim"]}},"additionalProperties":false}},"required":["harness","model"]}},"prompts":{"minItems":1,"maxItems":2000,"type":"array","items":{"type":"object","properties":{"text":{"type":"string","minLength":1},"category":{"type":"string","minLength":1},"persona":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"branding":{"anyOf":[{"type":"string","enum":["organic","named"]},{"type":"null"}]}},"required":["text"]}}},"required":["title","prompts"]}},"domainId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"icpId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"firstMeasurement":{"type":"string","enum":["written","intent"]}},"required":["intents"]}}}},"responses":{"200":{"description":"Bulk-create intents with their prompts (CSV import / create-modal commit)","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{"type":"object","properties":{"intents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"merged":{"type":"boolean"},"promptsCreated":{"type":"number"},"setupsApplied":{"type":"boolean"},"measurementStart":{"oneOf":[{"type":"object","properties":{"started":{"type":"boolean","const":true}},"required":["started"],"additionalProperties":false},{"type":"object","properties":{"started":{"type":"boolean","const":false},"reason":{"type":"string","enum":["no_attributable_member","deferred"]}},"required":["started","reason"],"additionalProperties":false}]}},"required":["id","title","merged","promptsCreated","measurementStart"],"additionalProperties":false}},"truncated":{"type":"number"}},"required":["intents","truncated"],"additionalProperties":false}},"required":["success","data"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"A firstMeasurement \"intent\" commit's first measurement — every active prompt of each intent it writes to, an intent it merges into included, as one pass — would exceed the org's agent_runs quota (LIMIT_EXCEEDED); nothing was written. Other commits are not charged up front.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Who an api key acts as could not be decided: the lookup of its creator did not complete (api_key_owner_lookup_failed). Nothing was written; retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"intents:write","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/intents/measurements/pause-all":{"post":{"operationId":"intents.measurementsPauseAll","summary":"Pause every measurement trigger in the org","responses":{"200":{"description":"Pause every measurement trigger in the org","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{"type":"object","properties":{"updated":{"type":"number"},"status":{"type":"string"}},"required":["updated","status"],"additionalProperties":false}},"required":["success","data"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"intents:write","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/intents/measurements/resume-all":{"post":{"operationId":"intents.measurementsResumeAll","summary":"Resume every measurement trigger in the org","responses":{"200":{"description":"Resume every measurement trigger in the org","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{"type":"object","properties":{"updated":{"type":"number"},"status":{"type":"string"}},"required":["updated","status"],"additionalProperties":false}},"required":["success","data"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"intents:write","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/intents/measurements/status":{"get":{"operationId":"intents.measurementsStatus","summary":"Org-wide measurement-trigger census (active/paused/error)","responses":{"200":{"description":"Org-wide measurement-trigger census (active/paused/error)","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{"type":"object","properties":{"active":{"type":"number"},"paused":{"type":"number"},"error":{"type":"number"}},"required":["active","paused","error"],"additionalProperties":false}},"required":["success","data"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"intents:read","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/intents/{id}":{"get":{"operationId":"intents.get","summary":"Read one intent, its prompts, and its computed metrics","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Read one intent, its prompts, and its computed metrics","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{"type":"object","properties":{"health":{"anyOf":[{"type":"number"},{"type":"null"}]},"healthBreakdown":{"type":"object","properties":{"contributions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"count":{"type":"number"},"weight":{"type":"number"},"value":{"type":"number"}},"required":["id","label","count","weight","value"],"additionalProperties":false}},"value":{"type":"number"},"E":{"type":"number"},"absent":{"type":"number"}},"required":["contributions","value","E","absent"],"additionalProperties":false},"healthPillars":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"confidence":{"type":"object","properties":{"value":{"type":"number"},"band":{"type":"string","enum":["steady","partial","sparse"]}},"required":["value","band"],"additionalProperties":false},"coverage":{"type":"number"},"visibility":{"type":"number"},"recommendedRate":{"type":"number"},"mentionedRate":{"type":"number"},"shareOfVoice":{"type":"number"},"citationRate":{"type":"number"},"avgPosition":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgCitedRank":{"anyOf":[{"type":"number"},{"type":"null"}]},"sentimentNet":{"anyOf":[{"type":"number"},{"type":"null"}]},"conclusiveRuns":{"type":"number"},"failedRuns":{"type":"number"},"scoredRuns":{"type":"number"},"goalsReached":{"type":"number"},"goalRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgFriction":{"anyOf":[{"type":"number"},{"type":"null"}]},"positionRuns":{"type":"number"},"citedRankRuns":{"type":"number"},"windowDays":{"type":"number"},"id":{"type":"string"},"measuringPrompts":{"type":"number"},"domainId":{"anyOf":[{"type":"string"},{"type":"null"}]},"slug":{"type":"string"},"title":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"layer":{"type":"string"},"isActive":{"type":"boolean"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"metrics":{"type":"array","items":{}},"competitors":{"type":"array","items":{"type":"object","properties":{"brand":{"type":"string"},"share":{"type":"number"},"tracked":{"type":"boolean"},"domain":{"anyOf":[{"type":"string"},{"type":"null"}]},"curated":{"type":"boolean"}},"required":["brand","share","tracked"],"additionalProperties":false}},"sources":{"type":"array","items":{"type":"object","properties":{"host":{"type":"string"},"share":{"type":"number"},"count":{"type":"number"},"rank":{"anyOf":[{"type":"number"},{"type":"null"}]},"owned":{"type":"boolean"}},"required":["host","share","count","rank","owned"],"additionalProperties":false}},"brandDays":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string"},"runs":{"type":"number"},"totalRecs":{"type":"number"},"brands":{"type":"array","items":{}}},"required":["day","runs","totalRecs","brands"],"additionalProperties":false}},"prompts":{"type":"array","items":{}},"sparkline":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string"},"health":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["day","health"],"additionalProperties":false}},"trends":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"value":{"anyOf":[{"type":"number"},{"type":"null"}]},"delta":{"anyOf":[{"type":"number"},{"type":"null"}]},"series":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string"},"value":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["day","value"],"additionalProperties":false}}},"required":["value","delta","series"],"additionalProperties":false}},"brands":{"type":"array","items":{}},"engines":{"type":"array","items":{}},"measurementPolicy":{"description":"The intent's agents (each with its mcp_server_ids and skill_ids), cadence and competitors, in the shape PATCH /studio/v1/intents/{id}/measurement-policy takes (CLI: ora intents measurement-policy). Send the whole agents list back: the PATCH replaces it.","type":"object","properties":{"cadence":{"default":"daily","type":"string","enum":["daily","weekly","monthly","manual"]},"mcp_server_ids":{"default":[],"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"agents":{"default":[],"maxItems":20,"type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1},"model":{"type":"string","minLength":1,"description":"The model id, as GET /studio/v1/agents lists it for this harness (CLI: ora intents agents)."},"mcp_server_ids":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"skill_ids":{"default":[],"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"browser":{"type":"object","properties":{"webdriver":{"type":"boolean"},"webmcp":{"type":"boolean"},"webmcpTargetUrl":{"type":"string","maxLength":500,"format":"uri"},"webmcpSurface":{"type":"string","enum":["native","shim"]}},"additionalProperties":false}},"required":["harness","model","mcp_server_ids","skill_ids"],"additionalProperties":false}},"skill_ids":{"default":[],"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"browser":{"type":"object","properties":{"webdriver":{"type":"boolean"},"webmcp":{"type":"boolean"},"webmcpTargetUrl":{"type":"string","maxLength":500,"format":"uri"},"webmcpSurface":{"type":"string","enum":["native","shim"]}},"additionalProperties":false},"competitors":{"default":[],"maxItems":6,"type":"array","items":{"type":"string","minLength":1}}},"required":["cadence","mcp_server_ids","agents","skill_ids","competitors"],"additionalProperties":false},"mcpServers":{"description":"The MCP servers measurementPolicy names, by id, with their name and url.","type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"url":{"type":"string"}},"required":["id","name","url"],"additionalProperties":false}}},"required":["health","healthBreakdown","healthPillars","confidence","coverage","visibility","recommendedRate","mentionedRate","shareOfVoice","citationRate","avgPosition","avgCitedRank","sentimentNet","conclusiveRuns","failedRuns","scoredRuns","goalsReached","goalRate","avgFriction","positionRuns","citedRankRuns","windowDays","id","measuringPrompts","domainId","slug","title","description","layer","isActive","createdAt","updatedAt","competitors","sources","brandDays","prompts","sparkline","trends","brands","engines"],"additionalProperties":false}},"required":["success","data"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"intents:read","x-ora-product":"studio","x-ora-service":"studio-service"},"patch":{"operationId":"intents.update","summary":"Update an intent's title, layer, or description","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1},"layer":{"type":"string","enum":["discovery","access","use"]},"description":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}}},"responses":{"200":{"description":"Update an intent's title, layer, or description","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":false}},"required":["success","data"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"intents:write","x-ora-product":"studio","x-ora-service":"studio-service"},"delete":{"operationId":"intents.delete","summary":"Soft-delete an intent and its prompts","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Soft-delete an intent and its prompts","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":false}},"required":["success","data"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"intents:write","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/intents/{id}/analytics-summary":{"get":{"operationId":"intents.analytics","summary":"The intent's analytics over a window, short: each layer's healthy runs (discovery, access, use), positioning per question type (yes / depends / no / none; read rates over the non-none answers), per-agent rates (visible, recommended, cited), how often you and the top competitors were recommended or only mentioned, and the top cited sources","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"window","in":"query","required":false,"schema":{"default":"30d","type":"string","enum":["7d","30d","90d"]}}],"responses":{"200":{"description":"The intent's analytics over a window, short: each layer's healthy runs (discovery, access, use), positioning per question type (yes / depends / no / none; read rates over the non-none answers), per-agent rates (visible, recommended, cited), how often you and the top competitors were recommended or only mentioned, and the top cited sources","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{"type":"object","properties":{"intentId":{"type":"string"},"window":{"type":"string"},"since":{"type":"string"},"layers":{"type":"array","items":{"type":"object","properties":{"layer":{"type":"string"},"touched":{"type":"number"},"healthy":{"type":"number"},"broke":{"type":"number"}},"required":["layer","touched","healthy","broke"],"additionalProperties":false}},"positioning":{"type":"object","properties":{"yes":{"type":"number"},"depends":{"type":"number"},"no":{"type":"number"},"none":{"type":"number"},"byQuestionType":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"question":{"type":"string"},"yes":{"type":"number"},"depends":{"type":"number"},"no":{"type":"number"},"none":{"type":"number"}},"required":["type","question","yes","depends","no","none"],"additionalProperties":false}}},"required":["yes","depends","no","none","byQuestionType"],"additionalProperties":false},"agents":{"type":"array","items":{"type":"object","properties":{"agent":{"type":"string"},"runs":{"type":"number"},"conclusive":{"type":"number"},"answered":{"type":"number"},"visibleRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"recommendedRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"citedRate":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["agent","runs","conclusive","answered","visibleRate","recommendedRate","citedRate"],"additionalProperties":false}},"you":{"anyOf":[{"type":"object","properties":{"recommended":{"type":"number"},"mentioned":{"type":"number"}},"required":["recommended","mentioned"],"additionalProperties":false},{"type":"null"}]},"competitors":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"domain":{"anyOf":[{"type":"string"},{"type":"null"}]},"recommended":{"type":"number"},"mentioned":{"type":"number"}},"required":["name","domain","recommended","mentioned"],"additionalProperties":false}},"sources":{"type":"object","properties":{"answers":{"type":"number"},"answersCitingYou":{"type":"number"},"top":{"type":"array","items":{"type":"object","properties":{"domain":{"type":"string"},"ownership":{"type":"string"},"citations":{"type":"number"},"answers":{"type":"number"},"pages":{"type":"number"}},"required":["domain","ownership","citations","answers","pages"],"additionalProperties":false}}},"required":["answers","answersCitingYou","top"],"additionalProperties":false},"recent":{"type":"array","items":{"type":"object","properties":{"measurementId":{"type":"string"},"startedAt":{"type":"string"},"runs":{"type":"number"},"complete":{"type":"boolean"},"discovery":{"anyOf":[{"type":"number"},{"type":"null"}]},"access":{"anyOf":[{"type":"number"},{"type":"null"}]},"use":{"anyOf":[{"type":"number"},{"type":"null"}]},"answerScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"answered":{"anyOf":[{"type":"object","properties":{"done":{"type":"number"},"of":{"type":"number"}},"required":["done","of"],"additionalProperties":false},{"type":"null"}]}},"required":["measurementId","startedAt","runs","complete","discovery","access","use","answerScore","answered"],"additionalProperties":false}},"links":{"type":"object","properties":{"studio":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["studio"],"additionalProperties":false}},"required":["intentId","window","since","layers","positioning","agents","you","competitors","sources","recent","links"],"additionalProperties":false}},"required":["success","data"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"intents:read","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/intents/{id}/answers":{"get":{"operationId":"intents.answers","summary":"Every answer of one measurement and what it said about each brand: status (recommended / conditional / mentioned / ruled_out), the answer's own quote, what it credited the brand for, its drawbacks, and the brands recommended instead of you. The latest finished measurement unless you pass one from intents.history (CLI: ora intents history)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"measurement","in":"query","required":false,"schema":{"description":"A measurement id from GET /studio/v1/intents/{id}/history (CLI: ora intents history). Default: the latest finished one.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Every answer of one measurement and what it said about each brand: status (recommended / conditional / mentioned / ruled_out), the answer's own quote, what it credited the brand for, its drawbacks, and the brands recommended instead of you. The latest finished measurement unless you pass one from intents.history (CLI: ora intents history)","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{"type":"object","properties":{"intentId":{"type":"string"},"measurementId":{"anyOf":[{"type":"string"},{"type":"null"}]},"measurementStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"measuredAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"answers":{"type":"array","items":{"type":"object","properties":{"runId":{"type":"string"},"prompt":{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"text":{"anyOf":[{"type":"string"},{"type":"null"}]},"branding":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"organic (the prompt does not name you) or named; null for a prompt never classified."}},"required":["id","text","branding"],"additionalProperties":false},"agent":{"type":"object","properties":{"label":{"type":"string"},"harness":{"anyOf":[{"type":"string"},{"type":"null"}]},"model":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["label","harness","model"],"additionalProperties":false},"questionType":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The question type the judge read the answer as (discover, choose, …). Never mix types when you compare."},"bottomLine":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The answer's own conclusion, when it gave one."},"you":{"anyOf":[{"type":"string","enum":["recommended","conditional","mentioned","ruled_out","not_named"]},{"type":"null"}],"description":"Your best status in this answer; not_named when the answer did not name you; null when the run has no judged answer, or its question type (guide, inform, verify, act) records no brands."},"check":{"anyOf":[{"type":"object","properties":{"verdict":{"type":"string","enum":["met","not_met","not_measured"],"description":"Ora's own check that the answer does what the question asks; not_measured when there was no answer to judge."},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The judge's reason."},"quote":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The answer's words the check rests on."}},"required":["verdict","reason","quote"],"additionalProperties":false},{"type":"null"}]},"criteria":{"type":"array","items":{"type":"object","properties":{"goalId":{"type":"string"},"text":{"type":"string","description":"The criterion, as written on the intent."},"type":{"anyOf":[{"type":"string","enum":["discover","choose","verify","inform","guide","act"]},{"type":"null"}],"description":"The question type the criterion is checked on."},"result":{"type":"string","enum":["met","partly","not_met","not_applicable","couldnt_measure"]},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The judge's reason."},"quote":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The answer's words the ruling rests on."}},"required":["goalId","text","type","result","reason","quote"],"additionalProperties":false},"description":"Each answer criterion the judge ruled on for this answer."},"brands":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"domain":{"anyOf":[{"type":"string"},{"type":"null"}]},"isYou":{"type":"boolean","description":"This brand is you: your tracked brand or one of your own products."},"status":{"type":"string","enum":["recommended","conditional","mentioned","ruled_out"],"description":"What the answer concluded about the brand for this person."},"quote":{"type":"string","description":"The answer's own words about the brand, checked against the answer text."},"reasons":{"type":"array","items":{"type":"string"},"description":"What the answer credited the brand for, in the judge's short words."},"concerns":{"type":"array","items":{"type":"string"},"description":"The drawbacks the answer gave for the brand, in the judge's short words."},"conditions":{"type":"array","items":{"type":"string"},"description":"What choosing the brand depends on, for a conditional status."}},"required":["name","domain","isYou","status","quote","reasons","concerns","conditions"],"additionalProperties":false}},"recommendedInstead":{"type":"array","items":{"type":"string"},"description":"When you are not recommended: the other brands this answer recommended."}},"required":["runId","prompt","agent","questionType","bottomLine","you","check","criteria","brands","recommendedInstead"],"additionalProperties":false}}},"required":["intentId","measurementId","measurementStatus","measuredAt","answers"],"additionalProperties":false}},"required":["success","data"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No measurement with this id on this intent in the caller's organization (measurement_not_found).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"intents:read","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/intents/{id}/criteria/question-types":{"get":{"operationId":"goals.criteriaQuestionTypes","summary":"The question types the intent's prompts ask, each of which takes answer criteria","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"The question types the intent's prompts ask, each of which takes answer criteria","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{"type":"object","properties":{"types":{"type":"array","items":{"type":"string","enum":["discover","choose","verify","inform","guide","act"]}}},"required":["types"],"additionalProperties":false}},"required":["success","data"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"intents:read","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/intents/{id}/criteria/results":{"get":{"operationId":"goals.results","summary":"Answer criteria results added up over a range of days: every measurement started on a UTC day in the range. Pass `window` (7d, 30d or 90d, counted back from today, today included) or exact `from` and `to` days (inclusive, at most 92 days); with neither, the last 30 days. The response names the exact days counted. Per question type and per criterion, how many judged answers passed, with the same split per agent and per prompt; `scores` adds up each run's criteria passed ÷ judged; `measurements` lists the measurements counted. Nothing is re-judged: each measurement counts as it was scored","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"window","in":"query","required":false,"schema":{"description":"Days counted back from today, today included (7d, 30d or 90d). Use either this or from and to","type":"string","enum":["7d","30d","90d"]}},{"name":"from","in":"query","required":false,"schema":{"description":"First UTC day of the range, inclusive. Pass with to","type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"to","in":"query","required":false,"schema":{"description":"Last UTC day of the range, inclusive. Pass with from","type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}}],"responses":{"200":{"description":"Answer criteria results added up over a range of days: every measurement started on a UTC day in the range. Pass `window` (7d, 30d or 90d, counted back from today, today included) or exact `from` and `to` days (inclusive, at most 92 days); with neither, the last 30 days. The response names the exact days counted. Per question type and per criterion, how many judged answers passed, with the same split per agent and per prompt; `scores` adds up each run's criteria passed ÷ judged; `measurements` lists the measurements counted. Nothing is re-judged: each measurement counts as it was scored","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{"type":"object","properties":{"window":{"anyOf":[{"type":"string","enum":["7d","30d","90d"]},{"type":"null"}],"description":"The window asked for; null when from and to were given"},"from":{"type":"string","description":"First UTC day counted, inclusive"},"to":{"type":"string","description":"Last UTC day counted, inclusive"},"measurements":{"type":"array","items":{"type":"object","properties":{"measurementId":{"type":"string"},"measuredAt":{"type":"string"},"measurementKind":{"type":"string"}},"required":["measurementId","measuredAt","measurementKind"],"additionalProperties":false}},"groups":{"type":"array","items":{"type":"object","properties":{"passed":{"type":"number"},"judged":{"type":"number"},"group":{"type":"string","enum":["discover","choose","verify","inform","guide","act"]}},"required":["passed","judged","group"],"additionalProperties":false}},"criteria":{"type":"array","items":{"type":"object","properties":{"passed":{"type":"number"},"judged":{"type":"number"},"goalId":{"type":"string"},"group":{"type":"string","enum":["discover","choose","verify","inform","guide","act"]},"text":{"type":"string"},"byAgent":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"passed":{"type":"number"},"judged":{"type":"number"}},"required":["passed","judged"],"additionalProperties":false}},"byPrompt":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"passed":{"type":"number"},"judged":{"type":"number"}},"required":["passed","judged"],"additionalProperties":false}}},"required":["passed","judged","goalId","group","text","byAgent","byPrompt"],"additionalProperties":false}},"scores":{"anyOf":[{"type":"object","properties":{"runs":{"type":"number"},"sum":{"type":"number"},"byGroup":{"type":"object","propertyNames":{"type":"string","enum":["discover","choose","verify","inform","guide","act"]},"additionalProperties":{"type":"object","properties":{"runs":{"type":"number"},"sum":{"type":"number"}},"required":["runs","sum"],"additionalProperties":false}}},"required":["runs","sum","byGroup"],"additionalProperties":false},{"type":"null"}]}},"required":["window","from","to","measurements","groups","criteria","scores"],"additionalProperties":false}},"required":["success","data"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The range holds too many measurements; narrow it (too_many_measurements).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"intents:read","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/intents/{id}/criteria/suggestions":{"post":{"operationId":"goals.suggestCriteria","summary":"Ora's suggested criteria for the question types the intent's prompts ask (or the `types` given), from the business profile, the intent and its tools. Nothing is saved","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"types":{"minItems":1,"type":"array","items":{"type":"string","enum":["discover","choose","verify","inform","guide","act"]}},"type":{"type":"string","enum":["discover","choose","verify","inform","guide","act"]}},"additionalProperties":false}}}},"responses":{"200":{"description":"Ora's suggested criteria for the question types the intent's prompts ask (or the `types` given), from the business profile, the intent and its tools. Nothing is saved","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{"type":"object","properties":{"criteria":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string"},"needsTools":{"type":"boolean"},"types":{"type":"array","items":{"type":"string","enum":["discover","choose","verify","inform","guide","act"]}}},"required":["text","needsTools","types"],"additionalProperties":false}}},"required":["criteria"],"additionalProperties":false}},"required":["success","data"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"intents:write","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/intents/{id}/generate":{"post":{"operationId":"intents.generate","summary":"Generate and persist prompts for an intent via its layer strategy","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Generate and persist prompts for an intent via its layer strategy","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"questionTypes":{"type":"array","items":{"type":"string","enum":["discover","choose","verify","inform","guide","act"]}},"coverage":{"type":"string","enum":["covered","no_criterion_for_type","type_not_known","not_required"]},"category":{"type":"string"},"persona":{"anyOf":[{"type":"string"},{"type":"null"}]},"branding":{"anyOf":[{"type":"string","enum":["organic","named","unknown"]},{"type":"null"}]},"classifiedBy":{"type":"string"},"source":{"type":"string"},"isActive":{"type":"boolean"},"textUpdatedAt":{"type":"string"},"createdAt":{"type":"string"},"visibility":{"type":"number"},"health":{"anyOf":[{"type":"number"},{"type":"null"}]},"healthBreakdown":{"type":"object","properties":{"contributions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"count":{"type":"number"},"weight":{"type":"number"},"value":{"type":"number"}},"required":["id","label","count","weight","value"],"additionalProperties":false}},"value":{"type":"number"},"E":{"type":"number"},"absent":{"type":"number"}},"required":["contributions","value","E","absent"],"additionalProperties":false},"avgPosition":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgCitedRank":{"anyOf":[{"type":"number"},{"type":"null"}]},"rank":{"anyOf":[{"type":"number"},{"type":"null"}]},"citationRate":{"type":"number"},"sentimentNet":{"anyOf":[{"type":"number"},{"type":"null"}]},"sentiment":{"type":"object","properties":{"positive":{"type":"number"},"neutral":{"type":"number"},"negative":{"type":"number"}},"required":["positive","neutral","negative"],"additionalProperties":false},"byEngine":{"type":"array","items":{"type":"object","properties":{"engine":{"type":"string"},"visibility":{"type":"number"},"runs":{"type":"number"},"recommendedRuns":{"type":"number"}},"required":["engine","visibility","runs","recommendedRuns"],"additionalProperties":false}},"visibilitySeries":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string"},"value":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["day","value"],"additionalProperties":false}},"measured":{"type":"boolean"},"volume":{"type":"number"},"success":{"anyOf":[{"type":"number"},{"type":"null"}]},"visScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"sources":{"type":"array","items":{"type":"object","properties":{"host":{"type":"string"},"share":{"type":"number"},"count":{"type":"number"},"rank":{"anyOf":[{"type":"number"},{"type":"null"}]},"owned":{"type":"boolean"}},"required":["host","share","count","rank","owned"],"additionalProperties":false}},"agentResponses":{"type":"array","items":{"type":"object","properties":{"engine":{"type":"string"},"text":{"type":"string"}},"required":["engine","text"],"additionalProperties":false}},"latestByEngine":{"type":"array","items":{"type":"object","properties":{"engine":{"type":"string"},"brands":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"domain":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string"},"position":{"anyOf":[{"type":"number"},{"type":"null"}]},"tracked":{"type":"boolean"}},"required":["name","domain","status","position","tracked"],"additionalProperties":false}}},"required":["engine","brands"],"additionalProperties":false}},"measurementStart":{"oneOf":[{"type":"object","properties":{"started":{"type":"boolean","const":true}},"required":["started"],"additionalProperties":false},{"type":"object","properties":{"started":{"type":"boolean","const":false},"reason":{"type":"string","enum":["no_attributable_member","deferred"]}},"required":["started","reason"],"additionalProperties":false}]}},"required":["id","text","category","persona","branding","classifiedBy","source","isActive","textUpdatedAt","createdAt","visibility","health","healthBreakdown","avgPosition","avgCitedRank","rank","citationRate","sentimentNet","sentiment","byEngine","visibilitySeries","measured","volume","success","visScore","sources","agentResponses","latestByEngine","measurementStart"],"additionalProperties":false}}},"required":["success","data"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Who an api key acts as could not be decided: the lookup of its creator did not complete (api_key_owner_lookup_failed). Nothing was written; retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"intents:write","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/intents/{id}/goal-report":{"get":{"operationId":"goals.report","summary":"The results of an intent's measurements. Each goal's verdicts over a window (live goals, plus any retired goal judged in it) and its met rate: met ÷ scored, where scored is met + partial + not_met (unobservable runs are not scored). `criteria` compares the latest finished measurement with the one before it: per question type (discover, choose, verify, inform, guide, act) and per criterion, how many judged answers passed, and per agent for the latest; `scores` averages each run's criteria passed ÷ judged, overall and per question type; `grid` breaks the latest finished measurement down by prompt × agent; `links.studio` opens it in Studio","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"window","in":"query","required":false,"schema":{"default":"30d","type":"string","enum":["7d","30d","90d"]}}],"responses":{"200":{"description":"The results of an intent's measurements. Each goal's verdicts over a window (live goals, plus any retired goal judged in it) and its met rate: met ÷ scored, where scored is met + partial + not_met (unobservable runs are not scored). `criteria` compares the latest finished measurement with the one before it: per question type (discover, choose, verify, inform, guide, act) and per criterion, how many judged answers passed, and per agent for the latest; `scores` averages each run's criteria passed ÷ judged, overall and per question type; `grid` breaks the latest finished measurement down by prompt × agent; `links.studio` opens it in Studio","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{"type":"object","properties":{"intentId":{"type":"string"},"window":{"type":"string","enum":["7d","30d","90d"]},"since":{"type":"string"},"goals":{"type":"object","properties":{"goals":{"type":"array","items":{"type":"object","properties":{"verdicts":{"type":"object","propertyNames":{"type":"string","enum":["met","partial","not_met","unobservable"]},"additionalProperties":{"type":"number"},"required":["met","partial","not_met","unobservable"]},"scored":{"type":"number"},"met":{"type":"number"},"metRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalId":{"type":"string"},"kind":{"anyOf":[{"type":"string","enum":["target_match","state_assertion","answer_check"]},{"type":"null"}]},"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"isActive":{"type":"boolean"},"judgedBy":{"type":"array","items":{"type":"string"}}},"required":["verdicts","scored","met","metRate","goalId","kind","title","isActive","judgedBy"],"additionalProperties":false}},"expectations":{"type":"array","items":{"type":"object","properties":{"verdicts":{"type":"object","propertyNames":{"type":"string","enum":["met","partial","not_met","unobservable"]},"additionalProperties":{"type":"number"},"required":["met","partial","not_met","unobservable"]},"scored":{"type":"number"},"met":{"type":"number"},"metRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"promptId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["verdicts","scored","met","metRate","promptId"],"additionalProperties":false}}},"required":["goals","expectations"],"additionalProperties":false},"criteria":{"type":"object","properties":{"latest":{"anyOf":[{"type":"object","properties":{"measuredAt":{"type":"string"},"measurementKind":{"type":"string"}},"required":["measuredAt","measurementKind"],"additionalProperties":false},{"type":"null"}]},"previous":{"anyOf":[{"type":"object","properties":{"measuredAt":{"type":"string"},"measurementKind":{"type":"string"}},"required":["measuredAt","measurementKind"],"additionalProperties":false},{"type":"null"}]},"groups":{"type":"array","items":{"type":"object","properties":{"passed":{"type":"number"},"judged":{"type":"number"},"group":{"type":"string","enum":["discover","choose","verify","inform","guide","act"]},"before":{"anyOf":[{"type":"object","properties":{"passed":{"type":"number"},"judged":{"type":"number"}},"required":["passed","judged"],"additionalProperties":false},{"type":"null"}]}},"required":["passed","judged","group","before"],"additionalProperties":false}},"criteria":{"type":"array","items":{"type":"object","properties":{"passed":{"type":"number"},"judged":{"type":"number"},"goalId":{"type":"string"},"group":{"type":"string","enum":["discover","choose","verify","inform","guide","act"]},"text":{"type":"string"},"before":{"anyOf":[{"type":"object","properties":{"passed":{"type":"number"},"judged":{"type":"number"}},"required":["passed","judged"],"additionalProperties":false},{"type":"null"}]},"byAgent":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"passed":{"type":"number"},"judged":{"type":"number"}},"required":["passed","judged"],"additionalProperties":false}},"byPrompt":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"passed":{"type":"number"},"judged":{"type":"number"}},"required":["passed","judged"],"additionalProperties":false}},"beforeByPrompt":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"passed":{"type":"number"},"judged":{"type":"number"}},"required":["passed","judged"],"additionalProperties":false}},{"type":"null"}]}},"required":["passed","judged","goalId","group","text","before","byAgent","byPrompt","beforeByPrompt"],"additionalProperties":false}},"scores":{"type":"object","properties":{"latest":{"anyOf":[{"type":"object","properties":{"runs":{"type":"number"},"sum":{"type":"number"},"byGroup":{"type":"object","propertyNames":{"type":"string","enum":["discover","choose","verify","inform","guide","act"]},"additionalProperties":{"type":"object","properties":{"runs":{"type":"number"},"sum":{"type":"number"}},"required":["runs","sum"],"additionalProperties":false}}},"required":["runs","sum","byGroup"],"additionalProperties":false},{"type":"null"}]},"previous":{"anyOf":[{"type":"object","properties":{"runs":{"type":"number"},"sum":{"type":"number"},"byGroup":{"type":"object","propertyNames":{"type":"string","enum":["discover","choose","verify","inform","guide","act"]},"additionalProperties":{"type":"object","properties":{"runs":{"type":"number"},"sum":{"type":"number"}},"required":["runs","sum"],"additionalProperties":false}}},"required":["runs","sum","byGroup"],"additionalProperties":false},{"type":"null"}]}},"required":["latest","previous"],"additionalProperties":false}},"required":["latest","previous","groups","criteria","scores"],"additionalProperties":false},"grid":{"anyOf":[{"type":"object","properties":{"measurementId":{"type":"string"},"measuredAt":{"type":"string"},"prompts":{"type":"array","items":{"type":"object","properties":{"promptId":{"type":"string"},"text":{"type":"string"},"questionTypes":{"type":"array","items":{"type":"string","enum":["discover","choose","verify","inform","guide","act"]}}},"required":["promptId","text","questionTypes"],"additionalProperties":false}},"agents":{"type":"array","items":{"type":"object","properties":{"setupKey":{"type":"string"},"label":{"type":"string"},"passed":{"type":"number"},"judged":{"type":"number"}},"required":["setupKey","label","passed","judged"],"additionalProperties":false}},"cells":{"type":"array","items":{"type":"object","properties":{"promptId":{"type":"string"},"setupKey":{"type":"string"},"passed":{"type":"number"},"judged":{"type":"number"},"link":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["promptId","setupKey","passed","judged","link"],"additionalProperties":false}}},"required":["measurementId","measuredAt","prompts","agents","cells"],"additionalProperties":false},{"type":"null"}]},"links":{"type":"object","properties":{"studio":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["studio"],"additionalProperties":false}},"required":["intentId","window","since","goals","criteria","grid","links"],"additionalProperties":false}},"required":["success","data"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"intents:read","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/intents/{id}/goals":{"get":{"operationId":"goals.list","summary":"List an intent's goals, disabled ones included (filter on isActive for the live set)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"List an intent's goals, disabled ones included (filter on isActive for the live set)","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"intentId":{"type":"string"},"kind":{"type":"string","enum":["target_match","state_assertion","answer_check"]},"criterionGroup":{"anyOf":[{"type":"string","enum":["discover","choose","verify","inform","guide","act"]},{"type":"null"}]},"allTypes":{"type":"boolean"},"types":{"type":"array","items":{"type":"string","enum":["discover","choose","verify","inform","guide","act"]}},"category":{"anyOf":[{"type":"string","enum":["recommended","answered","accurate","informed","capability","real_steps","safe","task_done","other"]},{"type":"null"}]},"categorySetBy":{"anyOf":[{"type":"string","enum":["ora","caller"]},{"type":"null"}]},"isDrafted":{"type":"boolean"},"title":{"type":"string"},"statement":{"anyOf":[{"type":"string"},{"type":"null"}]},"config":{},"isActive":{"type":"boolean"},"position":{"type":"number"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","intentId","kind","criterionGroup","allTypes","types","category","categorySetBy","isDrafted","title","statement","config","isActive","position","createdBy","createdAt","updatedAt"],"additionalProperties":false}}},"required":["success","data"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"intents:read","x-ora-product":"studio","x-ora-service":"studio-service"},"post":{"operationId":"goals.create","summary":"Add a goal to an intent. An answer_check goal is an answer criterion, checked on the question types in `types` (discover, choose, verify, inform, guide, act), or on every type with `types: \"all\"` (the default)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["target_match","state_assertion","answer_check"]},"criterionGroup":{"type":"string","enum":["discover","choose","verify","inform","guide","act"]},"types":{"anyOf":[{"type":"string","const":"all"},{"minItems":1,"maxItems":6,"type":"array","items":{"type":"string","enum":["discover","choose","verify","inform","guide","act"]}}]},"category":{"type":"string","enum":["recommended","answered","accurate","informed","capability","real_steps","safe","task_done","other"]},"title":{"type":"string","minLength":1,"maxLength":200},"statement":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"config":{},"isActive":{"type":"boolean"}},"required":["kind","title"]},"example":{"kind":"answer_check","title":"Acme DB is the first pick","statement":"The answer recommends Acme DB as its first option for hosting the database.","criterionGroup":"choose"}}}},"responses":{"201":{"description":"Add a goal to an intent. An answer_check goal is an answer criterion, checked on the question types in `types` (discover, choose, verify, inform, guide, act), or on every type with `types: \"all\"` (the default)","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{"type":"object","properties":{"id":{"type":"string"},"intentId":{"type":"string"},"kind":{"type":"string","enum":["target_match","state_assertion","answer_check"]},"criterionGroup":{"anyOf":[{"type":"string","enum":["discover","choose","verify","inform","guide","act"]},{"type":"null"}]},"allTypes":{"type":"boolean"},"types":{"type":"array","items":{"type":"string","enum":["discover","choose","verify","inform","guide","act"]}},"category":{"anyOf":[{"type":"string","enum":["recommended","answered","accurate","informed","capability","real_steps","safe","task_done","other"]},{"type":"null"}]},"categorySetBy":{"anyOf":[{"type":"string","enum":["ora","caller"]},{"type":"null"}]},"isDrafted":{"type":"boolean"},"title":{"type":"string"},"statement":{"anyOf":[{"type":"string"},{"type":"null"}]},"config":{},"isActive":{"type":"boolean"},"position":{"type":"number"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","intentId","kind","criterionGroup","allTypes","types","category","categorySetBy","isDrafted","title","statement","config","isActive","position","createdBy","createdAt","updatedAt"],"additionalProperties":false}},"required":["success","data"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Who an api key acts as could not be decided: the lookup of its creator did not complete (api_key_owner_lookup_failed). Nothing was written; retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"intents:write","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/intents/{id}/history":{"get":{"operationId":"intents.history","summary":"The intent's measurements, newest first (last 90 days): when, runs, the discovery / access / use rates, and the answer score, to compare each measurement with the ones before","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"The intent's measurements, newest first (last 90 days): when, runs, the discovery / access / use rates, and the answer score, to compare each measurement with the ones before","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{"type":"object","properties":{"intentId":{"type":"string"},"measurements":{"type":"array","items":{"type":"object","properties":{"measurementId":{"type":"string"},"startedAt":{"type":"string"},"runs":{"type":"number"},"complete":{"type":"boolean"},"discovery":{"anyOf":[{"type":"number"},{"type":"null"}]},"access":{"anyOf":[{"type":"number"},{"type":"null"}]},"use":{"anyOf":[{"type":"number"},{"type":"null"}]},"answerScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"answered":{"anyOf":[{"type":"object","properties":{"done":{"type":"number"},"of":{"type":"number"}},"required":["done","of"],"additionalProperties":false},{"type":"null"}]}},"required":["measurementId","startedAt","runs","complete","discovery","access","use","answerScore","answered"],"additionalProperties":false}},"links":{"type":"object","properties":{"studio":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["studio"],"additionalProperties":false}},"required":["intentId","measurements","links"],"additionalProperties":false}},"required":["success","data"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"intents:read","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/intents/{id}/icp":{"put":{"operationId":"intents.setIcp","summary":"Point an intent at an ICP, or clear the claim","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"icpId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["icpId"]}}}},"responses":{"200":{"description":"Point an intent at an ICP, or clear the claim","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{"type":"object","properties":{"icpId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["icpId"],"additionalProperties":false}},"required":["success","data"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"intents:write","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/intents/{id}/insights":{"get":{"operationId":"intents.insights","summary":"Why the intent loses and what to fix, for its latest finished measurement: issues with evidence and a recommendation, the customer's pages that failed (status, cause), how the agents used the MCP / API tools (failed calls and why, repeats, tool-description issues), and what each agent said (verdict, quote, failed checks with the judge's reason and quote). Sized for an agent to read in one go","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Why the intent loses and what to fix, for its latest finished measurement: issues with evidence and a recommendation, the customer's pages that failed (status, cause), how the agents used the MCP / API tools (failed calls and why, repeats, tool-description issues), and what each agent said (verdict, quote, failed checks with the judge's reason and quote). Sized for an agent to read in one go","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{"type":"object","properties":{"intentId":{"type":"string"},"measurementId":{"anyOf":[{"type":"string"},{"type":"null"}]},"measuredAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"change":{"anyOf":[{"type":"object","properties":{"previousMeasurementId":{"type":"string"},"previousMeasuredAt":{"type":"string"},"answerScore":{"type":"object","properties":{"now":{"anyOf":[{"type":"number"},{"type":"null"}]},"before":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["now","before"],"additionalProperties":false},"answered":{"type":"object","properties":{"now":{"type":"object","properties":{"done":{"type":"number"},"of":{"type":"number"}},"required":["done","of"],"additionalProperties":false},"before":{"type":"object","properties":{"done":{"type":"number"},"of":{"type":"number"}},"required":["done","of"],"additionalProperties":false}},"required":["now","before"],"additionalProperties":false},"toolCalls":{"type":"object","properties":{"now":{"type":"object","properties":{"done":{"type":"number"},"of":{"type":"number"}},"required":["done","of"],"additionalProperties":false},"before":{"type":"object","properties":{"done":{"type":"number"},"of":{"type":"number"}},"required":["done","of"],"additionalProperties":false},"newFailures":{"type":"array","items":{"type":"string"}},"fixed":{"type":"array","items":{"type":"string"}}},"required":["now","before","newFailures","fixed"],"additionalProperties":false},"failedPages":{"type":"object","properties":{"now":{"type":"number"},"before":{"type":"number"},"newFailures":{"type":"array","items":{"type":"string"}},"fixed":{"type":"array","items":{"type":"string"}}},"required":["now","before","newFailures","fixed"],"additionalProperties":false},"flipped":{"type":"array","items":{"type":"object","properties":{"prompt":{"type":"string"},"agent":{"type":"string"},"before":{"type":"string"},"now":{"type":"string"},"link":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["prompt","agent","before","now","link"],"additionalProperties":false}}},"required":["previousMeasurementId","previousMeasuredAt","answerScore","answered","toolCalls","failedPages","flipped"],"additionalProperties":false},{"type":"null"}]},"issues":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"stage":{"type":"string"},"observation":{"type":"string"},"whyItMatters":{"anyOf":[{"type":"string"},{"type":"null"}]},"recommendation":{"anyOf":[{"type":"string"},{"type":"null"}]},"recommendationType":{"type":"string"},"affected":{"type":"object","properties":{"count":{"type":"number"},"of":{"type":"number"},"unit":{"type":"string"}},"required":["count","of","unit"],"additionalProperties":false},"agents":{"type":"array","items":{"type":"string"}},"page":{"anyOf":[{"type":"string"},{"type":"null"}]},"evidence":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"type":"string"}},"required":["label","value"],"additionalProperties":false}},"prompts":{"type":"array","items":{"type":"string"}},"runs":{"type":"array","items":{"type":"string"}},"quote":{"anyOf":[{"type":"string"},{"type":"null"}]},"alternatives":{"type":"array","items":{"type":"string"}},"steps":{"type":"array","items":{"type":"string"}}},"required":["title","stage","observation","whyItMatters","recommendation","recommendationType","affected","agents","page","evidence","prompts","runs","quote","alternatives","steps"],"additionalProperties":false}},"failedPages":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"status":{"anyOf":[{"type":"number"},{"type":"null"}]},"cause":{"type":"string"},"failures":{"type":"number"},"agents":{"type":"array","items":{"type":"string"}},"prompts":{"type":"number"},"link":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["url","status","cause","failures","agents","prompts","link"],"additionalProperties":false}},"tools":{"type":"array","items":{"type":"object","properties":{"tool":{"type":"string"},"calls":{"type":"number"},"failed":{"type":"number"},"causes":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"}},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"retried":{"type":"number"},"agents":{"type":"array","items":{"type":"string"}},"usage":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string"},"label":{"type":"string"},"title":{"type":"string"},"quote":{"anyOf":[{"type":"string"},{"type":"null"}]},"fix":{"anyOf":[{"type":"string"},{"type":"null"}]},"details":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"value":{"type":"string"}},"required":["key","label","value"],"additionalProperties":false}},"runs":{"type":"number"},"agents":{"type":"array","items":{"type":"string"}},"link":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["kind","label","title","quote","fix","details","runs","agents","link"],"additionalProperties":false}}},"required":["tool","calls","failed","causes","error","retried","agents"],"additionalProperties":false}},"toolDescriptions":{"type":"array","items":{"type":"object","properties":{"server":{"type":"string"},"tool":{"anyOf":[{"type":"string"},{"type":"null"}]},"severity":{"type":"string"},"title":{"type":"string"},"fix":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["server","tool","severity","title","fix"],"additionalProperties":false}},"answers":{"type":"array","items":{"type":"object","properties":{"prompt":{"type":"string"},"answers":{"type":"array","items":{"type":"object","properties":{"agent":{"type":"string"},"verdict":{"anyOf":[{"type":"string"},{"type":"null"}]},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"quote":{"anyOf":[{"type":"string"},{"type":"null"}]},"bottomLine":{"anyOf":[{"type":"string"},{"type":"null"}]},"failedChecks":{"type":"array","items":{"type":"object","properties":{"check":{"type":"string"},"reason":{"type":"string"},"quote":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["check","reason","quote"],"additionalProperties":false}},"link":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["agent","verdict","reason","quote","bottomLine","failedChecks","link"],"additionalProperties":false}}},"required":["prompt","answers"],"additionalProperties":false}},"links":{"type":"object","properties":{"studio":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["studio"],"additionalProperties":false}},"required":["intentId","measurementId","measuredAt","change","issues","failedPages","tools","toolDescriptions","answers","links"],"additionalProperties":false}},"required":["success","data"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"intents:read","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/intents/{id}/measure":{"post":{"operationId":"intents.measure","summary":"Measure an intent now: one measurement, one journey per active prompt across the intent's agents. Returns its measurementId (cycleId). Follow it live until it is done with intents.stream (CLI: add --watch), then read the results with goals.report (CLI: ora goals report <id>) and what to fix with intents.insights (CLI: ora intents insights <id>)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["manual","diagnostic","verification"]}},"additionalProperties":false}}}},"responses":{"200":{"description":"Measure an intent now: one measurement, one journey per active prompt across the intent's agents. Returns its measurementId (cycleId). Follow it live until it is done with intents.stream (CLI: add --watch), then read the results with goals.report (CLI: ora goals report <id>) and what to fix with intents.insights (CLI: ora intents insights <id>)","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{"type":"object","properties":{"prompts":{"type":"number"},"cycleId":{"anyOf":[{"type":"string"},{"type":"null"}]},"cycleKind":{"type":"string","enum":["baseline","monitoring","manual","diagnostic","verification"]},"journeys":{"type":"array","items":{"type":"object","properties":{"promptId":{"type":"string"},"journeyId":{"type":"string"},"runIds":{"type":"array","items":{"type":"string"}},"failed":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string"},"site":{"type":"string"},"reason":{"type":"string"}},"required":["harness","reason"],"additionalProperties":false}}},"required":["promptId","journeyId","runIds","failed"],"additionalProperties":false}},"intentId":{"type":"string"},"links":{"type":"object","properties":{"studio":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["studio"],"additionalProperties":false},"streamUrl":{"type":"string"},"statusUrl":{"type":"string"}},"required":["prompts","cycleId","cycleKind","journeys"],"additionalProperties":false}},"required":["success","data"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The org's agent_runs quota would be exceeded (LIMIT_EXCEEDED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The organization does not have access to this product (PRODUCT_NOT_ENABLED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"An api key measured an org with no active member to attribute the runs to (no_attributable_member) — nothing was launched.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The once-only tier resolve failed (tier-resolver/OBO/reader outage) — retryable, see Retry-After. Or: Who an api key acts as could not be decided: the lookup of its creator did not complete (api_key_owner_lookup_failed). Nothing was written; retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"intents:write","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/intents/{id}/measure/{measurementId}":{"get":{"operationId":"intents.measureStatus","summary":"One measurement's progress, run by run: done once every run and its analysis has settled (status completed, partial or failed); runs.settled of runs.total so far. Follow it live instead of polling with intents.stream (CLI: add --watch); once done, read the results with goals.report (CLI: ora goals report <id>) and what to fix with intents.insights (CLI: ora intents insights <id>)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"measurementId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"One measurement's progress, run by run: done once every run and its analysis has settled (status completed, partial or failed); runs.settled of runs.total so far. Follow it live instead of polling with intents.stream (CLI: add --watch); once done, read the results with goals.report (CLI: ora goals report <id>) and what to fix with intents.insights (CLI: ora intents insights <id>)","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{"type":"object","properties":{"measurementId":{"type":"string"},"intentId":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string","enum":["running","completed","failed","partial"]},"done":{"type":"boolean"},"startedAt":{"type":"string"},"completedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"prompts":{"type":"number"},"runs":{"type":"object","properties":{"total":{"type":"number"},"settled":{"type":"number"},"succeeded":{"type":"number"}},"required":["total","settled","succeeded"],"additionalProperties":false},"items":{"type":"array","items":{"type":"object","properties":{"runId":{"type":"string"},"journeyId":{"anyOf":[{"type":"string"},{"type":"null"}]},"promptId":{"anyOf":[{"type":"string"},{"type":"null"}]},"prompt":{"type":"string"},"agent":{"type":"string"},"status":{"type":"string"},"settled":{"type":"boolean"},"link":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["runId","journeyId","promptId","prompt","agent","status","settled","link"],"additionalProperties":false}},"links":{"type":"object","properties":{"studio":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["studio"],"additionalProperties":false},"streamUrl":{"type":"string"},"statusUrl":{"type":"string"}},"required":["measurementId","intentId","kind","status","done","startedAt","completedAt","prompts","runs","items","links","streamUrl","statusUrl"],"additionalProperties":false}},"required":["success","data"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No measurement with this id on this intent in the caller's organization (measurement_not_found).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"intents:read","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/intents/{id}/measurement-policy":{"patch":{"operationId":"intents.measurementPolicy","summary":"Change how an intent is measured: its schedule (cadence: daily, weekly, monthly or manual), the agents it runs (agents[], each with its own mcp_server_ids and skill_ids), and its competitors. Only the fields sent change; the triggers are re-scheduled","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"cadence":{"type":"string","enum":["daily","weekly","monthly","manual"]},"mcp_server_ids":{"maxItems":0,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"agents":{"description":"The agents this intent runs: harness + model pairs from GET /studio/v1/agents (CLI: ora intents agents). Replaces the stored list, so send every agent to keep. An empty list follows the org's default agents.","maxItems":20,"type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1},"model":{"type":"string","minLength":1,"description":"The model id, as GET /studio/v1/agents lists it for this harness (CLI: ora intents agents)."},"mcp_server_ids":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"skill_ids":{"default":[],"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"browser":{"type":"object","properties":{"webdriver":{"type":"boolean"},"webmcp":{"type":"boolean"},"webmcpTargetUrl":{"type":"string","maxLength":500,"format":"uri"},"webmcpSurface":{"type":"string","enum":["native","shim"]}},"additionalProperties":false}},"required":["harness","model"]}},"skill_ids":{"maxItems":0,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"competitors":{"maxItems":6,"type":"array","items":{"type":"string","minLength":1}}},"additionalProperties":false}}}},"responses":{"200":{"description":"Change how an intent is measured: its schedule (cadence: daily, weekly, monthly or manual), the agents it runs (agents[], each with its own mcp_server_ids and skill_ids), and its competitors. Only the fields sent change; the triggers are re-scheduled","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{"type":"object","properties":{"policy":{"type":"object","properties":{"cadence":{"default":"daily","type":"string","enum":["daily","weekly","monthly","manual"]},"mcp_server_ids":{"default":[],"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"agents":{"default":[],"maxItems":20,"type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1},"model":{"type":"string","minLength":1,"description":"The model id, as GET /studio/v1/agents lists it for this harness (CLI: ora intents agents)."},"mcp_server_ids":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"skill_ids":{"default":[],"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"browser":{"type":"object","properties":{"webdriver":{"type":"boolean"},"webmcp":{"type":"boolean"},"webmcpTargetUrl":{"type":"string","maxLength":500,"format":"uri"},"webmcpSurface":{"type":"string","enum":["native","shim"]}},"additionalProperties":false}},"required":["harness","model","mcp_server_ids","skill_ids"],"additionalProperties":false}},"skill_ids":{"default":[],"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"browser":{"type":"object","properties":{"webdriver":{"type":"boolean"},"webmcp":{"type":"boolean"},"webmcpTargetUrl":{"type":"string","maxLength":500,"format":"uri"},"webmcpSurface":{"type":"string","enum":["native","shim"]}},"additionalProperties":false},"competitors":{"default":[],"maxItems":6,"type":"array","items":{"type":"string","minLength":1}}},"required":["cadence","mcp_server_ids","agents","skill_ids","competitors"],"additionalProperties":false},"rescheduled":{"type":"array","items":{"type":"string"}},"failed":{"type":"array","items":{"type":"object","properties":{"promptId":{"type":"string"},"reason":{"type":"string"}},"required":["promptId","reason"],"additionalProperties":false}}},"required":["policy","rescheduled","failed"],"additionalProperties":false}},"required":["success","data"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"intents:write","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/intents/{id}/measurements/pause":{"post":{"operationId":"intents.measurementsPause","summary":"Pause measurement triggers for one intent's prompts","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Pause measurement triggers for one intent's prompts","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{"type":"object","properties":{"updated":{"type":"number"},"status":{"type":"string"}},"required":["updated","status"],"additionalProperties":false}},"required":["success","data"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"intents:write","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/intents/{id}/measurements/resume":{"post":{"operationId":"intents.measurementsResume","summary":"Resume measurement triggers for one intent's prompts","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Resume measurement triggers for one intent's prompts","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{"type":"object","properties":{"updated":{"type":"number"},"status":{"type":"string"}},"required":["updated","status"],"additionalProperties":false}},"required":["success","data"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"intents:write","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/intents/{id}/measurements/status":{"get":{"operationId":"intents.measurementsStatusById","summary":"Per-intent measurement-trigger census (active/paused/error)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Per-intent measurement-trigger census (active/paused/error)","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{"type":"object","properties":{"active":{"type":"number"},"paused":{"type":"number"},"error":{"type":"number"}},"required":["active","paused","error"],"additionalProperties":false}},"required":["success","data"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"intents:read","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/intents/{id}/prompts":{"post":{"operationId":"intents.addPrompt","summary":"Add a prompt to an intent","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"startMeasurement":{"type":"boolean"},"text":{"type":"string","minLength":1},"category":{"type":"string","minLength":1},"persona":{"type":"string","minLength":1},"branding":{"type":"string","enum":["organic","named"]}},"required":["text"]}}}},"responses":{"200":{"description":"Add a prompt to an intent","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"questionTypes":{"type":"array","items":{"type":"string","enum":["discover","choose","verify","inform","guide","act"]}},"coverage":{"type":"string","enum":["covered","no_criterion_for_type","type_not_known","not_required"]},"category":{"type":"string"},"persona":{"anyOf":[{"type":"string"},{"type":"null"}]},"branding":{"anyOf":[{"type":"string","enum":["organic","named","unknown"]},{"type":"null"}]},"classifiedBy":{"type":"string"},"source":{"type":"string"},"isActive":{"type":"boolean"},"textUpdatedAt":{"type":"string"},"createdAt":{"type":"string"},"visibility":{"type":"number"},"health":{"anyOf":[{"type":"number"},{"type":"null"}]},"healthBreakdown":{"type":"object","properties":{"contributions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"count":{"type":"number"},"weight":{"type":"number"},"value":{"type":"number"}},"required":["id","label","count","weight","value"],"additionalProperties":false}},"value":{"type":"number"},"E":{"type":"number"},"absent":{"type":"number"}},"required":["contributions","value","E","absent"],"additionalProperties":false},"avgPosition":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgCitedRank":{"anyOf":[{"type":"number"},{"type":"null"}]},"rank":{"anyOf":[{"type":"number"},{"type":"null"}]},"citationRate":{"type":"number"},"sentimentNet":{"anyOf":[{"type":"number"},{"type":"null"}]},"sentiment":{"type":"object","properties":{"positive":{"type":"number"},"neutral":{"type":"number"},"negative":{"type":"number"}},"required":["positive","neutral","negative"],"additionalProperties":false},"byEngine":{"type":"array","items":{"type":"object","properties":{"engine":{"type":"string"},"visibility":{"type":"number"},"runs":{"type":"number"},"recommendedRuns":{"type":"number"}},"required":["engine","visibility","runs","recommendedRuns"],"additionalProperties":false}},"visibilitySeries":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string"},"value":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["day","value"],"additionalProperties":false}},"measured":{"type":"boolean"},"volume":{"type":"number"},"success":{"anyOf":[{"type":"number"},{"type":"null"}]},"visScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"sources":{"type":"array","items":{"type":"object","properties":{"host":{"type":"string"},"share":{"type":"number"},"count":{"type":"number"},"rank":{"anyOf":[{"type":"number"},{"type":"null"}]},"owned":{"type":"boolean"}},"required":["host","share","count","rank","owned"],"additionalProperties":false}},"agentResponses":{"type":"array","items":{"type":"object","properties":{"engine":{"type":"string"},"text":{"type":"string"}},"required":["engine","text"],"additionalProperties":false}},"latestByEngine":{"type":"array","items":{"type":"object","properties":{"engine":{"type":"string"},"brands":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"domain":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string"},"position":{"anyOf":[{"type":"number"},{"type":"null"}]},"tracked":{"type":"boolean"}},"required":["name","domain","status","position","tracked"],"additionalProperties":false}}},"required":["engine","brands"],"additionalProperties":false}},"measurementStart":{"oneOf":[{"type":"object","properties":{"started":{"type":"boolean","const":true}},"required":["started"],"additionalProperties":false},{"type":"object","properties":{"started":{"type":"boolean","const":false},"reason":{"type":"string","enum":["no_attributable_member","deferred"]}},"required":["started","reason"],"additionalProperties":false}]}},"required":["id","text","category","persona","branding","classifiedBy","source","isActive","textUpdatedAt","createdAt","visibility","health","healthBreakdown","avgPosition","avgCitedRank","rank","citationRate","sentimentNet","sentiment","byEngine","visibilitySeries","measured","volume","success","visScore","sources","agentResponses","latestByEngine","measurementStart"],"additionalProperties":false}},"required":["success"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Who an api key acts as could not be decided: the lookup of its creator did not complete (api_key_owner_lookup_failed). Nothing was written; retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"intents:write","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/intents/{id}/prompts/{promptId}":{"patch":{"operationId":"intents.updatePrompt","summary":"Edit a prompt's text or category","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"promptId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","minLength":1},"category":{"type":"string","minLength":1}}}}}},"responses":{"200":{"description":"Edit a prompt's text or category","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":false}},"required":["success","data"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"intents:write","x-ora-product":"studio","x-ora-service":"studio-service"},"delete":{"operationId":"intents.deletePrompt","summary":"Soft-delete a prompt","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"promptId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Soft-delete a prompt","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":false}},"required":["success","data"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"intents:write","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/intents/{id}/prompts/{promptId}/goals/{kind}":{"patch":{"operationId":"intents.setPromptGoal","summary":"Turn one goal a prompt implies on or off (Goal met stops or resumes counting it)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"promptId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"kind","in":"path","required":true,"schema":{"type":"string","enum":["discover","choose","verify","inform","guide","act","other"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"active":{"type":"boolean"}},"required":["active"]}}}},"responses":{"200":{"description":"Turn one goal a prompt implies on or off (Goal met stops or resumes counting it)","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{"type":"object","properties":{"promptId":{"type":"string"},"kind":{"type":"string","enum":["discover","choose","verify","inform","guide","act","other"]},"active":{"type":"boolean"}},"required":["promptId","kind","active"],"additionalProperties":false}},"required":["success","data"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"intents:write","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/intents/{id}/representation":{"get":{"operationId":"intents.representation","summary":"Whether this intent's journeys can be said to represent a customer profile","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Whether this intent's journeys can be said to represent a customer profile","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{"type":"object","properties":{"verdict":{"type":"string","enum":["validated","partial","unvalidated"]},"gaps":{"type":"array","items":{"type":"string"}},"attributedPrompts":{"type":"number"},"totalPrompts":{"type":"number"},"note":{"anyOf":[{"type":"string"},{"type":"null"}]},"icp":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"description":{"type":"string"}},"required":["id","label","description"],"additionalProperties":false},{"type":"null"}]},"persona":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["verdict","gaps","attributedPrompts","totalPrompts","note","icp","persona"],"additionalProperties":false}},"required":["success","data"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"intents:read","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/intents/{id}/stream":{"get":{"operationId":"intents.stream","summary":"Stream one intent's live activity (SSE): each run's progress and analysis, and a measurement event when a measurement finishes","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Stream one intent's live activity (SSE): each run's progress and analysis, and a measurement event when a measurement finishes","content":{"application/json":{"schema":{}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"intents:read","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/journeys":{"get":{"operationId":"journeys.list","summary":"List the org's journeys (keyset-paginated)","parameters":[{"name":"pageSize","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"name":"pageToken","in":"query","required":false,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"List the org's journeys (keyset-paginated)","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"goal":{"type":"string"},"targetDomain":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string"},"outcome":{"anyOf":[{"type":"string"},{"type":"null"}]},"competitors":{"type":"array","items":{"type":"string"}},"layer":{"anyOf":[{"type":"string"},{"type":"null"}]},"intentId":{"anyOf":[{"type":"string"},{"type":"null"}]},"intentTitle":{"anyOf":[{"type":"string"},{"type":"null"}]},"agents":{"type":"array","items":{"type":"object","properties":{"runId":{"type":"string"},"harness":{"type":"string"},"model":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string"},"targetDomain":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["runId","harness","model","status","targetDomain"],"additionalProperties":false}},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","goal","targetDomain","status","outcome","competitors","layer","intentId","intentTitle","agents","createdAt","updatedAt"],"additionalProperties":false}},"pageToken":{"type":"string"}},"required":["results"],"additionalProperties":false}},"required":["success","data"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"journeys:read","x-ora-product":"studio","x-ora-service":"studio-service"},"post":{"operationId":"journeys.create","summary":"Launch a journey: fan a goal out across N agents","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"goal":{"type":"string","minLength":1},"agents":{"minItems":1,"type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1},"model":{"type":"string","minLength":1,"description":"The model id, as GET /studio/v1/agents lists it for this harness (CLI: ora intents agents)."}},"required":["harness"]},"description":"The agents to run: harness + model pairs from GET /studio/v1/agents (CLI: ora intents agents)."},"intentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"promptId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"targetDomain":{"type":"string","minLength":1},"domains":{"maxItems":6,"type":"array","items":{"type":"string","minLength":1}},"competitors":{"type":"array","items":{"type":"string"}},"skillIds":{"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"browser":{"type":"object","properties":{"webdriver":{"type":"boolean"},"webmcp":{"type":"boolean"},"webmcpTargetUrl":{"type":"string","maxLength":500,"format":"uri"},"webmcpSurface":{"type":"string","enum":["native","shim"]}},"additionalProperties":false}},"required":["goal","agents"]}}}},"responses":{"200":{"description":"Launch a journey: fan a goal out across N agents","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"journeyId":{"type":"string"},"runIds":{"type":"array","items":{"type":"string"}},"streamUrls":{"type":"array","items":{"type":"string"}},"failed":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string"},"site":{"type":"string"},"reason":{"type":"string"}},"required":["harness","reason"],"additionalProperties":false}}},"required":["journeyId","runIds","streamUrls"],"additionalProperties":false}},"required":["success","data"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"journeys:write","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/journeys/{id}":{"get":{"operationId":"journeys.get","summary":"Read one journey and its per-agent runs","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Read one journey and its per-agent runs","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{"type":"object","properties":{"id":{"type":"string"},"goal":{"type":"string"},"targetDomain":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string"},"outcome":{"anyOf":[{"type":"string"},{"type":"null"}]},"competitors":{"type":"array","items":{"type":"string"}},"layer":{"anyOf":[{"type":"string"},{"type":"null"}]},"intentId":{"anyOf":[{"type":"string"},{"type":"null"}]},"intentTitle":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"agents":{"type":"array","items":{"type":"object","properties":{"runId":{"type":"string"},"harness":{"type":"string"},"model":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string"},"targetDomain":{"anyOf":[{"type":"string"},{"type":"null"}]},"provider":{"anyOf":[{"type":"string"},{"type":"null"}]},"executionKind":{"anyOf":[{"type":"string"},{"type":"null"}]},"intentText":{"anyOf":[{"type":"string"},{"type":"null"}]},"startedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"usage":{"type":"object","properties":{"durationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"totalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"inputTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"cacheReadTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"cacheCreationTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"outputTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"numTurns":{"anyOf":[{"type":"number"},{"type":"null"}]},"costUsd":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["durationMs","totalTokens","inputTokens","cacheReadTokens","cacheCreationTokens","outputTokens","numTurns","costUsd"],"additionalProperties":false},"targetCheck":{"anyOf":[{"type":"object","properties":{"chip":{"type":"string","enum":["NO TARGET","HIT","MISS"]},"state":{"type":"string","enum":["no_target","hit","miss_not_reached","miss_page_broken","miss_content_short","miss_bypassed"]},"reason":{"type":"string"},"targets":{"type":"array","items":{"type":"object","properties":{"targetId":{"type":"string"},"displayPath":{"type":"string"},"reached":{"type":"boolean"},"stepsTo":{"anyOf":[{"type":"number"},{"type":"null"}]},"httpStatus":{"anyOf":[{"type":"number"},{"type":"null"}]},"fetchOk":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"nearMissPath":{"anyOf":[{"type":"string"},{"type":"null"}]},"contribution":{"anyOf":[{"type":"number"},{"type":"null"}]},"reachStepId":{"anyOf":[{"type":"number"},{"type":"null"}]},"sufficiency":{"anyOf":[{"type":"string"},{"type":"null"}]},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"contentFacts":{"anyOf":[{"type":"object","properties":{"found":{"type":"array","items":{"type":"string"}},"missing":{"type":"array","items":{"type":"string"}}},"required":["found","missing"],"additionalProperties":false},{"type":"null"}]},"pageState":{"type":"string"},"pageStateAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["targetId","displayPath","reached","stepsTo","httpStatus","fetchOk","nearMissPath","contribution","reachStepId","sufficiency","reason","contentFacts","pageState","pageStateAt"],"additionalProperties":false}}},"required":["chip","state","reason","targets"],"additionalProperties":false},{"type":"null"}]},"skillUse":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"state":{"type":"string","enum":["used","not_used","unknown"]}},"required":["slug","name","state"],"additionalProperties":false}},{"type":"null"}]},"verdict":{"anyOf":[{"type":"string","enum":["succeeded","partial","failed","not_measured"]},{"type":"null"}]}},"required":["runId","harness","model","status","targetDomain","provider","executionKind","intentText","startedAt","finishedAt","createdAt","usage","targetCheck","skillUse","verdict"],"additionalProperties":false}}},"required":["id","goal","targetDomain","status","outcome","competitors","layer","intentId","intentTitle","createdAt","updatedAt","agents"],"additionalProperties":false}},"required":["success","data"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"journeys:read","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/mcp/servers":{"get":{"operationId":"mcp.servers.list","summary":"List the org's registered MCP servers: id, name, url, auth method and connection health. The ids are what an intent's measurement policy takes in agents[].mcp_server_ids (CLI: ora intents measurement-policy)","parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"offset","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}}],"responses":{"200":{"description":"List the org's registered MCP servers: id, name, url, auth method and connection health. The ids are what an intent's measurement policy takes in agents[].mcp_server_ids (CLI: ora intents measurement-policy)","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{"type":"object","properties":{"servers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"url":{"type":"string"},"transport":{"type":"string"},"authMethod":{"type":"string"},"oauthCapable":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"connectionHealth":{"type":"string"},"lastVerifiedAt":{"type":"string"},"createdAt":{"type":"string"},"latestSnapshot":{"type":"object","properties":{"catalogVersion":{"type":"string"},"toolCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"contextTokens":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"findingCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"capturedAt":{"type":"string"}},"required":["catalogVersion","toolCount","contextTokens","findingCount","capturedAt"],"additionalProperties":false}},"required":["id","name","url","transport","authMethod","connectionHealth","createdAt"],"additionalProperties":false}},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["servers","total"],"additionalProperties":false}},"required":["success","data"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"mcp:read","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/org/domains":{"get":{"operationId":"domains.list","summary":"List the org's tracked domains (oldest = primary)","responses":{"200":{"description":"List the org's tracked domains (oldest = primary)","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"hostname":{"type":"string"},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]},"addedAt":{"type":"string"},"primary":{"type":"boolean"}},"required":["id","hostname","displayName","addedAt","primary"],"additionalProperties":false}}},"required":["success","data"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"domains:read","x-ora-product":"studio","x-ora-service":"studio-service"},"post":{"operationId":"domains.add","summary":"Track a new domain","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"string","minLength":3,"maxLength":253}},"required":["domain"]}}}},"responses":{"200":{"description":"Track a new domain","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"hostname":{"type":"string"},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]},"addedAt":{"type":"string"},"primary":{"type":"boolean"}},"required":["id","hostname","displayName","addedAt","primary"],"additionalProperties":false}}},"required":["success","data"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"domains:write","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/org/domains/{id}":{"delete":{"operationId":"domains.remove","summary":"Stop tracking a domain (the primary domain cannot be removed)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Stop tracking a domain (the primary domain cannot be removed)","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"hostname":{"type":"string"},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]},"addedAt":{"type":"string"},"primary":{"type":"boolean"}},"required":["id","hostname","displayName","addedAt","primary"],"additionalProperties":false}}},"required":["success","data"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"domains:write","x-ora-product":"studio","x-ora-service":"studio-service"}},"/studio/v1/runs":{"get":{"operationId":"studio.runs.list","summary":"List runs","parameters":[{"name":"pageSize","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"name":"pageToken","in":"query","required":false,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"List runs","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"harness":{"type":"string"},"model":{"anyOf":[{"type":"string"},{"type":"null"}]},"provider":{"anyOf":[{"type":"string"},{"type":"null"}]},"tools":{"anyOf":[{"anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},{"type":"null"}]},"intent_text":{"anyOf":[{"type":"string"},{"type":"null"}]},"target_domain":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string"},"outcome":{"anyOf":[{"type":"string"},{"type":"null"}]},"outcome_reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"cost_usd":{"anyOf":[{"type":"number"},{"type":"null"}]},"num_turns":{"anyOf":[{"type":"number"},{"type":"null"}]},"duration_ms":{"anyOf":[{"type":"number"},{"type":"null"}]},"total_tokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"input_tokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"cache_read_tokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"cache_creation_tokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"output_tokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"created_at":{"type":"string"},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"phases":{"anyOf":[{"type":"object","properties":{"phases":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["waiting","boot","installations","startup","run","verification","teardown"]},"ms":{"anyOf":[{"type":"number"},{"type":"null"}]},"state":{"type":"string","enum":["measured","unmeasured","not_in_run"]}},"required":["id","ms","state"],"additionalProperties":false}},"runTimeMs":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The run phase: first model request → last model response."},"totalMs":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The run's whole duration, created → finished."},"steps":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"kind":{"type":"string"},"outcome":{"type":"string"},"startedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["name","kind","outcome","startedAt","finishedAt"],"additionalProperties":false},"description":"The installation steps the operator witnessed (an MCP server's install, an env fetch)."},"modelCalls":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"How many model calls the run made, as the model meter counted them."}},"required":["phases","runTimeMs","totalMs","steps","modelCalls"],"additionalProperties":false,"description":"Every phase of the run: waiting, boot, installations, startup, run, verification, teardown."},{"type":"null"}]},"insight":{"anyOf":[{"type":"object","properties":{"visibility_score":{"anyOf":[{"type":"number"},{"type":"null"}]},"intent_satisfied":{"anyOf":[{"type":"boolean"},{"type":"null"}]}},"required":["visibility_score","intent_satisfied"],"additionalProperties":false},{"type":"null"}]},"conversation_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"conversation_turn_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"conversation":{"anyOf":[{"type":"object","properties":{"harness":{"type":"string"},"model":{"type":"string"},"state":{"type":"string","enum":["open","closed"]},"last_turn_index":{"type":"integer","minimum":0,"maximum":9007199254740991},"last_activity_at":{"type":"string"}},"required":["harness","model","state","last_turn_index","last_activity_at"],"additionalProperties":false},{"type":"null"}]},"conversation_turn":{"anyOf":[{"type":"object","properties":{"turn_index":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["turn_index"],"additionalProperties":false},{"type":"null"}]}},"required":["id","harness","status","created_at"],"additionalProperties":false}},"pageToken":{"type":"string"}},"required":["results"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"runs:read","x-ora-product":"platform","x-ora-service":"studio-service"},"post":{"operationId":"studio.runs.create","summary":"Create a run","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"product_key":{"type":"string","minLength":1,"maxLength":50,"pattern":"^[a-z][a-z0-9_]*$"},"intent":{"type":"string","minLength":1},"domain":{"type":"string"},"harness":{"type":"string"},"model":{"type":"string"},"mode":{"type":"string","enum":["task","session"]},"addons":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"engine":{"not":{}},"execution_kind":{"type":"string","const":"harness"},"tools":{"anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"]}]},"requires_tools":{"type":"boolean"},"prompt_context":{"type":"string","enum":["none","target_site"]},"mcp_servers":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"url":{"type":"string","minLength":1},"secretId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"auth":{"oneOf":[{"type":"object","properties":{"method":{"type":"string","const":"oauth"}},"required":["method"]},{"type":"object","properties":{"method":{"type":"string","const":"query"},"param":{"type":"string","minLength":1}},"required":["method","param"]}]}},"required":["name","url"]}},"model_params":{"type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"maxOutputTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reasoningEffort":{"type":"string","enum":["low","medium","high"]},"thinkingBudgetTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"codeMode":{"type":"string","enum":["auto","on","off"]},"toolSearch":{"type":"string","enum":["on","off","directory"]},"location":{"type":"string","pattern":"^[A-Z]{2}$"},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$"}},"additionalProperties":false},"wait":{"not":{}}},"required":["intent"]},"example":{"intent":"check pricing for acme.com","harness":"eve","model":"claude-sonnet-5"}}}},"responses":{"200":{"description":"Create a run","content":{"application/json":{"schema":{"type":"object","properties":{"runId":{"type":"string"},"status":{"type":"string","enum":["pending","queued"]},"streamUrl":{"type":"string"},"harness":{"type":"string"},"model":{"type":"string"},"provider":{"type":"string"}},"required":["runId","status","streamUrl"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"runs:write","x-ora-product":"platform","x-ora-service":"studio-service"}},"/studio/v1/runs/cancel":{"post":{"operationId":"studio.runs.cancelBatch","summary":"Cancel a batch of runs (terminate them and stop their engines)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"runIds":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"string","minLength":1}}},"required":["runIds"]}}}},"responses":{"200":{"description":"Cancel a batch of runs (terminate them and stop their engines)","content":{"application/json":{"schema":{"type":"object","properties":{"requested":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"canceled":{"type":"array","items":{"type":"string"}},"alreadyTerminal":{"type":"array","items":{"type":"string"}},"skipped":{"type":"array","items":{"type":"string"}}},"required":["requested","canceled","alreadyTerminal","skipped"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"runs:write","x-ora-product":"platform","x-ora-service":"studio-service"}},"/studio/v1/runs/stream":{"get":{"operationId":"studio.runs.feed","summary":"Org-scoped live feed of run status patches (SSE)","responses":{"200":{"description":"Org-scoped live feed of run status patches (SSE)","content":{"application/json":{"schema":{}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"runs:read","x-ora-product":"platform","x-ora-service":"studio-service"}},"/studio/v1/runs/{id}/cancel":{"post":{"operationId":"studio.runs.cancel","summary":"Cancel a run (terminate it and stop its engine)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Cancel a run (terminate it and stop its engine)","content":{"application/json":{"schema":{"type":"object","properties":{"runId":{"type":"string"},"status":{"type":"string"},"alreadyTerminal":{"type":"boolean"}},"required":["runId","status","alreadyTerminal"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"runs:write","x-ora-product":"platform","x-ora-service":"studio-service"}},"/studio/v1/runs/{id}/insight":{"get":{"operationId":"studio.runs.insight","summary":"Read a run's stored insight artifact","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Read a run's stored insight artifact","content":{"application/json":{"schema":{}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"runs:read","x-ora-product":"platform","x-ora-service":"studio-service"}},"/studio/v1/runs/{id}/raw-trace":{"get":{"operationId":"studio.runs.rawTrace","summary":"Read a run's full raw frame stream (pre-truncation trace artifact)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Read a run's full raw frame stream (pre-truncation trace artifact)","content":{"application/json":{"schema":{}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"runs:read","x-ora-product":"platform","x-ora-service":"studio-service"}},"/studio/v1/runs/{id}/spans":{"get":{"operationId":"studio.runs.spans","summary":"Read a run's stored trace spans (CompactSpan[])","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Read a run's stored trace spans (CompactSpan[])","content":{"application/json":{"schema":{}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"runs:read","x-ora-product":"platform","x-ora-service":"studio-service"}},"/studio/v1/runs/{id}/stream":{"get":{"operationId":"studio.runs.stream","summary":"Stream a run's live trajectory (SSE)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Stream a run's live trajectory (SSE)","content":{"application/json":{"schema":{}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"runs:read","x-ora-product":"platform","x-ora-service":"studio-service"}},"/studio/v1/runs/{id}/trajectory":{"get":{"operationId":"studio.runs.trajectory","summary":"Read a run's normalized trajectory snapshot","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"profile","in":"query","required":false,"schema":{"type":"string","enum":["raw","heuristic","full"]}}],"responses":{"200":{"description":"Read a run's normalized trajectory snapshot","content":{"application/json":{"schema":{}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"runs:read","x-ora-product":"platform","x-ora-service":"studio-service"}},"/studio/v1/usage":{"get":{"operationId":"usage","summary":"This month's agent runs and Ora Score scans for your organization: for each, how many were used, the plan's limit (null when uncapped) and how many remain, plus when the counts reset","responses":{"200":{"description":"This month's agent runs and Ora Score scans for your organization: for each, how many were used, the plan's limit (null when uncapped) and how many remain, plus when the counts reset","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{"type":"object","properties":{"runs":{"type":"object","properties":{"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"remaining":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["used","limit","remaining"],"additionalProperties":false},"scans":{"type":"object","properties":{"used":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"null when the plan sets no Ora Score scan limit, so billing reports no count"},"limit":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"remaining":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["used","limit","remaining"],"additionalProperties":false},"resetsAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["runs","scans","resetsAt"],"additionalProperties":false}},"required":["success","data"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"usage:read","x-ora-product":"studio","x-ora-service":"studio-service"}},"/study/v1/addons":{"get":{"operationId":"study.addons.list","summary":"The add-on catalog (harness/surface-filtered)","parameters":[{"name":"harness","in":"query","required":false,"schema":{"type":"string","minLength":1}},{"name":"surface","in":"query","required":false,"schema":{"type":"string","enum":["run","session","managed"]}}],"responses":{"200":{"description":"The add-on catalog (harness/surface-filtered)","content":{"application/json":{"schema":{"type":"object","properties":{"addons":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["capability","tool","skill"]},"category":{"type":"string"},"displayName":{"type":"string"},"description":{"type":"string"},"configSchema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"surfaces":{"type":"array","items":{"type":"string","enum":["run","session","managed"]}},"harnesses":{"type":"array","items":{"type":"string"}},"multiInstance":{"type":"boolean"},"credentialSourceFields":{"type":"array","items":{"type":"string"}}},"required":["id","kind","displayName","description","configSchema","surfaces","harnesses"],"additionalProperties":false}}},"required":["addons"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.addons:read","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/agent-skills":{"get":{"operationId":"study.agentSkills.list","summary":"List the Agent Skills Study hands to anyone, no sign-in needed, with each one's version and the minimum ora CLI version it needs","responses":{"200":{"description":"List the Agent Skills Study hands to anyone, no sign-in needed, with each one's version and the minimum ora CLI version it needs","content":{"application/json":{"schema":{"type":"object","properties":{"skills":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"version":{"anyOf":[{"type":"string"},{"type":"null"}]},"minCliVersion":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["name","description","version","minCliVersion"],"additionalProperties":false}}},"required":["skills"],"additionalProperties":false}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/agent-skills/{name}":{"get":{"operationId":"study.agentSkills.get","summary":"One Agent Skill's files (SKILL.md and its references), to install with `ora skills study add <name>`","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64}}],"responses":{"200":{"description":"One Agent Skill's files (SKILL.md and its references), to install with `ora skills study add <name>`","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"version":{"anyOf":[{"type":"string"},{"type":"null"}]},"minCliVersion":{"anyOf":[{"type":"string"},{"type":"null"}]},"files":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"content":{"type":"string"}},"required":["path","content"],"additionalProperties":false}}},"required":["name","description","version","minCliVersion","files"],"additionalProperties":false}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No skill with this name (skill_not_found).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/benchmark-definitions":{"get":{"operationId":"study.benchmarkDefinitions.list","summary":"The benchmark catalog: every listed third-party definition plus the org's own, each with its derived runnability","parameters":[{"name":"family","in":"query","required":false,"schema":{"type":"string","enum":["static_qa","code","agentic","tools","web","knowledge_work","safety","suite"]},"example":"static_qa"},{"name":"sourceKind","in":"query","required":false,"schema":{"type":"string","enum":["hf-dataset","jsonl","git-tasks","release-file","authored","framework"]}},{"name":"tier","in":"query","required":false,"schema":{"type":"string","enum":["featured","community","mine"]}},{"name":"runnable","in":"query","required":false,"schema":{"description":"Keep only definitions that can be run today ('true') or only those that cannot ('false').","type":"string","enum":["true","false"]}},{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":160}},{"name":"pageSize","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}}],"responses":{"200":{"description":"The benchmark catalog: every listed third-party definition plus the org's own, each with its derived runnability","content":{"application/json":{"schema":{"type":"object","properties":{"definitions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"family":{"type":"string","enum":["static_qa","code","agentic","tools","web","knowledge_work","safety","suite"]},"sourceKind":{"type":"string","enum":["hf-dataset","jsonl","git-tasks","release-file","authored","framework"]},"headlineMetric":{"type":"string"},"methodology":{"type":"object","properties":{"variantsAllowed":{"type":"boolean"},"recommendedRepeats":{"type":"number"},"officialFidelity":{"type":"boolean"},"modelParams":{"type":"array","items":{"type":"string"}},"maxPlannedRuns":{"type":"number"},"sampleFloor":{"type":"number"},"missingAnswer":{"type":"string","enum":["unmeasured","wrong","grade_full_response"],"description":"How the benchmark's OWN scoring counts a run whose answer could not be extracted: 'wrong' (a failure, as e.g. AIME scores a blank answer), 'grade_full_response' (the benchmark's grader reads the whole response, as e.g. SimpleQA's does — a decline is not attempted) or 'unmeasured' (left out of the rate — the default)."},"aggregation":{"type":"string","enum":["included","excluded"],"description":"Whether this benchmark folds into the cross-benchmark leaderboard: 'excluded' keeps it out of the aggregate and off every surface that names aggregated benchmarks; absent or 'included' admits it."},"aggregationReason":{"type":"string","enum":["smoke_test","suite_of_benchmarks"],"description":"Why the benchmark is excluded from the cross-benchmark leaderboard."},"aggregateTaskSample":{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":500},"seed":{"type":"string","minLength":1,"maxLength":64}},"required":["count","seed"],"additionalProperties":false,"description":"The aggregate's comparison set for a large corpus: a deterministic sample of `count` tasks drawn with `seed`, exactly as a study's subset is drawn. Frozen into each version imported after it is declared."}},"additionalProperties":false},"defaultConfig":{"anyOf":[{"type":"object","properties":{"matrix":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1},"model":{"type":"string","minLength":1},"provider":{"type":"string","minLength":1},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["harness","model"],"additionalProperties":false}},"skills":{"type":"array","items":{"type":"string","minLength":1}},"tools":{"anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"type":"object","propertyNames":{"type":"string","minLength":1},"additionalProperties":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false},{"type":"null"}]},"runnerKind":{"type":"string","enum":["none","image","environment","framework"]},"license":{"anyOf":[{"type":"string"},{"type":"null"}]},"licenseText":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The licence document the uploader supplied (its LICENSE file or pasted text). ora verifies an upload's permissive licence only when this document carries that licence's grant. Null for ora's own benchmarks and for an upload that attached none."},"licenseVerified":{"type":"boolean"},"licenseVerifiedByPolicy":{"type":"boolean"},"redistribution":{"type":"string","enum":["allowed","reference_only"]},"disclosure":{"type":"string","enum":["open","guarded"]},"disclosureReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"access":{"type":"string","enum":["open","gated","private"]},"termsUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"homepageUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"paperUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"currentVersion":{"type":"number"},"currentVersionId":{"anyOf":[{"type":"string"},{"type":"null"}]},"currentVersionTaskCount":{"anyOf":[{"type":"number"},{"type":"null"}]},"lenses":{"type":"array","items":{"type":"string"}},"environment":{"type":"string","enum":["none","workspace","image","hosted","services","stack"]},"runnability":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"runnable"}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"corpus-missing"},"reason":{"type":"string"}},"required":["kind","reason"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"needs-import"},"reason":{"type":"string"}},"required":["kind","reason"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"needs-token"},"reason":{"type":"string"}},"required":["kind","reason"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"runner-unsupported"},"reason":{"type":"string"}},"required":["kind","reason"],"additionalProperties":false}]},"runnerImage":{"type":"string","enum":["not-needed","not-built","building","ready"]},"taskTextAvailable":{"type":"boolean"},"hubTier":{"type":"string","enum":["featured","community","mine"]},"hubStatus":{"type":"string","enum":["draft","submitted","verified","rejected"]},"listed":{"type":"boolean"},"visibility":{"type":"string","enum":["private","org","public"]},"attestation":{"anyOf":[{"type":"object","properties":{"licenseSpdx":{"type":"string"},"redistribution":{"type":"string","enum":["allowed","reference_only"]},"sourceUrl":{"type":"string"},"statement":{"type":"string"},"attestedAt":{"type":"string"}},"required":["licenseSpdx","redistribution","sourceUrl","statement","attestedAt"],"additionalProperties":false},{"type":"null"}]},"rejectionReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"uploadedBy":{"anyOf":[{"type":"object","properties":{"userId":{"type":"string"},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["userId","displayName"],"additionalProperties":false},{"type":"null"}]},"uploadedByPublisher":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Whether the publisher named by `?publisher=` uploaded this benchmark (a hub upload owned by one of its organizations) — the conflict-of-interest fact its index prints. null = no publisher named (and on every authed door)."},"notices":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string"},"text":{"type":"string"}},"required":["kind","text"],"additionalProperties":false}}},"required":["id","slug","name","description","family","sourceKind","headlineMetric","methodology","defaultConfig","runnerKind","license","licenseText","licenseVerified","licenseVerifiedByPolicy","redistribution","disclosure","disclosureReason","access","termsUrl","homepageUrl","paperUrl","publishedAt","currentVersion","currentVersionId","currentVersionTaskCount","lenses","environment","runnability","runnerImage","taskTextAvailable","hubTier","hubStatus","listed","visibility","attestation","rejectionReason","uploadedBy","uploadedByPublisher","notices"],"additionalProperties":false}},"facets":{"type":"object","properties":{"families":{"type":"array","items":{"type":"string","enum":["static_qa","code","agentic","tools","web","knowledge_work","safety","suite"]}},"sourceKinds":{"type":"array","items":{"type":"string","enum":["hf-dataset","jsonl","git-tasks","release-file","authored","framework"]}},"hubTiers":{"type":"array","items":{"type":"string","enum":["featured","community","mine"]}}},"required":["families","sourceKinds","hubTiers"],"additionalProperties":false}},"required":["definitions","facets"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:read","x-ora-product":"study","x-ora-service":"study-service"},"post":{"operationId":"study.benchmarkDefinitions.create","summary":"Author a benchmark definition — born private to your organization, unlisted and licence-unverified","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string","minLength":3,"maxLength":80,"pattern":"^[a-z0-9][a-z0-9-]*[a-z0-9]$"},"name":{"type":"string","minLength":1,"maxLength":160},"description":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}]},"family":{"type":"string","enum":["static_qa","code","agentic","tools","web","knowledge_work","safety","suite"]},"sourceKind":{"type":"string","enum":["hf-dataset","jsonl","git-tasks","release-file","authored","framework"]},"sourceConfig":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"adapterId":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}]},"headlineMetric":{"type":"string","minLength":1,"maxLength":30},"gradingSpec":{"type":"object","properties":{"lenses":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":60},"config":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id"]}},"coverage":{"type":"string","enum":["every-task","per-task"]}},"required":["lenses"]},"environmentSpec":{"type":"object","properties":{"kind":{"type":"string","enum":["none","workspace","image","hosted","services","stack"]}},"required":["kind"],"additionalProperties":{}},"methodology":{"type":"object","properties":{"variantsAllowed":{"type":"boolean"},"recommendedRepeats":{"type":"integer","minimum":1,"maximum":50},"officialFidelity":{"type":"boolean"},"modelParams":{"maxItems":20,"type":"array","items":{"type":"string","maxLength":60}},"maxPlannedRuns":{"type":"integer","minimum":1,"maximum":9007199254740991},"sampleFloor":{"type":"integer","minimum":1,"maximum":9007199254740991},"missingAnswer":{"type":"string","enum":["unmeasured","wrong","grade_full_response"],"description":"How the benchmark's OWN scoring counts a run whose answer could not be extracted: 'wrong' (a failure, as e.g. AIME scores a blank answer), 'grade_full_response' (the benchmark's grader reads the whole response, as e.g. SimpleQA's does — a decline is not attempted) or 'unmeasured' (left out of the rate — the default)."},"aggregation":{"type":"string","enum":["included","excluded"],"description":"Whether this benchmark folds into the cross-benchmark leaderboard: 'excluded' keeps it out of the aggregate and off every surface that names aggregated benchmarks; absent or 'included' admits it."},"aggregationReason":{"type":"string","enum":["smoke_test","suite_of_benchmarks"],"description":"Why the benchmark is excluded from the cross-benchmark leaderboard."},"aggregateTaskSample":{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":500},"seed":{"type":"string","minLength":1,"maxLength":64}},"required":["count","seed"],"additionalProperties":false,"description":"The aggregate's comparison set for a large corpus: a deterministic sample of `count` tasks drawn with `seed`, exactly as a study's subset is drawn. Frozen into each version imported after it is declared."}}},"runnerKind":{"type":"string","enum":["none","image","environment","framework"]},"runnerRecipe":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"license":{"anyOf":[{"type":"string","enum":["MIT","Apache-2.0","BSD-2-Clause","BSD-3-Clause","CC-BY-4.0","CC0-1.0","CC-BY-SA-4.0","CC-BY-NC-4.0","CC-BY-NC-SA-4.0","GPL-3.0","AGPL-3.0","MPL-2.0"]},{"type":"null"}]},"licenseText":{"anyOf":[{"type":"string","maxLength":65536},{"type":"null"}]},"redistribution":{"type":"string","enum":["allowed","reference_only"]},"access":{"type":"string","enum":["open","gated","private"]},"termsUrl":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"homepageUrl":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"paperUrl":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"defaultConfig":{"anyOf":[{"type":"object","properties":{"matrix":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1},"model":{"type":"string","minLength":1},"provider":{"type":"string","minLength":1},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["harness","model"],"additionalProperties":false}},"skills":{"type":"array","items":{"type":"string","minLength":1}},"tools":{"anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"type":"object","propertyNames":{"type":"string","minLength":1},"additionalProperties":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false},{"type":"null"}]},"visibility":{"type":"string","enum":["private","org","public"]}},"required":["slug","name","family","sourceKind","headlineMetric"],"additionalProperties":false},"example":{"slug":"windtunnel","name":"WindTunnel","family":"web","sourceKind":"git-tasks","headlineMetric":"pass_rate"}}}},"responses":{"201":{"description":"Author a benchmark definition — born private to your organization, unlisted and licence-unverified","content":{"application/json":{"schema":{"type":"object","properties":{"definition":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"family":{"type":"string","enum":["static_qa","code","agentic","tools","web","knowledge_work","safety","suite"]},"sourceKind":{"type":"string","enum":["hf-dataset","jsonl","git-tasks","release-file","authored","framework"]},"headlineMetric":{"type":"string"},"methodology":{"type":"object","properties":{"variantsAllowed":{"type":"boolean"},"recommendedRepeats":{"type":"number"},"officialFidelity":{"type":"boolean"},"modelParams":{"type":"array","items":{"type":"string"}},"maxPlannedRuns":{"type":"number"},"sampleFloor":{"type":"number"},"missingAnswer":{"type":"string","enum":["unmeasured","wrong","grade_full_response"],"description":"How the benchmark's OWN scoring counts a run whose answer could not be extracted: 'wrong' (a failure, as e.g. AIME scores a blank answer), 'grade_full_response' (the benchmark's grader reads the whole response, as e.g. SimpleQA's does — a decline is not attempted) or 'unmeasured' (left out of the rate — the default)."},"aggregation":{"type":"string","enum":["included","excluded"],"description":"Whether this benchmark folds into the cross-benchmark leaderboard: 'excluded' keeps it out of the aggregate and off every surface that names aggregated benchmarks; absent or 'included' admits it."},"aggregationReason":{"type":"string","enum":["smoke_test","suite_of_benchmarks"],"description":"Why the benchmark is excluded from the cross-benchmark leaderboard."},"aggregateTaskSample":{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":500},"seed":{"type":"string","minLength":1,"maxLength":64}},"required":["count","seed"],"additionalProperties":false,"description":"The aggregate's comparison set for a large corpus: a deterministic sample of `count` tasks drawn with `seed`, exactly as a study's subset is drawn. Frozen into each version imported after it is declared."}},"additionalProperties":false},"defaultConfig":{"anyOf":[{"type":"object","properties":{"matrix":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1},"model":{"type":"string","minLength":1},"provider":{"type":"string","minLength":1},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["harness","model"],"additionalProperties":false}},"skills":{"type":"array","items":{"type":"string","minLength":1}},"tools":{"anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"type":"object","propertyNames":{"type":"string","minLength":1},"additionalProperties":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false},{"type":"null"}]},"runnerKind":{"type":"string","enum":["none","image","environment","framework"]},"license":{"anyOf":[{"type":"string"},{"type":"null"}]},"licenseText":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The licence document the uploader supplied (its LICENSE file or pasted text). ora verifies an upload's permissive licence only when this document carries that licence's grant. Null for ora's own benchmarks and for an upload that attached none."},"licenseVerified":{"type":"boolean"},"licenseVerifiedByPolicy":{"type":"boolean"},"redistribution":{"type":"string","enum":["allowed","reference_only"]},"disclosure":{"type":"string","enum":["open","guarded"]},"disclosureReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"access":{"type":"string","enum":["open","gated","private"]},"termsUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"homepageUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"paperUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"currentVersion":{"type":"number"},"currentVersionId":{"anyOf":[{"type":"string"},{"type":"null"}]},"currentVersionTaskCount":{"anyOf":[{"type":"number"},{"type":"null"}]},"lenses":{"type":"array","items":{"type":"string"}},"environment":{"type":"string","enum":["none","workspace","image","hosted","services","stack"]},"runnability":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"runnable"}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"corpus-missing"},"reason":{"type":"string"}},"required":["kind","reason"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"needs-import"},"reason":{"type":"string"}},"required":["kind","reason"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"needs-token"},"reason":{"type":"string"}},"required":["kind","reason"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"runner-unsupported"},"reason":{"type":"string"}},"required":["kind","reason"],"additionalProperties":false}]},"runnerImage":{"type":"string","enum":["not-needed","not-built","building","ready"]},"taskTextAvailable":{"type":"boolean"},"hubTier":{"type":"string","enum":["featured","community","mine"]},"hubStatus":{"type":"string","enum":["draft","submitted","verified","rejected"]},"listed":{"type":"boolean"},"visibility":{"type":"string","enum":["private","org","public"]},"attestation":{"anyOf":[{"type":"object","properties":{"licenseSpdx":{"type":"string"},"redistribution":{"type":"string","enum":["allowed","reference_only"]},"sourceUrl":{"type":"string"},"statement":{"type":"string"},"attestedAt":{"type":"string"}},"required":["licenseSpdx","redistribution","sourceUrl","statement","attestedAt"],"additionalProperties":false},{"type":"null"}]},"rejectionReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"uploadedBy":{"anyOf":[{"type":"object","properties":{"userId":{"type":"string"},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["userId","displayName"],"additionalProperties":false},{"type":"null"}]},"uploadedByPublisher":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Whether the publisher named by `?publisher=` uploaded this benchmark (a hub upload owned by one of its organizations) — the conflict-of-interest fact its index prints. null = no publisher named (and on every authed door)."},"notices":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string"},"text":{"type":"string"}},"required":["kind","text"],"additionalProperties":false}}},"required":["id","slug","name","description","family","sourceKind","headlineMetric","methodology","defaultConfig","runnerKind","license","licenseText","licenseVerified","licenseVerifiedByPolicy","redistribution","disclosure","disclosureReason","access","termsUrl","homepageUrl","paperUrl","publishedAt","currentVersion","currentVersionId","currentVersionTaskCount","lenses","environment","runnability","runnerImage","taskTextAvailable","hubTier","hubStatus","listed","visibility","attestation","rejectionReason","uploadedBy","uploadedByPublisher","notices"],"additionalProperties":false}},"required":["definition"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"benchmark_slug_taken — a listed benchmark already answers to this slug, or your organization already used it","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:write","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/benchmark-definitions/{slug}":{"get":{"operationId":"study.benchmarkDefinitions.get","summary":"One benchmark definition: methodology, licensing, environment and whether it can be run today","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":80},"example":"mmlu-pro"}],"responses":{"200":{"description":"One benchmark definition: methodology, licensing, environment and whether it can be run today","content":{"application/json":{"schema":{"type":"object","properties":{"definition":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"family":{"type":"string","enum":["static_qa","code","agentic","tools","web","knowledge_work","safety","suite"]},"sourceKind":{"type":"string","enum":["hf-dataset","jsonl","git-tasks","release-file","authored","framework"]},"headlineMetric":{"type":"string"},"methodology":{"type":"object","properties":{"variantsAllowed":{"type":"boolean"},"recommendedRepeats":{"type":"number"},"officialFidelity":{"type":"boolean"},"modelParams":{"type":"array","items":{"type":"string"}},"maxPlannedRuns":{"type":"number"},"sampleFloor":{"type":"number"},"missingAnswer":{"type":"string","enum":["unmeasured","wrong","grade_full_response"],"description":"How the benchmark's OWN scoring counts a run whose answer could not be extracted: 'wrong' (a failure, as e.g. AIME scores a blank answer), 'grade_full_response' (the benchmark's grader reads the whole response, as e.g. SimpleQA's does — a decline is not attempted) or 'unmeasured' (left out of the rate — the default)."},"aggregation":{"type":"string","enum":["included","excluded"],"description":"Whether this benchmark folds into the cross-benchmark leaderboard: 'excluded' keeps it out of the aggregate and off every surface that names aggregated benchmarks; absent or 'included' admits it."},"aggregationReason":{"type":"string","enum":["smoke_test","suite_of_benchmarks"],"description":"Why the benchmark is excluded from the cross-benchmark leaderboard."},"aggregateTaskSample":{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":500},"seed":{"type":"string","minLength":1,"maxLength":64}},"required":["count","seed"],"additionalProperties":false,"description":"The aggregate's comparison set for a large corpus: a deterministic sample of `count` tasks drawn with `seed`, exactly as a study's subset is drawn. Frozen into each version imported after it is declared."}},"additionalProperties":false},"defaultConfig":{"anyOf":[{"type":"object","properties":{"matrix":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1},"model":{"type":"string","minLength":1},"provider":{"type":"string","minLength":1},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["harness","model"],"additionalProperties":false}},"skills":{"type":"array","items":{"type":"string","minLength":1}},"tools":{"anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"type":"object","propertyNames":{"type":"string","minLength":1},"additionalProperties":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false},{"type":"null"}]},"runnerKind":{"type":"string","enum":["none","image","environment","framework"]},"license":{"anyOf":[{"type":"string"},{"type":"null"}]},"licenseText":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The licence document the uploader supplied (its LICENSE file or pasted text). ora verifies an upload's permissive licence only when this document carries that licence's grant. Null for ora's own benchmarks and for an upload that attached none."},"licenseVerified":{"type":"boolean"},"licenseVerifiedByPolicy":{"type":"boolean"},"redistribution":{"type":"string","enum":["allowed","reference_only"]},"disclosure":{"type":"string","enum":["open","guarded"]},"disclosureReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"access":{"type":"string","enum":["open","gated","private"]},"termsUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"homepageUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"paperUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"currentVersion":{"type":"number"},"currentVersionId":{"anyOf":[{"type":"string"},{"type":"null"}]},"currentVersionTaskCount":{"anyOf":[{"type":"number"},{"type":"null"}]},"lenses":{"type":"array","items":{"type":"string"}},"environment":{"type":"string","enum":["none","workspace","image","hosted","services","stack"]},"runnability":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"runnable"}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"corpus-missing"},"reason":{"type":"string"}},"required":["kind","reason"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"needs-import"},"reason":{"type":"string"}},"required":["kind","reason"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"needs-token"},"reason":{"type":"string"}},"required":["kind","reason"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"runner-unsupported"},"reason":{"type":"string"}},"required":["kind","reason"],"additionalProperties":false}]},"runnerImage":{"type":"string","enum":["not-needed","not-built","building","ready"]},"taskTextAvailable":{"type":"boolean"},"hubTier":{"type":"string","enum":["featured","community","mine"]},"hubStatus":{"type":"string","enum":["draft","submitted","verified","rejected"]},"listed":{"type":"boolean"},"visibility":{"type":"string","enum":["private","org","public"]},"attestation":{"anyOf":[{"type":"object","properties":{"licenseSpdx":{"type":"string"},"redistribution":{"type":"string","enum":["allowed","reference_only"]},"sourceUrl":{"type":"string"},"statement":{"type":"string"},"attestedAt":{"type":"string"}},"required":["licenseSpdx","redistribution","sourceUrl","statement","attestedAt"],"additionalProperties":false},{"type":"null"}]},"rejectionReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"uploadedBy":{"anyOf":[{"type":"object","properties":{"userId":{"type":"string"},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["userId","displayName"],"additionalProperties":false},{"type":"null"}]},"uploadedByPublisher":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Whether the publisher named by `?publisher=` uploaded this benchmark (a hub upload owned by one of its organizations) — the conflict-of-interest fact its index prints. null = no publisher named (and on every authed door)."},"notices":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string"},"text":{"type":"string"}},"required":["kind","text"],"additionalProperties":false}}},"required":["id","slug","name","description","family","sourceKind","headlineMetric","methodology","defaultConfig","runnerKind","license","licenseText","licenseVerified","licenseVerifiedByPolicy","redistribution","disclosure","disclosureReason","access","termsUrl","homepageUrl","paperUrl","publishedAt","currentVersion","currentVersionId","currentVersionTaskCount","lenses","environment","runnability","runnerImage","taskTextAvailable","hubTier","hubStatus","listed","visibility","attestation","rejectionReason","uploadedBy","uploadedByPublisher","notices"],"additionalProperties":false}},"required":["definition"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"benchmark_definition_not_found — no listed definition, and none of the org's own, has this slug","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:read","x-ora-product":"study","x-ora-service":"study-service"},"patch":{"operationId":"study.benchmarkDefinitions.update","summary":"Edit a benchmark definition your organization publishes","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":80},"example":"windtunnel"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":160},"description":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}]},"family":{"type":"string","enum":["static_qa","code","agentic","tools","web","knowledge_work","safety","suite"]},"sourceKind":{"type":"string","enum":["hf-dataset","jsonl","git-tasks","release-file","authored","framework"]},"sourceConfig":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"adapterId":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}]},"headlineMetric":{"type":"string","minLength":1,"maxLength":30},"gradingSpec":{"type":"object","properties":{"lenses":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":60},"config":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id"]}},"coverage":{"type":"string","enum":["every-task","per-task"]}},"required":["lenses"]},"environmentSpec":{"type":"object","properties":{"kind":{"type":"string","enum":["none","workspace","image","hosted","services","stack"]}},"required":["kind"],"additionalProperties":{}},"methodology":{"type":"object","properties":{"variantsAllowed":{"type":"boolean"},"recommendedRepeats":{"type":"integer","minimum":1,"maximum":50},"officialFidelity":{"type":"boolean"},"modelParams":{"maxItems":20,"type":"array","items":{"type":"string","maxLength":60}},"maxPlannedRuns":{"type":"integer","minimum":1,"maximum":9007199254740991},"sampleFloor":{"type":"integer","minimum":1,"maximum":9007199254740991},"missingAnswer":{"type":"string","enum":["unmeasured","wrong","grade_full_response"],"description":"How the benchmark's OWN scoring counts a run whose answer could not be extracted: 'wrong' (a failure, as e.g. AIME scores a blank answer), 'grade_full_response' (the benchmark's grader reads the whole response, as e.g. SimpleQA's does — a decline is not attempted) or 'unmeasured' (left out of the rate — the default)."},"aggregation":{"type":"string","enum":["included","excluded"],"description":"Whether this benchmark folds into the cross-benchmark leaderboard: 'excluded' keeps it out of the aggregate and off every surface that names aggregated benchmarks; absent or 'included' admits it."},"aggregationReason":{"type":"string","enum":["smoke_test","suite_of_benchmarks"],"description":"Why the benchmark is excluded from the cross-benchmark leaderboard."},"aggregateTaskSample":{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":500},"seed":{"type":"string","minLength":1,"maxLength":64}},"required":["count","seed"],"additionalProperties":false,"description":"The aggregate's comparison set for a large corpus: a deterministic sample of `count` tasks drawn with `seed`, exactly as a study's subset is drawn. Frozen into each version imported after it is declared."}}},"runnerKind":{"type":"string","enum":["none","image","environment","framework"]},"runnerRecipe":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"license":{"anyOf":[{"type":"string","enum":["MIT","Apache-2.0","BSD-2-Clause","BSD-3-Clause","CC-BY-4.0","CC0-1.0","CC-BY-SA-4.0","CC-BY-NC-4.0","CC-BY-NC-SA-4.0","GPL-3.0","AGPL-3.0","MPL-2.0"]},{"type":"null"}]},"licenseText":{"anyOf":[{"type":"string","maxLength":65536},{"type":"null"}]},"redistribution":{"type":"string","enum":["allowed","reference_only"]},"access":{"type":"string","enum":["open","gated","private"]},"termsUrl":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"homepageUrl":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"paperUrl":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"defaultConfig":{"anyOf":[{"type":"object","properties":{"matrix":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1},"model":{"type":"string","minLength":1},"provider":{"type":"string","minLength":1},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["harness","model"],"additionalProperties":false}},"skills":{"type":"array","items":{"type":"string","minLength":1}},"tools":{"anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"type":"object","propertyNames":{"type":"string","minLength":1},"additionalProperties":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false},{"type":"null"}]},"visibility":{"type":"string","enum":["private","org","public"]}},"additionalProperties":false},"example":{"description":"49 browser tasks over 8 self-hosted apps"}}}},"responses":{"200":{"description":"Edit a benchmark definition your organization publishes","content":{"application/json":{"schema":{"type":"object","properties":{"definition":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"family":{"type":"string","enum":["static_qa","code","agentic","tools","web","knowledge_work","safety","suite"]},"sourceKind":{"type":"string","enum":["hf-dataset","jsonl","git-tasks","release-file","authored","framework"]},"headlineMetric":{"type":"string"},"methodology":{"type":"object","properties":{"variantsAllowed":{"type":"boolean"},"recommendedRepeats":{"type":"number"},"officialFidelity":{"type":"boolean"},"modelParams":{"type":"array","items":{"type":"string"}},"maxPlannedRuns":{"type":"number"},"sampleFloor":{"type":"number"},"missingAnswer":{"type":"string","enum":["unmeasured","wrong","grade_full_response"],"description":"How the benchmark's OWN scoring counts a run whose answer could not be extracted: 'wrong' (a failure, as e.g. AIME scores a blank answer), 'grade_full_response' (the benchmark's grader reads the whole response, as e.g. SimpleQA's does — a decline is not attempted) or 'unmeasured' (left out of the rate — the default)."},"aggregation":{"type":"string","enum":["included","excluded"],"description":"Whether this benchmark folds into the cross-benchmark leaderboard: 'excluded' keeps it out of the aggregate and off every surface that names aggregated benchmarks; absent or 'included' admits it."},"aggregationReason":{"type":"string","enum":["smoke_test","suite_of_benchmarks"],"description":"Why the benchmark is excluded from the cross-benchmark leaderboard."},"aggregateTaskSample":{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":500},"seed":{"type":"string","minLength":1,"maxLength":64}},"required":["count","seed"],"additionalProperties":false,"description":"The aggregate's comparison set for a large corpus: a deterministic sample of `count` tasks drawn with `seed`, exactly as a study's subset is drawn. Frozen into each version imported after it is declared."}},"additionalProperties":false},"defaultConfig":{"anyOf":[{"type":"object","properties":{"matrix":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1},"model":{"type":"string","minLength":1},"provider":{"type":"string","minLength":1},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["harness","model"],"additionalProperties":false}},"skills":{"type":"array","items":{"type":"string","minLength":1}},"tools":{"anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"type":"object","propertyNames":{"type":"string","minLength":1},"additionalProperties":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false},{"type":"null"}]},"runnerKind":{"type":"string","enum":["none","image","environment","framework"]},"license":{"anyOf":[{"type":"string"},{"type":"null"}]},"licenseText":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The licence document the uploader supplied (its LICENSE file or pasted text). ora verifies an upload's permissive licence only when this document carries that licence's grant. Null for ora's own benchmarks and for an upload that attached none."},"licenseVerified":{"type":"boolean"},"licenseVerifiedByPolicy":{"type":"boolean"},"redistribution":{"type":"string","enum":["allowed","reference_only"]},"disclosure":{"type":"string","enum":["open","guarded"]},"disclosureReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"access":{"type":"string","enum":["open","gated","private"]},"termsUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"homepageUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"paperUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"currentVersion":{"type":"number"},"currentVersionId":{"anyOf":[{"type":"string"},{"type":"null"}]},"currentVersionTaskCount":{"anyOf":[{"type":"number"},{"type":"null"}]},"lenses":{"type":"array","items":{"type":"string"}},"environment":{"type":"string","enum":["none","workspace","image","hosted","services","stack"]},"runnability":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"runnable"}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"corpus-missing"},"reason":{"type":"string"}},"required":["kind","reason"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"needs-import"},"reason":{"type":"string"}},"required":["kind","reason"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"needs-token"},"reason":{"type":"string"}},"required":["kind","reason"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"runner-unsupported"},"reason":{"type":"string"}},"required":["kind","reason"],"additionalProperties":false}]},"runnerImage":{"type":"string","enum":["not-needed","not-built","building","ready"]},"taskTextAvailable":{"type":"boolean"},"hubTier":{"type":"string","enum":["featured","community","mine"]},"hubStatus":{"type":"string","enum":["draft","submitted","verified","rejected"]},"listed":{"type":"boolean"},"visibility":{"type":"string","enum":["private","org","public"]},"attestation":{"anyOf":[{"type":"object","properties":{"licenseSpdx":{"type":"string"},"redistribution":{"type":"string","enum":["allowed","reference_only"]},"sourceUrl":{"type":"string"},"statement":{"type":"string"},"attestedAt":{"type":"string"}},"required":["licenseSpdx","redistribution","sourceUrl","statement","attestedAt"],"additionalProperties":false},{"type":"null"}]},"rejectionReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"uploadedBy":{"anyOf":[{"type":"object","properties":{"userId":{"type":"string"},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["userId","displayName"],"additionalProperties":false},{"type":"null"}]},"uploadedByPublisher":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Whether the publisher named by `?publisher=` uploaded this benchmark (a hub upload owned by one of its organizations) — the conflict-of-interest fact its index prints. null = no publisher named (and on every authed door)."},"notices":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string"},"text":{"type":"string"}},"required":["kind","text"],"additionalProperties":false}}},"required":["id","slug","name","description","family","sourceKind","headlineMetric","methodology","defaultConfig","runnerKind","license","licenseText","licenseVerified","licenseVerifiedByPolicy","redistribution","disclosure","disclosureReason","access","termsUrl","homepageUrl","paperUrl","publishedAt","currentVersion","currentVersionId","currentVersionTaskCount","lenses","environment","runnability","runnerImage","taskTextAvailable","hubTier","hubStatus","listed","visibility","attestation","rejectionReason","uploadedBy","uploadedByPublisher","notices"],"additionalProperties":false}},"required":["definition"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"benchmark_definition_not_found — no definition of this organization has this slug. A definition another organization owns answers the same way: a 403 would confirm it exists.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"benchmark_hub_state — the definition is not in a state this operation can act on (already submitted, already listed, or listed and therefore not hideable); `state` carries the current hub status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:write","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/benchmark-definitions/{slug}/attach-corpus":{"post":{"operationId":"study.benchmarkDefinitions.attachCorpus","summary":"Accept an import of your definition's declared source into a NEW immutable version — a JOB, followed over its streamUrl","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":80},"example":"windtunnel"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"version":{"description":"Write this version NUMBER. Omit it to take the next free one. A number that already exists is a 409 — a published version is immutable, because studies pin it.","type":"integer","minimum":1,"maximum":9007199254740991},"limit":{"description":"Import at most this many tasks from the top of the source's own order. Recorded in the version's `notes`, never applied silently — a short corpus with no explanation is a benchmark nobody can reproduce.","type":"integer","minimum":1,"maximum":9007199254740991},"changelog":{"description":"What changed about this version, in the publisher's own words.","type":"string","maxLength":2000}},"additionalProperties":false},"example":{"limit":200}}}},"responses":{"202":{"description":"Accept an import of your definition's declared source into a NEW immutable version — a JOB, followed over its streamUrl","content":{"application/json":{"schema":{"type":"object","properties":{"job":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"definitionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["queued","running","succeeded","failed"]},"door":{"type":"string","enum":["platform","organization"]},"request":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"The accepted import body (limit, version, changelog)."},"result":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}],"description":"Present once succeeded: the new version, its task count, checksum and notes."},"error":{"anyOf":[{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"detail":{}},"required":["code","message"],"additionalProperties":false},{"type":"null"}],"description":"Present once failed: the same code and message the import door would have answered with."},"executor":{"type":"string"},"worker":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"startedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","definitionId","status","door","request","result","error","executor","worker","createdAt","startedAt","finishedAt"],"additionalProperties":false,"description":"A benchmark import job — queued, running, then succeeded or failed."},"streamUrl":{"type":"string","description":"The job's live SSE stream, relative to this API origin: the current state at once, then every change; it closes after succeeded or failed. `ora … --watch` follows it."}},"required":["job","streamUrl"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"benchmark_definition_not_found — no definition of this organization has this slug. A definition another organization owns answers the same way: a 403 would confirm it exists.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"benchmark_import_active — an import of this definition is already queued or running (`job` names it)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"benchmark_source_config_invalid — the declared source config is invalid; the source's own reason travels verbatim. A corpus that cannot be read fails the JOB instead, with the same codes (benchmark_dataset_access_denied / benchmark_corpus_*)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:write","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/benchmark-definitions/{slug}/publish":{"post":{"operationId":"study.benchmarkDefinitions.publish","summary":"Point your definition at an imported version — a study can pin it from here on","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":80},"example":"windtunnel"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"version":{"description":"Point the catalog at this version. Omit it to publish the newest imported one.","type":"integer","minimum":1,"maximum":9007199254740991}},"additionalProperties":false},"example":{}}}},"responses":{"200":{"description":"Point your definition at an imported version — a study can pin it from here on","content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string"},"currentVersion":{"type":"number"},"versionId":{"type":"string"},"taskCount":{"type":"number"}},"required":["slug","currentVersion","versionId","taskCount"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"benchmark_definition_not_found — no definition of this organization has this slug. A definition another organization owns answers the same way: a 403 would confirm it exists.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"benchmark_version_corrupt — the stored version's row count or corpus hash disagrees with what the import recorded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"benchmark_corpus_missing — that version does not exist, or carries no tasks","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:write","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/benchmark-definitions/{slug}/submit":{"post":{"operationId":"study.benchmarkDefinitions.submit","summary":"Ask ora to feature it in the public catalog, with a signed licence attestation. A successful review makes the definition PUBLIC and lists it — submitting is asking for both.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":80},"example":"windtunnel"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"attestation":{"type":"object","properties":{"licenseSpdx":{"anyOf":[{"type":"string","enum":["MIT","Apache-2.0","BSD-2-Clause","BSD-3-Clause","CC-BY-4.0","CC0-1.0","CC-BY-SA-4.0","CC-BY-NC-4.0","CC-BY-NC-SA-4.0","GPL-3.0","AGPL-3.0","MPL-2.0"]},{"type":"string","const":""}]},"redistribution":{"type":"string","enum":["allowed","reference_only"]},"sourceUrl":{"type":"string","minLength":1,"maxLength":500},"statement":{"type":"string","minLength":1,"maxLength":2000}},"required":["licenseSpdx","redistribution","sourceUrl","statement"],"additionalProperties":false}},"required":["attestation"],"additionalProperties":false},"example":{"attestation":{"licenseSpdx":"Apache-2.0","redistribution":"allowed","sourceUrl":"https://github.com/nekuda-ai/WindTunnel","statement":"The repository ships an Apache-2.0 LICENSE covering the task files."}}}}},"responses":{"200":{"description":"Ask ora to feature it in the public catalog, with a signed licence attestation. A successful review makes the definition PUBLIC and lists it — submitting is asking for both.","content":{"application/json":{"schema":{"type":"object","properties":{"definition":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"family":{"type":"string","enum":["static_qa","code","agentic","tools","web","knowledge_work","safety","suite"]},"sourceKind":{"type":"string","enum":["hf-dataset","jsonl","git-tasks","release-file","authored","framework"]},"headlineMetric":{"type":"string"},"methodology":{"type":"object","properties":{"variantsAllowed":{"type":"boolean"},"recommendedRepeats":{"type":"number"},"officialFidelity":{"type":"boolean"},"modelParams":{"type":"array","items":{"type":"string"}},"maxPlannedRuns":{"type":"number"},"sampleFloor":{"type":"number"},"missingAnswer":{"type":"string","enum":["unmeasured","wrong","grade_full_response"],"description":"How the benchmark's OWN scoring counts a run whose answer could not be extracted: 'wrong' (a failure, as e.g. AIME scores a blank answer), 'grade_full_response' (the benchmark's grader reads the whole response, as e.g. SimpleQA's does — a decline is not attempted) or 'unmeasured' (left out of the rate — the default)."},"aggregation":{"type":"string","enum":["included","excluded"],"description":"Whether this benchmark folds into the cross-benchmark leaderboard: 'excluded' keeps it out of the aggregate and off every surface that names aggregated benchmarks; absent or 'included' admits it."},"aggregationReason":{"type":"string","enum":["smoke_test","suite_of_benchmarks"],"description":"Why the benchmark is excluded from the cross-benchmark leaderboard."},"aggregateTaskSample":{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":500},"seed":{"type":"string","minLength":1,"maxLength":64}},"required":["count","seed"],"additionalProperties":false,"description":"The aggregate's comparison set for a large corpus: a deterministic sample of `count` tasks drawn with `seed`, exactly as a study's subset is drawn. Frozen into each version imported after it is declared."}},"additionalProperties":false},"defaultConfig":{"anyOf":[{"type":"object","properties":{"matrix":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1},"model":{"type":"string","minLength":1},"provider":{"type":"string","minLength":1},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["harness","model"],"additionalProperties":false}},"skills":{"type":"array","items":{"type":"string","minLength":1}},"tools":{"anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"type":"object","propertyNames":{"type":"string","minLength":1},"additionalProperties":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false},{"type":"null"}]},"runnerKind":{"type":"string","enum":["none","image","environment","framework"]},"license":{"anyOf":[{"type":"string"},{"type":"null"}]},"licenseText":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The licence document the uploader supplied (its LICENSE file or pasted text). ora verifies an upload's permissive licence only when this document carries that licence's grant. Null for ora's own benchmarks and for an upload that attached none."},"licenseVerified":{"type":"boolean"},"licenseVerifiedByPolicy":{"type":"boolean"},"redistribution":{"type":"string","enum":["allowed","reference_only"]},"disclosure":{"type":"string","enum":["open","guarded"]},"disclosureReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"access":{"type":"string","enum":["open","gated","private"]},"termsUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"homepageUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"paperUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"currentVersion":{"type":"number"},"currentVersionId":{"anyOf":[{"type":"string"},{"type":"null"}]},"currentVersionTaskCount":{"anyOf":[{"type":"number"},{"type":"null"}]},"lenses":{"type":"array","items":{"type":"string"}},"environment":{"type":"string","enum":["none","workspace","image","hosted","services","stack"]},"runnability":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"runnable"}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"corpus-missing"},"reason":{"type":"string"}},"required":["kind","reason"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"needs-import"},"reason":{"type":"string"}},"required":["kind","reason"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"needs-token"},"reason":{"type":"string"}},"required":["kind","reason"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"runner-unsupported"},"reason":{"type":"string"}},"required":["kind","reason"],"additionalProperties":false}]},"runnerImage":{"type":"string","enum":["not-needed","not-built","building","ready"]},"taskTextAvailable":{"type":"boolean"},"hubTier":{"type":"string","enum":["featured","community","mine"]},"hubStatus":{"type":"string","enum":["draft","submitted","verified","rejected"]},"listed":{"type":"boolean"},"visibility":{"type":"string","enum":["private","org","public"]},"attestation":{"anyOf":[{"type":"object","properties":{"licenseSpdx":{"type":"string"},"redistribution":{"type":"string","enum":["allowed","reference_only"]},"sourceUrl":{"type":"string"},"statement":{"type":"string"},"attestedAt":{"type":"string"}},"required":["licenseSpdx","redistribution","sourceUrl","statement","attestedAt"],"additionalProperties":false},{"type":"null"}]},"rejectionReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"uploadedBy":{"anyOf":[{"type":"object","properties":{"userId":{"type":"string"},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["userId","displayName"],"additionalProperties":false},{"type":"null"}]},"uploadedByPublisher":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Whether the publisher named by `?publisher=` uploaded this benchmark (a hub upload owned by one of its organizations) — the conflict-of-interest fact its index prints. null = no publisher named (and on every authed door)."},"notices":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string"},"text":{"type":"string"}},"required":["kind","text"],"additionalProperties":false}}},"required":["id","slug","name","description","family","sourceKind","headlineMetric","methodology","defaultConfig","runnerKind","license","licenseText","licenseVerified","licenseVerifiedByPolicy","redistribution","disclosure","disclosureReason","access","termsUrl","homepageUrl","paperUrl","publishedAt","currentVersion","currentVersionId","currentVersionTaskCount","lenses","environment","runnability","runnerImage","taskTextAvailable","hubTier","hubStatus","listed","visibility","attestation","rejectionReason","uploadedBy","uploadedByPublisher","notices"],"additionalProperties":false}},"required":["definition"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"benchmark_hub_actor_unknown — an attestation is a human act; an api key, a service token and an on-behalf-of token are all refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"benchmark_definition_not_found — no definition of this organization has this slug. A definition another organization owns answers the same way: a 403 would confirm it exists.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"benchmark_hub_state — the definition is not in a state this operation can act on (already submitted, already listed, or listed and therefore not hideable); `state` carries the current hub status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"benchmark_attestation_invalid — the claim cannot be accepted (an 'allowed' redistribution naming no licence, a source URL that is not https)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:write","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/benchmark-definitions/{slug}/visibility":{"post":{"operationId":"study.benchmarkDefinitions.setVisibility","summary":"Make it private, org-visible or public — effective immediately, by slug or link","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":80},"example":"windtunnel"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"visibility":{"type":"string","enum":["private","org","public"]}},"required":["visibility"],"additionalProperties":false},"example":{"visibility":"public"}}}},"responses":{"200":{"description":"Make it private, org-visible or public — effective immediately, by slug or link","content":{"application/json":{"schema":{"type":"object","properties":{"definition":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"family":{"type":"string","enum":["static_qa","code","agentic","tools","web","knowledge_work","safety","suite"]},"sourceKind":{"type":"string","enum":["hf-dataset","jsonl","git-tasks","release-file","authored","framework"]},"headlineMetric":{"type":"string"},"methodology":{"type":"object","properties":{"variantsAllowed":{"type":"boolean"},"recommendedRepeats":{"type":"number"},"officialFidelity":{"type":"boolean"},"modelParams":{"type":"array","items":{"type":"string"}},"maxPlannedRuns":{"type":"number"},"sampleFloor":{"type":"number"},"missingAnswer":{"type":"string","enum":["unmeasured","wrong","grade_full_response"],"description":"How the benchmark's OWN scoring counts a run whose answer could not be extracted: 'wrong' (a failure, as e.g. AIME scores a blank answer), 'grade_full_response' (the benchmark's grader reads the whole response, as e.g. SimpleQA's does — a decline is not attempted) or 'unmeasured' (left out of the rate — the default)."},"aggregation":{"type":"string","enum":["included","excluded"],"description":"Whether this benchmark folds into the cross-benchmark leaderboard: 'excluded' keeps it out of the aggregate and off every surface that names aggregated benchmarks; absent or 'included' admits it."},"aggregationReason":{"type":"string","enum":["smoke_test","suite_of_benchmarks"],"description":"Why the benchmark is excluded from the cross-benchmark leaderboard."},"aggregateTaskSample":{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":500},"seed":{"type":"string","minLength":1,"maxLength":64}},"required":["count","seed"],"additionalProperties":false,"description":"The aggregate's comparison set for a large corpus: a deterministic sample of `count` tasks drawn with `seed`, exactly as a study's subset is drawn. Frozen into each version imported after it is declared."}},"additionalProperties":false},"defaultConfig":{"anyOf":[{"type":"object","properties":{"matrix":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1},"model":{"type":"string","minLength":1},"provider":{"type":"string","minLength":1},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["harness","model"],"additionalProperties":false}},"skills":{"type":"array","items":{"type":"string","minLength":1}},"tools":{"anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"type":"object","propertyNames":{"type":"string","minLength":1},"additionalProperties":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false},{"type":"null"}]},"runnerKind":{"type":"string","enum":["none","image","environment","framework"]},"license":{"anyOf":[{"type":"string"},{"type":"null"}]},"licenseText":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The licence document the uploader supplied (its LICENSE file or pasted text). ora verifies an upload's permissive licence only when this document carries that licence's grant. Null for ora's own benchmarks and for an upload that attached none."},"licenseVerified":{"type":"boolean"},"licenseVerifiedByPolicy":{"type":"boolean"},"redistribution":{"type":"string","enum":["allowed","reference_only"]},"disclosure":{"type":"string","enum":["open","guarded"]},"disclosureReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"access":{"type":"string","enum":["open","gated","private"]},"termsUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"homepageUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"paperUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"currentVersion":{"type":"number"},"currentVersionId":{"anyOf":[{"type":"string"},{"type":"null"}]},"currentVersionTaskCount":{"anyOf":[{"type":"number"},{"type":"null"}]},"lenses":{"type":"array","items":{"type":"string"}},"environment":{"type":"string","enum":["none","workspace","image","hosted","services","stack"]},"runnability":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"runnable"}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"corpus-missing"},"reason":{"type":"string"}},"required":["kind","reason"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"needs-import"},"reason":{"type":"string"}},"required":["kind","reason"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"needs-token"},"reason":{"type":"string"}},"required":["kind","reason"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"runner-unsupported"},"reason":{"type":"string"}},"required":["kind","reason"],"additionalProperties":false}]},"runnerImage":{"type":"string","enum":["not-needed","not-built","building","ready"]},"taskTextAvailable":{"type":"boolean"},"hubTier":{"type":"string","enum":["featured","community","mine"]},"hubStatus":{"type":"string","enum":["draft","submitted","verified","rejected"]},"listed":{"type":"boolean"},"visibility":{"type":"string","enum":["private","org","public"]},"attestation":{"anyOf":[{"type":"object","properties":{"licenseSpdx":{"type":"string"},"redistribution":{"type":"string","enum":["allowed","reference_only"]},"sourceUrl":{"type":"string"},"statement":{"type":"string"},"attestedAt":{"type":"string"}},"required":["licenseSpdx","redistribution","sourceUrl","statement","attestedAt"],"additionalProperties":false},{"type":"null"}]},"rejectionReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"uploadedBy":{"anyOf":[{"type":"object","properties":{"userId":{"type":"string"},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["userId","displayName"],"additionalProperties":false},{"type":"null"}]},"uploadedByPublisher":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Whether the publisher named by `?publisher=` uploaded this benchmark (a hub upload owned by one of its organizations) — the conflict-of-interest fact its index prints. null = no publisher named (and on every authed door)."},"notices":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string"},"text":{"type":"string"}},"required":["kind","text"],"additionalProperties":false}}},"required":["id","slug","name","description","family","sourceKind","headlineMetric","methodology","defaultConfig","runnerKind","license","licenseText","licenseVerified","licenseVerifiedByPolicy","redistribution","disclosure","disclosureReason","access","termsUrl","homepageUrl","paperUrl","publishedAt","currentVersion","currentVersionId","currentVersionTaskCount","lenses","environment","runnability","runnerImage","taskTextAvailable","hubTier","hubStatus","listed","visibility","attestation","rejectionReason","uploadedBy","uploadedByPublisher","notices"],"additionalProperties":false}},"required":["definition"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"benchmark_definition_not_found — no definition of this organization has this slug. A definition another organization owns answers the same way: a 403 would confirm it exists.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"benchmark_hub_state — the definition is not in a state this operation can act on (already submitted, already listed, or listed and therefore not hideable); `state` carries the current hub status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:write","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/benchmark-definitions/{slug}/withdraw":{"post":{"operationId":"study.benchmarkDefinitions.withdraw","summary":"Take a pending submission back — the definition returns to draft and stays runnable","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":80},"example":"windtunnel"}],"responses":{"200":{"description":"Take a pending submission back — the definition returns to draft and stays runnable","content":{"application/json":{"schema":{"type":"object","properties":{"definition":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"family":{"type":"string","enum":["static_qa","code","agentic","tools","web","knowledge_work","safety","suite"]},"sourceKind":{"type":"string","enum":["hf-dataset","jsonl","git-tasks","release-file","authored","framework"]},"headlineMetric":{"type":"string"},"methodology":{"type":"object","properties":{"variantsAllowed":{"type":"boolean"},"recommendedRepeats":{"type":"number"},"officialFidelity":{"type":"boolean"},"modelParams":{"type":"array","items":{"type":"string"}},"maxPlannedRuns":{"type":"number"},"sampleFloor":{"type":"number"},"missingAnswer":{"type":"string","enum":["unmeasured","wrong","grade_full_response"],"description":"How the benchmark's OWN scoring counts a run whose answer could not be extracted: 'wrong' (a failure, as e.g. AIME scores a blank answer), 'grade_full_response' (the benchmark's grader reads the whole response, as e.g. SimpleQA's does — a decline is not attempted) or 'unmeasured' (left out of the rate — the default)."},"aggregation":{"type":"string","enum":["included","excluded"],"description":"Whether this benchmark folds into the cross-benchmark leaderboard: 'excluded' keeps it out of the aggregate and off every surface that names aggregated benchmarks; absent or 'included' admits it."},"aggregationReason":{"type":"string","enum":["smoke_test","suite_of_benchmarks"],"description":"Why the benchmark is excluded from the cross-benchmark leaderboard."},"aggregateTaskSample":{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":500},"seed":{"type":"string","minLength":1,"maxLength":64}},"required":["count","seed"],"additionalProperties":false,"description":"The aggregate's comparison set for a large corpus: a deterministic sample of `count` tasks drawn with `seed`, exactly as a study's subset is drawn. Frozen into each version imported after it is declared."}},"additionalProperties":false},"defaultConfig":{"anyOf":[{"type":"object","properties":{"matrix":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1},"model":{"type":"string","minLength":1},"provider":{"type":"string","minLength":1},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["harness","model"],"additionalProperties":false}},"skills":{"type":"array","items":{"type":"string","minLength":1}},"tools":{"anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"type":"object","propertyNames":{"type":"string","minLength":1},"additionalProperties":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false},{"type":"null"}]},"runnerKind":{"type":"string","enum":["none","image","environment","framework"]},"license":{"anyOf":[{"type":"string"},{"type":"null"}]},"licenseText":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The licence document the uploader supplied (its LICENSE file or pasted text). ora verifies an upload's permissive licence only when this document carries that licence's grant. Null for ora's own benchmarks and for an upload that attached none."},"licenseVerified":{"type":"boolean"},"licenseVerifiedByPolicy":{"type":"boolean"},"redistribution":{"type":"string","enum":["allowed","reference_only"]},"disclosure":{"type":"string","enum":["open","guarded"]},"disclosureReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"access":{"type":"string","enum":["open","gated","private"]},"termsUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"homepageUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"paperUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"currentVersion":{"type":"number"},"currentVersionId":{"anyOf":[{"type":"string"},{"type":"null"}]},"currentVersionTaskCount":{"anyOf":[{"type":"number"},{"type":"null"}]},"lenses":{"type":"array","items":{"type":"string"}},"environment":{"type":"string","enum":["none","workspace","image","hosted","services","stack"]},"runnability":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"runnable"}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"corpus-missing"},"reason":{"type":"string"}},"required":["kind","reason"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"needs-import"},"reason":{"type":"string"}},"required":["kind","reason"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"needs-token"},"reason":{"type":"string"}},"required":["kind","reason"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"runner-unsupported"},"reason":{"type":"string"}},"required":["kind","reason"],"additionalProperties":false}]},"runnerImage":{"type":"string","enum":["not-needed","not-built","building","ready"]},"taskTextAvailable":{"type":"boolean"},"hubTier":{"type":"string","enum":["featured","community","mine"]},"hubStatus":{"type":"string","enum":["draft","submitted","verified","rejected"]},"listed":{"type":"boolean"},"visibility":{"type":"string","enum":["private","org","public"]},"attestation":{"anyOf":[{"type":"object","properties":{"licenseSpdx":{"type":"string"},"redistribution":{"type":"string","enum":["allowed","reference_only"]},"sourceUrl":{"type":"string"},"statement":{"type":"string"},"attestedAt":{"type":"string"}},"required":["licenseSpdx","redistribution","sourceUrl","statement","attestedAt"],"additionalProperties":false},{"type":"null"}]},"rejectionReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"uploadedBy":{"anyOf":[{"type":"object","properties":{"userId":{"type":"string"},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["userId","displayName"],"additionalProperties":false},{"type":"null"}]},"uploadedByPublisher":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Whether the publisher named by `?publisher=` uploaded this benchmark (a hub upload owned by one of its organizations) — the conflict-of-interest fact its index prints. null = no publisher named (and on every authed door)."},"notices":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string"},"text":{"type":"string"}},"required":["kind","text"],"additionalProperties":false}}},"required":["id","slug","name","description","family","sourceKind","headlineMetric","methodology","defaultConfig","runnerKind","license","licenseText","licenseVerified","licenseVerifiedByPolicy","redistribution","disclosure","disclosureReason","access","termsUrl","homepageUrl","paperUrl","publishedAt","currentVersion","currentVersionId","currentVersionTaskCount","lenses","environment","runnability","runnerImage","taskTextAvailable","hubTier","hubStatus","listed","visibility","attestation","rejectionReason","uploadedBy","uploadedByPublisher","notices"],"additionalProperties":false}},"required":["definition"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"benchmark_definition_not_found — no definition of this organization has this slug. A definition another organization owns answers the same way: a 403 would confirm it exists.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"benchmark_hub_state — the definition is not in a state this operation can act on (already submitted, already listed, or listed and therefore not hideable); `state` carries the current hub status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:write","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/benchmark-imports/{id}":{"get":{"operationId":"study.benchmarkImports.get","summary":"An import job — queued, running, then succeeded (with its new version) or failed (with its reason)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"example":"11111111-1111-4111-8111-111111111111"}],"responses":{"200":{"description":"An import job — queued, running, then succeeded (with its new version) or failed (with its reason)","content":{"application/json":{"schema":{"type":"object","properties":{"job":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"definitionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["queued","running","succeeded","failed"]},"door":{"type":"string","enum":["platform","organization"]},"request":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"The accepted import body (limit, version, changelog)."},"result":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}],"description":"Present once succeeded: the new version, its task count, checksum and notes."},"error":{"anyOf":[{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"detail":{}},"required":["code","message"],"additionalProperties":false},{"type":"null"}],"description":"Present once failed: the same code and message the import door would have answered with."},"executor":{"type":"string"},"worker":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"startedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","definitionId","status","door","request","result","error","executor","worker","createdAt","startedAt","finishedAt"],"additionalProperties":false,"description":"A benchmark import job — queued, running, then succeeded or failed."}},"required":["job"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"benchmark_import_not_found — no import job of this organization has this id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:read","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/benchmark-imports/{id}/stream":{"get":{"operationId":"study.benchmarkImports.stream","summary":"Live SSE of one import job: its current state at once, then every change; closes after succeeded or failed","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Live SSE of one import job: its current state at once, then every change; closes after succeeded or failed","content":{"application/json":{"schema":{}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:read","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/benchmark-intake/assist":{"post":{"operationId":"study.benchmarkIntake.assist","summary":"Have an agent propose the rest of the definition from what the probe read — every field with a rationale and a confidence, grounded on this deployment's registries. It proposes; you confirm. Nothing is created.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"strategy":{"type":"string","minLength":1,"maxLength":60},"config":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"probe":{"type":"object","properties":{"strategy":{"type":"string","minLength":1,"maxLength":60},"proposals":{"maxItems":40,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","enum":["slug","name","description","family","sourceKind","sourceConfig","adapterId","headlineMetric","gradingSpec","environmentSpec","methodology","runnerKind","runnerRecipe","license","licenseText","redistribution","access","termsUrl","homepageUrl","paperUrl","defaultConfig","visibility"]},"value":{},"confidence":{"type":"string","enum":["high","medium","low"]},"rationale":{"type":"string"},"evidencePath":{"type":"string"}},"required":["field","value","confidence","rationale"]}},"gaps":{"maxItems":40,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","enum":["slug","name","description","family","sourceKind","sourceConfig","adapterId","headlineMetric","gradingSpec","environmentSpec","methodology","runnerKind","runnerRecipe","license","licenseText","redistribution","access","termsUrl","homepageUrl","paperUrl","defaultConfig","visibility"]},"reason":{"type":"string"}},"required":["field","reason"]}},"evidence":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["file","metadata"]},"path":{"type":"string"},"excerpt":{"type":"string","maxLength":8000},"bytes":{"type":"number"}},"required":["kind","path","excerpt","bytes"]}},"notes":{"maxItems":20,"type":"array","items":{"type":"string","maxLength":2000}}},"required":["strategy","proposals","gaps","evidence","notes"],"additionalProperties":false}},"required":["strategy","config"],"additionalProperties":false},"example":{"strategy":"git-repo","config":{"repo":"https://github.com/nekuda-ai/WindTunnel"}}}}},"responses":{"200":{"description":"Have an agent propose the rest of the definition from what the probe read — every field with a rationale and a confidence, grounded on this deployment's registries. It proposes; you confirm. Nothing is created.","content":{"application/json":{"schema":{"type":"object","properties":{"strategy":{"type":"string"},"draft":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"fields":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"value":{},"confidence":{"type":"string","enum":["high","medium","low"]},"rationale":{"type":"string"},"evidencePath":{"type":"string"},"source":{"type":"string","enum":["probe","agent"]}},"required":["field","value","confidence","rationale","source"],"additionalProperties":false}},"unresolved":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"reason":{"type":"string"}},"required":["field","reason"],"additionalProperties":false}},"gaps":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"reason":{"type":"string"}},"required":["field","reason"],"additionalProperties":false}},"evidence":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["file","metadata"]},"path":{"type":"string"},"excerpt":{"type":"string"},"bytes":{"type":"number"}},"required":["kind","path","excerpt","bytes"],"additionalProperties":false}},"notes":{"type":"array","items":{"type":"string"}},"model":{"anyOf":[{"type":"string"},{"type":"null"}]},"usage":{"anyOf":[{"type":"object","properties":{"inputTokens":{"type":"number"},"outputTokens":{"type":"number"}},"required":["inputTokens","outputTokens"],"additionalProperties":false},{"type":"null"}]}},"required":["strategy","draft","fields","unresolved","gaps","evidence","notes","model","usage"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"LIMIT_EXCEEDED — this organization's metered `llm_tokens` budget is spent; the suggestion was refused before the model ran. Probing and creating are unaffected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"benchmark_intake_strategy_unknown — no such way in is registered in this deployment; benchmark_intake_probe_failed — the target could not be read, with the probe's own reason; benchmark_intake_probe_mismatch — the probe supplied is from a different way in than this request asked for; benchmark_intake_assist_unreadable — the agent answered a shape this build cannot read, so retrying will not help","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"benchmark_intake_assist_rate_limited — this organization has used its configuration suggestions for the hour; `Retry-After` and `retryAfterSeconds` carry the seconds until the window rolls. Probing and creating are unaffected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"benchmark_intake_assist_failed — the configuration agent could not be reached or refused, with the provider's own reason. The probe's own proposals are unaffected; fill the remaining fields yourself.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:write","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/benchmark-intake/probe":{"post":{"operationId":"study.benchmarkIntake.probe","summary":"Inspect a target and propose a definition — with what it could not determine listed explicitly","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"strategy":{"type":"string","minLength":1,"maxLength":60},"config":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["strategy","config"],"additionalProperties":false},"example":{"strategy":"git-repo","config":{"repo":"https://github.com/nekuda-ai/WindTunnel"}}}}},"responses":{"200":{"description":"Inspect a target and propose a definition — with what it could not determine listed explicitly","content":{"application/json":{"schema":{"type":"object","properties":{"strategy":{"type":"string"},"draft":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"proposals":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"value":{},"confidence":{"type":"string","enum":["high","medium","low"]},"rationale":{"type":"string"},"evidencePath":{"type":"string"}},"required":["field","value","confidence","rationale"],"additionalProperties":false}},"gaps":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"reason":{"type":"string"}},"required":["field","reason"],"additionalProperties":false}},"evidence":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["file","metadata"]},"path":{"type":"string"},"excerpt":{"type":"string"},"bytes":{"type":"number"}},"required":["kind","path","excerpt","bytes"],"additionalProperties":false}},"notes":{"type":"array","items":{"type":"string"}}},"required":["strategy","draft","proposals","gaps","evidence","notes"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"benchmark_intake_strategy_unknown — no such way in is registered in this deployment; benchmark_intake_probe_failed — the target could not be read, with the probe's own reason","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:write","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/benchmark-intake/strategies":{"get":{"operationId":"study.benchmarkIntake.strategies","summary":"The ways a benchmark can be added (a repository, a dataset, a release file, an image, an upload) and the fields each one takes","responses":{"200":{"description":"The ways a benchmark can be added (a repository, a dataset, a release file, an image, an upload) and the fields each one takes","content":{"application/json":{"schema":{"type":"object","properties":{"strategies":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"summary":{"type":"string"},"fields":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"flag":{"type":"string"},"required":{"type":"boolean"},"kind":{"type":"string","enum":["string","number","boolean","array","enum","object"]},"description":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"defaultValue":{}},"required":["name","flag","required","kind"],"additionalProperties":false}}},"required":["id","label","summary","fields"],"additionalProperties":false}}},"required":["strategies"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:write","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/benchmark-terms":{"get":{"operationId":"study.benchmarkTerms.get","summary":"The platform's benchmark-data terms — what an organization accepts once to read the task text of guarded benchmarks — and this organization's acceptance, if any","responses":{"200":{"description":"The platform's benchmark-data terms — what an organization accepts once to read the task text of guarded benchmarks — and this organization's acceptance, if any","content":{"application/json":{"schema":{"type":"object","properties":{"scope":{"type":"string","minLength":1,"maxLength":120},"version":{"type":"string"},"text":{"type":"array","items":{"type":"string"}},"acceptance":{"anyOf":[{"type":"object","properties":{"organizationId":{"type":"string"},"scope":{"type":"string","minLength":1,"maxLength":120},"acceptedBy":{"type":"string"},"acceptedAt":{"type":"string"}},"required":["organizationId","scope","acceptedBy","acceptedAt"],"additionalProperties":false},{"type":"null"}]}},"required":["scope","version","text","acceptance"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:read","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/catalog":{"get":{"operationId":"study.catalog","summary":"Harness × model catalog: valid matrix cells, defaults, modes, and withheld harnesses with reasons","responses":{"200":{"description":"Harness × model catalog: valid matrix cells, defaults, modes, and withheld harnesses with reasons","content":{"application/json":{"schema":{"type":"object","properties":{"harnesses":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"maker":{"type":"string"},"offerable":{"type":"boolean"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why a non-offerable harness is withheld (missing credential, measured gap, …)."},"modes":{"type":"array","items":{"type":"string","enum":["task","session"]},"description":"Dispatch modes. Benchmarks fan out 'task' runs — a session-only harness can't be a matrix cell."},"defaultProvider":{"anyOf":[{"type":"string"},{"type":"null"}]},"providers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"offerable":{"type":"boolean"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why a non-offerable provider is withheld (e.g. its credential is not provisioned yet)."},"models":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The model id `matrix[].model` / run `model` accepts for this harness+provider."},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"description":"Valid models for this harness under this provider; first = the provider default."},"defaultModel":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","offerable","reason","models","defaultModel"],"additionalProperties":false}}},"required":["id","name","maker","offerable","reason","modes","defaultProvider","providers"],"additionalProperties":false}}},"required":["harnesses"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-product":"platform","x-ora-service":"study-service"}},"/study/v1/images/builds":{"get":{"operationId":"study.images.builds.list","summary":"List the org's image builds, newest first","parameters":[{"name":"phase","in":"query","required":false,"schema":{"type":"string","enum":["queued","pending","running","succeeded","failed","cancelled"]}},{"name":"name","in":"query","required":false,"schema":{"type":"string","minLength":1}},{"name":"pageSize","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"name":"pageToken","in":"query","required":false,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"List the org's image builds, newest first","content":{"application/json":{"schema":{"type":"object","properties":{"builds":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"organizationId":{"type":"string"},"productKey":{"type":"string"},"requestedByUserId":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"source":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","const":"archive"},"sha256":{"type":"string"}},"required":["kind","sha256"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"upload"},"fileId":{"type":"string"}},"required":["kind","fileId"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"git"},"ref":{"type":"string"},"subdir":{"type":"string"}},"required":["kind","ref"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"inline"},"fileCount":{"type":"number"}},"required":["kind","fileCount"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"asset"},"sha256":{"type":"string"}},"required":["kind","sha256"],"additionalProperties":false}]},"sourceIdentity":{"type":"string"},"dockerfileDir":{"type":"string"},"dockerfileName":{"type":"string"},"buildArgKeys":{"type":"array","items":{"type":"string"}},"platform":{"type":"string"},"trusted":{"type":"boolean"},"phase":{"type":"string","enum":["queued","pending","running","succeeded","failed","cancelled"]},"image":{"type":"string"},"digest":{"anyOf":[{"type":"string"},{"type":"null"}]},"sizeBytes":{"anyOf":[{"type":"number"},{"type":"null"}]},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"logRef":{"anyOf":[{"type":"string"},{"type":"null"}]},"startedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","organizationId","productKey","requestedByUserId","name","source","sourceIdentity","dockerfileDir","dockerfileName","buildArgKeys","platform","trusted","phase","image","digest","sizeBytes","reason","logRef","startedAt","finishedAt","createdAt","updatedAt"],"additionalProperties":false}},"nextPageToken":{"type":"string"}},"required":["builds"],"additionalProperties":false}}}},"400":{"description":"pageToken is malformed, tampered, or was not minted by this endpoint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"the api-key principal lacks this mount's product grant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"images:read","x-ora-product":"platform","x-ora-service":"study-service"},"post":{"operationId":"study.images.builds.create","summary":"Submit an image build (idempotent on name + source + Dockerfile + build args)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"source":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"archive"},"url":{"type":"string","minLength":1},"sha256":{"type":"string","pattern":"^[0-9a-f]{64}$"}},"required":["kind","url","sha256"]},{"type":"object","properties":{"kind":{"type":"string","const":"upload"},"fileId":{"type":"string","minLength":1}},"required":["kind","fileId"]},{"type":"object","properties":{"kind":{"type":"string","const":"git"},"url":{"type":"string","minLength":1},"ref":{"type":"string","minLength":1},"subdir":{"type":"string"}},"required":["kind","url","ref"]},{"type":"object","properties":{"kind":{"type":"string","const":"inline"},"dockerfile":{"type":"string","minLength":1},"files":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["kind","dockerfile"]}]},"dockerfile":{"type":"object","properties":{"dir":{"type":"string","minLength":1},"name":{"type":"string","minLength":1}}},"buildArgs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"platform":{"type":"string","minLength":1}},"required":["name","source"]}}}},"responses":{"201":{"description":"Submit an image build (idempotent on name + source + Dockerfile + build args)","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"phase":{"type":"string","enum":["queued","pending","running","succeeded","failed","cancelled"]}},"required":["id","phase"],"additionalProperties":false}}}},"401":{"description":"the caller's verified token has no identity resolvable for its principal type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"the org's plan has no image_builds entitlement, or its included quota is exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"the api-key principal lacks this mount's product grant, the caller isn't an editor+ role, or the request asked for a trusted build without being an allow-listed service principal","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"an image build with the same idempotency key already exists for a different product","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"the source or build parameters were rejected (invalid shape, disallowed git host, a git ref that could not be pinned to a commit, a non-empty buildArgs or non-default platform — not supported yet, oversized image/context, timeout ceiling exceeded, or — mounting-BFF dependent — an inline source from a non-user principal: see the mounting BFF's files-port for whether inline requires an attributable user)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"the image build backend is unavailable (retryable — not a statement about the request's validity)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"images:write","x-ora-product":"platform","x-ora-service":"study-service"}},"/study/v1/images/builds/{id}":{"get":{"operationId":"study.images.builds.get","summary":"Get one image build","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Get one image build","content":{"application/json":{"schema":{"type":"object","properties":{"build":{"type":"object","properties":{"id":{"type":"string"},"organizationId":{"type":"string"},"productKey":{"type":"string"},"requestedByUserId":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"source":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","const":"archive"},"sha256":{"type":"string"}},"required":["kind","sha256"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"upload"},"fileId":{"type":"string"}},"required":["kind","fileId"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"git"},"ref":{"type":"string"},"subdir":{"type":"string"}},"required":["kind","ref"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"inline"},"fileCount":{"type":"number"}},"required":["kind","fileCount"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"asset"},"sha256":{"type":"string"}},"required":["kind","sha256"],"additionalProperties":false}]},"sourceIdentity":{"type":"string"},"dockerfileDir":{"type":"string"},"dockerfileName":{"type":"string"},"buildArgKeys":{"type":"array","items":{"type":"string"}},"platform":{"type":"string"},"trusted":{"type":"boolean"},"phase":{"type":"string","enum":["queued","pending","running","succeeded","failed","cancelled"]},"image":{"type":"string"},"digest":{"anyOf":[{"type":"string"},{"type":"null"}]},"sizeBytes":{"anyOf":[{"type":"number"},{"type":"null"}]},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"logRef":{"anyOf":[{"type":"string"},{"type":"null"}]},"startedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","organizationId","productKey","requestedByUserId","name","source","sourceIdentity","dockerfileDir","dockerfileName","buildArgKeys","platform","trusted","phase","image","digest","sizeBytes","reason","logRef","startedAt","finishedAt","createdAt","updatedAt"],"additionalProperties":false}},"required":["build"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"the api-key principal lacks this mount's product grant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"no image build with this id in the caller's organization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"images:read","x-ora-product":"platform","x-ora-service":"study-service"}},"/study/v1/images/builds/{id}/cancel":{"post":{"operationId":"study.images.builds.cancel","summary":"Cancel an in-flight image build","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Cancel an in-flight image build","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"phase":{"type":"string","enum":["queued","pending","running","succeeded","failed","cancelled"]}},"required":["id","phase"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"the api-key principal lacks this mount's product grant, or the caller isn't an editor+ role","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"no image build with this id in the caller's organization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"the image build backend could not accept the cancellation (retryable — not a statement about the request's validity)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"images:write","x-ora-product":"platform","x-ora-service":"study-service"}},"/study/v1/images/builds/{id}/stream":{"get":{"operationId":"study.images.builds.stream","summary":"SSE stream of one image build's row changes","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"SSE stream of one image build's row changes","content":{"application/json":{"schema":{}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"the api-key principal lacks this mount's product grant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"no image build with this id in the caller's organization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"images:read","x-ora-product":"platform","x-ora-service":"study-service"}},"/study/v1/images/runs":{"post":{"operationId":"study.images.runs.create","summary":"Launch a run (harness or environment) from a built or referenced image","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"buildId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"image":{"type":"string","minLength":1},"mode":{"type":"string","enum":["harness","environment"]},"harness":{"type":"string","minLength":1},"task":{"type":"string","minLength":1}},"required":["mode"]}}}},"responses":{"201":{"description":"Launch a run (harness or environment) from a built or referenced image","content":{"application/json":{"schema":{"type":"object","properties":{"runId":{"type":"string"}},"required":["runId"],"additionalProperties":false}}}},"401":{"description":"the caller's verified token has no identity resolvable for its principal type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"runs-service refused the run for a usage-limit reason (e.g. LIMIT_EXCEEDED) — relayed verbatim (I3) so the centralized paywall still opens","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"the api-key principal lacks this mount's product grant, or the caller isn't an editor+ role","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"buildId names no image build in the caller's organization, or a raw image ref is not on this mount's public allow-list","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"buildId names an image build that has not finished succeeded yet (its current phase is reported)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"mode is 'environment' — not supported yet (kalanu P4)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"runs-service itself is unavailable — relayed verbatim (I3), never collapsed to a generic 500","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"images:write","x-ora-product":"platform","x-ora-service":"study-service"}},"/study/v1/runs":{"get":{"operationId":"study.runs.list","summary":"List runs","parameters":[{"name":"pageSize","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"name":"pageToken","in":"query","required":false,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"List runs","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"harness":{"type":"string"},"model":{"anyOf":[{"type":"string"},{"type":"null"}]},"provider":{"anyOf":[{"type":"string"},{"type":"null"}]},"tools":{"anyOf":[{"anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},{"type":"null"}]},"intent_text":{"anyOf":[{"type":"string"},{"type":"null"}]},"target_domain":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string"},"outcome":{"anyOf":[{"type":"string"},{"type":"null"}]},"outcome_reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"cost_usd":{"anyOf":[{"type":"number"},{"type":"null"}]},"num_turns":{"anyOf":[{"type":"number"},{"type":"null"}]},"duration_ms":{"anyOf":[{"type":"number"},{"type":"null"}]},"total_tokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"input_tokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"cache_read_tokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"cache_creation_tokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"output_tokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"created_at":{"type":"string"},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"phases":{"anyOf":[{"type":"object","properties":{"phases":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["waiting","boot","installations","startup","run","verification","teardown"]},"ms":{"anyOf":[{"type":"number"},{"type":"null"}]},"state":{"type":"string","enum":["measured","unmeasured","not_in_run"]}},"required":["id","ms","state"],"additionalProperties":false}},"runTimeMs":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The run phase: first model request → last model response."},"totalMs":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The run's whole duration, created → finished."},"steps":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"kind":{"type":"string"},"outcome":{"type":"string"},"startedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["name","kind","outcome","startedAt","finishedAt"],"additionalProperties":false},"description":"The installation steps the operator witnessed (an MCP server's install, an env fetch)."},"modelCalls":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"How many model calls the run made, as the model meter counted them."}},"required":["phases","runTimeMs","totalMs","steps","modelCalls"],"additionalProperties":false,"description":"Every phase of the run: waiting, boot, installations, startup, run, verification, teardown."},{"type":"null"}]},"insight":{"anyOf":[{"type":"object","properties":{"visibility_score":{"anyOf":[{"type":"number"},{"type":"null"}]},"intent_satisfied":{"anyOf":[{"type":"boolean"},{"type":"null"}]}},"required":["visibility_score","intent_satisfied"],"additionalProperties":false},{"type":"null"}]},"conversation_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"conversation_turn_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"conversation":{"anyOf":[{"type":"object","properties":{"harness":{"type":"string"},"model":{"type":"string"},"state":{"type":"string","enum":["open","closed"]},"last_turn_index":{"type":"integer","minimum":0,"maximum":9007199254740991},"last_activity_at":{"type":"string"}},"required":["harness","model","state","last_turn_index","last_activity_at"],"additionalProperties":false},{"type":"null"}]},"conversation_turn":{"anyOf":[{"type":"object","properties":{"turn_index":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["turn_index"],"additionalProperties":false},{"type":"null"}]}},"required":["id","harness","status","created_at"],"additionalProperties":false}},"pageToken":{"type":"string"}},"required":["results"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"runs:read","x-ora-product":"platform","x-ora-service":"study-service"},"post":{"operationId":"study.runs.create","summary":"Create a run","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"product_key":{"type":"string","minLength":1,"maxLength":50,"pattern":"^[a-z][a-z0-9_]*$"},"intent":{"type":"string","minLength":1},"domain":{"type":"string"},"harness":{"type":"string"},"model":{"type":"string"},"mode":{"type":"string","enum":["task","session"]},"addons":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"engine":{"not":{}},"execution_kind":{"type":"string","const":"harness"},"tools":{"anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"]}]},"requires_tools":{"type":"boolean"},"prompt_context":{"type":"string","enum":["none","target_site"]},"mcp_servers":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"url":{"type":"string","minLength":1},"secretId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"auth":{"oneOf":[{"type":"object","properties":{"method":{"type":"string","const":"oauth"}},"required":["method"]},{"type":"object","properties":{"method":{"type":"string","const":"query"},"param":{"type":"string","minLength":1}},"required":["method","param"]}]}},"required":["name","url"]}},"model_params":{"type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"maxOutputTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reasoningEffort":{"type":"string","enum":["low","medium","high"]},"thinkingBudgetTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"codeMode":{"type":"string","enum":["auto","on","off"]},"toolSearch":{"type":"string","enum":["on","off","directory"]},"location":{"type":"string","pattern":"^[A-Z]{2}$"},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$"}},"additionalProperties":false},"wait":{"not":{}}},"required":["intent"]},"example":{"intent":"check pricing for acme.com","harness":"eve","model":"claude-sonnet-5"}}}},"responses":{"200":{"description":"Create a run","content":{"application/json":{"schema":{"type":"object","properties":{"runId":{"type":"string"},"status":{"type":"string","enum":["pending","queued"]},"streamUrl":{"type":"string"},"harness":{"type":"string"},"model":{"type":"string"},"provider":{"type":"string"}},"required":["runId","status","streamUrl"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"runs:write","x-ora-product":"platform","x-ora-service":"study-service"}},"/study/v1/runs/cancel":{"post":{"operationId":"study.runs.cancelBatch","summary":"Cancel a batch of runs (terminate them and stop their engines)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"runIds":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"string","minLength":1}}},"required":["runIds"]}}}},"responses":{"200":{"description":"Cancel a batch of runs (terminate them and stop their engines)","content":{"application/json":{"schema":{"type":"object","properties":{"requested":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"canceled":{"type":"array","items":{"type":"string"}},"alreadyTerminal":{"type":"array","items":{"type":"string"}},"skipped":{"type":"array","items":{"type":"string"}}},"required":["requested","canceled","alreadyTerminal","skipped"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"runs:write","x-ora-product":"platform","x-ora-service":"study-service"}},"/study/v1/runs/stream":{"get":{"operationId":"study.runs.feed","summary":"Org-scoped live feed of run status patches (SSE)","responses":{"200":{"description":"Org-scoped live feed of run status patches (SSE)","content":{"application/json":{"schema":{}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"runs:read","x-ora-product":"platform","x-ora-service":"study-service"}},"/study/v1/runs/{id}/cancel":{"post":{"operationId":"study.runs.cancel","summary":"Cancel a run (terminate it and stop its engine)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Cancel a run (terminate it and stop its engine)","content":{"application/json":{"schema":{"type":"object","properties":{"runId":{"type":"string"},"status":{"type":"string"},"alreadyTerminal":{"type":"boolean"}},"required":["runId","status","alreadyTerminal"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"runs:write","x-ora-product":"platform","x-ora-service":"study-service"}},"/study/v1/runs/{id}/insight":{"get":{"operationId":"study.runs.insight","summary":"Read a run's stored insight artifact","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Read a run's stored insight artifact","content":{"application/json":{"schema":{}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"runs:read","x-ora-product":"platform","x-ora-service":"study-service"}},"/study/v1/runs/{id}/raw-trace":{"get":{"operationId":"study.runs.rawTrace","summary":"Read a run's full raw frame stream (pre-truncation trace artifact)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Read a run's full raw frame stream (pre-truncation trace artifact)","content":{"application/json":{"schema":{}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"runs:read","x-ora-product":"platform","x-ora-service":"study-service"}},"/study/v1/runs/{id}/spans":{"get":{"operationId":"study.runs.spans","summary":"Read a run's stored trace spans (CompactSpan[])","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Read a run's stored trace spans (CompactSpan[])","content":{"application/json":{"schema":{}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"runs:read","x-ora-product":"platform","x-ora-service":"study-service"}},"/study/v1/runs/{id}/stream":{"get":{"operationId":"study.runs.stream","summary":"Stream a run's live trajectory (SSE)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Stream a run's live trajectory (SSE)","content":{"application/json":{"schema":{}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"runs:read","x-ora-product":"platform","x-ora-service":"study-service"}},"/study/v1/runs/{id}/trajectory":{"get":{"operationId":"study.runs.trajectory","summary":"Read a run's normalized trajectory snapshot","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"profile","in":"query","required":false,"schema":{"type":"string","enum":["raw","heuristic","full"]}}],"responses":{"200":{"description":"Read a run's normalized trajectory snapshot","content":{"application/json":{"schema":{}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"runs:read","x-ora-product":"platform","x-ora-service":"study-service"}},"/study/v1/skills":{"get":{"operationId":"study.skills.list","summary":"List the caller's usable skills catalog","responses":{"200":{"description":"List the caller's usable skills catalog","content":{"application/json":{"schema":{"type":"object","properties":{"skills":{"type":"array","items":{"type":"object","properties":{"ref":{"type":"string"},"source":{"type":"string","enum":["builtin","custom","git"]},"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"isExample":{"type":"boolean"},"description":{"type":"string"},"visibility":{"type":"string","enum":["user","org"]},"authorUserId":{"type":"string"},"body":{"type":"string"},"repoUrl":{"type":"string"},"gitRef":{"type":"string"},"subpath":{"type":"string"},"updatedAt":{"type":"string"},"contentSha256":{"type":"string"}},"required":["ref","source","id","name","slug"],"additionalProperties":false}}},"required":["skills"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"skills:read","x-ora-product":"platform","x-ora-service":"study-service"},"post":{"operationId":"study.skills.create","summary":"Create a skill (custom or git-imported)","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"source":{"type":"string","const":"custom"},"name":{"type":"string","minLength":1,"maxLength":120},"body":{"type":"string","minLength":1},"visibility":{"default":"user","type":"string","enum":["user","org"]}},"required":["source","name","body"]},{"type":"object","properties":{"source":{"type":"string","const":"git"},"name":{"type":"string","minLength":1,"maxLength":120},"repoUrl":{"type":"string","minLength":1},"gitRef":{"type":"string","minLength":1},"subpath":{"anyOf":[{"type":"string"},{"type":"null"}]},"visibility":{"default":"user","type":"string","enum":["user","org"]}},"required":["source","name","repoUrl","gitRef"]}]}}}},"responses":{"200":{"description":"Create a skill (custom or git-imported)","content":{"application/json":{"schema":{"type":"object","properties":{"skill":{"type":"object","properties":{"ref":{"type":"string"},"source":{"type":"string","enum":["builtin","custom","git"]},"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"isExample":{"type":"boolean"},"description":{"type":"string"},"visibility":{"type":"string","enum":["user","org"]},"authorUserId":{"type":"string"},"body":{"type":"string"},"repoUrl":{"type":"string"},"gitRef":{"type":"string"},"subpath":{"type":"string"},"updatedAt":{"type":"string"},"contentSha256":{"type":"string"}},"required":["ref","source","id","name","slug"],"additionalProperties":false}},"required":["skill"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"skills:write","x-ora-product":"platform","x-ora-service":"study-service"}},"/study/v1/skills/{id}":{"put":{"operationId":"study.skills.update","summary":"Update a skill","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"visibility":{"type":"string","enum":["user","org"]},"body":{"type":"string","minLength":1},"repoUrl":{"type":"string","minLength":1},"gitRef":{"type":"string","minLength":1},"subpath":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}}},"responses":{"200":{"description":"Update a skill","content":{"application/json":{"schema":{"type":"object","properties":{"skill":{"type":"object","properties":{"ref":{"type":"string"},"source":{"type":"string","enum":["builtin","custom","git"]},"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"isExample":{"type":"boolean"},"description":{"type":"string"},"visibility":{"type":"string","enum":["user","org"]},"authorUserId":{"type":"string"},"body":{"type":"string"},"repoUrl":{"type":"string"},"gitRef":{"type":"string"},"subpath":{"type":"string"},"updatedAt":{"type":"string"},"contentSha256":{"type":"string"}},"required":["ref","source","id","name","slug"],"additionalProperties":false}},"required":["skill"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"skills:write","x-ora-product":"platform","x-ora-service":"study-service"},"delete":{"operationId":"study.skills.delete","summary":"Delete a skill","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Delete a skill","content":{"application/json":{"schema":{}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"skills:write","x-ora-product":"platform","x-ora-service":"study-service"}},"/study/v1/studies":{"get":{"operationId":"study.list","summary":"List the org's studies (id, status, verdict, subject)","parameters":[{"name":"archived","in":"query","required":false,"schema":{"description":"Which studies to list by the archived mark: 'exclude' (the default) leaves archived studies out, 'only' lists just them, 'include' lists both.","type":"string","enum":["exclude","only","include"]}}],"responses":{"200":{"description":"List the org's studies (id, status, verdict, subject)","content":{"application/json":{"schema":{"type":"object","properties":{"studies":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"executiveSummary":{"anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryDraft":{"description":"A PUBLISHED study's summary held for review, never shown on the public page: what `studies.regenerateSummary` writes on a published study (and the first summary of a published study nothing asked for). `studies.publish` makes exactly this text the published `executiveSummary`, while the readout it was written from is still current; otherwise publish regenerates. Absent where the product has no review drafts.","anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryRequest":{"description":"A summary an explicit act asked for and not yet written: 'live' — a publish, a re-open, or a regenerate on an UNPUBLISHED completed study owes the summary in place (the public page, once published); 'draft' — a regenerate on a published study owes the review draft one. Null once the request is answered — poll `studies.get` until it is: by the written summary (`executiveSummary` or `executiveSummaryDraft`), by a later act that superseded it (a publish, a newer regenerate — its own write answers it), or as unavailable (`executiveSummaryUnavailableAt` set). While the automatic retries back off after a failed attempt it stays pending. Absent where the product has no review drafts.","anyOf":[{"type":"string","enum":["live","draft"]},{"type":"null"}]},"executiveSummaryRequestedAt":{"description":"When `executiveSummaryRequest` was made.","anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryUnavailableAt":{"description":"When the last summary request was answered as UNAVAILABLE: every attempt the retry policy allows on the study's readout failed, so no summary will be written for it until the readout changes (runs added, a re-run, a regrade) or someone regenerates or publishes again. Null otherwise; cleared by a new request or a written summary. Absent where the product has no review drafts.","anyOf":[{"type":"string"},{"type":"null"}]},"plannedRunCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The exact number of runs `launch` will fan out (taskCount × variantsPerTask × repeats × matrix cells × arms). Check this BEFORE launching."},"organizationId":{"type":"string"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"slug":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillRef":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillSlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillName":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillPromise":{"type":"string"},"subjectKind":{"type":"string","enum":["skill","tools","addon","custom","benchmark","site"],"description":"What the study measures. New studies: 'custom': any composition of skills, tools and add-ons, with its own subjectName and promise — under a comparisonMode that declares its groups, each group's configuration is in `arms`. 'benchmark': a pinned version of a catalog benchmark definition (requires definitionVersionId); the corpus is copied frozen from that version. 'site': a website (requires siteDomain, and a comparisonMode that declares its groups); the tasks are things to get done there, and every run is read against the site: whether the agent opened a page of it, and whether the site refused the agent. Every comparisonMode new studies use applies to 'benchmark': 'multi_arm' runs each declared group's setup: 1 group reads as the agent leaderboard: no reference group and no comparison, and it seeds the public leaderboard — when bare, labelled 'as published' on a model-API agent and 'harness default' on a harness agent, and 'with my setup' when it carries one; 2-6 groups are compared over the planned contrasts (with 2, one comparison, oriented only when a group has role 'reference'); only a bare group seeds the public leaderboard. A group that carries a setup is not the benchmark's bare protocol, so it does not seed the public leaderboard. 'skill', 'tools' and 'addon' are kept for the studies that already exist: under a comparisonMode new studies use, one answers 422 study_subject_invalid, and a create body that names no comparisonMode (or a legacy one) and carries it is read as the legacy body it is and answers 422 comparison_mode_removed (docs/studies/comparison-modes/README.md maps each legacy design onto the new ones)."},"subjectName":{"anyOf":[{"type":"string"},{"type":"null"}]},"siteDomain":{"description":"The website a 'site' study is run against (its host); absent for every other subject kind.","type":"string"},"subjectLabel":{"type":"string"},"armConfig":{"type":"object","properties":{"baseline":{"description":"The baseline arm's run-payload delta. Omitted = a bare run (no skill, no extras).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false},"treatment":{"description":"The treatment arm's run-payload delta (the thing under test).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"additionalProperties":false,"description":"Frozen per-arm run-payload deltas of a fixed pair of arms (comparisonMode 'ab_vs_none' or 'ab_custom' or 'single'), kept for the studies that already exist: new studies carry each group's configuration in `arms`, and a create body that names no comparisonMode (or a legacy one) and carries it is read as the legacy body it is and answers 422 comparison_mode_removed (docs/studies/comparison-modes/README.md maps each legacy design onto the new ones)."},"comparisonMode":{"type":"string","enum":["ab_vs_none","ab_custom","single","multi_arm"],"description":"The study's design. New studies: 'multi_arm' (Groups): 1-6 groups declared in `arms`, each with its own label and configuration — 1 group reads as the agent leaderboard: no reference group and no comparison, and it seeds the public leaderboard — when bare, labelled 'as published' on a model-API agent and 'harness default' on a harness agent, and 'with my setup' when it carries one; 2-6 groups are compared over the planned contrasts (with 2, one comparison, oriented only when a group has role 'reference'); only a bare group seeds the public leaderboard; which pairs are judged is `contrasts`. 'ab_vs_none', 'ab_custom' and 'single' are kept for the studies that already exist: a create naming one answers 422 comparison_mode_removed (docs/studies/comparison-modes/README.md maps each legacy design onto the new ones)."},"subjectBackend":{"anyOf":[{"type":"string","enum":["model","harness"],"description":"What answers a FRAMEWORK benchmark's requests: 'harness' — each request is answered by the cell's agent harness (the model inside its own loop, with the arm's tools, add-ons and skills), one agent run per request; 'model' — the framework's own client calls the cell's model directly and the cell's harness is not measured. Resolved once per study and recorded on every run."},{"type":"null"}]},"environmentExecutionPolicy":{"type":"string","enum":["legacy-v1","inside-v1"]},"importedFrom":{"type":"string"},"baselineLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"treatmentLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"promiseMetrics":{"type":"array","items":{"type":"object","properties":{"metric":{"type":"string","enum":["total_tokens","output_tokens","cost_usd","duration_ms","num_turns","success_rate","completion_rate","goal_rate"]},"direction":{"type":"string","enum":["down","up"]},"label":{"type":"string","minLength":1,"maxLength":120}},"required":["metric","direction","label"],"additionalProperties":false}},"matrix":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1,"maxLength":50,"description":"Harness id — the valid set (and each one's models) is GET /catalog; cells are validated against it at create."},"model":{"type":"string","minLength":1,"maxLength":100,"description":"Model id as the harness accepts it — valid ids per harness/provider are in GET /catalog (e.g. 'claude-sonnet-5', 'gpt-5.5')."},"provider":{"description":"Provider qualifier for multi-provider harnesses (e.g. 'anthropic', 'openai', 'google'). Omit to use the harness default.","type":"string","minLength":1,"maxLength":32},"params":{"description":"Provider params pinned for this cell (temperature, reasoningEffort, maxOutputTokens, thinkingBudgetTokens). A cell that pins none runs the provider's own defaults. Offered only where the harness declares support — see GET /catalog.","type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"maxOutputTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reasoningEffort":{"type":"string","enum":["low","medium","high"]},"thinkingBudgetTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"codeMode":{"type":"string","enum":["auto","on","off"]},"toolSearch":{"type":"string","enum":["on","off","directory"]},"location":{"type":"string","pattern":"^[A-Z]{2}$"},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$"}},"additionalProperties":false}},"required":["harness","model"],"additionalProperties":false,"description":"One (harness, model, params) cell — every task runs its arm(s) on every cell."}},"lenses":{"minItems":1,"type":"array","items":{"type":"string","enum":["judge","evals","reference","framework","execution","verifier"]},"description":"Which grading lenses this study runs under. Defaults to ['judge'] at create and stays editable while status is 'ready' (frozen at launch, like task expectations/rubrics). 'judge': the LLM judge panel (rubric grades + blind pairwise). 'evals': the deterministic @ora/eval-checks engine, scored against each task's authored expectations. 'reference': the static-QA lens — an answer extracted from the response and matched against the task's own reference key, scored 1/0 (spec §6.4). 'framework': the benchmark's OWN framework (HELM today) reports the metrics, mapped verbatim into a section rather than re-averaged (SP2 Task 9). 'execution': the candidate's code is extracted from the response and run against the task's own tests inside a sandboxed, network-less runner image (SP2 Task 16)."},"judgeSupplementary":{"type":"boolean"},"taskCount":{"type":"number"},"variantsPerTask":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Semantics-preserving paraphrases sampled per task (1-5; mirrors the create body's variantsPerTask). Absent at create defaults to 1 — every response reports a concrete value, including studies created before sampling existed."},"repeats":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Identical re-runs sampled per condition (1-10; mirrors the create body's repeats). Absent at create defaults to 1 — every response reports a concrete value, including studies created before sampling existed."},"subset":{"anyOf":[{"type":"object","properties":{"count":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"seed":{"type":"string","minLength":1},"of":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["count","seed","of"],"additionalProperties":false},{"type":"null"}]},"status":{"type":"string"},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"preparation":{"anyOf":[{"type":"object","properties":{"since":{"type":"string"},"progressAt":{"type":"string"},"launchedBy":{"type":"object","properties":{"userId":{"type":"string"},"role":{"type":"string"}},"additionalProperties":false},"waitingOn":{"type":"array","items":{"type":"object","properties":{"imageKey":{"type":"string"},"buildId":{"type":"string"},"stage":{"type":"string","enum":["image","snapshot"]},"retry":{"type":"object","properties":{"failedAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maxAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"notBefore":{"type":"string"},"lastFailure":{"type":"string"}},"required":["failedAttempts","maxAttempts","notBefore","lastFailure"],"additionalProperties":false}},"required":["imageKey","buildId"],"additionalProperties":false}}},"required":["since","launchedBy","waitingOn"],"additionalProperties":false},{"type":"null"}]},"visibility":{"type":"string","enum":["private","org","link","public"],"description":"Who may read this study: private (creator + org owners) | org (the whole org) | link (anyone holding ?share=<token>, unlisted) | public (everyone, listed)."},"visibilityChangedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"visibilityChangedBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"shareToken":{"anyOf":[{"type":"string"},{"type":"null"}]},"lowSampleOverride":{"type":"boolean","description":"True iff this study was explicitly published below the sample-size floor (spec A6) — the published page shows a low-sample badge when set."},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"verdict":{},"definitionVersionId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The benchmark definition VERSION this study pinned at create — non-null only for subjectKind 'benchmark'. Its corpus was copied frozen from that version, so the study stays reproducible when the definition publishes a newer one."},"runnerKind":{"type":"string","enum":["ora-runs","batch-job"],"description":"Which executor fans this study out: 'ora-runs' (the ora runs spine) or 'batch-job' (a built runner image)."},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"liveUntil":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When this study's live stream stops being held open (null while it is still running). Attaching before it yields the remaining post-terminal frames (gradings, recordings, refined verdicts)."},"launch":{"description":"The launch record: planned / created runs, the runs it could not create (missing.retryable: launching again creates them; missing.refused: a re-launch is refused the same way) with one note per cell and group, and the fan-out's state (fanning_out | deferred | settled). Null for a study launched before records existed.","anyOf":[{"type":"object","properties":{"attempt":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"state":{"type":"string","enum":["fanning_out","deferred","settled"]},"startedAt":{"type":"string"},"progressAt":{"type":"string"},"planned":{"type":"integer","minimum":0,"maximum":9007199254740991},"created":{"type":"integer","minimum":0,"maximum":9007199254740991},"missing":{"type":"object","properties":{"retryable":{"type":"integer","minimum":0,"maximum":9007199254740991},"refused":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["retryable","refused"],"additionalProperties":false},"notes":{"type":"array","items":{"type":"string"}},"settledAt":{"type":"string"},"pacing":{"type":"object","properties":{"waiting":{"type":"integer","minimum":0,"maximum":9007199254740991},"nextUnit":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"nextWaveAt":{"type":"string"},"emptyWaves":{"type":"integer","minimum":0,"maximum":9007199254740991},"stopped":{"type":"string"}},"required":["waiting"],"additionalProperties":false},"recovery":{"type":"object","properties":{"state":{"type":"string","enum":["retrying","needs_attention"]},"attempts":{"type":"integer","minimum":0,"maximum":9007199254740991},"lastAttemptAt":{"type":"string"},"nextAttemptAt":{"type":"string"},"reason":{"type":"string"}},"required":["state","attempts"],"additionalProperties":false},"stopped":{"type":"object","properties":{"at":{"type":"string"},"notStarted":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["at","notStarted"],"additionalProperties":false}},"required":["attempt","state","startedAt","progressAt"],"additionalProperties":false},{"type":"null"}]},"pacing":{"description":"How fast this study may START its runs, as declared at create: maxInFlight (at most N of its runs unfinished at once) and/or startsPerMinute (at most N started in any 60 s). Its runs start in waves of whole comparison units (every group's run of one agent on one task sample, together); the launch record's `pacing` says how many wait for a later wave. Null = every run started at launch.","anyOf":[{"type":"object","properties":{"maxInFlight":{"description":"At most this many of the study's runs unfinished at once — queued, pending or running (1-500). The next runs start as earlier ones finish.","type":"integer","minimum":1,"maximum":500},"startsPerMinute":{"description":"At most this many of the study's runs started in any 60-second window (1-600).","type":"integer","minimum":1,"maximum":600}},"additionalProperties":false},{"type":"null"}]},"relaunchable":{"description":"True when this running study may be launched again: its launch record says planned runs are missing (missing.retryable > 0), or its fan-out stopped. POST …/launch then creates exactly the runs that do not exist.","type":"boolean"},"archivedAt":{"description":"When this study was archived; null while it is not. An archived study loses nothing: it leaves the default list, is read-only (409 study_archived), and is on no public page. Restoring it clears this.","anyOf":[{"type":"string"},{"type":"null"}]},"archivedBy":{"description":"The user who archived it. Null when an API key did, and while the study is not archived.","anyOf":[{"type":"string"},{"type":"null"}]},"arms":{"description":"A declared-arm study's groups, in position order.","type":"array","items":{"type":"object","properties":{"key":{"type":"string","description":"The group's run key (each of its runs' `arm`)."},"position":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"0-based display order."},"label":{"type":"string","maxLength":80,"description":"The group's display label. Never shown to the judge."},"role":{"type":"string","enum":["reference","peer"],"description":"'reference' marks the group the others are compared against; the rest are peers."},"payload":{"type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"brief":{"description":"Text the agent is given after the task, for every task this group runs. At most 600 characters. A group with a brief is a setup of its own, never the subject as published.","type":"string","minLength":1,"maxLength":600}},"additionalProperties":false,"description":"The group's run-payload delta ({} = the subject as published)."},"cells":{"description":"The group's OWN agents, when the study's groups each list theirs (cellPlan 'per_setup'); absent = the matrix.","type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1,"maxLength":50,"description":"Harness id — the valid set (and each one's models) is GET /catalog; cells are validated against it at create."},"model":{"type":"string","minLength":1,"maxLength":100,"description":"Model id as the harness accepts it — valid ids per harness/provider are in GET /catalog (e.g. 'claude-sonnet-5', 'gpt-5.5')."},"provider":{"description":"Provider qualifier for multi-provider harnesses (e.g. 'anthropic', 'openai', 'google'). Omit to use the harness default.","type":"string","minLength":1,"maxLength":32},"params":{"description":"Provider params pinned for this cell (temperature, reasoningEffort, maxOutputTokens, thinkingBudgetTokens). A cell that pins none runs the provider's own defaults. Offered only where the harness declares support — see GET /catalog.","type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"maxOutputTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reasoningEffort":{"type":"string","enum":["low","medium","high"]},"thinkingBudgetTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"codeMode":{"type":"string","enum":["auto","on","off"]},"toolSearch":{"type":"string","enum":["on","off","directory"]},"location":{"type":"string","pattern":"^[A-Z]{2}$"},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$"}},"additionalProperties":false}},"required":["harness","model"],"additionalProperties":false,"description":"One (harness, model, params) cell — every task runs its arm(s) on every cell."}},"skipTasks":{"description":"The tasks this group leaves out, by task number (1 = the first); absent = it runs every task.","type":"array","items":{"type":"integer","minimum":1,"maximum":9007199254740991}},"skills":{"description":"The group's skills as resolved when the study was created (absent for a study created before that existed).","type":"array","items":{"type":"object","properties":{"ref":{"type":"string","description":"The skill ref the group's selection names."},"name":{"type":"string","description":"The skill's name when the study was created."},"changedSinceCreate":{"description":"True when the skill's content now differs from what the study ran; absent when the reader cannot check it.","type":"boolean"}},"required":["ref","name"],"additionalProperties":false}},"addedAgents":{"description":"The agents this group gained after the study was created (`addAgents`), by position in `cells` — absent when none was added.","type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The agent's position in the group's `cells`."},"addedAt":{"type":"string","description":"When it was added (RFC 3339)."}},"required":["position","addedAt"],"additionalProperties":false}}},"required":["key","position","label","role","payload"],"additionalProperties":false}},"contrastPlan":{"description":"The study's planned-contrast policy.","type":"string","enum":["vs_reference","all_pairs","ladder"]},"cellPlan":{"description":"How the groups meet their agents: absent = every group runs the matrix; 'per_setup' = each its own.","type":"string","enum":["crossed","per_setup"]},"skillDisclosure":{"description":"Whether the published page names the groups' skills: absent = withheld (chosen at publish).","type":"string","enum":["withheld","named"]},"modeOptions":{"description":"The comparisonMode's private inputs.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"screens":{"description":"The run screens the study declares (frozen at launch, like lenses). Absent = none.","type":"array","items":{"type":"string","enum":["test_awareness","site_access"]}},"runCounting":{"description":"Which of the study's runs its numbers count (GET /studies/:id/run-counting). Absent = every run.","anyOf":[{"type":"object","properties":{"policy":{"type":"string","const":"hold_back_screened"},"screen":{"type":"string","enum":["test_awareness"],"description":"The screen whose verdicts decide. Today: 'test_awareness'."},"levels":{"minItems":1,"type":"array","items":{"type":"string","enum":["aware","influenced"]},"description":"The verdict levels held back. A run the screen could not judge is never held back."}},"required":["policy","screen","levels"],"additionalProperties":false,"description":"Which of the study's runs its numbers count. Absent or null = every run. 'hold_back_screened' leaves out the runs the named screen flagged at one of `levels`: each is a missing measurement with a named reason, never a fail, and the count held back is stated beside every figure."},{"type":"null"}]},"seriesKey":{"description":"The series the study belongs to (set at create). Absent = none.","anyOf":[{"type":"string","pattern":"^[a-z0-9][a-z0-9._/-]{0,119}$"},{"type":"null"}]},"ref":{"description":"Where the study was taken: commit, branch, pull request. Absent = not recorded.","anyOf":[{"type":"object","properties":{"commit":{"description":"The commit the study was taken at (a SHA).","type":"string","minLength":1,"maxLength":64},"branch":{"description":"The branch it was taken on, e.g. 'main'. A gate's series baseline filters on it.","type":"string","minLength":1,"maxLength":200},"pr":{"description":"The pull request number, when it was taken for one.","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"url":{"description":"A link back to the change (the commit or pull request page).","type":"string","maxLength":500,"format":"uri"}},"additionalProperties":false},{"type":"null"}]},"gradingRevision":{"description":"The study's grading revision, when its checks were revised after its runs finished. Absent = never revised.","type":"integer","minimum":2,"maximum":9007199254740991},"gradingRevisedAt":{"description":"When the checks were last revised. Later than `publishedAt` = the grades changed after publication.","anyOf":[{"type":"string"},{"type":"null"}]},"rehearsal":{"description":"The study is a rehearsal: the smallest real run of a design, made by POST /studies/rehearsals. Absent = an ordinary study.","type":"boolean","const":true},"rehearsalMode":{"description":"How a rehearsal runs: 'live' (the real agents), or 'setup' / 'mock' (no agent is started). Absent on every other study.","type":"string"},"behaviors":{"description":"The custom behaviors the study declares (frozen at launch, like lenses). A run's verdict on one is in its `screens` under `b_<key>`. Absent = none.","type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{1,29}$","description":"A short id for the behavior, lowercase snake (`deleted_files`). Its verdicts are stored and queried under `b_<key>`."},"name":{"type":"string","minLength":1,"maxLength":80,"description":"What a reader sees: \"Deleted files it was not asked to\"."},"question":{"type":"string","minLength":10,"maxLength":400,"description":"One yes-or-no question about a single run that a judge can answer from its trace: \"Did the agent …?\"."},"version":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The version of the behavior's wording. A verdict and a review belong to the version they were made on."}},"required":["key","name","question","version"],"additionalProperties":false}},"stepTimeLimitSeconds":{"description":"How long each step of a task with steps may take, in seconds, as declared at create. A step still running after it ends the run, whose reason names the step and the limit. Null or absent = no per-step limit.","anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["id","plannedRunCount","organizationId","createdBy","name","slug","description","skillRef","skillSlug","skillName","skillPromise","subjectKind","subjectName","subjectLabel","armConfig","comparisonMode","subjectBackend","baselineLabel","treatmentLabel","promiseMetrics","matrix","lenses","taskCount","variantsPerTask","repeats","subset","status","error","visibility","lowSampleOverride","publishedAt","verdict","definitionVersionId","runnerKind","createdAt","updatedAt","liveUntil"],"additionalProperties":false}}},"required":["studies"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:read","x-ora-product":"study","x-ora-service":"study-service"},"post":{"operationId":"study.create","summary":"Create a study (status 'draft', ZERO LLM spend — an authored `tasks` corpus instead lands 'ready' synchronously); approve generation via POST .../generate","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":160,"description":"Display name for the study (≤160 chars)."},"description":{"description":"Optional longer description shown on the study card.","type":"string","maxLength":4000},"subjectKind":{"default":"custom","description":"What the study measures — defaults to 'custom', the kind new studies are created with. See the enum description for each kind's rules.","type":"string","enum":["skill","tools","addon","custom","benchmark","site"]},"skillRef":{"description":"The skill under test as '<source>:<id>' — sources: 'custom' (an org-authored skill, id from the skills API), 'builtin' (a starter example), 'git' (a git-imported skill). E.g. 'custom:8c1d…'. REQUIRED iff subjectKind 'skill'; forbidden otherwise. Kept for the studies that already exist: subjectKind 'skill' creates no new study here — a group attaches skills through the skills add-on in `arms[].config.addons`; a create body that names no comparisonMode (or a legacy one) and carries it is read as the legacy body it is and answers 422 comparison_mode_removed (docs/studies/comparison-modes/README.md maps each legacy design onto the new ones).","type":"string","minLength":1},"definitionVersionId":{"description":"The benchmark definition VERSION this study pins — REQUIRED iff subjectKind 'benchmark', forbidden otherwise. Read it from a catalog entry's `currentVersionId` (GET /benchmark-definitions/{slug}). A VERSION id, never a slug: a slug follows the definition's current version, and pinning is what keeps this study's corpus — and the board row it may later earn — reproducible. The version's tasks are copied FROZEN at create, so a later publish never changes them. Validated as a uuid at the wire: the column is a Postgres `uuid`, so a malformed value would otherwise reach Hasura and answer 500 instead of 422.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"siteDomain":{"description":"The website a 'site' study is run against — REQUIRED iff subjectKind 'site', forbidden otherwise. A host such as 'example.com': no scheme, no path. Every run of the study is read against it: whether the agent opened a page on this host or a subdomain of it, and whether the site refused the agent. Nothing is added to the prompt for it: a group names the site to its agents, or does not, through its own brief.","type":"string","maxLength":253,"pattern":"^[a-z0-9]([a-z0-9-]*[a-z0-9])?(\\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)+$"},"subjectName":{"description":"Display name of a NON-skill subject (e.g. 'Tavily search', 'monday.com remote MCP'). Required for subjectKind 'tools' / 'addon' / 'custom'; forbidden for 'skill' (the skill's own name is used) and for 'benchmark' (the pinned definition's name is used).","type":"string","minLength":1,"maxLength":120},"armConfig":{"type":"object","properties":{"baseline":{"description":"The baseline arm's run-payload delta. Omitted = a bare run (no skill, no extras).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"]}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}},"treatment":{"description":"The treatment arm's run-payload delta (the thing under test).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"]}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"description":"Frozen per-arm run-payload deltas of a fixed pair of arms (comparisonMode 'ab_vs_none' or 'ab_custom' or 'single'), kept for the studies that already exist: new studies carry each group's configuration in `arms`, and a create body that names no comparisonMode (or a legacy one) and carries it is read as the legacy body it is and answers 422 comparison_mode_removed (docs/studies/comparison-modes/README.md maps each legacy design onto the new ones)."},"lenses":{"default":["judge"],"description":"Which grading lenses to run: 'judge' (LLM judge panel — the default) and/or 'evals' (deterministic @ora/eval-checks grading against each task's `expectations`). Set ONCE at create — there is no update path. `expectations` on a task requires 'evals' to be present here.","minItems":1,"type":"array","items":{"type":"string","enum":["judge","evals","reference","framework","execution","verifier"]}},"judgeSupplementary":{"description":"subjectKind 'benchmark' only: ALSO grade every run with the LLM judge panel. A rubric is authored for each task at create (the study is 'generating' until it is frozen), and runs are then scored for rubric quality and — in an A/B — compared blind, BESIDE the benchmark's own pass rate, which still decides the verdict first. The rubric measures the quality of a response, never its correctness (that is the benchmark's own grader's job). Costs one judge call per run and per pair. Forbidden for every other subject kind, and for a benchmark whose own grading spec already uses the judge.","type":"boolean"},"proposeExpectations":{"description":"Opt in to an LLM proposing 'evals'-lens `expectations` for each AUTO-GENERATED task (temp-0, re-validated against the eval-checks registry — an invalid proposal is dropped, never stored). REQUIRES `lenses` to include 'evals' (422 LENS_MISMATCH otherwise); also IGNORED when `tasks` is supplied (an authored corpus already carries its own explicit expectations). Proposals land on the task in the study's normal 'ready' state for human review before launch — the same discipline as generated rubrics.","type":"boolean"},"comparisonMode":{"default":"multi_arm","description":"The study's design — defaults to 'multi_arm', the mode new studies are created in. See the enum description for each mode.","type":"string","enum":["ab_vs_none","ab_custom","single","multi_arm"]},"subjectBackend":{"description":"FRAMEWORK benchmarks only (e.g. HELM). Omit for the framework's own default — 'harness' where the framework supports it. Ignored by a study no framework runs. An ask the framework cannot honour fails the launch by name.","type":"string","enum":["model","harness"]},"baselineLabel":{"description":"Baseline arm's display label (e.g. 'REST API'). Kept for the studies that already exist (Required iff comparisonMode 'ab_custom'; forbidden otherwise): new studies name each group in `arms[].label`, and a create body that names no comparisonMode (or a legacy one) and carries it is read as the legacy body it is and answers 422 comparison_mode_removed (docs/studies/comparison-modes/README.md maps each legacy design onto the new ones).","type":"string","minLength":1,"maxLength":80},"treatmentLabel":{"description":"Treatment arm's display label (e.g. 'Remote MCP'). Kept for the studies that already exist (Required iff comparisonMode 'ab_custom'; forbidden otherwise): new studies name each group in `arms[].label`, and a create body that names no comparisonMode (or a legacy one) and carries it is read as the legacy body it is and answers 422 comparison_mode_removed (docs/studies/comparison-modes/README.md maps each legacy design onto the new ones).","type":"string","minLength":1,"maxLength":80},"arms":{"description":"Declared groups, in display order, each with its own label and configuration. The number of groups is the comparisonMode's own: 'multi_arm': 1-6 groups (1 group reads as the agent leaderboard: no reference group and no comparison, and it seeds the public leaderboard — when bare, labelled 'as published' on a model-API agent and 'harness default' on a harness agent, and 'with my setup' when it carries one; 2-6 groups are compared over the planned contrasts (with 2, one comparison, oriented only when a group has role 'reference'); only a bare group seeds the public leaderboard).","maxItems":16,"type":"array","items":{"type":"object","properties":{"key":{"description":"The group's key (lowercase, at most 10 characters, not a reserved word); an expectation's `arms` scopes a check to it. Defaults to its position (g1, g2, …).","type":"string"},"label":{"type":"string","minLength":1,"maxLength":80,"description":"The group's display label (unique within the study). Never shown to the judge."},"role":{"default":"peer","description":"'reference' marks the one group the others are compared against; every other group is a 'peer'.","type":"string","enum":["reference","peer"]},"config":{"type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"]}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"brief":{"description":"Text the agent is given after the task, for every task this group runs. At most 600 characters. A group with a brief is a setup of its own, never the subject as published.","type":"string","minLength":1,"maxLength":600}},"description":"The group's run-payload delta (tools and/or add-ons). An empty object is the subject as published."},"cells":{"description":"The group's OWN agents (1-48 harness × model cells), when the groups do not all run the same ones. All or none: either every group names its cells, or none does and every group runs the matrix. When they are named, `matrix` must be their ordered distinct union, and no two groups may name the same set (send that set as the matrix instead). Available where GET /studies/comparison-modes lists the 'per_setup' cell plan as enabled.","minItems":1,"maxItems":48,"type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1,"maxLength":50,"description":"Harness id — the valid set (and each one's models) is GET /catalog; cells are validated against it at create."},"model":{"type":"string","minLength":1,"maxLength":100,"description":"Model id as the harness accepts it — valid ids per harness/provider are in GET /catalog (e.g. 'claude-sonnet-5', 'gpt-5.5')."},"provider":{"description":"Provider qualifier for multi-provider harnesses (e.g. 'anthropic', 'openai', 'google'). Omit to use the harness default.","type":"string","minLength":1,"maxLength":32},"params":{"description":"Provider params pinned for this cell (temperature, reasoningEffort, maxOutputTokens, thinkingBudgetTokens). A cell that pins none runs the provider's own defaults. Offered only where the harness declares support — see GET /catalog.","type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"maxOutputTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reasoningEffort":{"type":"string","enum":["low","medium","high"]},"thinkingBudgetTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"codeMode":{"type":"string","enum":["auto","on","off"]},"toolSearch":{"type":"string","enum":["on","off","directory"]},"location":{"type":"string","pattern":"^[A-Z]{2}$"},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$"}},"additionalProperties":false}},"required":["harness","model"],"description":"One (harness, model, params) cell — every task runs its arm(s) on every cell."}},"skipTasks":{"description":"The tasks this group leaves out, by task number (1 = the first of the body's `tasks`): the group starts no run on them, and a comparison between two groups stands on the tasks both ran. Only with `tasks` in the body. A group may not leave every task out, every task must be run by some group, and two compared groups must share a task.","minItems":1,"type":"array","items":{"type":"integer","minimum":1,"maximum":9007199254740991}}},"required":["label","config"],"additionalProperties":false}},"contrasts":{"description":"Which pairs of declared groups the judge compares. 'vs_reference': every other group against the one group with role 'reference'. 'all_pairs': every pair of groups. 'ladder': each group against the one declared before it. 'multi_arm': 'vs_reference' (every other group against the one group with role 'reference'), 'all_pairs' (every pair of groups, at most 4 groups), 'ladder' (each group against the one declared before it); default 'vs_reference' when a group has role 'reference', else 'all_pairs'.","type":"string","enum":["vs_reference","all_pairs","ladder"]},"modeOptions":{"description":"A comparisonMode's private inputs, validated by that mode. No mode offered here takes any.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"taskCount":{"default":5,"description":"How many tasks to auto-generate (1–100, default 5; generation is ONE model call, so very large corpora are better AUTHORED via `tasks`, which allows up to 500). IGNORED when `tasks` is supplied (the authored corpus defines the count). Runs launched = taskCount × variantsPerTask × repeats × matrix cells × arms (2 arms unless 'single'; the declared groups for 'multi_arm'); the total is capped at 10000.","type":"integer","minimum":1,"maximum":100},"variantsPerTask":{"default":1,"description":"Semantics-preserving paraphrases per task (1-10, default 1). Each variant is a SEPARATE sample of the same question, graded against the same frozen rubric, and both arms see the identical variant set. Sampling phrasing as well as stochastic draw is what lets a comparative claim average over both. Runs = tasks x variants x repeats x cells x arms.","type":"integer","minimum":1,"maximum":10},"repeats":{"default":1,"description":"Identical re-runs of each condition (1-25, default 1). Variants and repeats measure different things: a failed variant could be phrasing sensitivity OR run-to-run instability, and only identical repeats separate them. Set >1 when reliability is a deliverable.","type":"integer","minimum":1,"maximum":25},"tasks":{"description":"AUTHOR the corpus instead of generating it: tasks + rubrics land verbatim and the study goes straight to 'ready' (no LLM generation; the same pre-registration discipline — rubrics are frozen before any run exists). For reference-driven corpora (a ported study's curated tasks). `promise` is still required for non-skill subjects; `taskCount` is derived from this array. Forbidden for subjectKind 'benchmark', whose corpus is copied frozen from the pinned definition version.","minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"prompt":{"type":"string","minLength":1,"description":"The verbatim one-shot prompt dispatched as each run's intent."},"rationale":{"default":"Author-supplied task.","description":"Why this task exercises the promise (public drill-down).","type":"string","minLength":1},"category":{"default":"authored","description":"Free-form short category.","type":"string","minLength":1,"maxLength":40},"requiresWeb":{"default":false,"description":"True only when the task needs live web access.","type":"boolean"},"rubric":{"description":"PRE-REGISTERED acceptance criteria — frozen at create, exactly what the judge panel grades against. REQUIRED (2-8 criteria) when `lenses` includes 'judge' (422 otherwise); OPTIONAL when it doesn't — an evals-only study's judge panel never runs (M4's grading gate), so there is nothing to pre-register criteria FOR. Omitted on an evals-only task → stored as [].","maxItems":8,"type":"array","items":{"type":"string","minLength":1,"maxLength":300}},"variants":{"description":"Explicit paraphrases for THIS task, used instead of generated ones. The authored `prompt` is always variant 0; these follow it. Supply at most variantsPerTask-1.","minItems":1,"maxItems":10,"type":"array","items":{"type":"string","minLength":1}},"expectations":{"description":"Deterministic pass/fail expectations for the 'evals' lens (see @ora/eval-checks' Expectation union) — validated against the registered check kinds at create. REQUIRES `lenses` to include 'evals' (422 LENS_MISMATCH otherwise); the shape itself is validated by the eval-checks registry, not here.","minItems":1,"maxItems":24,"type":"array","items":{"oneOf":[{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"mcp_tool_called","description":"An MCP tool was invoked. Matched on the canonical `steps[].mcp` stamp, never a tool-name grep, so it works across every harness dialect."},"server":{"description":"MCP server name (e.g. \"tavily\"). Omit to match the tool on any server.","type":"string"},"tool":{"type":"string","description":"The MCP tool name as the server exposes it (e.g. \"search\"). Exact match."},"arguments":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"minCalls":{"type":"number"}},"required":["kind","tool"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"tool_not_called","description":"A RESTRAINT check: the named tool was never invoked. Beware vacuous passes — if the tool could never appear on this surface, use a positive check instead."},"tool":{"type":"string"},"mcp":{"type":"object","properties":{"server":{"type":"string"},"tool":{"type":"string"}},"required":["tool"]},"pattern":{"type":"string"}},"required":["kind"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"command_ran","description":"A shell command matching `pattern` was executed."},"pattern":{"type":"string","description":"Regex tested against the command text. Length-capped; backreferences and nested quantifiers are rejected as catastrophic-backtracking risks."}},"required":["kind","pattern"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"skill_loaded","description":"The agent loaded a skill. Observable ONLY under POINTER delivery — authoring this expectation auto-forces it; under inline delivery the body is embedded so no harness emits a skill step."},"slug":{"type":"string","description":"The skill slug, e.g. \"web-research\"."}},"required":["kind","slug"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"file_operation","description":"A file was read, written or edited."},"op":{"description":"Restrict to one verb. Omit to match any file operation.","type":"string","enum":["read","write","edit"]},"path":{"description":"The file path: a literal for exact match, or a matcher such as {\"$contains\":\"report\"} / {\"$pattern\":\"\\\\.md$\"}."}},"required":["kind","path"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"web_fetched","description":"A URL was fetched. Give urlHost for an exact host, urlSite for a host and its subdomains, or urlPattern for a regex over the full URL."},"urlHost":{"description":"Exact host, e.g. \"example.com\".","type":"string"},"urlSite":{"description":"A site: this host or any subdomain of it, e.g. \"example.com\" also matches \"docs.example.com\".","type":"string"},"urlPattern":{"description":"Regex over the whole URL. Same safety limits as command_ran.pattern.","type":"string"}},"required":["kind"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"response_contains","description":"The agent's final answer contains this literal text (case-sensitive substring)."},"text":{"type":"string","description":"Literal substring to find in the answer."},"normalize":{"description":"Compare by meaning rather than by glyph: 'prose' lower-cases BOTH sides, drops URLs, folds unicode dashes and typographic quotes, reads 'N to M' as 'N-M', turns hyphens/underscores into spaces and collapses whitespace. Omit for the literal, case-sensitive comparison.","type":"string","enum":["prose"]}},"required":["kind","text"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"response_matches","description":"The agent's final answer matches this regex."},"pattern":{"type":"string","description":"Regex tested against the answer text. Same safety limits as command_ran.pattern."},"ignoreCase":{"description":"Match case-insensitively. Omit (or false) for the case-sensitive default.","type":"boolean"}},"required":["kind","pattern"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"token_budget","description":"The run stayed within a token budget. ABSTAINS when usage is absent (telemetry-dark) — never fails for missing data."},"maxOutputTokens":{"description":"Ceiling on output tokens.","type":"number"},"maxTotalTokens":{"description":"Ceiling on input+output tokens.","type":"number"}},"required":["kind"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"sequence","description":"CONJUNCTION with ORDER: every branch must match, in this order. Members must be POSITIONAL (step-based) kinds — mcp_tool_called, command_ran, skill_loaded, file_operation, web_fetched. That rule is enforced by the check registry, not by this schema, so a response_* or token_budget member parses here and is refused at create."},"of":{"type":"array","items":{"$ref":"#/components/schemas/Def_0f52adfddc63c1c2862af461b851e029b5a453bd5fc4d3373ecde1dcc23a16b6"}}},"required":["kind","of"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"any_of","description":"DISJUNCTION: passes if ANY branch passes. Use it when one goal has more than one legitimate route (e.g. an MCP tool called directly OR through a proxy tool). ABSTAINS — never fails — when no branch is measurable."},"of":{"type":"array","items":{"$ref":"#/components/schemas/Def_0f52adfddc63c1c2862af461b851e029b5a453bd5fc4d3373ecde1dcc23a16b6"}}},"required":["kind","of"]}]}},"followUps":{"description":"Make this a task with STEPS: a run of it is one run and one conversation, in which the agent receives `prompt` and then each follow-up, in order, each when the turn before it has ended. `prompt`, `rubric` and `expectations` are step 1's; each follow-up has its own. A run reaches its goal when every criterion of every step passed, and the report also says, per step, how many runs reached it and how many of those passed it. Only agents that can continue a conversation can run it (the create is refused for one that cannot, naming it). Paraphrases (`variants`) apply to `prompt` only. Frozen at create.","minItems":1,"maxItems":8,"type":"array","items":{"type":"object","properties":{"prompt":{"type":"string","minLength":1,"description":"Delivered to the agent, in the same conversation, when the turn before it has ended."},"rubric":{"description":"This step's pre-registered criteria, graded on this step's own turn. Omitted: the judge grades nothing for it.","maxItems":8,"type":"array","items":{"type":"string","minLength":1,"maxLength":300}},"expectations":{"description":"This step's deterministic expectations, checked against this step's own turn. REQUIRES `lenses` to include 'evals'.","minItems":1,"maxItems":24,"type":"array","items":{"oneOf":[{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"mcp_tool_called","description":"An MCP tool was invoked. Matched on the canonical `steps[].mcp` stamp, never a tool-name grep, so it works across every harness dialect."},"server":{"description":"MCP server name (e.g. \"tavily\"). Omit to match the tool on any server.","type":"string"},"tool":{"type":"string","description":"The MCP tool name as the server exposes it (e.g. \"search\"). Exact match."},"arguments":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"minCalls":{"type":"number"}},"required":["kind","tool"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"tool_not_called","description":"A RESTRAINT check: the named tool was never invoked. Beware vacuous passes — if the tool could never appear on this surface, use a positive check instead."},"tool":{"type":"string"},"mcp":{"type":"object","properties":{"server":{"type":"string"},"tool":{"type":"string"}},"required":["tool"]},"pattern":{"type":"string"}},"required":["kind"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"command_ran","description":"A shell command matching `pattern` was executed."},"pattern":{"type":"string","description":"Regex tested against the command text. Length-capped; backreferences and nested quantifiers are rejected as catastrophic-backtracking risks."}},"required":["kind","pattern"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"skill_loaded","description":"The agent loaded a skill. Observable ONLY under POINTER delivery — authoring this expectation auto-forces it; under inline delivery the body is embedded so no harness emits a skill step."},"slug":{"type":"string","description":"The skill slug, e.g. \"web-research\"."}},"required":["kind","slug"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"file_operation","description":"A file was read, written or edited."},"op":{"description":"Restrict to one verb. Omit to match any file operation.","type":"string","enum":["read","write","edit"]},"path":{"description":"The file path: a literal for exact match, or a matcher such as {\"$contains\":\"report\"} / {\"$pattern\":\"\\\\.md$\"}."}},"required":["kind","path"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"web_fetched","description":"A URL was fetched. Give urlHost for an exact host, urlSite for a host and its subdomains, or urlPattern for a regex over the full URL."},"urlHost":{"description":"Exact host, e.g. \"example.com\".","type":"string"},"urlSite":{"description":"A site: this host or any subdomain of it, e.g. \"example.com\" also matches \"docs.example.com\".","type":"string"},"urlPattern":{"description":"Regex over the whole URL. Same safety limits as command_ran.pattern.","type":"string"}},"required":["kind"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"response_contains","description":"The agent's final answer contains this literal text (case-sensitive substring)."},"text":{"type":"string","description":"Literal substring to find in the answer."},"normalize":{"description":"Compare by meaning rather than by glyph: 'prose' lower-cases BOTH sides, drops URLs, folds unicode dashes and typographic quotes, reads 'N to M' as 'N-M', turns hyphens/underscores into spaces and collapses whitespace. Omit for the literal, case-sensitive comparison.","type":"string","enum":["prose"]}},"required":["kind","text"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"response_matches","description":"The agent's final answer matches this regex."},"pattern":{"type":"string","description":"Regex tested against the answer text. Same safety limits as command_ran.pattern."},"ignoreCase":{"description":"Match case-insensitively. Omit (or false) for the case-sensitive default.","type":"boolean"}},"required":["kind","pattern"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"token_budget","description":"The run stayed within a token budget. ABSTAINS when usage is absent (telemetry-dark) — never fails for missing data."},"maxOutputTokens":{"description":"Ceiling on output tokens.","type":"number"},"maxTotalTokens":{"description":"Ceiling on input+output tokens.","type":"number"}},"required":["kind"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"sequence","description":"CONJUNCTION with ORDER: every branch must match, in this order. Members must be POSITIONAL (step-based) kinds — mcp_tool_called, command_ran, skill_loaded, file_operation, web_fetched. That rule is enforced by the check registry, not by this schema, so a response_* or token_budget member parses here and is refused at create."},"of":{"type":"array","items":{"$ref":"#/components/schemas/Def_0f52adfddc63c1c2862af461b851e029b5a453bd5fc4d3373ecde1dcc23a16b6"}}},"required":["kind","of"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"any_of","description":"DISJUNCTION: passes if ANY branch passes. Use it when one goal has more than one legitimate route (e.g. an MCP tool called directly OR through a proxy tool). ABSTAINS — never fails — when no branch is measurable."},"of":{"type":"array","items":{"$ref":"#/components/schemas/Def_0f52adfddc63c1c2862af461b851e029b5a453bd5fc4d3373ecde1dcc23a16b6"}}},"required":["kind","of"]}]}}},"required":["prompt"]}},"files":{"description":"Files put into the agent's workspace before EVERY run of this task starts (1-16), the same for every group, agent, variant and repeat. Each is `{ path, content }` (inline text), `{ path, url, sha256, sizeBytes }` (fetched in the run's pod before the agent starts and admitted only when its bytes match the size and the lowercase hex SHA-256: for anything binary or large), or `{ path, repo: { url, ref, subpath? } }` (a public https git repository at a full commit, cloned into the directory `path`; a repository that needs a credential is refused). `path` is relative to the workspace root, with no `.` or `..` segment, and not under a dot entry of the root. Only agents that run in a pod of their own can be given files (the create is refused for one that cannot, naming it). Task text, like `prompt`: withheld with it when the task is `private`. Frozen at create.","minItems":1,"maxItems":16,"type":"array","items":{"anyOf":[{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":256},"content":{"type":"string","minLength":1,"maxLength":64000}},"required":["path","content"],"additionalProperties":false},{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":256},"url":{"type":"string","maxLength":4096,"format":"uri"},"sha256":{"type":"string","pattern":"^[0-9a-f]{64}$"},"sizeBytes":{"type":"integer","exclusiveMinimum":0,"maximum":26214400}},"required":["path","url","sha256","sizeBytes"],"additionalProperties":false},{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":256},"repo":{"type":"object","properties":{"url":{"type":"string","maxLength":2048,"format":"uri"},"ref":{"type":"string"},"subpath":{"type":"string","minLength":1,"maxLength":256}},"required":["url","ref"],"additionalProperties":false}},"required":["path","repo"],"additionalProperties":false}]}},"private":{"description":"Keep THIS task's text off the published page: its prompt, rationale, rubric, paraphrases and expectations (the evals lens's patterns) are never served by a public page or the public API, which name the task and report every measurement of it. Your organization still sees the whole task. Frozen at create — the same withholding a licence-restricted benchmark corpus gets. Default false (published).","type":"boolean"}},"required":["prompt"]}},"subset":{"description":"Run a deterministic random SAMPLE of the corpus instead of all of it — the way a 1,319-item benchmark becomes a study you can afford. The sample is a pure function of (corpus, count, seed): the server records the seed on the study, so the exact sample is re-derivable forever. Omit it to run every task.","type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":500,"description":"Run a deterministic random SAMPLE of this many tasks instead of the whole corpus (1-500). Ignored when the corpus is already this small or smaller."},"seed":{"description":"The sampling seed. Supply one to reproduce an earlier study's exact sample; omit it and the server mints one and records it on the study, so the sample is always re-derivable.","type":"string","minLength":1,"maxLength":64}},"required":["count"],"additionalProperties":false},"pacing":{"description":"LAUNCH PACING — start this study's runs gradually instead of all at once, for groups that call a rate-limited service (an API that answers 429 past N requests a minute). Every group's run of one agent on one task sample (a comparison unit) always starts together, in the same wave, so a comparison is never confounded by time; each value must therefore be at least the number of groups that run one agent. Declare maxInFlight, startsPerMinute, or both (both then hold). Frozen at create. Omit it, or send null, for no pacing: every run starts at launch.","anyOf":[{"type":"object","properties":{"maxInFlight":{"description":"At most this many of the study's runs unfinished at once — queued, pending or running (1-500). The next runs start as earlier ones finish.","type":"integer","minimum":1,"maximum":500},"startsPerMinute":{"description":"At most this many of the study's runs started in any 60-second window (1-600).","type":"integer","minimum":1,"maximum":600}},"additionalProperties":false,"description":"LAUNCH PACING — start this study's runs gradually instead of all at once, for groups that call a rate-limited service (an API that answers 429 past N requests a minute). Every group's run of one agent on one task sample (a comparison unit) always starts together, in the same wave, so a comparison is never confounded by time; each value must therefore be at least the number of groups that run one agent. Declare maxInFlight, startsPerMinute, or both (both then hold). Frozen at create. Omit it, or send null, for no pacing: every run starts at launch."},{"type":"null"}]},"stepTimeLimitSeconds":{"description":"How long EACH step of a task with steps may take, in seconds (30-7200). A step still running after it ends the run: the run fails, its reason names the step and the limit, and the steps after it are not given. Without it a step is bounded only by the run's own limit, so one slow step can use the time the later steps were meant to have. It applies to every task with steps of the study; a one-step task's run is unchanged. Refused when no task of the study has steps. Omit it, or send null, for no per-step limit.","anyOf":[{"type":"integer","minimum":30,"maximum":7200},{"type":"null"}]},"screens":{"type":"array","items":{"type":"string","enum":["test_awareness","site_access"]},"description":"Which run screens this study runs. A screen is a per-run check of whether the run is valid evidence, kept apart from grading: it never changes a grade. Omitted = the deployment's default. Frozen at launch, like lenses. 'test_awareness': after a run ends, a judge panel reads its full trace for signs that the agent noticed it was being tested ('aware') or changed how it worked because of that ('influenced'), and records the quoted evidence with the classifier's version. 'site_access' (a study whose subject is a website): whether the site refused the agent's requests ('blocked') or not ('open'), with the refused URLs."},"series":{"description":"The SERIES this study belongs to: studies that ask the same question at different moments (every commit of a branch). A gate's series baseline is found in it. Immutable. Omit for a study of no series.","type":"string","pattern":"^[a-z0-9][a-z0-9._/-]{0,119}$"},"ref":{"description":"Where the study was taken: the commit, branch and pull request. A label, immutable.","type":"object","properties":{"commit":{"description":"The commit the study was taken at (a SHA).","type":"string","minLength":1,"maxLength":64},"branch":{"description":"The branch it was taken on, e.g. 'main'. A gate's series baseline filters on it.","type":"string","minLength":1,"maxLength":200},"pr":{"description":"The pull request number, when it was taken for one.","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"url":{"description":"A link back to the change (the commit or pull request page).","type":"string","maxLength":500,"format":"uri"}},"additionalProperties":false},"carry":{"description":"Carry the runs of jobs that cannot have changed from the series' previous comparable study instead of running them again (needs `series`). Each carried run says so. Omit to run every job.","type":"object","properties":{"from":{"type":"string","enum":["series"],"description":"series: the series' newest completed study made before this one."},"maxAgeDays":{"default":7,"description":"A run older than this many days is run again, never carried.","type":"integer","minimum":1,"maximum":30}},"required":["from"],"additionalProperties":false},"runCounting":{"anyOf":[{"type":"object","properties":{"policy":{"type":"string","const":"hold_back_screened"},"screen":{"type":"string","enum":["test_awareness"],"description":"The screen whose verdicts decide. Today: 'test_awareness'."},"levels":{"minItems":1,"type":"array","items":{"type":"string","enum":["aware","influenced"]},"description":"The verdict levels held back. A run the screen could not judge is never held back."}},"required":["policy","screen","levels"],"additionalProperties":false,"description":"Which of the study's runs its numbers count. Absent or null = every run. 'hold_back_screened' leaves out the runs the named screen flagged at one of `levels`: each is a missing measurement with a named reason, never a fail, and the count held back is stated beside every figure."},{"type":"null"}]},"behaviors":{"maxItems":5,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{1,29}$","description":"A short id for the behavior, lowercase snake (`deleted_files`). Its verdicts are stored and queried under `b_<key>`."},"name":{"type":"string","minLength":1,"maxLength":80,"description":"What a reader sees: \"Deleted files it was not asked to\"."},"question":{"type":"string","minLength":10,"maxLength":400,"description":"One yes-or-no question about a single run that a judge can answer from its trace: \"Did the agent …?\"."}},"required":["key","name","question"],"additionalProperties":false},"description":"Custom behaviors: up to 5 yes-or-no questions a judge panel answers about every finished run, with quoted evidence. A behavior is disclosure about a run, like a screen: it has no score and never changes a grade. Frozen at launch. Each costs one panel read per run."},"matrix":{"minItems":1,"maxItems":48,"type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1,"maxLength":50,"description":"Harness id — the valid set (and each one's models) is GET /catalog; cells are validated against it at create."},"model":{"type":"string","minLength":1,"maxLength":100,"description":"Model id as the harness accepts it — valid ids per harness/provider are in GET /catalog (e.g. 'claude-sonnet-5', 'gpt-5.5')."},"provider":{"description":"Provider qualifier for multi-provider harnesses (e.g. 'anthropic', 'openai', 'google'). Omit to use the harness default.","type":"string","minLength":1,"maxLength":32},"params":{"description":"Provider params pinned for this cell (temperature, reasoningEffort, maxOutputTokens, thinkingBudgetTokens). A cell that pins none runs the provider's own defaults. Offered only where the harness declares support — see GET /catalog.","type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"maxOutputTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reasoningEffort":{"type":"string","enum":["low","medium","high"]},"thinkingBudgetTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"codeMode":{"type":"string","enum":["auto","on","off"]},"toolSearch":{"type":"string","enum":["on","off","directory"]},"location":{"type":"string","pattern":"^[A-Z]{2}$"},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$"}},"additionalProperties":false}},"required":["harness","model"],"description":"One (harness, model, params) cell — every task runs its arm(s) on every cell."},"description":"The (harness, model) cells to fan out over — 1 to 48 cells (a full catalog sweep fits)."},"promise":{"description":"The claim under test, driving task generation and the pre-registered rubrics (e.g. 'Tavily search finds fresher, better-sourced answers than no web access'). Optional for subjectKind 'skill' (omitted → extracted from the skill body); forbidden for 'benchmark' (derived from the pinned definition's description); REQUIRED for every other kind.","type":"string","minLength":1,"maxLength":2000}},"required":["name","matrix"]},"example":{"name":"tavily-search groups","subjectKind":"custom","subjectName":"Tavily search","promise":"Web search via Tavily produces fresher, better-sourced answers than no web access","comparisonMode":"multi_arm","arms":[{"label":"As published","role":"reference","config":{}},{"label":"With Tavily","config":{"addons":{"tavily":{"secretId":"<org-secret-uuid>"}}}}],"lenses":["judge","evals"],"taskCount":1,"variantsPerTask":1,"repeats":2,"matrix":[{"harness":"claude-code","model":"claude-sonnet-5"},{"harness":"codex","model":"gpt-5.5"}],"tasks":[{"prompt":"What is the current stable Node.js LTS version, and where did you get that from?","rubric":["States a specific Node.js LTS major version rather than hedging.","Names the source it used for the version claim."],"expectations":[{"kind":"response_matches","label":"answer names a version","pattern":"\\bv?\\d+\\.\\d+\\.\\d+\\b"},{"kind":"token_budget","maxTotalTokens":40000}]}]}}}},"responses":{"200":{"description":"Create a study (status 'draft', ZERO LLM spend — an authored `tasks` corpus instead lands 'ready' synchronously); approve generation via POST .../generate","content":{"application/json":{"schema":{"type":"object","properties":{"study":{"type":"object","properties":{"id":{"type":"string"},"executiveSummary":{"anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryDraft":{"description":"A PUBLISHED study's summary held for review, never shown on the public page: what `studies.regenerateSummary` writes on a published study (and the first summary of a published study nothing asked for). `studies.publish` makes exactly this text the published `executiveSummary`, while the readout it was written from is still current; otherwise publish regenerates. Absent where the product has no review drafts.","anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryRequest":{"description":"A summary an explicit act asked for and not yet written: 'live' — a publish, a re-open, or a regenerate on an UNPUBLISHED completed study owes the summary in place (the public page, once published); 'draft' — a regenerate on a published study owes the review draft one. Null once the request is answered — poll `studies.get` until it is: by the written summary (`executiveSummary` or `executiveSummaryDraft`), by a later act that superseded it (a publish, a newer regenerate — its own write answers it), or as unavailable (`executiveSummaryUnavailableAt` set). While the automatic retries back off after a failed attempt it stays pending. Absent where the product has no review drafts.","anyOf":[{"type":"string","enum":["live","draft"]},{"type":"null"}]},"executiveSummaryRequestedAt":{"description":"When `executiveSummaryRequest` was made.","anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryUnavailableAt":{"description":"When the last summary request was answered as UNAVAILABLE: every attempt the retry policy allows on the study's readout failed, so no summary will be written for it until the readout changes (runs added, a re-run, a regrade) or someone regenerates or publishes again. Null otherwise; cleared by a new request or a written summary. Absent where the product has no review drafts.","anyOf":[{"type":"string"},{"type":"null"}]},"plannedRunCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The exact number of runs `launch` will fan out (taskCount × variantsPerTask × repeats × matrix cells × arms). Check this BEFORE launching."},"organizationId":{"type":"string"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"slug":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillRef":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillSlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillName":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillPromise":{"type":"string"},"subjectKind":{"type":"string","enum":["skill","tools","addon","custom","benchmark","site"],"description":"What the study measures. New studies: 'custom': any composition of skills, tools and add-ons, with its own subjectName and promise — under a comparisonMode that declares its groups, each group's configuration is in `arms`. 'benchmark': a pinned version of a catalog benchmark definition (requires definitionVersionId); the corpus is copied frozen from that version. 'site': a website (requires siteDomain, and a comparisonMode that declares its groups); the tasks are things to get done there, and every run is read against the site: whether the agent opened a page of it, and whether the site refused the agent. Every comparisonMode new studies use applies to 'benchmark': 'multi_arm' runs each declared group's setup: 1 group reads as the agent leaderboard: no reference group and no comparison, and it seeds the public leaderboard — when bare, labelled 'as published' on a model-API agent and 'harness default' on a harness agent, and 'with my setup' when it carries one; 2-6 groups are compared over the planned contrasts (with 2, one comparison, oriented only when a group has role 'reference'); only a bare group seeds the public leaderboard. A group that carries a setup is not the benchmark's bare protocol, so it does not seed the public leaderboard. 'skill', 'tools' and 'addon' are kept for the studies that already exist: under a comparisonMode new studies use, one answers 422 study_subject_invalid, and a create body that names no comparisonMode (or a legacy one) and carries it is read as the legacy body it is and answers 422 comparison_mode_removed (docs/studies/comparison-modes/README.md maps each legacy design onto the new ones)."},"subjectName":{"anyOf":[{"type":"string"},{"type":"null"}]},"siteDomain":{"description":"The website a 'site' study is run against (its host); absent for every other subject kind.","type":"string"},"subjectLabel":{"type":"string"},"armConfig":{"type":"object","properties":{"baseline":{"description":"The baseline arm's run-payload delta. Omitted = a bare run (no skill, no extras).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false},"treatment":{"description":"The treatment arm's run-payload delta (the thing under test).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"additionalProperties":false,"description":"Frozen per-arm run-payload deltas of a fixed pair of arms (comparisonMode 'ab_vs_none' or 'ab_custom' or 'single'), kept for the studies that already exist: new studies carry each group's configuration in `arms`, and a create body that names no comparisonMode (or a legacy one) and carries it is read as the legacy body it is and answers 422 comparison_mode_removed (docs/studies/comparison-modes/README.md maps each legacy design onto the new ones)."},"comparisonMode":{"type":"string","enum":["ab_vs_none","ab_custom","single","multi_arm"],"description":"The study's design. New studies: 'multi_arm' (Groups): 1-6 groups declared in `arms`, each with its own label and configuration — 1 group reads as the agent leaderboard: no reference group and no comparison, and it seeds the public leaderboard — when bare, labelled 'as published' on a model-API agent and 'harness default' on a harness agent, and 'with my setup' when it carries one; 2-6 groups are compared over the planned contrasts (with 2, one comparison, oriented only when a group has role 'reference'); only a bare group seeds the public leaderboard; which pairs are judged is `contrasts`. 'ab_vs_none', 'ab_custom' and 'single' are kept for the studies that already exist: a create naming one answers 422 comparison_mode_removed (docs/studies/comparison-modes/README.md maps each legacy design onto the new ones)."},"subjectBackend":{"anyOf":[{"type":"string","enum":["model","harness"],"description":"What answers a FRAMEWORK benchmark's requests: 'harness' — each request is answered by the cell's agent harness (the model inside its own loop, with the arm's tools, add-ons and skills), one agent run per request; 'model' — the framework's own client calls the cell's model directly and the cell's harness is not measured. Resolved once per study and recorded on every run."},{"type":"null"}]},"environmentExecutionPolicy":{"type":"string","enum":["legacy-v1","inside-v1"]},"importedFrom":{"type":"string"},"baselineLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"treatmentLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"promiseMetrics":{"type":"array","items":{"type":"object","properties":{"metric":{"type":"string","enum":["total_tokens","output_tokens","cost_usd","duration_ms","num_turns","success_rate","completion_rate","goal_rate"]},"direction":{"type":"string","enum":["down","up"]},"label":{"type":"string","minLength":1,"maxLength":120}},"required":["metric","direction","label"],"additionalProperties":false}},"matrix":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1,"maxLength":50,"description":"Harness id — the valid set (and each one's models) is GET /catalog; cells are validated against it at create."},"model":{"type":"string","minLength":1,"maxLength":100,"description":"Model id as the harness accepts it — valid ids per harness/provider are in GET /catalog (e.g. 'claude-sonnet-5', 'gpt-5.5')."},"provider":{"description":"Provider qualifier for multi-provider harnesses (e.g. 'anthropic', 'openai', 'google'). Omit to use the harness default.","type":"string","minLength":1,"maxLength":32},"params":{"description":"Provider params pinned for this cell (temperature, reasoningEffort, maxOutputTokens, thinkingBudgetTokens). A cell that pins none runs the provider's own defaults. Offered only where the harness declares support — see GET /catalog.","type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"maxOutputTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reasoningEffort":{"type":"string","enum":["low","medium","high"]},"thinkingBudgetTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"codeMode":{"type":"string","enum":["auto","on","off"]},"toolSearch":{"type":"string","enum":["on","off","directory"]},"location":{"type":"string","pattern":"^[A-Z]{2}$"},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$"}},"additionalProperties":false}},"required":["harness","model"],"additionalProperties":false,"description":"One (harness, model, params) cell — every task runs its arm(s) on every cell."}},"lenses":{"minItems":1,"type":"array","items":{"type":"string","enum":["judge","evals","reference","framework","execution","verifier"]},"description":"Which grading lenses this study runs under. Defaults to ['judge'] at create and stays editable while status is 'ready' (frozen at launch, like task expectations/rubrics). 'judge': the LLM judge panel (rubric grades + blind pairwise). 'evals': the deterministic @ora/eval-checks engine, scored against each task's authored expectations. 'reference': the static-QA lens — an answer extracted from the response and matched against the task's own reference key, scored 1/0 (spec §6.4). 'framework': the benchmark's OWN framework (HELM today) reports the metrics, mapped verbatim into a section rather than re-averaged (SP2 Task 9). 'execution': the candidate's code is extracted from the response and run against the task's own tests inside a sandboxed, network-less runner image (SP2 Task 16)."},"judgeSupplementary":{"type":"boolean"},"taskCount":{"type":"number"},"variantsPerTask":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Semantics-preserving paraphrases sampled per task (1-5; mirrors the create body's variantsPerTask). Absent at create defaults to 1 — every response reports a concrete value, including studies created before sampling existed."},"repeats":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Identical re-runs sampled per condition (1-10; mirrors the create body's repeats). Absent at create defaults to 1 — every response reports a concrete value, including studies created before sampling existed."},"subset":{"anyOf":[{"type":"object","properties":{"count":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"seed":{"type":"string","minLength":1},"of":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["count","seed","of"],"additionalProperties":false},{"type":"null"}]},"status":{"type":"string"},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"preparation":{"anyOf":[{"type":"object","properties":{"since":{"type":"string"},"progressAt":{"type":"string"},"launchedBy":{"type":"object","properties":{"userId":{"type":"string"},"role":{"type":"string"}},"additionalProperties":false},"waitingOn":{"type":"array","items":{"type":"object","properties":{"imageKey":{"type":"string"},"buildId":{"type":"string"},"stage":{"type":"string","enum":["image","snapshot"]},"retry":{"type":"object","properties":{"failedAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maxAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"notBefore":{"type":"string"},"lastFailure":{"type":"string"}},"required":["failedAttempts","maxAttempts","notBefore","lastFailure"],"additionalProperties":false}},"required":["imageKey","buildId"],"additionalProperties":false}}},"required":["since","launchedBy","waitingOn"],"additionalProperties":false},{"type":"null"}]},"visibility":{"type":"string","enum":["private","org","link","public"],"description":"Who may read this study: private (creator + org owners) | org (the whole org) | link (anyone holding ?share=<token>, unlisted) | public (everyone, listed)."},"visibilityChangedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"visibilityChangedBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"shareToken":{"anyOf":[{"type":"string"},{"type":"null"}]},"lowSampleOverride":{"type":"boolean","description":"True iff this study was explicitly published below the sample-size floor (spec A6) — the published page shows a low-sample badge when set."},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"verdict":{},"definitionVersionId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The benchmark definition VERSION this study pinned at create — non-null only for subjectKind 'benchmark'. Its corpus was copied frozen from that version, so the study stays reproducible when the definition publishes a newer one."},"runnerKind":{"type":"string","enum":["ora-runs","batch-job"],"description":"Which executor fans this study out: 'ora-runs' (the ora runs spine) or 'batch-job' (a built runner image)."},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"liveUntil":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When this study's live stream stops being held open (null while it is still running). Attaching before it yields the remaining post-terminal frames (gradings, recordings, refined verdicts)."},"launch":{"description":"The launch record: planned / created runs, the runs it could not create (missing.retryable: launching again creates them; missing.refused: a re-launch is refused the same way) with one note per cell and group, and the fan-out's state (fanning_out | deferred | settled). Null for a study launched before records existed.","anyOf":[{"type":"object","properties":{"attempt":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"state":{"type":"string","enum":["fanning_out","deferred","settled"]},"startedAt":{"type":"string"},"progressAt":{"type":"string"},"planned":{"type":"integer","minimum":0,"maximum":9007199254740991},"created":{"type":"integer","minimum":0,"maximum":9007199254740991},"missing":{"type":"object","properties":{"retryable":{"type":"integer","minimum":0,"maximum":9007199254740991},"refused":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["retryable","refused"],"additionalProperties":false},"notes":{"type":"array","items":{"type":"string"}},"settledAt":{"type":"string"},"pacing":{"type":"object","properties":{"waiting":{"type":"integer","minimum":0,"maximum":9007199254740991},"nextUnit":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"nextWaveAt":{"type":"string"},"emptyWaves":{"type":"integer","minimum":0,"maximum":9007199254740991},"stopped":{"type":"string"}},"required":["waiting"],"additionalProperties":false},"recovery":{"type":"object","properties":{"state":{"type":"string","enum":["retrying","needs_attention"]},"attempts":{"type":"integer","minimum":0,"maximum":9007199254740991},"lastAttemptAt":{"type":"string"},"nextAttemptAt":{"type":"string"},"reason":{"type":"string"}},"required":["state","attempts"],"additionalProperties":false},"stopped":{"type":"object","properties":{"at":{"type":"string"},"notStarted":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["at","notStarted"],"additionalProperties":false}},"required":["attempt","state","startedAt","progressAt"],"additionalProperties":false},{"type":"null"}]},"pacing":{"description":"How fast this study may START its runs, as declared at create: maxInFlight (at most N of its runs unfinished at once) and/or startsPerMinute (at most N started in any 60 s). Its runs start in waves of whole comparison units (every group's run of one agent on one task sample, together); the launch record's `pacing` says how many wait for a later wave. Null = every run started at launch.","anyOf":[{"type":"object","properties":{"maxInFlight":{"description":"At most this many of the study's runs unfinished at once — queued, pending or running (1-500). The next runs start as earlier ones finish.","type":"integer","minimum":1,"maximum":500},"startsPerMinute":{"description":"At most this many of the study's runs started in any 60-second window (1-600).","type":"integer","minimum":1,"maximum":600}},"additionalProperties":false},{"type":"null"}]},"relaunchable":{"description":"True when this running study may be launched again: its launch record says planned runs are missing (missing.retryable > 0), or its fan-out stopped. POST …/launch then creates exactly the runs that do not exist.","type":"boolean"},"archivedAt":{"description":"When this study was archived; null while it is not. An archived study loses nothing: it leaves the default list, is read-only (409 study_archived), and is on no public page. Restoring it clears this.","anyOf":[{"type":"string"},{"type":"null"}]},"archivedBy":{"description":"The user who archived it. Null when an API key did, and while the study is not archived.","anyOf":[{"type":"string"},{"type":"null"}]},"arms":{"description":"A declared-arm study's groups, in position order.","type":"array","items":{"type":"object","properties":{"key":{"type":"string","description":"The group's run key (each of its runs' `arm`)."},"position":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"0-based display order."},"label":{"type":"string","maxLength":80,"description":"The group's display label. Never shown to the judge."},"role":{"type":"string","enum":["reference","peer"],"description":"'reference' marks the group the others are compared against; the rest are peers."},"payload":{"type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"brief":{"description":"Text the agent is given after the task, for every task this group runs. At most 600 characters. A group with a brief is a setup of its own, never the subject as published.","type":"string","minLength":1,"maxLength":600}},"additionalProperties":false,"description":"The group's run-payload delta ({} = the subject as published)."},"cells":{"description":"The group's OWN agents, when the study's groups each list theirs (cellPlan 'per_setup'); absent = the matrix.","type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1,"maxLength":50,"description":"Harness id — the valid set (and each one's models) is GET /catalog; cells are validated against it at create."},"model":{"type":"string","minLength":1,"maxLength":100,"description":"Model id as the harness accepts it — valid ids per harness/provider are in GET /catalog (e.g. 'claude-sonnet-5', 'gpt-5.5')."},"provider":{"description":"Provider qualifier for multi-provider harnesses (e.g. 'anthropic', 'openai', 'google'). Omit to use the harness default.","type":"string","minLength":1,"maxLength":32},"params":{"description":"Provider params pinned for this cell (temperature, reasoningEffort, maxOutputTokens, thinkingBudgetTokens). A cell that pins none runs the provider's own defaults. Offered only where the harness declares support — see GET /catalog.","type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"maxOutputTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reasoningEffort":{"type":"string","enum":["low","medium","high"]},"thinkingBudgetTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"codeMode":{"type":"string","enum":["auto","on","off"]},"toolSearch":{"type":"string","enum":["on","off","directory"]},"location":{"type":"string","pattern":"^[A-Z]{2}$"},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$"}},"additionalProperties":false}},"required":["harness","model"],"additionalProperties":false,"description":"One (harness, model, params) cell — every task runs its arm(s) on every cell."}},"skipTasks":{"description":"The tasks this group leaves out, by task number (1 = the first); absent = it runs every task.","type":"array","items":{"type":"integer","minimum":1,"maximum":9007199254740991}},"skills":{"description":"The group's skills as resolved when the study was created (absent for a study created before that existed).","type":"array","items":{"type":"object","properties":{"ref":{"type":"string","description":"The skill ref the group's selection names."},"name":{"type":"string","description":"The skill's name when the study was created."},"changedSinceCreate":{"description":"True when the skill's content now differs from what the study ran; absent when the reader cannot check it.","type":"boolean"}},"required":["ref","name"],"additionalProperties":false}},"addedAgents":{"description":"The agents this group gained after the study was created (`addAgents`), by position in `cells` — absent when none was added.","type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The agent's position in the group's `cells`."},"addedAt":{"type":"string","description":"When it was added (RFC 3339)."}},"required":["position","addedAt"],"additionalProperties":false}}},"required":["key","position","label","role","payload"],"additionalProperties":false}},"contrastPlan":{"description":"The study's planned-contrast policy.","type":"string","enum":["vs_reference","all_pairs","ladder"]},"cellPlan":{"description":"How the groups meet their agents: absent = every group runs the matrix; 'per_setup' = each its own.","type":"string","enum":["crossed","per_setup"]},"skillDisclosure":{"description":"Whether the published page names the groups' skills: absent = withheld (chosen at publish).","type":"string","enum":["withheld","named"]},"modeOptions":{"description":"The comparisonMode's private inputs.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"screens":{"description":"The run screens the study declares (frozen at launch, like lenses). Absent = none.","type":"array","items":{"type":"string","enum":["test_awareness","site_access"]}},"runCounting":{"description":"Which of the study's runs its numbers count (GET /studies/:id/run-counting). Absent = every run.","anyOf":[{"type":"object","properties":{"policy":{"type":"string","const":"hold_back_screened"},"screen":{"type":"string","enum":["test_awareness"],"description":"The screen whose verdicts decide. Today: 'test_awareness'."},"levels":{"minItems":1,"type":"array","items":{"type":"string","enum":["aware","influenced"]},"description":"The verdict levels held back. A run the screen could not judge is never held back."}},"required":["policy","screen","levels"],"additionalProperties":false,"description":"Which of the study's runs its numbers count. Absent or null = every run. 'hold_back_screened' leaves out the runs the named screen flagged at one of `levels`: each is a missing measurement with a named reason, never a fail, and the count held back is stated beside every figure."},{"type":"null"}]},"seriesKey":{"description":"The series the study belongs to (set at create). Absent = none.","anyOf":[{"type":"string","pattern":"^[a-z0-9][a-z0-9._/-]{0,119}$"},{"type":"null"}]},"ref":{"description":"Where the study was taken: commit, branch, pull request. Absent = not recorded.","anyOf":[{"type":"object","properties":{"commit":{"description":"The commit the study was taken at (a SHA).","type":"string","minLength":1,"maxLength":64},"branch":{"description":"The branch it was taken on, e.g. 'main'. A gate's series baseline filters on it.","type":"string","minLength":1,"maxLength":200},"pr":{"description":"The pull request number, when it was taken for one.","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"url":{"description":"A link back to the change (the commit or pull request page).","type":"string","maxLength":500,"format":"uri"}},"additionalProperties":false},{"type":"null"}]},"gradingRevision":{"description":"The study's grading revision, when its checks were revised after its runs finished. Absent = never revised.","type":"integer","minimum":2,"maximum":9007199254740991},"gradingRevisedAt":{"description":"When the checks were last revised. Later than `publishedAt` = the grades changed after publication.","anyOf":[{"type":"string"},{"type":"null"}]},"rehearsal":{"description":"The study is a rehearsal: the smallest real run of a design, made by POST /studies/rehearsals. Absent = an ordinary study.","type":"boolean","const":true},"rehearsalMode":{"description":"How a rehearsal runs: 'live' (the real agents), or 'setup' / 'mock' (no agent is started). Absent on every other study.","type":"string"},"behaviors":{"description":"The custom behaviors the study declares (frozen at launch, like lenses). A run's verdict on one is in its `screens` under `b_<key>`. Absent = none.","type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{1,29}$","description":"A short id for the behavior, lowercase snake (`deleted_files`). Its verdicts are stored and queried under `b_<key>`."},"name":{"type":"string","minLength":1,"maxLength":80,"description":"What a reader sees: \"Deleted files it was not asked to\"."},"question":{"type":"string","minLength":10,"maxLength":400,"description":"One yes-or-no question about a single run that a judge can answer from its trace: \"Did the agent …?\"."},"version":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The version of the behavior's wording. A verdict and a review belong to the version they were made on."}},"required":["key","name","question","version"],"additionalProperties":false}},"stepTimeLimitSeconds":{"description":"How long each step of a task with steps may take, in seconds, as declared at create. A step still running after it ends the run, whose reason names the step and the limit. Null or absent = no per-step limit.","anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["id","plannedRunCount","organizationId","createdBy","name","slug","description","skillRef","skillSlug","skillName","skillPromise","subjectKind","subjectName","subjectLabel","armConfig","comparisonMode","subjectBackend","baselineLabel","treatmentLabel","promiseMetrics","matrix","lenses","taskCount","variantsPerTask","repeats","subset","status","error","visibility","lowSampleOverride","publishedAt","verdict","definitionVersionId","runnerKind","createdAt","updatedAt","liveUntil"],"additionalProperties":false},"streamUrl":{"type":"string","description":"The study's live SSE stream, relative to this API origin. Frames: status (draft/generating/ready/running/completed/failed — terminal closes the stream), run (per-run fact updates), grading, published/unpublished. `ora … --watch` follows it automatically."},"warnings":{"description":"'evals'-lens create only: (harness, check kind) pairs the capability roster cannot measure (deny-by-default) — that cell will abstain at grading time rather than pass/fail. Non-blocking; absent/[] means nothing was flagged. Also raised, whatever the study's lenses, for a group that runs with web tools off on an agent whose trace cannot show every way it reaches the web (kind 'web_fetched'): that agent's runs are screened and answered 'not measured'.","type":"array","items":{"anyOf":[{"type":"object","properties":{"harness":{"type":"string"},"kind":{"type":"string"}},"required":["harness","kind"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"design_aggregate_budget"},"detail":{"type":"string","description":"Which setups exceed the leaderboard's work budget, on which benchmark."}},"required":["type","detail"],"additionalProperties":false,"description":"A declared-arm study pinning a leaderboard benchmark: its setups (each group on each agent it runs) alone can take the benchmark off the cross-benchmark leaderboard (`within_budget`) once its runs are graded and published."}]}}},"required":["study","streamUrl"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"benchmark_definition_not_found — `definitionVersionId` names no benchmark definition version this caller can see","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"study_slug_taken — the name's derived slug is already used by another study in this organization (retry with a different name)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"study_skill_invalid / study_subject_invalid / study_matrix_invalid — skillRef doesn't resolve, the subject/armConfig breaks its kind's rules, or a matrix cell is unknown (field-level detail in the body); study_setup_unexecutable — a MODEL-API cell of the matrix cannot execute part of an arm's setup (one provider call: no tool loop, no MCP channel), so the study would report a 'with my setup' number for a setup that never ran; `issues[]` names the cell, the arm and the part (drop it, or run that arm on a harness cell); study_model_params_unsupported — a matrix cell pins a model param its harness cannot honour (spec 6.3), so every run of that cell would be refused at dispatch; `issues[]` names the `cell`, the `harness`, the `param` id and the exact `path` (e.g. `matrix[1].params.temperature`), and lists what the harness DOES honour — drop the param, or move the cell to a harness that declares support (GET /catalog); LENS_MISMATCH — a task carries `expectations`, or `proposeExpectations` is true, but `lenses` omits 'evals'; study_expectations_invalid — a task's `expectations` fail shape/kind validation (see @ora/eval-checks); benchmark_corpus_missing — the pinned version carries no tasks yet; benchmark_corpus_too_large — its corpus is over the per-study copy ceiling and the body asked for all of it: pass `subset` to run a deterministic sample (the ceiling binds the sample, never the corpus it is drawn from; `taskCount`/`maxTaskCount` in the body, plus `taskCountExact`: false means `taskCount` is a FLOOR, not the corpus size, so render it as 'more than N'); benchmark_corpus_corrupt — the pinned version's stored tasks no longer match what its import recorded (they hash to a different checksum, or there are more or fewer of them than its task count), so it cannot be run until it is re-imported; study_design_too_large — tasks × variants × repeats × cells × arms is over the 10,000-run ceiling once the pinned corpus is counted; LENS_REQUIREMENT_UNMET — a declared lens cannot be fed by the corpus being stored (the body names the `lens`, the missing `field` and the 1-based `taskPosition`) — e.g. a version declaring the 'judge' lens over tasks with no rubric, which would launch runs nothing can grade; study_pacing_invalid — a `pacing` value is below the design's comparison unit (the number of groups that run one agent): every group's run of one agent on one task starts together, so `unit` names the least each value may be and `issues[]` names each field; study_lens_unsupported — the body names a lens this deployment did not register (`registry` and `id` in the body say which; the detail names what IS registered) — the lens vocabulary is shared across products, so a lens one product runs may not exist in another; comparison_mode_removed — the body names a comparisonMode this product keeps for existing studies only, or names none and carries what only such a design takes (armConfig, an arm label, skillRef, or a subjectKind new studies do not use); `authoring` lists the modes new studies use and `mapping` the doc that maps each legacy design onto them","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:write","x-ora-product":"study","x-ora-cli-shorthands":[{"flag":"agent","field":"matrix","pattern":"{harness}/{provider?}/{model}","description":"An agent every group runs: its harness and its model, with the provider between them for a harness that has several. After a comma, the cell's own settings: params.reasoningEffort=high."},{"flag":"group","field":"arms","pattern":"{label}","defaults":{"config":{}},"description":"A group, by its label. After a comma, what sets it apart: role=reference, config.tools=…, config.addons.<add-on id>=<json or @file.json>, config.brief=<text or @file> (what the agent is told after the task; write \\, for a comma inside it), and agent=<harness>/<model> for an agent of its own."},{"flag":"agent","field":"arms.cells","pattern":"{harness}/{provider?}/{model}","description":"One of a group's own agents."},{"flag":"task","field":"tasks","text":"prompt","description":"An authored task, by its prompt. @file reads the prompt from a file; a .json file holds the whole task (its rubric, its checks, its steps), or a list of them."},{"flag":"run-counting","field":"runCounting","pattern":"{policy?}:{screen?}:{levels}","defaults":{"policy":"hold_back_screened","screen":"test_awareness"},"words":{"count_all":null},"description":"The levels of the test_awareness screen's verdict whose runs are held back, joined by , or +: influenced (the agent changed what it did because it knew it was tested; the recommended setting), or aware,influenced (it noticed at all). A held-back run is left out of the study's numbers as not measured, never as a fail. The policy as `ora study run-counting` prints it works too: hold_back_screened:test_awareness:aware+influenced, or count_all to count every run."}],"x-ora-service":"study-service"}},"/study/v1/studies/comparison-modes":{"get":{"operationId":"study.comparisonModes.list","summary":"List the comparison modes and which this deployment creates studies of","responses":{"200":{"description":"List the comparison modes and which this deployment creates studies of","content":{"application/json":{"schema":{"type":"object","properties":{"modes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["ab_vs_none","ab_custom","single","multi_arm"],"description":"The comparisonMode value a create body names."},"enabled":{"type":"boolean","description":"Whether this deployment creates new studies of it. false = a gated mode not enabled here (a create naming it answers 422 comparison_mode_unsupported), or a mode the study product keeps for existing studies only (422 comparison_mode_removed). Existing studies of either still read and publish."},"authoring":{"type":"boolean","description":"Whether new studies are authored in it here: enabled, and one of the study product's authoring modes. A mode outside that set creates nothing, so this equals `enabled`."}},"required":["id","enabled","authoring"],"additionalProperties":false},"description":"Every comparison mode of the study product, in the order the API documents them."},"cellPlans":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["crossed","per_setup"],"description":"A cell plan: how a study's groups meet its agents."},"enabled":{"type":"boolean","description":"Whether this deployment creates studies of it. false = a gated plan this deployment has not enabled: a create whose groups name it (for 'per_setup', each group listing its own agents in `arms[].cells`) answers 422 cell_plan_unsupported (existing studies of it still read and publish)."}},"required":["id","enabled"],"additionalProperties":false},"description":"Every cell plan, in registry order: 'crossed' (every group runs the matrix) and 'per_setup' (each group its own agents)."},"customBehaviors":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether a create may declare custom behaviors (`behaviors`) on this deployment. false: a create that declares one answers 422 study_behaviors_unsupported. A study made while they were enabled still reads."},"max":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many custom behaviors one study may declare."}},"required":["enabled","max"],"additionalProperties":false,"description":"Custom behaviors: a study's own yes-or-no questions about a run, each one more judge-panel read of every run."},"runScreens":{"type":"object","properties":{"enabled":{"type":"array","items":{"type":"string"},"description":"The run screens a create may declare (`screens`) on this deployment. Another id answers 422 run_screen_unsupported."},"defaults":{"type":"array","items":{"type":"string"},"description":"The screens a create that names no `screens` is given. Send `screens: []` for a study that is not screened."}},"required":["enabled","defaults"],"additionalProperties":false,"description":"Run screens: a per-run check of whether a run is valid evidence (test awareness), one judge-panel read of every run."}},"required":["modes","cellPlans","customBehaviors","runScreens"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:read","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/studies/convert/webmcp":{"post":{"operationId":"study.convertWebmcpSuite","summary":"Convert a webmcp-evals suite JSON into ora study tasks + 'evals'-lens expectations — a PURE transform, nothing persisted; resubmit the returned `tasks` through study.create's `tasks` field","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"suite":{"description":"The foreign webmcp-evals suite JSON (an array of {name, messages, expectedCall} cases) — validated by the converter itself; a malformed suite answers 422 with the converter's own message."},"ordered":{"description":"When true, a case's multiple expectedCall entries become one ORDERED `sequence` expectation instead of independent ones (mirrors the reference project's evals.json vs evals-unordered.json split). Default false.","type":"boolean"}},"required":["suite"]},"example":{"suite":[{"name":"search finds the refund policy","messages":[{"role":"user","type":"message","content":"Find the refund policy and quote it."}],"expectedCall":[{"functionName":"search_docs","arguments":{"query":{"$contains":"refund"}}}]}]}}}},"responses":{"200":{"description":"Convert a webmcp-evals suite JSON into ora study tasks + 'evals'-lens expectations — a PURE transform, nothing persisted; resubmit the returned `tasks` through study.create's `tasks` field","content":{"application/json":{"schema":{"type":"object","properties":{"tasks":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"prompt":{"type":"string"},"expectations":{"type":"array","items":{},"description":"Deterministic 'evals'-lens expectations for this task — the same shape as studyCreateBody.tasks[].expectations, which documents every kind and field."}},"required":["title","prompt","expectations"],"additionalProperties":false}},"warnings":{"type":"array","items":{"type":"string"},"description":"Lossy-conversion notes (e.g. a multi-user-turn case flattened into one prompt) — never blocking."}},"required":["tasks","warnings"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"study_convert_invalid — `suite` doesn't match the webmcp-evals shape (the converter's own zod message)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:write","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/studies/preflight":{"post":{"operationId":"study.preflight","summary":"Check a study design without creating it: the same body a create takes, answered with the study it would be (its form and name, planned runs and judge comparisons, effective groups, planned comparisons, how it would board) — or the SAME 422 create would answer. Nothing is persisted and nothing is generated.","parameters":[{"name":"depth","in":"query","required":false,"schema":{"description":"'default' (omitted) checks without copying a benchmark's corpus — its counts come from the pinned version's stored task count; 'full' runs create's whole derive with a FIXED sampling seed, so two calls draw the same sample.","type":"string","enum":["default","full"]}},{"name":"review","in":"query","required":false,"schema":{"description":"Ask for a second opinion on the design, beside the check. 'model': one model reads what the agent will be given (prompts, their variants, follow-up prompts) and says whether it tells the agent it is being tested or gives away how the answer is graded. Off unless asked for; needs depth=full (422 preflight_review_needs_full_depth otherwise). Advisory: its findings are in `issues` under design_review.model, and `review` says whether the model was asked at all.","type":"string","enum":["model"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":160,"description":"Display name for the study (≤160 chars)."},"description":{"description":"Optional longer description shown on the study card.","type":"string","maxLength":4000},"subjectKind":{"default":"custom","description":"What the study measures — defaults to 'custom', the kind new studies are created with. See the enum description for each kind's rules.","type":"string","enum":["skill","tools","addon","custom","benchmark","site"]},"skillRef":{"description":"The skill under test as '<source>:<id>' — sources: 'custom' (an org-authored skill, id from the skills API), 'builtin' (a starter example), 'git' (a git-imported skill). E.g. 'custom:8c1d…'. REQUIRED iff subjectKind 'skill'; forbidden otherwise. Kept for the studies that already exist: subjectKind 'skill' creates no new study here — a group attaches skills through the skills add-on in `arms[].config.addons`; a create body that names no comparisonMode (or a legacy one) and carries it is read as the legacy body it is and answers 422 comparison_mode_removed (docs/studies/comparison-modes/README.md maps each legacy design onto the new ones).","type":"string","minLength":1},"definitionVersionId":{"description":"The benchmark definition VERSION this study pins — REQUIRED iff subjectKind 'benchmark', forbidden otherwise. Read it from a catalog entry's `currentVersionId` (GET /benchmark-definitions/{slug}). A VERSION id, never a slug: a slug follows the definition's current version, and pinning is what keeps this study's corpus — and the board row it may later earn — reproducible. The version's tasks are copied FROZEN at create, so a later publish never changes them. Validated as a uuid at the wire: the column is a Postgres `uuid`, so a malformed value would otherwise reach Hasura and answer 500 instead of 422.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"siteDomain":{"description":"The website a 'site' study is run against — REQUIRED iff subjectKind 'site', forbidden otherwise. A host such as 'example.com': no scheme, no path. Every run of the study is read against it: whether the agent opened a page on this host or a subdomain of it, and whether the site refused the agent. Nothing is added to the prompt for it: a group names the site to its agents, or does not, through its own brief.","type":"string","maxLength":253,"pattern":"^[a-z0-9]([a-z0-9-]*[a-z0-9])?(\\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)+$"},"subjectName":{"description":"Display name of a NON-skill subject (e.g. 'Tavily search', 'monday.com remote MCP'). Required for subjectKind 'tools' / 'addon' / 'custom'; forbidden for 'skill' (the skill's own name is used) and for 'benchmark' (the pinned definition's name is used).","type":"string","minLength":1,"maxLength":120},"armConfig":{"type":"object","properties":{"baseline":{"description":"The baseline arm's run-payload delta. Omitted = a bare run (no skill, no extras).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"]}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}},"treatment":{"description":"The treatment arm's run-payload delta (the thing under test).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"]}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"description":"Frozen per-arm run-payload deltas of a fixed pair of arms (comparisonMode 'ab_vs_none' or 'ab_custom' or 'single'), kept for the studies that already exist: new studies carry each group's configuration in `arms`, and a create body that names no comparisonMode (or a legacy one) and carries it is read as the legacy body it is and answers 422 comparison_mode_removed (docs/studies/comparison-modes/README.md maps each legacy design onto the new ones)."},"lenses":{"default":["judge"],"description":"Which grading lenses to run: 'judge' (LLM judge panel — the default) and/or 'evals' (deterministic @ora/eval-checks grading against each task's `expectations`). Set ONCE at create — there is no update path. `expectations` on a task requires 'evals' to be present here.","minItems":1,"type":"array","items":{"type":"string","enum":["judge","evals","reference","framework","execution","verifier"]}},"judgeSupplementary":{"description":"subjectKind 'benchmark' only: ALSO grade every run with the LLM judge panel. A rubric is authored for each task at create (the study is 'generating' until it is frozen), and runs are then scored for rubric quality and — in an A/B — compared blind, BESIDE the benchmark's own pass rate, which still decides the verdict first. The rubric measures the quality of a response, never its correctness (that is the benchmark's own grader's job). Costs one judge call per run and per pair. Forbidden for every other subject kind, and for a benchmark whose own grading spec already uses the judge.","type":"boolean"},"proposeExpectations":{"description":"Opt in to an LLM proposing 'evals'-lens `expectations` for each AUTO-GENERATED task (temp-0, re-validated against the eval-checks registry — an invalid proposal is dropped, never stored). REQUIRES `lenses` to include 'evals' (422 LENS_MISMATCH otherwise); also IGNORED when `tasks` is supplied (an authored corpus already carries its own explicit expectations). Proposals land on the task in the study's normal 'ready' state for human review before launch — the same discipline as generated rubrics.","type":"boolean"},"comparisonMode":{"default":"multi_arm","description":"The study's design — defaults to 'multi_arm', the mode new studies are created in. See the enum description for each mode.","type":"string","enum":["ab_vs_none","ab_custom","single","multi_arm"]},"subjectBackend":{"description":"FRAMEWORK benchmarks only (e.g. HELM). Omit for the framework's own default — 'harness' where the framework supports it. Ignored by a study no framework runs. An ask the framework cannot honour fails the launch by name.","type":"string","enum":["model","harness"]},"baselineLabel":{"description":"Baseline arm's display label (e.g. 'REST API'). Kept for the studies that already exist (Required iff comparisonMode 'ab_custom'; forbidden otherwise): new studies name each group in `arms[].label`, and a create body that names no comparisonMode (or a legacy one) and carries it is read as the legacy body it is and answers 422 comparison_mode_removed (docs/studies/comparison-modes/README.md maps each legacy design onto the new ones).","type":"string","minLength":1,"maxLength":80},"treatmentLabel":{"description":"Treatment arm's display label (e.g. 'Remote MCP'). Kept for the studies that already exist (Required iff comparisonMode 'ab_custom'; forbidden otherwise): new studies name each group in `arms[].label`, and a create body that names no comparisonMode (or a legacy one) and carries it is read as the legacy body it is and answers 422 comparison_mode_removed (docs/studies/comparison-modes/README.md maps each legacy design onto the new ones).","type":"string","minLength":1,"maxLength":80},"arms":{"description":"Declared groups, in display order, each with its own label and configuration. The number of groups is the comparisonMode's own: 'multi_arm': 1-6 groups (1 group reads as the agent leaderboard: no reference group and no comparison, and it seeds the public leaderboard — when bare, labelled 'as published' on a model-API agent and 'harness default' on a harness agent, and 'with my setup' when it carries one; 2-6 groups are compared over the planned contrasts (with 2, one comparison, oriented only when a group has role 'reference'); only a bare group seeds the public leaderboard).","maxItems":16,"type":"array","items":{"type":"object","properties":{"key":{"description":"The group's key (lowercase, at most 10 characters, not a reserved word); an expectation's `arms` scopes a check to it. Defaults to its position (g1, g2, …).","type":"string"},"label":{"type":"string","minLength":1,"maxLength":80,"description":"The group's display label (unique within the study). Never shown to the judge."},"role":{"default":"peer","description":"'reference' marks the one group the others are compared against; every other group is a 'peer'.","type":"string","enum":["reference","peer"]},"config":{"type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"]}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"brief":{"description":"Text the agent is given after the task, for every task this group runs. At most 600 characters. A group with a brief is a setup of its own, never the subject as published.","type":"string","minLength":1,"maxLength":600}},"description":"The group's run-payload delta (tools and/or add-ons). An empty object is the subject as published."},"cells":{"description":"The group's OWN agents (1-48 harness × model cells), when the groups do not all run the same ones. All or none: either every group names its cells, or none does and every group runs the matrix. When they are named, `matrix` must be their ordered distinct union, and no two groups may name the same set (send that set as the matrix instead). Available where GET /studies/comparison-modes lists the 'per_setup' cell plan as enabled.","minItems":1,"maxItems":48,"type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1,"maxLength":50,"description":"Harness id — the valid set (and each one's models) is GET /catalog; cells are validated against it at create."},"model":{"type":"string","minLength":1,"maxLength":100,"description":"Model id as the harness accepts it — valid ids per harness/provider are in GET /catalog (e.g. 'claude-sonnet-5', 'gpt-5.5')."},"provider":{"description":"Provider qualifier for multi-provider harnesses (e.g. 'anthropic', 'openai', 'google'). Omit to use the harness default.","type":"string","minLength":1,"maxLength":32},"params":{"description":"Provider params pinned for this cell (temperature, reasoningEffort, maxOutputTokens, thinkingBudgetTokens). A cell that pins none runs the provider's own defaults. Offered only where the harness declares support — see GET /catalog.","type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"maxOutputTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reasoningEffort":{"type":"string","enum":["low","medium","high"]},"thinkingBudgetTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"codeMode":{"type":"string","enum":["auto","on","off"]},"toolSearch":{"type":"string","enum":["on","off","directory"]},"location":{"type":"string","pattern":"^[A-Z]{2}$"},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$"}},"additionalProperties":false}},"required":["harness","model"],"description":"One (harness, model, params) cell — every task runs its arm(s) on every cell."}},"skipTasks":{"description":"The tasks this group leaves out, by task number (1 = the first of the body's `tasks`): the group starts no run on them, and a comparison between two groups stands on the tasks both ran. Only with `tasks` in the body. A group may not leave every task out, every task must be run by some group, and two compared groups must share a task.","minItems":1,"type":"array","items":{"type":"integer","minimum":1,"maximum":9007199254740991}}},"required":["label","config"],"additionalProperties":false}},"contrasts":{"description":"Which pairs of declared groups the judge compares. 'vs_reference': every other group against the one group with role 'reference'. 'all_pairs': every pair of groups. 'ladder': each group against the one declared before it. 'multi_arm': 'vs_reference' (every other group against the one group with role 'reference'), 'all_pairs' (every pair of groups, at most 4 groups), 'ladder' (each group against the one declared before it); default 'vs_reference' when a group has role 'reference', else 'all_pairs'.","type":"string","enum":["vs_reference","all_pairs","ladder"]},"modeOptions":{"description":"A comparisonMode's private inputs, validated by that mode. No mode offered here takes any.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"taskCount":{"default":5,"description":"How many tasks to auto-generate (1–100, default 5; generation is ONE model call, so very large corpora are better AUTHORED via `tasks`, which allows up to 500). IGNORED when `tasks` is supplied (the authored corpus defines the count). Runs launched = taskCount × variantsPerTask × repeats × matrix cells × arms (2 arms unless 'single'; the declared groups for 'multi_arm'); the total is capped at 10000.","type":"integer","minimum":1,"maximum":100},"variantsPerTask":{"default":1,"description":"Semantics-preserving paraphrases per task (1-10, default 1). Each variant is a SEPARATE sample of the same question, graded against the same frozen rubric, and both arms see the identical variant set. Sampling phrasing as well as stochastic draw is what lets a comparative claim average over both. Runs = tasks x variants x repeats x cells x arms.","type":"integer","minimum":1,"maximum":10},"repeats":{"default":1,"description":"Identical re-runs of each condition (1-25, default 1). Variants and repeats measure different things: a failed variant could be phrasing sensitivity OR run-to-run instability, and only identical repeats separate them. Set >1 when reliability is a deliverable.","type":"integer","minimum":1,"maximum":25},"tasks":{"description":"AUTHOR the corpus instead of generating it: tasks + rubrics land verbatim and the study goes straight to 'ready' (no LLM generation; the same pre-registration discipline — rubrics are frozen before any run exists). For reference-driven corpora (a ported study's curated tasks). `promise` is still required for non-skill subjects; `taskCount` is derived from this array. Forbidden for subjectKind 'benchmark', whose corpus is copied frozen from the pinned definition version.","minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"prompt":{"type":"string","minLength":1,"description":"The verbatim one-shot prompt dispatched as each run's intent."},"rationale":{"default":"Author-supplied task.","description":"Why this task exercises the promise (public drill-down).","type":"string","minLength":1},"category":{"default":"authored","description":"Free-form short category.","type":"string","minLength":1,"maxLength":40},"requiresWeb":{"default":false,"description":"True only when the task needs live web access.","type":"boolean"},"rubric":{"description":"PRE-REGISTERED acceptance criteria — frozen at create, exactly what the judge panel grades against. REQUIRED (2-8 criteria) when `lenses` includes 'judge' (422 otherwise); OPTIONAL when it doesn't — an evals-only study's judge panel never runs (M4's grading gate), so there is nothing to pre-register criteria FOR. Omitted on an evals-only task → stored as [].","maxItems":8,"type":"array","items":{"type":"string","minLength":1,"maxLength":300}},"variants":{"description":"Explicit paraphrases for THIS task, used instead of generated ones. The authored `prompt` is always variant 0; these follow it. Supply at most variantsPerTask-1.","minItems":1,"maxItems":10,"type":"array","items":{"type":"string","minLength":1}},"expectations":{"description":"Deterministic pass/fail expectations for the 'evals' lens (see @ora/eval-checks' Expectation union) — validated against the registered check kinds at create. REQUIRES `lenses` to include 'evals' (422 LENS_MISMATCH otherwise); the shape itself is validated by the eval-checks registry, not here.","minItems":1,"maxItems":24,"type":"array","items":{"oneOf":[{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"mcp_tool_called","description":"An MCP tool was invoked. Matched on the canonical `steps[].mcp` stamp, never a tool-name grep, so it works across every harness dialect."},"server":{"description":"MCP server name (e.g. \"tavily\"). Omit to match the tool on any server.","type":"string"},"tool":{"type":"string","description":"The MCP tool name as the server exposes it (e.g. \"search\"). Exact match."},"arguments":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"minCalls":{"type":"number"}},"required":["kind","tool"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"tool_not_called","description":"A RESTRAINT check: the named tool was never invoked. Beware vacuous passes — if the tool could never appear on this surface, use a positive check instead."},"tool":{"type":"string"},"mcp":{"type":"object","properties":{"server":{"type":"string"},"tool":{"type":"string"}},"required":["tool"]},"pattern":{"type":"string"}},"required":["kind"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"command_ran","description":"A shell command matching `pattern` was executed."},"pattern":{"type":"string","description":"Regex tested against the command text. Length-capped; backreferences and nested quantifiers are rejected as catastrophic-backtracking risks."}},"required":["kind","pattern"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"skill_loaded","description":"The agent loaded a skill. Observable ONLY under POINTER delivery — authoring this expectation auto-forces it; under inline delivery the body is embedded so no harness emits a skill step."},"slug":{"type":"string","description":"The skill slug, e.g. \"web-research\"."}},"required":["kind","slug"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"file_operation","description":"A file was read, written or edited."},"op":{"description":"Restrict to one verb. Omit to match any file operation.","type":"string","enum":["read","write","edit"]},"path":{"description":"The file path: a literal for exact match, or a matcher such as {\"$contains\":\"report\"} / {\"$pattern\":\"\\\\.md$\"}."}},"required":["kind","path"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"web_fetched","description":"A URL was fetched. Give urlHost for an exact host, urlSite for a host and its subdomains, or urlPattern for a regex over the full URL."},"urlHost":{"description":"Exact host, e.g. \"example.com\".","type":"string"},"urlSite":{"description":"A site: this host or any subdomain of it, e.g. \"example.com\" also matches \"docs.example.com\".","type":"string"},"urlPattern":{"description":"Regex over the whole URL. Same safety limits as command_ran.pattern.","type":"string"}},"required":["kind"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"response_contains","description":"The agent's final answer contains this literal text (case-sensitive substring)."},"text":{"type":"string","description":"Literal substring to find in the answer."},"normalize":{"description":"Compare by meaning rather than by glyph: 'prose' lower-cases BOTH sides, drops URLs, folds unicode dashes and typographic quotes, reads 'N to M' as 'N-M', turns hyphens/underscores into spaces and collapses whitespace. Omit for the literal, case-sensitive comparison.","type":"string","enum":["prose"]}},"required":["kind","text"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"response_matches","description":"The agent's final answer matches this regex."},"pattern":{"type":"string","description":"Regex tested against the answer text. Same safety limits as command_ran.pattern."},"ignoreCase":{"description":"Match case-insensitively. Omit (or false) for the case-sensitive default.","type":"boolean"}},"required":["kind","pattern"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"token_budget","description":"The run stayed within a token budget. ABSTAINS when usage is absent (telemetry-dark) — never fails for missing data."},"maxOutputTokens":{"description":"Ceiling on output tokens.","type":"number"},"maxTotalTokens":{"description":"Ceiling on input+output tokens.","type":"number"}},"required":["kind"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"sequence","description":"CONJUNCTION with ORDER: every branch must match, in this order. Members must be POSITIONAL (step-based) kinds — mcp_tool_called, command_ran, skill_loaded, file_operation, web_fetched. That rule is enforced by the check registry, not by this schema, so a response_* or token_budget member parses here and is refused at create."},"of":{"type":"array","items":{"$ref":"#/components/schemas/Def_0f52adfddc63c1c2862af461b851e029b5a453bd5fc4d3373ecde1dcc23a16b6"}}},"required":["kind","of"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"any_of","description":"DISJUNCTION: passes if ANY branch passes. Use it when one goal has more than one legitimate route (e.g. an MCP tool called directly OR through a proxy tool). ABSTAINS — never fails — when no branch is measurable."},"of":{"type":"array","items":{"$ref":"#/components/schemas/Def_0f52adfddc63c1c2862af461b851e029b5a453bd5fc4d3373ecde1dcc23a16b6"}}},"required":["kind","of"]}]}},"followUps":{"description":"Make this a task with STEPS: a run of it is one run and one conversation, in which the agent receives `prompt` and then each follow-up, in order, each when the turn before it has ended. `prompt`, `rubric` and `expectations` are step 1's; each follow-up has its own. A run reaches its goal when every criterion of every step passed, and the report also says, per step, how many runs reached it and how many of those passed it. Only agents that can continue a conversation can run it (the create is refused for one that cannot, naming it). Paraphrases (`variants`) apply to `prompt` only. Frozen at create.","minItems":1,"maxItems":8,"type":"array","items":{"type":"object","properties":{"prompt":{"type":"string","minLength":1,"description":"Delivered to the agent, in the same conversation, when the turn before it has ended."},"rubric":{"description":"This step's pre-registered criteria, graded on this step's own turn. Omitted: the judge grades nothing for it.","maxItems":8,"type":"array","items":{"type":"string","minLength":1,"maxLength":300}},"expectations":{"description":"This step's deterministic expectations, checked against this step's own turn. REQUIRES `lenses` to include 'evals'.","minItems":1,"maxItems":24,"type":"array","items":{"oneOf":[{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"mcp_tool_called","description":"An MCP tool was invoked. Matched on the canonical `steps[].mcp` stamp, never a tool-name grep, so it works across every harness dialect."},"server":{"description":"MCP server name (e.g. \"tavily\"). Omit to match the tool on any server.","type":"string"},"tool":{"type":"string","description":"The MCP tool name as the server exposes it (e.g. \"search\"). Exact match."},"arguments":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"minCalls":{"type":"number"}},"required":["kind","tool"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"tool_not_called","description":"A RESTRAINT check: the named tool was never invoked. Beware vacuous passes — if the tool could never appear on this surface, use a positive check instead."},"tool":{"type":"string"},"mcp":{"type":"object","properties":{"server":{"type":"string"},"tool":{"type":"string"}},"required":["tool"]},"pattern":{"type":"string"}},"required":["kind"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"command_ran","description":"A shell command matching `pattern` was executed."},"pattern":{"type":"string","description":"Regex tested against the command text. Length-capped; backreferences and nested quantifiers are rejected as catastrophic-backtracking risks."}},"required":["kind","pattern"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"skill_loaded","description":"The agent loaded a skill. Observable ONLY under POINTER delivery — authoring this expectation auto-forces it; under inline delivery the body is embedded so no harness emits a skill step."},"slug":{"type":"string","description":"The skill slug, e.g. \"web-research\"."}},"required":["kind","slug"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"file_operation","description":"A file was read, written or edited."},"op":{"description":"Restrict to one verb. Omit to match any file operation.","type":"string","enum":["read","write","edit"]},"path":{"description":"The file path: a literal for exact match, or a matcher such as {\"$contains\":\"report\"} / {\"$pattern\":\"\\\\.md$\"}."}},"required":["kind","path"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"web_fetched","description":"A URL was fetched. Give urlHost for an exact host, urlSite for a host and its subdomains, or urlPattern for a regex over the full URL."},"urlHost":{"description":"Exact host, e.g. \"example.com\".","type":"string"},"urlSite":{"description":"A site: this host or any subdomain of it, e.g. \"example.com\" also matches \"docs.example.com\".","type":"string"},"urlPattern":{"description":"Regex over the whole URL. Same safety limits as command_ran.pattern.","type":"string"}},"required":["kind"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"response_contains","description":"The agent's final answer contains this literal text (case-sensitive substring)."},"text":{"type":"string","description":"Literal substring to find in the answer."},"normalize":{"description":"Compare by meaning rather than by glyph: 'prose' lower-cases BOTH sides, drops URLs, folds unicode dashes and typographic quotes, reads 'N to M' as 'N-M', turns hyphens/underscores into spaces and collapses whitespace. Omit for the literal, case-sensitive comparison.","type":"string","enum":["prose"]}},"required":["kind","text"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"response_matches","description":"The agent's final answer matches this regex."},"pattern":{"type":"string","description":"Regex tested against the answer text. Same safety limits as command_ran.pattern."},"ignoreCase":{"description":"Match case-insensitively. Omit (or false) for the case-sensitive default.","type":"boolean"}},"required":["kind","pattern"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"token_budget","description":"The run stayed within a token budget. ABSTAINS when usage is absent (telemetry-dark) — never fails for missing data."},"maxOutputTokens":{"description":"Ceiling on output tokens.","type":"number"},"maxTotalTokens":{"description":"Ceiling on input+output tokens.","type":"number"}},"required":["kind"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"sequence","description":"CONJUNCTION with ORDER: every branch must match, in this order. Members must be POSITIONAL (step-based) kinds — mcp_tool_called, command_ran, skill_loaded, file_operation, web_fetched. That rule is enforced by the check registry, not by this schema, so a response_* or token_budget member parses here and is refused at create."},"of":{"type":"array","items":{"$ref":"#/components/schemas/Def_0f52adfddc63c1c2862af461b851e029b5a453bd5fc4d3373ecde1dcc23a16b6"}}},"required":["kind","of"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"any_of","description":"DISJUNCTION: passes if ANY branch passes. Use it when one goal has more than one legitimate route (e.g. an MCP tool called directly OR through a proxy tool). ABSTAINS — never fails — when no branch is measurable."},"of":{"type":"array","items":{"$ref":"#/components/schemas/Def_0f52adfddc63c1c2862af461b851e029b5a453bd5fc4d3373ecde1dcc23a16b6"}}},"required":["kind","of"]}]}}},"required":["prompt"]}},"files":{"description":"Files put into the agent's workspace before EVERY run of this task starts (1-16), the same for every group, agent, variant and repeat. Each is `{ path, content }` (inline text), `{ path, url, sha256, sizeBytes }` (fetched in the run's pod before the agent starts and admitted only when its bytes match the size and the lowercase hex SHA-256: for anything binary or large), or `{ path, repo: { url, ref, subpath? } }` (a public https git repository at a full commit, cloned into the directory `path`; a repository that needs a credential is refused). `path` is relative to the workspace root, with no `.` or `..` segment, and not under a dot entry of the root. Only agents that run in a pod of their own can be given files (the create is refused for one that cannot, naming it). Task text, like `prompt`: withheld with it when the task is `private`. Frozen at create.","minItems":1,"maxItems":16,"type":"array","items":{"anyOf":[{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":256},"content":{"type":"string","minLength":1,"maxLength":64000}},"required":["path","content"],"additionalProperties":false},{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":256},"url":{"type":"string","maxLength":4096,"format":"uri"},"sha256":{"type":"string","pattern":"^[0-9a-f]{64}$"},"sizeBytes":{"type":"integer","exclusiveMinimum":0,"maximum":26214400}},"required":["path","url","sha256","sizeBytes"],"additionalProperties":false},{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":256},"repo":{"type":"object","properties":{"url":{"type":"string","maxLength":2048,"format":"uri"},"ref":{"type":"string"},"subpath":{"type":"string","minLength":1,"maxLength":256}},"required":["url","ref"],"additionalProperties":false}},"required":["path","repo"],"additionalProperties":false}]}},"private":{"description":"Keep THIS task's text off the published page: its prompt, rationale, rubric, paraphrases and expectations (the evals lens's patterns) are never served by a public page or the public API, which name the task and report every measurement of it. Your organization still sees the whole task. Frozen at create — the same withholding a licence-restricted benchmark corpus gets. Default false (published).","type":"boolean"}},"required":["prompt"]}},"subset":{"description":"Run a deterministic random SAMPLE of the corpus instead of all of it — the way a 1,319-item benchmark becomes a study you can afford. The sample is a pure function of (corpus, count, seed): the server records the seed on the study, so the exact sample is re-derivable forever. Omit it to run every task.","type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":500,"description":"Run a deterministic random SAMPLE of this many tasks instead of the whole corpus (1-500). Ignored when the corpus is already this small or smaller."},"seed":{"description":"The sampling seed. Supply one to reproduce an earlier study's exact sample; omit it and the server mints one and records it on the study, so the sample is always re-derivable.","type":"string","minLength":1,"maxLength":64}},"required":["count"],"additionalProperties":false},"pacing":{"description":"LAUNCH PACING — start this study's runs gradually instead of all at once, for groups that call a rate-limited service (an API that answers 429 past N requests a minute). Every group's run of one agent on one task sample (a comparison unit) always starts together, in the same wave, so a comparison is never confounded by time; each value must therefore be at least the number of groups that run one agent. Declare maxInFlight, startsPerMinute, or both (both then hold). Frozen at create. Omit it, or send null, for no pacing: every run starts at launch.","anyOf":[{"type":"object","properties":{"maxInFlight":{"description":"At most this many of the study's runs unfinished at once — queued, pending or running (1-500). The next runs start as earlier ones finish.","type":"integer","minimum":1,"maximum":500},"startsPerMinute":{"description":"At most this many of the study's runs started in any 60-second window (1-600).","type":"integer","minimum":1,"maximum":600}},"additionalProperties":false,"description":"LAUNCH PACING — start this study's runs gradually instead of all at once, for groups that call a rate-limited service (an API that answers 429 past N requests a minute). Every group's run of one agent on one task sample (a comparison unit) always starts together, in the same wave, so a comparison is never confounded by time; each value must therefore be at least the number of groups that run one agent. Declare maxInFlight, startsPerMinute, or both (both then hold). Frozen at create. Omit it, or send null, for no pacing: every run starts at launch."},{"type":"null"}]},"stepTimeLimitSeconds":{"description":"How long EACH step of a task with steps may take, in seconds (30-7200). A step still running after it ends the run: the run fails, its reason names the step and the limit, and the steps after it are not given. Without it a step is bounded only by the run's own limit, so one slow step can use the time the later steps were meant to have. It applies to every task with steps of the study; a one-step task's run is unchanged. Refused when no task of the study has steps. Omit it, or send null, for no per-step limit.","anyOf":[{"type":"integer","minimum":30,"maximum":7200},{"type":"null"}]},"screens":{"type":"array","items":{"type":"string","enum":["test_awareness","site_access"]},"description":"Which run screens this study runs. A screen is a per-run check of whether the run is valid evidence, kept apart from grading: it never changes a grade. Omitted = the deployment's default. Frozen at launch, like lenses. 'test_awareness': after a run ends, a judge panel reads its full trace for signs that the agent noticed it was being tested ('aware') or changed how it worked because of that ('influenced'), and records the quoted evidence with the classifier's version. 'site_access' (a study whose subject is a website): whether the site refused the agent's requests ('blocked') or not ('open'), with the refused URLs."},"series":{"description":"The SERIES this study belongs to: studies that ask the same question at different moments (every commit of a branch). A gate's series baseline is found in it. Immutable. Omit for a study of no series.","type":"string","pattern":"^[a-z0-9][a-z0-9._/-]{0,119}$"},"ref":{"description":"Where the study was taken: the commit, branch and pull request. A label, immutable.","type":"object","properties":{"commit":{"description":"The commit the study was taken at (a SHA).","type":"string","minLength":1,"maxLength":64},"branch":{"description":"The branch it was taken on, e.g. 'main'. A gate's series baseline filters on it.","type":"string","minLength":1,"maxLength":200},"pr":{"description":"The pull request number, when it was taken for one.","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"url":{"description":"A link back to the change (the commit or pull request page).","type":"string","maxLength":500,"format":"uri"}},"additionalProperties":false},"carry":{"description":"Carry the runs of jobs that cannot have changed from the series' previous comparable study instead of running them again (needs `series`). Each carried run says so. Omit to run every job.","type":"object","properties":{"from":{"type":"string","enum":["series"],"description":"series: the series' newest completed study made before this one."},"maxAgeDays":{"default":7,"description":"A run older than this many days is run again, never carried.","type":"integer","minimum":1,"maximum":30}},"required":["from"],"additionalProperties":false},"runCounting":{"anyOf":[{"type":"object","properties":{"policy":{"type":"string","const":"hold_back_screened"},"screen":{"type":"string","enum":["test_awareness"],"description":"The screen whose verdicts decide. Today: 'test_awareness'."},"levels":{"minItems":1,"type":"array","items":{"type":"string","enum":["aware","influenced"]},"description":"The verdict levels held back. A run the screen could not judge is never held back."}},"required":["policy","screen","levels"],"additionalProperties":false,"description":"Which of the study's runs its numbers count. Absent or null = every run. 'hold_back_screened' leaves out the runs the named screen flagged at one of `levels`: each is a missing measurement with a named reason, never a fail, and the count held back is stated beside every figure."},{"type":"null"}]},"behaviors":{"maxItems":5,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{1,29}$","description":"A short id for the behavior, lowercase snake (`deleted_files`). Its verdicts are stored and queried under `b_<key>`."},"name":{"type":"string","minLength":1,"maxLength":80,"description":"What a reader sees: \"Deleted files it was not asked to\"."},"question":{"type":"string","minLength":10,"maxLength":400,"description":"One yes-or-no question about a single run that a judge can answer from its trace: \"Did the agent …?\"."}},"required":["key","name","question"],"additionalProperties":false},"description":"Custom behaviors: up to 5 yes-or-no questions a judge panel answers about every finished run, with quoted evidence. A behavior is disclosure about a run, like a screen: it has no score and never changes a grade. Frozen at launch. Each costs one panel read per run."},"matrix":{"minItems":1,"maxItems":48,"type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1,"maxLength":50,"description":"Harness id — the valid set (and each one's models) is GET /catalog; cells are validated against it at create."},"model":{"type":"string","minLength":1,"maxLength":100,"description":"Model id as the harness accepts it — valid ids per harness/provider are in GET /catalog (e.g. 'claude-sonnet-5', 'gpt-5.5')."},"provider":{"description":"Provider qualifier for multi-provider harnesses (e.g. 'anthropic', 'openai', 'google'). Omit to use the harness default.","type":"string","minLength":1,"maxLength":32},"params":{"description":"Provider params pinned for this cell (temperature, reasoningEffort, maxOutputTokens, thinkingBudgetTokens). A cell that pins none runs the provider's own defaults. Offered only where the harness declares support — see GET /catalog.","type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"maxOutputTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reasoningEffort":{"type":"string","enum":["low","medium","high"]},"thinkingBudgetTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"codeMode":{"type":"string","enum":["auto","on","off"]},"toolSearch":{"type":"string","enum":["on","off","directory"]},"location":{"type":"string","pattern":"^[A-Z]{2}$"},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$"}},"additionalProperties":false}},"required":["harness","model"],"description":"One (harness, model, params) cell — every task runs its arm(s) on every cell."},"description":"The (harness, model) cells to fan out over — 1 to 48 cells (a full catalog sweep fits)."},"promise":{"description":"The claim under test, driving task generation and the pre-registered rubrics (e.g. 'Tavily search finds fresher, better-sourced answers than no web access'). Optional for subjectKind 'skill' (omitted → extracted from the skill body); forbidden for 'benchmark' (derived from the pinned definition's description); REQUIRED for every other kind.","type":"string","minLength":1,"maxLength":2000}},"required":["name","matrix"]},"example":{"name":"Rank agents on my tasks","subjectKind":"custom","subjectName":"My support tasks","promise":"Answers a customer's billing question correctly","comparisonMode":"multi_arm","arms":[{"label":"As published","config":{}}],"taskCount":10,"matrix":[{"harness":"claude-code","model":"claude-sonnet-5"},{"harness":"codex","model":"gpt-5.5"}]}}}},"responses":{"200":{"description":"Check a study design without creating it: the same body a create takes, answered with the study it would be (its form and name, planned runs and judge comparisons, effective groups, planned comparisons, how it would board) — or the SAME 422 create would answer. Nothing is persisted and nothing is generated.","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true},"depth":{"type":"string","enum":["default","full"]},"form":{"type":"string","description":"The study's form ('leaderboard' | 'comparison' for Groups), or a legacy mode's id."},"label":{"type":"string","description":"The study's name-of-kind, e.g. 'Leaderboard of 4 agents', '2 groups: B against A'."},"plannedRunCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"plannedJudgeComparisons":{"type":"integer","minimum":0,"maximum":9007199254740991},"screens":{"description":"Present only when the study would be screened (whether each run is valid evidence; see `screens` on create).","type":"object","properties":{"ids":{"type":"array","items":{"type":"string"},"description":"The run screens create would store: the body's, else the deployment's default."},"plannedReads":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Judge-panel reads the screens add: one per screen per planned run, beside plannedJudgeComparisons."}},"required":["ids","plannedReads"],"additionalProperties":false},"behaviors":{"description":"Present only when the study declares a custom behavior (see `behaviors` on create).","type":"object","properties":{"keys":{"type":"array","items":{"type":"string"},"description":"The custom behaviors create would store, by key."},"plannedReads":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Judge-panel reads the behaviors add: one per behavior per planned run, beside plannedJudgeComparisons."}},"required":["keys","plannedReads"],"additionalProperties":false},"steps":{"description":"Present only when a task of the corpus has steps (see `tasks[].followUps` on create).","type":"object","properties":{"tasks":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991,"description":"How many of the corpus's tasks have steps (`followUps`)."},"followUps":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991,"description":"The follow-up prompts across those tasks."},"plannedFollowUpTurns":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Prompts the planned runs deliver beyond their first: one per follow-up per planned run of its task. Each is a turn of an existing run (a later turn re-reads the conversation before it), never a run: plannedRunCount is unchanged."},"plannedExtraJudgeReads":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Judge-panel reads the steps add: a run of a task with steps is read once per step that has criteria, where a one-step task's run is read once. 0 when the study does not grade with the judge lens."},"stepTimeLimitSeconds":{"description":"How long each step may take, in seconds, when the study declares it (`stepTimeLimitSeconds` on create): a step still running after it ends its run. Absent = no per-step limit.","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["tasks","followUps","plannedFollowUpTurns","plannedExtraJudgeReads"],"additionalProperties":false},"runs":{"type":"object","properties":{"tasks":{"type":"integer","minimum":0,"maximum":9007199254740991},"variants":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"repeats":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"groupAgents":{"type":"array","items":{"type":"object","properties":{"group":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"tasks":{"description":"The tasks this group runs, when a group leaves some out; absent = every group runs `tasks`.","type":"integer","minimum":0,"maximum":9007199254740991}},"required":["group","count"],"additionalProperties":false},"description":"Each group's agents, in group order."}},"required":["tasks","variants","repeats","groupAgents"],"additionalProperties":false,"description":"The run formula's factors: plannedRunCount = tasks × variants × repeats × the sum of groupAgents' counts (every group running the same agents: N agents × K groups). When a group leaves tasks out, each group counts its own: variants × repeats × the sum over the groups of count × its tasks."},"judgePerComparison":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"string"},"subject":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["reference","subject","count"],"additionalProperties":false},"description":"The judge comparisons each planned comparison owes, in plan order; their sum is plannedJudgeComparisons."},"arms":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","description":"The group's run key (defaulted by position when the body names none)."},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The group's label; null = the legacy unlabelled arm, read by its subject."},"role":{"type":"string","description":"'reference' (the others are compared against it) or 'peer'."},"payload":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}],"description":"The EFFECTIVE run payload, after canonicalisation and the delivery force; null = as published."},"cells":{"description":"The group's OWN agents, when the groups list their own (absent = the group runs the matrix).","type":"array","items":{"type":"object","properties":{"harness":{"type":"string"},"model":{"type":"string"},"provider":{"type":"string"},"params":{"description":"The cell's pinned params (its effort among them).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["harness","model"],"additionalProperties":false}}},"required":["key","label","role","payload"],"additionalProperties":false}},"comparisons":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"string"},"subject":{"type":"string"},"oriented":{"type":"boolean"},"basis":{"type":"string","enum":["matched","whole_setup"],"description":"How the two groups are compared: 'matched' = agent by agent on the agents both ran (every agent when they run the same ones); 'whole_setup' = each group's own agents averaged equally per task, paired task by task."},"sharedAgents":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string"},"model":{"type":"string"},"provider":{"type":"string"},"params":{"description":"The cell's pinned params (its effort among them).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["harness","model"],"additionalProperties":false},"description":"The agents both groups run."},"excluded":{"type":"array","items":{"type":"object","properties":{"group":{"type":"string"},"agents":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string"},"model":{"type":"string"},"provider":{"type":"string"},"params":{"description":"The cell's pinned params (its effort among them).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["harness","model"],"additionalProperties":false}}},"required":["group","agents"],"additionalProperties":false},"description":"Per group, its agents OUTSIDE this comparison (empty when the comparison reads every agent)."},"droppedTasks":{"description":"Whole-setup comparisons only: the tasks a group drops because one of its agents went unmeasured there. Known only once the runs exist, so preflight carries null; the published comparison prints the counts.","type":"null"}},"required":["reference","subject","oriented","basis","sharedAgents","excluded"],"additionalProperties":false},"description":"The planned comparisons by group name, each with its basis; an unoriented pair compares two peers."},"boards":{"type":"array","items":{"type":"object","properties":{"group":{"type":"string"},"profile":{"type":"string","enum":["as-published","harness-default","with-setup"]}},"required":["group","profile"],"additionalProperties":false},"description":"For a benchmark study: which groups would seed its public leaderboard, and under which label — one entry per (group, label) its rows would carry, so a group with both model-API and harness agents is listed once under each label."},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false},"description":"Non-blocking findings (create would still accept the body)."},"pacing":{"description":"The LAUNCH PACING this design declares, and what it means for this plan; absent = every run starts at launch.","type":"object","properties":{"maxInFlight":{"description":"As declared.","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"startsPerMinute":{"description":"As declared.","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"unit":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991,"description":"The comparison unit: how many runs start together (every group's run of one agent on one task sample)."},"units":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"How many comparison units the plan holds; the launch starts them in plan order."},"minimumMinutes":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}],"description":"The fewest minutes starting every run takes under startsPerMinute (the first wave starts at launch); null = it depends on how long runs take (maxInFlight alone)."}},"required":["unit","units","minimumMinutes"],"additionalProperties":false},"review":{"type":"object","properties":{"kind":{"type":"string","enum":["model"],"description":"What was asked for: 'model' = one model's reading of what the agent will be given."},"status":{"type":"string","enum":["reviewed","nothing_to_review","unavailable"],"description":"'reviewed': the model read the texts; its findings, if any, are in `issues` under the code design_review.model. 'nothing_to_review': the design holds no text its author wrote (a generated corpus does not exist yet; a pinned benchmark's text is not this author's to rewrite). 'unavailable': the model could not be asked. Only 'reviewed' with no finding means the model found nothing."},"model":{"description":"The model that gave the opinion (status 'reviewed').","type":"string"},"findings":{"description":"How many findings it gave (status 'reviewed').","type":"integer","minimum":0,"maximum":9007199254740991},"textsRead":{"description":"How many of the agent-visible texts the model was given.","type":"integer","minimum":0,"maximum":9007199254740991},"textsTotal":{"description":"How many the design holds: prompts, their variants and follow-up prompts.","type":"integer","minimum":0,"maximum":9007199254740991}},"required":["kind","status"],"additionalProperties":false,"description":"A model's opinion of the design, asked for with `review=model`. Advisory and never a refusal; a second call may answer differently. Absent when no review was asked for."},"quota":{"description":"The caller's plan against this design — 'uses plannedRunCount of your `remaining` runs'. Read-only: checking spends nothing. null = billing could not be read right now; absent = this deployment reports no quota.","anyOf":[{"type":"object","properties":{"dimension":{"type":"string","description":"The billing dimension read: the plan's run counter."},"remaining":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}],"description":"Runs left on the plan; null = the plan does not cap them."},"allowed":{"type":"boolean","description":"Whether plannedRunCount fits what is left."}},"required":["dimension","remaining","allowed"],"additionalProperties":false},{"type":"null"}]}},"required":["ok","depth","form","label","plannedRunCount","plannedJudgeComparisons","runs","judgePerComparison","arms","comparisons","boards","issues"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"benchmark_definition_not_found — `definitionVersionId` names no benchmark definition version this caller can see","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"every refusal create answers, byte for byte (see the create operation); or preflight_review_needs_full_depth — `review` was asked for without depth=full","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"study_preflight_rate_limited — too many design checks from this organization; retry after the given seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:write","x-ora-product":"study","x-ora-cli-shorthands":[{"flag":"agent","field":"matrix","pattern":"{harness}/{provider?}/{model}","description":"An agent every group runs: its harness and its model, with the provider between them for a harness that has several. After a comma, the cell's own settings: params.reasoningEffort=high."},{"flag":"group","field":"arms","pattern":"{label}","defaults":{"config":{}},"description":"A group, by its label. After a comma, what sets it apart: role=reference, config.tools=…, config.addons.<add-on id>=<json or @file.json>, config.brief=<text or @file> (what the agent is told after the task; write \\, for a comma inside it), and agent=<harness>/<model> for an agent of its own."},{"flag":"agent","field":"arms.cells","pattern":"{harness}/{provider?}/{model}","description":"One of a group's own agents."},{"flag":"task","field":"tasks","text":"prompt","description":"An authored task, by its prompt. @file reads the prompt from a file; a .json file holds the whole task (its rubric, its checks, its steps), or a list of them."},{"flag":"run-counting","field":"runCounting","pattern":"{policy?}:{screen?}:{levels}","defaults":{"policy":"hold_back_screened","screen":"test_awareness"},"words":{"count_all":null},"description":"The levels of the test_awareness screen's verdict whose runs are held back, joined by , or +: influenced (the agent changed what it did because it knew it was tested; the recommended setting), or aware,influenced (it noticed at all). A held-back run is left out of the study's numbers as not measured, never as a fail. The policy as `ora study run-counting` prints it works too: hold_back_screened:test_awareness:aware+influenced, or count_all to count every run."}],"x-ora-service":"study-service"}},"/study/v1/studies/rehearsals":{"post":{"operationId":"study.rehearse","summary":"Rehearse a study design: one real run per group, before the study itself","description":"Takes the SAME body a create takes and launches its smallest real version as a study of its own: the first task (`tasks` up to 3), one agent per group (`agents=all`: every agent of each group), one repeat. It catches what a finished study hides: an add-on that did not attach, a skill that did not load, a grader with nothing to grade. These are real runs and are metered as such. A rehearsal can never be published, and belongs to no series. Read what it proved with GET /studies/:id/rehearsal. The body's tasks must already exist (`tasks`, or a pinned benchmark version). `mode=setup` and `mode=mock` start no agent: each group's environment boots exactly as for a real run, with a stand-in in the agent's place. They cannot show that a setup was USED; only a live rehearsal can.","parameters":[{"name":"tasks","in":"query","required":false,"schema":{"description":"How many tasks to rehearse. Default 1.","type":"string","enum":["1","2","3"]}},{"name":"mode","in":"query","required":false,"schema":{"description":"How the rehearsal runs. Default 'live': the real agents, one real run per group. 'setup': no agent is started; each group's environment boots with a stand-in in the agent's place, and nothing is graded. 'mock': as 'setup', and the stand-in gives a fixed answer, so every grader that calls no model grades it. The two that start no agent meter no tokens and are offered only where the deployment's runtime supports them.","type":"string","enum":["live","setup","mock"]}},{"name":"agents","in":"query","required":false,"schema":{"description":"Which agents of each group are rehearsed. Default 'first': one per group, the first of the matrix or of the group's own cells. 'all': every agent the group runs, so a setup that attaches on one agent and not on another is found before the study. Each one is a run of its own: a rehearsal of every agent runs, for each group, its agents times the rehearsed tasks.","type":"string","enum":["first","all"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":160,"description":"Display name for the study (≤160 chars)."},"description":{"description":"Optional longer description shown on the study card.","type":"string","maxLength":4000},"subjectKind":{"default":"custom","description":"What the study measures — defaults to 'custom', the kind new studies are created with. See the enum description for each kind's rules.","type":"string","enum":["skill","tools","addon","custom","benchmark","site"]},"skillRef":{"description":"The skill under test as '<source>:<id>' — sources: 'custom' (an org-authored skill, id from the skills API), 'builtin' (a starter example), 'git' (a git-imported skill). E.g. 'custom:8c1d…'. REQUIRED iff subjectKind 'skill'; forbidden otherwise. Kept for the studies that already exist: subjectKind 'skill' creates no new study here — a group attaches skills through the skills add-on in `arms[].config.addons`; a create body that names no comparisonMode (or a legacy one) and carries it is read as the legacy body it is and answers 422 comparison_mode_removed (docs/studies/comparison-modes/README.md maps each legacy design onto the new ones).","type":"string","minLength":1},"definitionVersionId":{"description":"The benchmark definition VERSION this study pins — REQUIRED iff subjectKind 'benchmark', forbidden otherwise. Read it from a catalog entry's `currentVersionId` (GET /benchmark-definitions/{slug}). A VERSION id, never a slug: a slug follows the definition's current version, and pinning is what keeps this study's corpus — and the board row it may later earn — reproducible. The version's tasks are copied FROZEN at create, so a later publish never changes them. Validated as a uuid at the wire: the column is a Postgres `uuid`, so a malformed value would otherwise reach Hasura and answer 500 instead of 422.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"siteDomain":{"description":"The website a 'site' study is run against — REQUIRED iff subjectKind 'site', forbidden otherwise. A host such as 'example.com': no scheme, no path. Every run of the study is read against it: whether the agent opened a page on this host or a subdomain of it, and whether the site refused the agent. Nothing is added to the prompt for it: a group names the site to its agents, or does not, through its own brief.","type":"string","maxLength":253,"pattern":"^[a-z0-9]([a-z0-9-]*[a-z0-9])?(\\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)+$"},"subjectName":{"description":"Display name of a NON-skill subject (e.g. 'Tavily search', 'monday.com remote MCP'). Required for subjectKind 'tools' / 'addon' / 'custom'; forbidden for 'skill' (the skill's own name is used) and for 'benchmark' (the pinned definition's name is used).","type":"string","minLength":1,"maxLength":120},"armConfig":{"type":"object","properties":{"baseline":{"description":"The baseline arm's run-payload delta. Omitted = a bare run (no skill, no extras).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"]}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}},"treatment":{"description":"The treatment arm's run-payload delta (the thing under test).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"]}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"description":"Frozen per-arm run-payload deltas of a fixed pair of arms (comparisonMode 'ab_vs_none' or 'ab_custom' or 'single'), kept for the studies that already exist: new studies carry each group's configuration in `arms`, and a create body that names no comparisonMode (or a legacy one) and carries it is read as the legacy body it is and answers 422 comparison_mode_removed (docs/studies/comparison-modes/README.md maps each legacy design onto the new ones)."},"lenses":{"default":["judge"],"description":"Which grading lenses to run: 'judge' (LLM judge panel — the default) and/or 'evals' (deterministic @ora/eval-checks grading against each task's `expectations`). Set ONCE at create — there is no update path. `expectations` on a task requires 'evals' to be present here.","minItems":1,"type":"array","items":{"type":"string","enum":["judge","evals","reference","framework","execution","verifier"]}},"judgeSupplementary":{"description":"subjectKind 'benchmark' only: ALSO grade every run with the LLM judge panel. A rubric is authored for each task at create (the study is 'generating' until it is frozen), and runs are then scored for rubric quality and — in an A/B — compared blind, BESIDE the benchmark's own pass rate, which still decides the verdict first. The rubric measures the quality of a response, never its correctness (that is the benchmark's own grader's job). Costs one judge call per run and per pair. Forbidden for every other subject kind, and for a benchmark whose own grading spec already uses the judge.","type":"boolean"},"proposeExpectations":{"description":"Opt in to an LLM proposing 'evals'-lens `expectations` for each AUTO-GENERATED task (temp-0, re-validated against the eval-checks registry — an invalid proposal is dropped, never stored). REQUIRES `lenses` to include 'evals' (422 LENS_MISMATCH otherwise); also IGNORED when `tasks` is supplied (an authored corpus already carries its own explicit expectations). Proposals land on the task in the study's normal 'ready' state for human review before launch — the same discipline as generated rubrics.","type":"boolean"},"comparisonMode":{"default":"multi_arm","description":"The study's design — defaults to 'multi_arm', the mode new studies are created in. See the enum description for each mode.","type":"string","enum":["ab_vs_none","ab_custom","single","multi_arm"]},"subjectBackend":{"description":"FRAMEWORK benchmarks only (e.g. HELM). Omit for the framework's own default — 'harness' where the framework supports it. Ignored by a study no framework runs. An ask the framework cannot honour fails the launch by name.","type":"string","enum":["model","harness"]},"baselineLabel":{"description":"Baseline arm's display label (e.g. 'REST API'). Kept for the studies that already exist (Required iff comparisonMode 'ab_custom'; forbidden otherwise): new studies name each group in `arms[].label`, and a create body that names no comparisonMode (or a legacy one) and carries it is read as the legacy body it is and answers 422 comparison_mode_removed (docs/studies/comparison-modes/README.md maps each legacy design onto the new ones).","type":"string","minLength":1,"maxLength":80},"treatmentLabel":{"description":"Treatment arm's display label (e.g. 'Remote MCP'). Kept for the studies that already exist (Required iff comparisonMode 'ab_custom'; forbidden otherwise): new studies name each group in `arms[].label`, and a create body that names no comparisonMode (or a legacy one) and carries it is read as the legacy body it is and answers 422 comparison_mode_removed (docs/studies/comparison-modes/README.md maps each legacy design onto the new ones).","type":"string","minLength":1,"maxLength":80},"arms":{"description":"Declared groups, in display order, each with its own label and configuration. The number of groups is the comparisonMode's own: 'multi_arm': 1-6 groups (1 group reads as the agent leaderboard: no reference group and no comparison, and it seeds the public leaderboard — when bare, labelled 'as published' on a model-API agent and 'harness default' on a harness agent, and 'with my setup' when it carries one; 2-6 groups are compared over the planned contrasts (with 2, one comparison, oriented only when a group has role 'reference'); only a bare group seeds the public leaderboard).","maxItems":16,"type":"array","items":{"type":"object","properties":{"key":{"description":"The group's key (lowercase, at most 10 characters, not a reserved word); an expectation's `arms` scopes a check to it. Defaults to its position (g1, g2, …).","type":"string"},"label":{"type":"string","minLength":1,"maxLength":80,"description":"The group's display label (unique within the study). Never shown to the judge."},"role":{"default":"peer","description":"'reference' marks the one group the others are compared against; every other group is a 'peer'.","type":"string","enum":["reference","peer"]},"config":{"type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"]}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"brief":{"description":"Text the agent is given after the task, for every task this group runs. At most 600 characters. A group with a brief is a setup of its own, never the subject as published.","type":"string","minLength":1,"maxLength":600}},"description":"The group's run-payload delta (tools and/or add-ons). An empty object is the subject as published."},"cells":{"description":"The group's OWN agents (1-48 harness × model cells), when the groups do not all run the same ones. All or none: either every group names its cells, or none does and every group runs the matrix. When they are named, `matrix` must be their ordered distinct union, and no two groups may name the same set (send that set as the matrix instead). Available where GET /studies/comparison-modes lists the 'per_setup' cell plan as enabled.","minItems":1,"maxItems":48,"type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1,"maxLength":50,"description":"Harness id — the valid set (and each one's models) is GET /catalog; cells are validated against it at create."},"model":{"type":"string","minLength":1,"maxLength":100,"description":"Model id as the harness accepts it — valid ids per harness/provider are in GET /catalog (e.g. 'claude-sonnet-5', 'gpt-5.5')."},"provider":{"description":"Provider qualifier for multi-provider harnesses (e.g. 'anthropic', 'openai', 'google'). Omit to use the harness default.","type":"string","minLength":1,"maxLength":32},"params":{"description":"Provider params pinned for this cell (temperature, reasoningEffort, maxOutputTokens, thinkingBudgetTokens). A cell that pins none runs the provider's own defaults. Offered only where the harness declares support — see GET /catalog.","type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"maxOutputTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reasoningEffort":{"type":"string","enum":["low","medium","high"]},"thinkingBudgetTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"codeMode":{"type":"string","enum":["auto","on","off"]},"toolSearch":{"type":"string","enum":["on","off","directory"]},"location":{"type":"string","pattern":"^[A-Z]{2}$"},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$"}},"additionalProperties":false}},"required":["harness","model"],"description":"One (harness, model, params) cell — every task runs its arm(s) on every cell."}},"skipTasks":{"description":"The tasks this group leaves out, by task number (1 = the first of the body's `tasks`): the group starts no run on them, and a comparison between two groups stands on the tasks both ran. Only with `tasks` in the body. A group may not leave every task out, every task must be run by some group, and two compared groups must share a task.","minItems":1,"type":"array","items":{"type":"integer","minimum":1,"maximum":9007199254740991}}},"required":["label","config"],"additionalProperties":false}},"contrasts":{"description":"Which pairs of declared groups the judge compares. 'vs_reference': every other group against the one group with role 'reference'. 'all_pairs': every pair of groups. 'ladder': each group against the one declared before it. 'multi_arm': 'vs_reference' (every other group against the one group with role 'reference'), 'all_pairs' (every pair of groups, at most 4 groups), 'ladder' (each group against the one declared before it); default 'vs_reference' when a group has role 'reference', else 'all_pairs'.","type":"string","enum":["vs_reference","all_pairs","ladder"]},"modeOptions":{"description":"A comparisonMode's private inputs, validated by that mode. No mode offered here takes any.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"taskCount":{"default":5,"description":"How many tasks to auto-generate (1–100, default 5; generation is ONE model call, so very large corpora are better AUTHORED via `tasks`, which allows up to 500). IGNORED when `tasks` is supplied (the authored corpus defines the count). Runs launched = taskCount × variantsPerTask × repeats × matrix cells × arms (2 arms unless 'single'; the declared groups for 'multi_arm'); the total is capped at 10000.","type":"integer","minimum":1,"maximum":100},"variantsPerTask":{"default":1,"description":"Semantics-preserving paraphrases per task (1-10, default 1). Each variant is a SEPARATE sample of the same question, graded against the same frozen rubric, and both arms see the identical variant set. Sampling phrasing as well as stochastic draw is what lets a comparative claim average over both. Runs = tasks x variants x repeats x cells x arms.","type":"integer","minimum":1,"maximum":10},"repeats":{"default":1,"description":"Identical re-runs of each condition (1-25, default 1). Variants and repeats measure different things: a failed variant could be phrasing sensitivity OR run-to-run instability, and only identical repeats separate them. Set >1 when reliability is a deliverable.","type":"integer","minimum":1,"maximum":25},"tasks":{"description":"AUTHOR the corpus instead of generating it: tasks + rubrics land verbatim and the study goes straight to 'ready' (no LLM generation; the same pre-registration discipline — rubrics are frozen before any run exists). For reference-driven corpora (a ported study's curated tasks). `promise` is still required for non-skill subjects; `taskCount` is derived from this array. Forbidden for subjectKind 'benchmark', whose corpus is copied frozen from the pinned definition version.","minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"prompt":{"type":"string","minLength":1,"description":"The verbatim one-shot prompt dispatched as each run's intent."},"rationale":{"default":"Author-supplied task.","description":"Why this task exercises the promise (public drill-down).","type":"string","minLength":1},"category":{"default":"authored","description":"Free-form short category.","type":"string","minLength":1,"maxLength":40},"requiresWeb":{"default":false,"description":"True only when the task needs live web access.","type":"boolean"},"rubric":{"description":"PRE-REGISTERED acceptance criteria — frozen at create, exactly what the judge panel grades against. REQUIRED (2-8 criteria) when `lenses` includes 'judge' (422 otherwise); OPTIONAL when it doesn't — an evals-only study's judge panel never runs (M4's grading gate), so there is nothing to pre-register criteria FOR. Omitted on an evals-only task → stored as [].","maxItems":8,"type":"array","items":{"type":"string","minLength":1,"maxLength":300}},"variants":{"description":"Explicit paraphrases for THIS task, used instead of generated ones. The authored `prompt` is always variant 0; these follow it. Supply at most variantsPerTask-1.","minItems":1,"maxItems":10,"type":"array","items":{"type":"string","minLength":1}},"expectations":{"description":"Deterministic pass/fail expectations for the 'evals' lens (see @ora/eval-checks' Expectation union) — validated against the registered check kinds at create. REQUIRES `lenses` to include 'evals' (422 LENS_MISMATCH otherwise); the shape itself is validated by the eval-checks registry, not here.","minItems":1,"maxItems":24,"type":"array","items":{"oneOf":[{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"mcp_tool_called","description":"An MCP tool was invoked. Matched on the canonical `steps[].mcp` stamp, never a tool-name grep, so it works across every harness dialect."},"server":{"description":"MCP server name (e.g. \"tavily\"). Omit to match the tool on any server.","type":"string"},"tool":{"type":"string","description":"The MCP tool name as the server exposes it (e.g. \"search\"). Exact match."},"arguments":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"minCalls":{"type":"number"}},"required":["kind","tool"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"tool_not_called","description":"A RESTRAINT check: the named tool was never invoked. Beware vacuous passes — if the tool could never appear on this surface, use a positive check instead."},"tool":{"type":"string"},"mcp":{"type":"object","properties":{"server":{"type":"string"},"tool":{"type":"string"}},"required":["tool"]},"pattern":{"type":"string"}},"required":["kind"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"command_ran","description":"A shell command matching `pattern` was executed."},"pattern":{"type":"string","description":"Regex tested against the command text. Length-capped; backreferences and nested quantifiers are rejected as catastrophic-backtracking risks."}},"required":["kind","pattern"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"skill_loaded","description":"The agent loaded a skill. Observable ONLY under POINTER delivery — authoring this expectation auto-forces it; under inline delivery the body is embedded so no harness emits a skill step."},"slug":{"type":"string","description":"The skill slug, e.g. \"web-research\"."}},"required":["kind","slug"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"file_operation","description":"A file was read, written or edited."},"op":{"description":"Restrict to one verb. Omit to match any file operation.","type":"string","enum":["read","write","edit"]},"path":{"description":"The file path: a literal for exact match, or a matcher such as {\"$contains\":\"report\"} / {\"$pattern\":\"\\\\.md$\"}."}},"required":["kind","path"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"web_fetched","description":"A URL was fetched. Give urlHost for an exact host, urlSite for a host and its subdomains, or urlPattern for a regex over the full URL."},"urlHost":{"description":"Exact host, e.g. \"example.com\".","type":"string"},"urlSite":{"description":"A site: this host or any subdomain of it, e.g. \"example.com\" also matches \"docs.example.com\".","type":"string"},"urlPattern":{"description":"Regex over the whole URL. Same safety limits as command_ran.pattern.","type":"string"}},"required":["kind"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"response_contains","description":"The agent's final answer contains this literal text (case-sensitive substring)."},"text":{"type":"string","description":"Literal substring to find in the answer."},"normalize":{"description":"Compare by meaning rather than by glyph: 'prose' lower-cases BOTH sides, drops URLs, folds unicode dashes and typographic quotes, reads 'N to M' as 'N-M', turns hyphens/underscores into spaces and collapses whitespace. Omit for the literal, case-sensitive comparison.","type":"string","enum":["prose"]}},"required":["kind","text"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"response_matches","description":"The agent's final answer matches this regex."},"pattern":{"type":"string","description":"Regex tested against the answer text. Same safety limits as command_ran.pattern."},"ignoreCase":{"description":"Match case-insensitively. Omit (or false) for the case-sensitive default.","type":"boolean"}},"required":["kind","pattern"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"token_budget","description":"The run stayed within a token budget. ABSTAINS when usage is absent (telemetry-dark) — never fails for missing data."},"maxOutputTokens":{"description":"Ceiling on output tokens.","type":"number"},"maxTotalTokens":{"description":"Ceiling on input+output tokens.","type":"number"}},"required":["kind"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"sequence","description":"CONJUNCTION with ORDER: every branch must match, in this order. Members must be POSITIONAL (step-based) kinds — mcp_tool_called, command_ran, skill_loaded, file_operation, web_fetched. That rule is enforced by the check registry, not by this schema, so a response_* or token_budget member parses here and is refused at create."},"of":{"type":"array","items":{"$ref":"#/components/schemas/Def_0f52adfddc63c1c2862af461b851e029b5a453bd5fc4d3373ecde1dcc23a16b6"}}},"required":["kind","of"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"any_of","description":"DISJUNCTION: passes if ANY branch passes. Use it when one goal has more than one legitimate route (e.g. an MCP tool called directly OR through a proxy tool). ABSTAINS — never fails — when no branch is measurable."},"of":{"type":"array","items":{"$ref":"#/components/schemas/Def_0f52adfddc63c1c2862af461b851e029b5a453bd5fc4d3373ecde1dcc23a16b6"}}},"required":["kind","of"]}]}},"followUps":{"description":"Make this a task with STEPS: a run of it is one run and one conversation, in which the agent receives `prompt` and then each follow-up, in order, each when the turn before it has ended. `prompt`, `rubric` and `expectations` are step 1's; each follow-up has its own. A run reaches its goal when every criterion of every step passed, and the report also says, per step, how many runs reached it and how many of those passed it. Only agents that can continue a conversation can run it (the create is refused for one that cannot, naming it). Paraphrases (`variants`) apply to `prompt` only. Frozen at create.","minItems":1,"maxItems":8,"type":"array","items":{"type":"object","properties":{"prompt":{"type":"string","minLength":1,"description":"Delivered to the agent, in the same conversation, when the turn before it has ended."},"rubric":{"description":"This step's pre-registered criteria, graded on this step's own turn. Omitted: the judge grades nothing for it.","maxItems":8,"type":"array","items":{"type":"string","minLength":1,"maxLength":300}},"expectations":{"description":"This step's deterministic expectations, checked against this step's own turn. REQUIRES `lenses` to include 'evals'.","minItems":1,"maxItems":24,"type":"array","items":{"oneOf":[{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"mcp_tool_called","description":"An MCP tool was invoked. Matched on the canonical `steps[].mcp` stamp, never a tool-name grep, so it works across every harness dialect."},"server":{"description":"MCP server name (e.g. \"tavily\"). Omit to match the tool on any server.","type":"string"},"tool":{"type":"string","description":"The MCP tool name as the server exposes it (e.g. \"search\"). Exact match."},"arguments":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"minCalls":{"type":"number"}},"required":["kind","tool"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"tool_not_called","description":"A RESTRAINT check: the named tool was never invoked. Beware vacuous passes — if the tool could never appear on this surface, use a positive check instead."},"tool":{"type":"string"},"mcp":{"type":"object","properties":{"server":{"type":"string"},"tool":{"type":"string"}},"required":["tool"]},"pattern":{"type":"string"}},"required":["kind"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"command_ran","description":"A shell command matching `pattern` was executed."},"pattern":{"type":"string","description":"Regex tested against the command text. Length-capped; backreferences and nested quantifiers are rejected as catastrophic-backtracking risks."}},"required":["kind","pattern"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"skill_loaded","description":"The agent loaded a skill. Observable ONLY under POINTER delivery — authoring this expectation auto-forces it; under inline delivery the body is embedded so no harness emits a skill step."},"slug":{"type":"string","description":"The skill slug, e.g. \"web-research\"."}},"required":["kind","slug"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"file_operation","description":"A file was read, written or edited."},"op":{"description":"Restrict to one verb. Omit to match any file operation.","type":"string","enum":["read","write","edit"]},"path":{"description":"The file path: a literal for exact match, or a matcher such as {\"$contains\":\"report\"} / {\"$pattern\":\"\\\\.md$\"}."}},"required":["kind","path"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"web_fetched","description":"A URL was fetched. Give urlHost for an exact host, urlSite for a host and its subdomains, or urlPattern for a regex over the full URL."},"urlHost":{"description":"Exact host, e.g. \"example.com\".","type":"string"},"urlSite":{"description":"A site: this host or any subdomain of it, e.g. \"example.com\" also matches \"docs.example.com\".","type":"string"},"urlPattern":{"description":"Regex over the whole URL. Same safety limits as command_ran.pattern.","type":"string"}},"required":["kind"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"response_contains","description":"The agent's final answer contains this literal text (case-sensitive substring)."},"text":{"type":"string","description":"Literal substring to find in the answer."},"normalize":{"description":"Compare by meaning rather than by glyph: 'prose' lower-cases BOTH sides, drops URLs, folds unicode dashes and typographic quotes, reads 'N to M' as 'N-M', turns hyphens/underscores into spaces and collapses whitespace. Omit for the literal, case-sensitive comparison.","type":"string","enum":["prose"]}},"required":["kind","text"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"response_matches","description":"The agent's final answer matches this regex."},"pattern":{"type":"string","description":"Regex tested against the answer text. Same safety limits as command_ran.pattern."},"ignoreCase":{"description":"Match case-insensitively. Omit (or false) for the case-sensitive default.","type":"boolean"}},"required":["kind","pattern"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"token_budget","description":"The run stayed within a token budget. ABSTAINS when usage is absent (telemetry-dark) — never fails for missing data."},"maxOutputTokens":{"description":"Ceiling on output tokens.","type":"number"},"maxTotalTokens":{"description":"Ceiling on input+output tokens.","type":"number"}},"required":["kind"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"sequence","description":"CONJUNCTION with ORDER: every branch must match, in this order. Members must be POSITIONAL (step-based) kinds — mcp_tool_called, command_ran, skill_loaded, file_operation, web_fetched. That rule is enforced by the check registry, not by this schema, so a response_* or token_budget member parses here and is refused at create."},"of":{"type":"array","items":{"$ref":"#/components/schemas/Def_0f52adfddc63c1c2862af461b851e029b5a453bd5fc4d3373ecde1dcc23a16b6"}}},"required":["kind","of"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"any_of","description":"DISJUNCTION: passes if ANY branch passes. Use it when one goal has more than one legitimate route (e.g. an MCP tool called directly OR through a proxy tool). ABSTAINS — never fails — when no branch is measurable."},"of":{"type":"array","items":{"$ref":"#/components/schemas/Def_0f52adfddc63c1c2862af461b851e029b5a453bd5fc4d3373ecde1dcc23a16b6"}}},"required":["kind","of"]}]}}},"required":["prompt"]}},"files":{"description":"Files put into the agent's workspace before EVERY run of this task starts (1-16), the same for every group, agent, variant and repeat. Each is `{ path, content }` (inline text), `{ path, url, sha256, sizeBytes }` (fetched in the run's pod before the agent starts and admitted only when its bytes match the size and the lowercase hex SHA-256: for anything binary or large), or `{ path, repo: { url, ref, subpath? } }` (a public https git repository at a full commit, cloned into the directory `path`; a repository that needs a credential is refused). `path` is relative to the workspace root, with no `.` or `..` segment, and not under a dot entry of the root. Only agents that run in a pod of their own can be given files (the create is refused for one that cannot, naming it). Task text, like `prompt`: withheld with it when the task is `private`. Frozen at create.","minItems":1,"maxItems":16,"type":"array","items":{"anyOf":[{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":256},"content":{"type":"string","minLength":1,"maxLength":64000}},"required":["path","content"],"additionalProperties":false},{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":256},"url":{"type":"string","maxLength":4096,"format":"uri"},"sha256":{"type":"string","pattern":"^[0-9a-f]{64}$"},"sizeBytes":{"type":"integer","exclusiveMinimum":0,"maximum":26214400}},"required":["path","url","sha256","sizeBytes"],"additionalProperties":false},{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":256},"repo":{"type":"object","properties":{"url":{"type":"string","maxLength":2048,"format":"uri"},"ref":{"type":"string"},"subpath":{"type":"string","minLength":1,"maxLength":256}},"required":["url","ref"],"additionalProperties":false}},"required":["path","repo"],"additionalProperties":false}]}},"private":{"description":"Keep THIS task's text off the published page: its prompt, rationale, rubric, paraphrases and expectations (the evals lens's patterns) are never served by a public page or the public API, which name the task and report every measurement of it. Your organization still sees the whole task. Frozen at create — the same withholding a licence-restricted benchmark corpus gets. Default false (published).","type":"boolean"}},"required":["prompt"]}},"subset":{"description":"Run a deterministic random SAMPLE of the corpus instead of all of it — the way a 1,319-item benchmark becomes a study you can afford. The sample is a pure function of (corpus, count, seed): the server records the seed on the study, so the exact sample is re-derivable forever. Omit it to run every task.","type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":500,"description":"Run a deterministic random SAMPLE of this many tasks instead of the whole corpus (1-500). Ignored when the corpus is already this small or smaller."},"seed":{"description":"The sampling seed. Supply one to reproduce an earlier study's exact sample; omit it and the server mints one and records it on the study, so the sample is always re-derivable.","type":"string","minLength":1,"maxLength":64}},"required":["count"],"additionalProperties":false},"pacing":{"description":"LAUNCH PACING — start this study's runs gradually instead of all at once, for groups that call a rate-limited service (an API that answers 429 past N requests a minute). Every group's run of one agent on one task sample (a comparison unit) always starts together, in the same wave, so a comparison is never confounded by time; each value must therefore be at least the number of groups that run one agent. Declare maxInFlight, startsPerMinute, or both (both then hold). Frozen at create. Omit it, or send null, for no pacing: every run starts at launch.","anyOf":[{"type":"object","properties":{"maxInFlight":{"description":"At most this many of the study's runs unfinished at once — queued, pending or running (1-500). The next runs start as earlier ones finish.","type":"integer","minimum":1,"maximum":500},"startsPerMinute":{"description":"At most this many of the study's runs started in any 60-second window (1-600).","type":"integer","minimum":1,"maximum":600}},"additionalProperties":false,"description":"LAUNCH PACING — start this study's runs gradually instead of all at once, for groups that call a rate-limited service (an API that answers 429 past N requests a minute). Every group's run of one agent on one task sample (a comparison unit) always starts together, in the same wave, so a comparison is never confounded by time; each value must therefore be at least the number of groups that run one agent. Declare maxInFlight, startsPerMinute, or both (both then hold). Frozen at create. Omit it, or send null, for no pacing: every run starts at launch."},{"type":"null"}]},"stepTimeLimitSeconds":{"description":"How long EACH step of a task with steps may take, in seconds (30-7200). A step still running after it ends the run: the run fails, its reason names the step and the limit, and the steps after it are not given. Without it a step is bounded only by the run's own limit, so one slow step can use the time the later steps were meant to have. It applies to every task with steps of the study; a one-step task's run is unchanged. Refused when no task of the study has steps. Omit it, or send null, for no per-step limit.","anyOf":[{"type":"integer","minimum":30,"maximum":7200},{"type":"null"}]},"screens":{"type":"array","items":{"type":"string","enum":["test_awareness","site_access"]},"description":"Which run screens this study runs. A screen is a per-run check of whether the run is valid evidence, kept apart from grading: it never changes a grade. Omitted = the deployment's default. Frozen at launch, like lenses. 'test_awareness': after a run ends, a judge panel reads its full trace for signs that the agent noticed it was being tested ('aware') or changed how it worked because of that ('influenced'), and records the quoted evidence with the classifier's version. 'site_access' (a study whose subject is a website): whether the site refused the agent's requests ('blocked') or not ('open'), with the refused URLs."},"series":{"description":"The SERIES this study belongs to: studies that ask the same question at different moments (every commit of a branch). A gate's series baseline is found in it. Immutable. Omit for a study of no series.","type":"string","pattern":"^[a-z0-9][a-z0-9._/-]{0,119}$"},"ref":{"description":"Where the study was taken: the commit, branch and pull request. A label, immutable.","type":"object","properties":{"commit":{"description":"The commit the study was taken at (a SHA).","type":"string","minLength":1,"maxLength":64},"branch":{"description":"The branch it was taken on, e.g. 'main'. A gate's series baseline filters on it.","type":"string","minLength":1,"maxLength":200},"pr":{"description":"The pull request number, when it was taken for one.","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"url":{"description":"A link back to the change (the commit or pull request page).","type":"string","maxLength":500,"format":"uri"}},"additionalProperties":false},"carry":{"description":"Carry the runs of jobs that cannot have changed from the series' previous comparable study instead of running them again (needs `series`). Each carried run says so. Omit to run every job.","type":"object","properties":{"from":{"type":"string","enum":["series"],"description":"series: the series' newest completed study made before this one."},"maxAgeDays":{"default":7,"description":"A run older than this many days is run again, never carried.","type":"integer","minimum":1,"maximum":30}},"required":["from"],"additionalProperties":false},"runCounting":{"anyOf":[{"type":"object","properties":{"policy":{"type":"string","const":"hold_back_screened"},"screen":{"type":"string","enum":["test_awareness"],"description":"The screen whose verdicts decide. Today: 'test_awareness'."},"levels":{"minItems":1,"type":"array","items":{"type":"string","enum":["aware","influenced"]},"description":"The verdict levels held back. A run the screen could not judge is never held back."}},"required":["policy","screen","levels"],"additionalProperties":false,"description":"Which of the study's runs its numbers count. Absent or null = every run. 'hold_back_screened' leaves out the runs the named screen flagged at one of `levels`: each is a missing measurement with a named reason, never a fail, and the count held back is stated beside every figure."},{"type":"null"}]},"behaviors":{"maxItems":5,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{1,29}$","description":"A short id for the behavior, lowercase snake (`deleted_files`). Its verdicts are stored and queried under `b_<key>`."},"name":{"type":"string","minLength":1,"maxLength":80,"description":"What a reader sees: \"Deleted files it was not asked to\"."},"question":{"type":"string","minLength":10,"maxLength":400,"description":"One yes-or-no question about a single run that a judge can answer from its trace: \"Did the agent …?\"."}},"required":["key","name","question"],"additionalProperties":false},"description":"Custom behaviors: up to 5 yes-or-no questions a judge panel answers about every finished run, with quoted evidence. A behavior is disclosure about a run, like a screen: it has no score and never changes a grade. Frozen at launch. Each costs one panel read per run."},"matrix":{"minItems":1,"maxItems":48,"type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1,"maxLength":50,"description":"Harness id — the valid set (and each one's models) is GET /catalog; cells are validated against it at create."},"model":{"type":"string","minLength":1,"maxLength":100,"description":"Model id as the harness accepts it — valid ids per harness/provider are in GET /catalog (e.g. 'claude-sonnet-5', 'gpt-5.5')."},"provider":{"description":"Provider qualifier for multi-provider harnesses (e.g. 'anthropic', 'openai', 'google'). Omit to use the harness default.","type":"string","minLength":1,"maxLength":32},"params":{"description":"Provider params pinned for this cell (temperature, reasoningEffort, maxOutputTokens, thinkingBudgetTokens). A cell that pins none runs the provider's own defaults. Offered only where the harness declares support — see GET /catalog.","type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"maxOutputTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reasoningEffort":{"type":"string","enum":["low","medium","high"]},"thinkingBudgetTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"codeMode":{"type":"string","enum":["auto","on","off"]},"toolSearch":{"type":"string","enum":["on","off","directory"]},"location":{"type":"string","pattern":"^[A-Z]{2}$"},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$"}},"additionalProperties":false}},"required":["harness","model"],"description":"One (harness, model, params) cell — every task runs its arm(s) on every cell."},"description":"The (harness, model) cells to fan out over — 1 to 48 cells (a full catalog sweep fits)."},"promise":{"description":"The claim under test, driving task generation and the pre-registered rubrics (e.g. 'Tavily search finds fresher, better-sourced answers than no web access'). Optional for subjectKind 'skill' (omitted → extracted from the skill body); forbidden for 'benchmark' (derived from the pinned definition's description); REQUIRED for every other kind.","type":"string","minLength":1,"maxLength":2000}},"required":["name","matrix"]}}}},"responses":{"200":{"description":"Rehearse a study design: one real run per group, before the study itself","content":{"application/json":{"schema":{"type":"object","properties":{"rehearsal":{"type":"object","properties":{"studyId":{"type":"string","description":"The rehearsal is a study of its own: read it, stream it and delete it like any other."},"name":{"type":"string"},"status":{"type":"string"},"tasks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many tasks it runs."},"mode":{"type":"string","description":"The mode it runs in."},"agents":{"type":"string","description":"Which agents of each group it runs: 'first' (one per group) or 'all'."}},"required":["studyId","name","status","tasks","mode","agents"],"additionalProperties":false}},"required":["rehearsal"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"every refusal create answers, and study_rehearsal_unsupported when the body's tasks are still to be generated, or the mode starts no agent and this deployment or one of the body's agents cannot be rehearsed that way","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:write","x-ora-product":"study","x-ora-cli-shorthands":[{"flag":"agent","field":"matrix","pattern":"{harness}/{provider?}/{model}","description":"An agent every group runs: its harness and its model, with the provider between them for a harness that has several. After a comma, the cell's own settings: params.reasoningEffort=high."},{"flag":"group","field":"arms","pattern":"{label}","defaults":{"config":{}},"description":"A group, by its label. After a comma, what sets it apart: role=reference, config.tools=…, config.addons.<add-on id>=<json or @file.json>, config.brief=<text or @file> (what the agent is told after the task; write \\, for a comma inside it), and agent=<harness>/<model> for an agent of its own."},{"flag":"agent","field":"arms.cells","pattern":"{harness}/{provider?}/{model}","description":"One of a group's own agents."},{"flag":"task","field":"tasks","text":"prompt","description":"An authored task, by its prompt. @file reads the prompt from a file; a .json file holds the whole task (its rubric, its checks, its steps), or a list of them."},{"flag":"run-counting","field":"runCounting","pattern":"{policy?}:{screen?}:{levels}","defaults":{"policy":"hold_back_screened","screen":"test_awareness"},"words":{"count_all":null},"description":"The levels of the test_awareness screen's verdict whose runs are held back, joined by , or +: influenced (the agent changed what it did because it knew it was tested; the recommended setting), or aware,influenced (it noticed at all). A held-back run is left out of the study's numbers as not measured, never as a fail. The policy as `ora study run-counting` prints it works too: hold_back_screened:test_awareness:aware+influenced, or count_all to count every run."}],"x-ora-service":"study-service"}},"/study/v1/studies/series":{"get":{"operationId":"study.series","summary":"List the organization's study series","description":"Every series key the organization's studies carry, with how many studies each has and when its newest was created.","responses":{"200":{"description":"List the organization's study series","content":{"application/json":{"schema":{"type":"object","properties":{"series":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"studies":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"newestAt":{"type":"string"}},"required":["key","studies","newestAt"],"additionalProperties":false}},"capped":{"type":"boolean","description":"The organization has more series studies than one read folds: the counts are a floor."}},"required":["series","capped"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:read","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/studies/series/trend":{"get":{"operationId":"study.seriesTrend","summary":"Read one series as a trend: each study's figure per group, split where the studies stop being comparable","description":"The studies of one series, oldest first, each with every group's figure on one metric and its conservative interval. The series is cut into SEGMENTS of consecutive comparable studies (same tasks and checks, lenses, judge panel, screen classifier, counting policy and agents); each boundary says which of those changed. A change against the previous study is stated only inside a segment. A study still running or grading is listed as `pending` with no figure. Reads the series' newest studies (`truncated` says when there are more).","parameters":[{"name":"series","in":"query","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9._/-]{0,119}$"}},{"name":"metric","in":"query","required":false,"schema":{"description":"Default: the first of benchmark, goal, evals, quality, rubric, completion the newest settled study measured. `every_agent` (the share of a group's tasks every one of its planned agents passes) only when named.","type":"string","enum":["benchmark","goal","evals","quality","rubric","completion","every_agent"]}},{"name":"branch","in":"query","required":false,"schema":{"description":"Only studies taken on this branch (`ref.branch`).","type":"string","maxLength":200}}],"responses":{"200":{"description":"Read one series as a trend: each study's figure per group, split where the studies stop being comparable","content":{"application/json":{"schema":{"type":"object","properties":{"series":{"type":"string"},"metric":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"family":{"type":"string"}},"required":["key","label","family"],"additionalProperties":false},"countingPolicy":{"type":"string","description":"Which runs the series' newest study counts ('count_all': every run). A study that counted differently starts another segment."},"studies":{"type":"array","items":{"type":"object","properties":{"studyId":{"type":"string"},"name":{"type":"string"},"createdAt":{"type":"string"},"ref":{"anyOf":[{"type":"object","properties":{"commit":{"description":"The commit the study was taken at (a SHA).","type":"string","minLength":1,"maxLength":64},"branch":{"description":"The branch it was taken on, e.g. 'main'. A gate's series baseline filters on it.","type":"string","minLength":1,"maxLength":200},"pr":{"description":"The pull request number, when it was taken for one.","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"url":{"description":"A link back to the change (the commit or pull request page).","type":"string","maxLength":500,"format":"uri"}},"additionalProperties":false},{"type":"null"}]},"state":{"type":"string","enum":["settled","pending"],"description":"`pending` = runs or grading are still owed: the study is listed and carries no figure."},"owed":{"type":"array","items":{"type":"string"}},"segment":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"The 1-based comparable segment it belongs to; null while pending."},"heldBackRuns":{"description":"Runs the study's own counting policy held back from its figures. Absent = none.","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"groups":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"In the metric's own unit: 0..1 for a rate, 0..100 for a score. null = not measured, or the study is pending."},"interval":{"anyOf":[{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}]},{"type":"null"}],"description":"The conservative 95% interval the gate reads."},"tasks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Tasks every one of the group's agents measured."},"runs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"change":{"anyOf":[{"type":"object","properties":{"effect":{"type":"number","description":"This study minus the previous one of its segment, in pp (a rate) or points (a score)."},"unit":{"type":"string"},"interval":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}]},"tasks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Tasks both studies measured: the change is paired on these."}},"required":["effect","unit","interval","tasks"],"additionalProperties":false},{"type":"null"}],"description":"The change from the previous study OF THE SAME SEGMENT. null for a segment's first study: no change is stated across a boundary."}},"required":["key","label","value","interval","tasks","runs","change"],"additionalProperties":false}}},"required":["studyId","name","createdAt","ref","state","owed","segment","groups"],"additionalProperties":false},"description":"Oldest first."},"segments":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"comparabilityKey":{"type":"string"},"studyIds":{"type":"array","items":{"type":"string"}},"differsFromPrevious":{"type":"array","items":{"type":"string","enum":["corpus","lenses","graders","classifiers","countingPolicy","agents"]},"description":"What changed against the segment before it: corpus (the tasks and their checks), lenses, graders, classifiers, countingPolicy, agents."}},"required":["index","comparabilityKey","studyIds","differsFromPrevious"],"additionalProperties":false},"description":"Consecutive studies that are the same measurement. A figure is comparable only inside one."},"truncated":{"type":"boolean","description":"The series has more studies than one trend reads: these are its newest."}},"required":["series","metric","countingPolicy","studies","segments","truncated"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"`series` is missing or not a series key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:read","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/studies/{id}":{"get":{"operationId":"study.get","summary":"Study detail: status to poll, tasks + rubrics, per-run facts, live aggregate + verdict","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The study's uuid (from create or list)."},"example":"1f7e4d1c-4b2a-4f3e-9d8c-5a6b7c8d9e0f"}],"responses":{"200":{"description":"Study detail: status to poll, tasks + rubrics, per-run facts, live aggregate + verdict","content":{"application/json":{"schema":{"type":"object","properties":{"study":{"type":"object","properties":{"id":{"type":"string"},"executiveSummary":{"anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryDraft":{"description":"A PUBLISHED study's summary held for review, never shown on the public page: what `studies.regenerateSummary` writes on a published study (and the first summary of a published study nothing asked for). `studies.publish` makes exactly this text the published `executiveSummary`, while the readout it was written from is still current; otherwise publish regenerates. Absent where the product has no review drafts.","anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryRequest":{"description":"A summary an explicit act asked for and not yet written: 'live' — a publish, a re-open, or a regenerate on an UNPUBLISHED completed study owes the summary in place (the public page, once published); 'draft' — a regenerate on a published study owes the review draft one. Null once the request is answered — poll `studies.get` until it is: by the written summary (`executiveSummary` or `executiveSummaryDraft`), by a later act that superseded it (a publish, a newer regenerate — its own write answers it), or as unavailable (`executiveSummaryUnavailableAt` set). While the automatic retries back off after a failed attempt it stays pending. Absent where the product has no review drafts.","anyOf":[{"type":"string","enum":["live","draft"]},{"type":"null"}]},"executiveSummaryRequestedAt":{"description":"When `executiveSummaryRequest` was made.","anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryUnavailableAt":{"description":"When the last summary request was answered as UNAVAILABLE: every attempt the retry policy allows on the study's readout failed, so no summary will be written for it until the readout changes (runs added, a re-run, a regrade) or someone regenerates or publishes again. Null otherwise; cleared by a new request or a written summary. Absent where the product has no review drafts.","anyOf":[{"type":"string"},{"type":"null"}]},"plannedRunCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The exact number of runs `launch` will fan out (taskCount × variantsPerTask × repeats × matrix cells × arms). Check this BEFORE launching."},"organizationId":{"type":"string"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"slug":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillRef":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillSlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillName":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillPromise":{"type":"string"},"subjectKind":{"type":"string","enum":["skill","tools","addon","custom","benchmark","site"],"description":"What the study measures. New studies: 'custom': any composition of skills, tools and add-ons, with its own subjectName and promise — under a comparisonMode that declares its groups, each group's configuration is in `arms`. 'benchmark': a pinned version of a catalog benchmark definition (requires definitionVersionId); the corpus is copied frozen from that version. 'site': a website (requires siteDomain, and a comparisonMode that declares its groups); the tasks are things to get done there, and every run is read against the site: whether the agent opened a page of it, and whether the site refused the agent. Every comparisonMode new studies use applies to 'benchmark': 'multi_arm' runs each declared group's setup: 1 group reads as the agent leaderboard: no reference group and no comparison, and it seeds the public leaderboard — when bare, labelled 'as published' on a model-API agent and 'harness default' on a harness agent, and 'with my setup' when it carries one; 2-6 groups are compared over the planned contrasts (with 2, one comparison, oriented only when a group has role 'reference'); only a bare group seeds the public leaderboard. A group that carries a setup is not the benchmark's bare protocol, so it does not seed the public leaderboard. 'skill', 'tools' and 'addon' are kept for the studies that already exist: under a comparisonMode new studies use, one answers 422 study_subject_invalid, and a create body that names no comparisonMode (or a legacy one) and carries it is read as the legacy body it is and answers 422 comparison_mode_removed (docs/studies/comparison-modes/README.md maps each legacy design onto the new ones)."},"subjectName":{"anyOf":[{"type":"string"},{"type":"null"}]},"siteDomain":{"description":"The website a 'site' study is run against (its host); absent for every other subject kind.","type":"string"},"subjectLabel":{"type":"string"},"armConfig":{"type":"object","properties":{"baseline":{"description":"The baseline arm's run-payload delta. Omitted = a bare run (no skill, no extras).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false},"treatment":{"description":"The treatment arm's run-payload delta (the thing under test).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"additionalProperties":false,"description":"Frozen per-arm run-payload deltas of a fixed pair of arms (comparisonMode 'ab_vs_none' or 'ab_custom' or 'single'), kept for the studies that already exist: new studies carry each group's configuration in `arms`, and a create body that names no comparisonMode (or a legacy one) and carries it is read as the legacy body it is and answers 422 comparison_mode_removed (docs/studies/comparison-modes/README.md maps each legacy design onto the new ones)."},"comparisonMode":{"type":"string","enum":["ab_vs_none","ab_custom","single","multi_arm"],"description":"The study's design. New studies: 'multi_arm' (Groups): 1-6 groups declared in `arms`, each with its own label and configuration — 1 group reads as the agent leaderboard: no reference group and no comparison, and it seeds the public leaderboard — when bare, labelled 'as published' on a model-API agent and 'harness default' on a harness agent, and 'with my setup' when it carries one; 2-6 groups are compared over the planned contrasts (with 2, one comparison, oriented only when a group has role 'reference'); only a bare group seeds the public leaderboard; which pairs are judged is `contrasts`. 'ab_vs_none', 'ab_custom' and 'single' are kept for the studies that already exist: a create naming one answers 422 comparison_mode_removed (docs/studies/comparison-modes/README.md maps each legacy design onto the new ones)."},"subjectBackend":{"anyOf":[{"type":"string","enum":["model","harness"],"description":"What answers a FRAMEWORK benchmark's requests: 'harness' — each request is answered by the cell's agent harness (the model inside its own loop, with the arm's tools, add-ons and skills), one agent run per request; 'model' — the framework's own client calls the cell's model directly and the cell's harness is not measured. Resolved once per study and recorded on every run."},{"type":"null"}]},"environmentExecutionPolicy":{"type":"string","enum":["legacy-v1","inside-v1"]},"importedFrom":{"type":"string"},"baselineLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"treatmentLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"promiseMetrics":{"type":"array","items":{"type":"object","properties":{"metric":{"type":"string","enum":["total_tokens","output_tokens","cost_usd","duration_ms","num_turns","success_rate","completion_rate","goal_rate"]},"direction":{"type":"string","enum":["down","up"]},"label":{"type":"string","minLength":1,"maxLength":120}},"required":["metric","direction","label"],"additionalProperties":false}},"matrix":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1,"maxLength":50,"description":"Harness id — the valid set (and each one's models) is GET /catalog; cells are validated against it at create."},"model":{"type":"string","minLength":1,"maxLength":100,"description":"Model id as the harness accepts it — valid ids per harness/provider are in GET /catalog (e.g. 'claude-sonnet-5', 'gpt-5.5')."},"provider":{"description":"Provider qualifier for multi-provider harnesses (e.g. 'anthropic', 'openai', 'google'). Omit to use the harness default.","type":"string","minLength":1,"maxLength":32},"params":{"description":"Provider params pinned for this cell (temperature, reasoningEffort, maxOutputTokens, thinkingBudgetTokens). A cell that pins none runs the provider's own defaults. Offered only where the harness declares support — see GET /catalog.","type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"maxOutputTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reasoningEffort":{"type":"string","enum":["low","medium","high"]},"thinkingBudgetTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"codeMode":{"type":"string","enum":["auto","on","off"]},"toolSearch":{"type":"string","enum":["on","off","directory"]},"location":{"type":"string","pattern":"^[A-Z]{2}$"},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$"}},"additionalProperties":false}},"required":["harness","model"],"additionalProperties":false,"description":"One (harness, model, params) cell — every task runs its arm(s) on every cell."}},"lenses":{"minItems":1,"type":"array","items":{"type":"string","enum":["judge","evals","reference","framework","execution","verifier"]},"description":"Which grading lenses this study runs under. Defaults to ['judge'] at create and stays editable while status is 'ready' (frozen at launch, like task expectations/rubrics). 'judge': the LLM judge panel (rubric grades + blind pairwise). 'evals': the deterministic @ora/eval-checks engine, scored against each task's authored expectations. 'reference': the static-QA lens — an answer extracted from the response and matched against the task's own reference key, scored 1/0 (spec §6.4). 'framework': the benchmark's OWN framework (HELM today) reports the metrics, mapped verbatim into a section rather than re-averaged (SP2 Task 9). 'execution': the candidate's code is extracted from the response and run against the task's own tests inside a sandboxed, network-less runner image (SP2 Task 16)."},"judgeSupplementary":{"type":"boolean"},"taskCount":{"type":"number"},"variantsPerTask":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Semantics-preserving paraphrases sampled per task (1-5; mirrors the create body's variantsPerTask). Absent at create defaults to 1 — every response reports a concrete value, including studies created before sampling existed."},"repeats":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Identical re-runs sampled per condition (1-10; mirrors the create body's repeats). Absent at create defaults to 1 — every response reports a concrete value, including studies created before sampling existed."},"subset":{"anyOf":[{"type":"object","properties":{"count":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"seed":{"type":"string","minLength":1},"of":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["count","seed","of"],"additionalProperties":false},{"type":"null"}]},"status":{"type":"string"},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"preparation":{"anyOf":[{"type":"object","properties":{"since":{"type":"string"},"progressAt":{"type":"string"},"launchedBy":{"type":"object","properties":{"userId":{"type":"string"},"role":{"type":"string"}},"additionalProperties":false},"waitingOn":{"type":"array","items":{"type":"object","properties":{"imageKey":{"type":"string"},"buildId":{"type":"string"},"stage":{"type":"string","enum":["image","snapshot"]},"retry":{"type":"object","properties":{"failedAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maxAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"notBefore":{"type":"string"},"lastFailure":{"type":"string"}},"required":["failedAttempts","maxAttempts","notBefore","lastFailure"],"additionalProperties":false}},"required":["imageKey","buildId"],"additionalProperties":false}}},"required":["since","launchedBy","waitingOn"],"additionalProperties":false},{"type":"null"}]},"visibility":{"type":"string","enum":["private","org","link","public"],"description":"Who may read this study: private (creator + org owners) | org (the whole org) | link (anyone holding ?share=<token>, unlisted) | public (everyone, listed)."},"visibilityChangedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"visibilityChangedBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"shareToken":{"anyOf":[{"type":"string"},{"type":"null"}]},"lowSampleOverride":{"type":"boolean","description":"True iff this study was explicitly published below the sample-size floor (spec A6) — the published page shows a low-sample badge when set."},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"verdict":{},"definitionVersionId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The benchmark definition VERSION this study pinned at create — non-null only for subjectKind 'benchmark'. Its corpus was copied frozen from that version, so the study stays reproducible when the definition publishes a newer one."},"runnerKind":{"type":"string","enum":["ora-runs","batch-job"],"description":"Which executor fans this study out: 'ora-runs' (the ora runs spine) or 'batch-job' (a built runner image)."},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"liveUntil":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When this study's live stream stops being held open (null while it is still running). Attaching before it yields the remaining post-terminal frames (gradings, recordings, refined verdicts)."},"launch":{"description":"The launch record: planned / created runs, the runs it could not create (missing.retryable: launching again creates them; missing.refused: a re-launch is refused the same way) with one note per cell and group, and the fan-out's state (fanning_out | deferred | settled). Null for a study launched before records existed.","anyOf":[{"type":"object","properties":{"attempt":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"state":{"type":"string","enum":["fanning_out","deferred","settled"]},"startedAt":{"type":"string"},"progressAt":{"type":"string"},"planned":{"type":"integer","minimum":0,"maximum":9007199254740991},"created":{"type":"integer","minimum":0,"maximum":9007199254740991},"missing":{"type":"object","properties":{"retryable":{"type":"integer","minimum":0,"maximum":9007199254740991},"refused":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["retryable","refused"],"additionalProperties":false},"notes":{"type":"array","items":{"type":"string"}},"settledAt":{"type":"string"},"pacing":{"type":"object","properties":{"waiting":{"type":"integer","minimum":0,"maximum":9007199254740991},"nextUnit":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"nextWaveAt":{"type":"string"},"emptyWaves":{"type":"integer","minimum":0,"maximum":9007199254740991},"stopped":{"type":"string"}},"required":["waiting"],"additionalProperties":false},"recovery":{"type":"object","properties":{"state":{"type":"string","enum":["retrying","needs_attention"]},"attempts":{"type":"integer","minimum":0,"maximum":9007199254740991},"lastAttemptAt":{"type":"string"},"nextAttemptAt":{"type":"string"},"reason":{"type":"string"}},"required":["state","attempts"],"additionalProperties":false},"stopped":{"type":"object","properties":{"at":{"type":"string"},"notStarted":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["at","notStarted"],"additionalProperties":false}},"required":["attempt","state","startedAt","progressAt"],"additionalProperties":false},{"type":"null"}]},"pacing":{"description":"How fast this study may START its runs, as declared at create: maxInFlight (at most N of its runs unfinished at once) and/or startsPerMinute (at most N started in any 60 s). Its runs start in waves of whole comparison units (every group's run of one agent on one task sample, together); the launch record's `pacing` says how many wait for a later wave. Null = every run started at launch.","anyOf":[{"type":"object","properties":{"maxInFlight":{"description":"At most this many of the study's runs unfinished at once — queued, pending or running (1-500). The next runs start as earlier ones finish.","type":"integer","minimum":1,"maximum":500},"startsPerMinute":{"description":"At most this many of the study's runs started in any 60-second window (1-600).","type":"integer","minimum":1,"maximum":600}},"additionalProperties":false},{"type":"null"}]},"relaunchable":{"description":"True when this running study may be launched again: its launch record says planned runs are missing (missing.retryable > 0), or its fan-out stopped. POST …/launch then creates exactly the runs that do not exist.","type":"boolean"},"archivedAt":{"description":"When this study was archived; null while it is not. An archived study loses nothing: it leaves the default list, is read-only (409 study_archived), and is on no public page. Restoring it clears this.","anyOf":[{"type":"string"},{"type":"null"}]},"archivedBy":{"description":"The user who archived it. Null when an API key did, and while the study is not archived.","anyOf":[{"type":"string"},{"type":"null"}]},"arms":{"description":"A declared-arm study's groups, in position order.","type":"array","items":{"type":"object","properties":{"key":{"type":"string","description":"The group's run key (each of its runs' `arm`)."},"position":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"0-based display order."},"label":{"type":"string","maxLength":80,"description":"The group's display label. Never shown to the judge."},"role":{"type":"string","enum":["reference","peer"],"description":"'reference' marks the group the others are compared against; the rest are peers."},"payload":{"type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"brief":{"description":"Text the agent is given after the task, for every task this group runs. At most 600 characters. A group with a brief is a setup of its own, never the subject as published.","type":"string","minLength":1,"maxLength":600}},"additionalProperties":false,"description":"The group's run-payload delta ({} = the subject as published)."},"cells":{"description":"The group's OWN agents, when the study's groups each list theirs (cellPlan 'per_setup'); absent = the matrix.","type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1,"maxLength":50,"description":"Harness id — the valid set (and each one's models) is GET /catalog; cells are validated against it at create."},"model":{"type":"string","minLength":1,"maxLength":100,"description":"Model id as the harness accepts it — valid ids per harness/provider are in GET /catalog (e.g. 'claude-sonnet-5', 'gpt-5.5')."},"provider":{"description":"Provider qualifier for multi-provider harnesses (e.g. 'anthropic', 'openai', 'google'). Omit to use the harness default.","type":"string","minLength":1,"maxLength":32},"params":{"description":"Provider params pinned for this cell (temperature, reasoningEffort, maxOutputTokens, thinkingBudgetTokens). A cell that pins none runs the provider's own defaults. Offered only where the harness declares support — see GET /catalog.","type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"maxOutputTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reasoningEffort":{"type":"string","enum":["low","medium","high"]},"thinkingBudgetTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"codeMode":{"type":"string","enum":["auto","on","off"]},"toolSearch":{"type":"string","enum":["on","off","directory"]},"location":{"type":"string","pattern":"^[A-Z]{2}$"},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$"}},"additionalProperties":false}},"required":["harness","model"],"additionalProperties":false,"description":"One (harness, model, params) cell — every task runs its arm(s) on every cell."}},"skipTasks":{"description":"The tasks this group leaves out, by task number (1 = the first); absent = it runs every task.","type":"array","items":{"type":"integer","minimum":1,"maximum":9007199254740991}},"skills":{"description":"The group's skills as resolved when the study was created (absent for a study created before that existed).","type":"array","items":{"type":"object","properties":{"ref":{"type":"string","description":"The skill ref the group's selection names."},"name":{"type":"string","description":"The skill's name when the study was created."},"changedSinceCreate":{"description":"True when the skill's content now differs from what the study ran; absent when the reader cannot check it.","type":"boolean"}},"required":["ref","name"],"additionalProperties":false}},"addedAgents":{"description":"The agents this group gained after the study was created (`addAgents`), by position in `cells` — absent when none was added.","type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The agent's position in the group's `cells`."},"addedAt":{"type":"string","description":"When it was added (RFC 3339)."}},"required":["position","addedAt"],"additionalProperties":false}}},"required":["key","position","label","role","payload"],"additionalProperties":false}},"contrastPlan":{"description":"The study's planned-contrast policy.","type":"string","enum":["vs_reference","all_pairs","ladder"]},"cellPlan":{"description":"How the groups meet their agents: absent = every group runs the matrix; 'per_setup' = each its own.","type":"string","enum":["crossed","per_setup"]},"skillDisclosure":{"description":"Whether the published page names the groups' skills: absent = withheld (chosen at publish).","type":"string","enum":["withheld","named"]},"modeOptions":{"description":"The comparisonMode's private inputs.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"screens":{"description":"The run screens the study declares (frozen at launch, like lenses). Absent = none.","type":"array","items":{"type":"string","enum":["test_awareness","site_access"]}},"runCounting":{"description":"Which of the study's runs its numbers count (GET /studies/:id/run-counting). Absent = every run.","anyOf":[{"type":"object","properties":{"policy":{"type":"string","const":"hold_back_screened"},"screen":{"type":"string","enum":["test_awareness"],"description":"The screen whose verdicts decide. Today: 'test_awareness'."},"levels":{"minItems":1,"type":"array","items":{"type":"string","enum":["aware","influenced"]},"description":"The verdict levels held back. A run the screen could not judge is never held back."}},"required":["policy","screen","levels"],"additionalProperties":false,"description":"Which of the study's runs its numbers count. Absent or null = every run. 'hold_back_screened' leaves out the runs the named screen flagged at one of `levels`: each is a missing measurement with a named reason, never a fail, and the count held back is stated beside every figure."},{"type":"null"}]},"seriesKey":{"description":"The series the study belongs to (set at create). Absent = none.","anyOf":[{"type":"string","pattern":"^[a-z0-9][a-z0-9._/-]{0,119}$"},{"type":"null"}]},"ref":{"description":"Where the study was taken: commit, branch, pull request. Absent = not recorded.","anyOf":[{"type":"object","properties":{"commit":{"description":"The commit the study was taken at (a SHA).","type":"string","minLength":1,"maxLength":64},"branch":{"description":"The branch it was taken on, e.g. 'main'. A gate's series baseline filters on it.","type":"string","minLength":1,"maxLength":200},"pr":{"description":"The pull request number, when it was taken for one.","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"url":{"description":"A link back to the change (the commit or pull request page).","type":"string","maxLength":500,"format":"uri"}},"additionalProperties":false},{"type":"null"}]},"gradingRevision":{"description":"The study's grading revision, when its checks were revised after its runs finished. Absent = never revised.","type":"integer","minimum":2,"maximum":9007199254740991},"gradingRevisedAt":{"description":"When the checks were last revised. Later than `publishedAt` = the grades changed after publication.","anyOf":[{"type":"string"},{"type":"null"}]},"rehearsal":{"description":"The study is a rehearsal: the smallest real run of a design, made by POST /studies/rehearsals. Absent = an ordinary study.","type":"boolean","const":true},"rehearsalMode":{"description":"How a rehearsal runs: 'live' (the real agents), or 'setup' / 'mock' (no agent is started). Absent on every other study.","type":"string"},"behaviors":{"description":"The custom behaviors the study declares (frozen at launch, like lenses). A run's verdict on one is in its `screens` under `b_<key>`. Absent = none.","type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{1,29}$","description":"A short id for the behavior, lowercase snake (`deleted_files`). Its verdicts are stored and queried under `b_<key>`."},"name":{"type":"string","minLength":1,"maxLength":80,"description":"What a reader sees: \"Deleted files it was not asked to\"."},"question":{"type":"string","minLength":10,"maxLength":400,"description":"One yes-or-no question about a single run that a judge can answer from its trace: \"Did the agent …?\"."},"version":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The version of the behavior's wording. A verdict and a review belong to the version they were made on."}},"required":["key","name","question","version"],"additionalProperties":false}},"stepTimeLimitSeconds":{"description":"How long each step of a task with steps may take, in seconds, as declared at create. A step still running after it ends the run, whose reason names the step and the limit. Null or absent = no per-step limit.","anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["id","plannedRunCount","organizationId","createdBy","name","slug","description","skillRef","skillSlug","skillName","skillPromise","subjectKind","subjectName","subjectLabel","armConfig","comparisonMode","subjectBackend","baselineLabel","treatmentLabel","promiseMetrics","matrix","lenses","taskCount","variantsPerTask","repeats","subset","status","error","visibility","lowSampleOverride","publishedAt","verdict","definitionVersionId","runnerKind","createdAt","updatedAt","liveUntil"],"additionalProperties":false},"tasks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"studyId":{"type":"string"},"position":{"type":"number"},"prompt":{"type":"string"},"rationale":{"anyOf":[{"type":"string"},{"type":"null"}]},"category":{"anyOf":[{"type":"string"},{"type":"null"}]},"requiresWeb":{"type":"boolean"},"rubric":{"type":"array","items":{"type":"string"}},"variants":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"expectations":{"anyOf":[{"type":"array","items":{}},{"type":"null"}]},"followUps":{"description":"The task's follow-up steps: later prompts given to the agent in the same conversation, each with its own criteria (`rubric`) and checks (`expectations`). `prompt`, `rubric` and `expectations` on the task are step 1's. Omitted for a one-step task.","anyOf":[{"type":"array","items":{"type":"object","properties":{"prompt":{"type":"string"},"rubric":{"type":"array","items":{"type":"string"}},"expectations":{"anyOf":[{"type":"array","items":{}},{"type":"null"}]}},"required":["prompt","rubric"],"additionalProperties":false}},{"type":"null"}]},"files":{"description":"What is put into the agent's workspace before every run of the task starts: each a `path` with inline `content`, a `path` with the `url`, `sha256` and `sizeBytes` the run fetched and verified, or a `path` with the `repo` (its `url` and pinned `ref`) cloned into it. Omitted for a task that declares none.","anyOf":[{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"content":{"type":"string"},"url":{"type":"string"},"sha256":{"type":"string"},"sizeBytes":{"type":"number"},"repo":{"type":"object","properties":{"url":{"type":"string"},"ref":{"type":"string"},"subpath":{"type":"string"}},"required":["url","ref"],"additionalProperties":false}},"required":["path"],"additionalProperties":false}},{"type":"null"}]}},"required":["id","studyId","position","prompt","rationale","category","requiresWeb","rubric"],"additionalProperties":false}},"runs":{"type":"array","items":{"type":"object","properties":{"runId":{"type":"string"},"taskId":{"type":"string"},"arm":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]},"harness":{"type":"string"},"model":{"type":"string"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}]},"variantIndex":{"type":"integer","minimum":0,"maximum":9007199254740991},"repeatIndex":{"type":"integer","minimum":0,"maximum":9007199254740991},"status":{"type":"string"},"outcome":{"anyOf":[{"type":"string"},{"type":"null"}]},"outcomeReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"totalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"inputTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"outputTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"cacheReadTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"cacheCreationTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"costUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"numTurns":{"anyOf":[{"type":"number"},{"type":"null"}]},"durationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"intentSatisfied":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"frictionCount":{"anyOf":[{"type":"number"},{"type":"null"}]},"insightSummary":{"anyOf":[{"type":"string"},{"type":"null"}]},"qualityScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"rubricResults":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"criterion":{"type":"string"},"passed":{"type":"boolean"},"note":{"type":"string"},"votes":{"type":"object","properties":{"passed":{"type":"integer","minimum":0,"maximum":9007199254740991},"judges":{"type":"integer","minimum":1,"maximum":9007199254740991},"byJudge":{"type":"array","items":{"type":"object","properties":{"judge":{"type":"string","minLength":1},"passed":{"type":"boolean"},"note":{"type":"string"}},"required":["judge","passed"],"additionalProperties":false}}},"required":["passed","judges"],"additionalProperties":false},"taskStep":{"description":"For a task with steps: which follow-up this verdict belongs to (1 = the first). Absent = the task's own prompt.","type":"integer","minimum":1,"maximum":9007199254740991}},"required":["criterion","passed"],"additionalProperties":false}},{"type":"null"}]},"gradedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"judgeModel":{"anyOf":[{"type":"string"},{"type":"null"}]},"pairVerdict":{"anyOf":[{"type":"string","enum":["skill","baseline","tie","unmeasurable"]},{"type":"null"}]},"pairVotes":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"judge":{"type":"string","minLength":1},"ordering":{"type":"string","enum":["base-first","skill-first"]},"answer":{"type":"string","enum":["A","B","tie"]}},"required":["judge","ordering","answer"],"additionalProperties":false}},{"type":"null"}]},"pairGradedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"evalResults":{"anyOf":[{},{"type":"null"}]},"evalScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"evalGradedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"lensGrades":{"anyOf":[{"type":"object","properties":{"reference":{"type":"object","properties":{"pass":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"extracted":{"anyOf":[{"type":"string"},{"type":"null"}]},"extraction":{"type":"string"},"matcher":{"type":"string"},"votes":{"type":"array","items":{"type":"object","properties":{"judge":{"type":"string"},"answer":{"anyOf":[{"type":"string","enum":["equivalent","different","not_attempted"]},{"type":"null"}]}},"required":["judge","answer"],"additionalProperties":false}},"reason":{"type":"string"},"gradedAt":{"type":"string"}},"required":["pass","extracted","extraction","matcher","gradedAt"],"additionalProperties":false},"framework":{"type":"object","properties":{"framework":{"type":"string"},"primary":{"anyOf":[{"type":"object","properties":{"metricId":{"type":"string"},"provenance":{"type":"string"},"value":{"type":"number"},"scenario":{"type":"string"},"count":{"type":"number"}},"required":["metricId","provenance","value","scenario","count"],"additionalProperties":false},{"type":"null"}]},"secondary":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"name":{"type":"string"},"scenario":{"type":"string"},"value":{"anyOf":[{"type":"number"},{"type":"null"}]},"count":{"type":"number"},"split":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["label","name","scenario","value","count","split"],"additionalProperties":false}},"errors":{"type":"array","items":{"type":"object","properties":{"scenario":{"type":"string"},"metric":{"type":"string"},"reason":{"type":"string"}},"required":["scenario","metric","reason"],"additionalProperties":false}},"gradedAt":{"type":"string"}},"required":["framework","primary","secondary","errors","gradedAt"],"additionalProperties":false},"execution":{"type":"object","properties":{"pass":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"status":{"type":"string","enum":["passed","failed","timeout","error","unavailable"]},"language":{"type":"string"},"passedTests":{"anyOf":[{"type":"number"},{"type":"null"}]},"failedTests":{"anyOf":[{"type":"number"},{"type":"null"}]},"stdout":{"type":"string"},"stdoutTruncated":{"type":"boolean"},"reason":{"type":"string"},"gradedAt":{"type":"string"}},"required":["pass","status","language","passedTests","failedTests","stdout","stdoutTruncated","gradedAt"],"additionalProperties":false}},"additionalProperties":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},{"type":"null"}]},"executionBudgetS":{"description":"The run's EXECUTION wall-clock budget in seconds (armed at pod attach — never the capacity wait). Absent = not recorded.","anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"harnessImageDigest":{"description":"The sha256 identity of the harness image the run executed on — its build. Absent = not recorded.","anyOf":[{"type":"string"},{"type":"null"}]},"subjectEngaged":{"description":"Whether this run used its arm's subject (an MCP call to a server the run owns, a web fetch, or the skill loaded — per subject kind). Absent = not measured.","anyOf":[{"type":"boolean"},{"type":"null"}]},"runCreatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"startedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"contrastVerdicts":{"description":"A declared-arm study's judged contrasts this run is the SUBJECT side of. Absent when it has none.","type":"array","items":{"type":"object","properties":{"referenceArm":{"type":"string"},"subjectArm":{"type":"string"},"referenceRunId":{"type":"string","description":"The reference group's run of the same comparison cell."},"verdict":{"type":"string","enum":["subject","reference","tie","unmeasurable"]},"votes":{"type":"array","items":{"type":"object","properties":{"judge":{"type":"string","minLength":1},"ordering":{"type":"string","enum":["base-first","skill-first"]},"answer":{"type":"string","enum":["A","B","tie"]}},"required":["judge","ordering","answer"],"additionalProperties":false},"description":"The judges' atomic votes behind the verdict ([] = a degenerate pair)."},"gradedAt":{"type":"string"}},"required":["referenceArm","subjectArm","referenceRunId","verdict","votes","gradedAt"],"additionalProperties":false}},"runTimeMs":{"description":"The agent's RUN TIME in ms (first model request → last model response) — what a run-time study scores; durationMs beside it is the run's wall-clock, setup and teardown included. Absent = not measured.","anyOf":[{"type":"number"},{"type":"null"}]},"phases":{"anyOf":[{"type":"object","properties":{"phases":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["waiting","boot","installations","startup","run","verification","teardown"]},"ms":{"anyOf":[{"type":"number"},{"type":"null"}]},"state":{"type":"string","enum":["measured","unmeasured","not_in_run"]}},"required":["id","ms","state"],"additionalProperties":false}},"runTimeMs":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The run phase: first model request → last model response."},"totalMs":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The run's whole duration, created → finished."},"steps":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"kind":{"type":"string"},"outcome":{"type":"string"},"startedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["name","kind","outcome","startedAt","finishedAt"],"additionalProperties":false},"description":"The installation steps the operator witnessed (an MCP server's install, an env fetch)."},"modelCalls":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"How many model calls the run made, as the model meter counted them."}},"required":["phases","runTimeMs","totalMs","steps","modelCalls"],"additionalProperties":false,"description":"Every phase of the run: waiting, boot, installations, startup, run, verification, teardown."},{"type":"null"}]},"screens":{"description":"Whether this run is valid evidence, per screen the study declares (test_awareness first), keyed by screen id. Absent when the run was never screened. A study-wide read carries each verdict's summary; the evidence is on the reads that open one run.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"screenId":{"type":"string","description":"The screen that produced this verdict: 'test_awareness', or 'web_tools_off' on a run of a group whose agents ran with their own web tools switched off (no study declares that one: the group's setup implies it)."},"level":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The screen's verdict word. test_awareness: 'none' (the panel searched and found no sign), 'aware' (the agent said it might be under evaluation and worked the same way), 'influenced' (it acted on that). web_tools_off: 'held' (the run's complete trace shows no step that reached the web), 'fetched' (a step reached the web, by the agent's own tool or its shell: web tools off does not block the network). null = the screen could not say; `reason` then says why. Never read null as 'none' or as 'held'."},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why there is no level, when `level` is null: the screen could not say (panel_unavailable, panel_split, trace_unavailable), or the run ended without succeeding and so was never screened (run_not_succeeded). A run_not_succeeded run counts as not screened. web_tools_off: agent_not_measured (this agent's trace is not proven to show every way it reaches the web), answered_by_other_runs (a benchmark framework's own run: the agents that answered ran as separate runs, whose traces are not read), trace_degraded, trace_unfinalized, declared_servers_unrecorded."},"summary":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"The facts that qualify the verdict. test_awareness: `cause` (task_text | environment | agent_inference: what told the agent) and `reasoningVisible` (whether the trace carried any of the agent's reasoning; a 'none' without it is weaker evidence). The authed doors also carry the panel and the prompt version. web_tools_off: `fetchSteps` (how many steps reached the web) and `stepIds` (the first of them, by step id)."},"evidence":{"description":"What the verdict stands on, on a read that opened this one run. test_awareness: `statements` and `actions`, each a trace step and a verbatim quote the platform found there. A public door serves them only to a reader it serves the run's own text to; the authed doors also carry every judge's atomic vote. web_tools_off: `fetches`, each a cited step with the tool and the address, host or query it carried, under the same rule.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"classifierVersion":{"type":"string","description":"The classifier version that produced this verdict, pinned per verdict."},"screenedAt":{"type":"string"}},"required":["screenId","level","reason","summary","classifierVersion","screenedAt"],"additionalProperties":false}},"carried":{"anyOf":[{"type":"object","properties":{"fromRunId":{"type":"string","description":"The run that executed this job, in an earlier study of the series."},"fromStudyId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The study it executed in; null once that study was deleted."},"at":{"type":"string","description":"When it was carried into this study (this study's launch)."}},"required":["fromRunId","fromStudyId","at"],"additionalProperties":false,"description":"Present when this row's job executed in an earlier study of the series and was carried into this one: its facts and grades are that run's, and its answer and trajectory are read from it."},{"type":"null"}]},"taskTurns":{"description":"The agent runtime's own account of each prompt of a task with steps, in order: where the run ended. It says nothing about whether an answer was right, and no score reads it. Null or absent = not reported (a task with one prompt, a run whose result was never recovered, a run recorded before 2026-11-19).","anyOf":[{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"0 = the task's own prompt; i = its i-th follow-up."},"outcome":{"type":"string","description":"How the turn ended, in the agent runtime's words: completed, interrupted, failed, lost, or not_reached (an earlier turn ended the run, so this prompt was never given)."},"startedAt":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Null for a turn that never started."},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"limitHit":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The limit that ended the turn, when one did. turnWallClock is the study's time limit per step."}},"required":["index","outcome","startedAt","finishedAt","limitHit"],"additionalProperties":false}},{"type":"null"}]}},"required":["runId","taskId","arm","harness","model","provider","status","outcome","outcomeReason","totalTokens","inputTokens","outputTokens","cacheReadTokens","cacheCreationTokens","costUsd","numTurns","durationMs","intentSatisfied","frictionCount","insightSummary","qualityScore","rubricResults","gradedAt","judgeModel","pairVerdict","pairVotes","pairGradedAt","evalResults","evalScore","evalGradedAt","runCreatedAt","startedAt","finishedAt"],"additionalProperties":false}},"aggregate":{"anyOf":[{"type":"object","properties":{"summary":{"type":"object","properties":{"verdict":{"type":"string","enum":["delivered","partial","not_delivered","inconclusive","measured"]},"headline":{"type":"array","items":{"type":"object","properties":{"metric":{"type":"string","enum":["total_tokens","output_tokens","cost_usd","duration_ms","num_turns","success_rate","completion_rate","goal_rate"]},"label":{"type":"string"},"direction":{"type":"string","enum":["down","up"]},"baselineAvg":{"anyOf":[{"type":"number"},{"type":"null"}]},"skillAvg":{"anyOf":[{"type":"number"},{"type":"null"}]},"deltaPct":{"anyOf":[{"type":"number"},{"type":"null"}]},"delta":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","const":"pp"},"absolute":{"anyOf":[{"type":"number"},{"type":"null"}]},"relativePct":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["unit","absolute","relativePct"],"additionalProperties":false},{"type":"object","properties":{"unit":{"type":"string","const":"pts"},"absolute":{"anyOf":[{"type":"number"},{"type":"null"}]},"relativePct":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["unit","absolute"],"additionalProperties":false},{"type":"object","properties":{"unit":{"type":"string","const":"%"},"relativePct":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["unit","relativePct"],"additionalProperties":false}]},"improved":{"type":"boolean"}},"required":["metric","label","direction","baselineAvg","skillAvg","deltaPct","improved"],"additionalProperties":false}},"completionRate":{"type":"object","properties":{"baseline":{"anyOf":[{"type":"number"},{"type":"null"}]},"skill":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["baseline","skill"],"additionalProperties":false},"goalRate":{"type":"object","properties":{"baseline":{"anyOf":[{"type":"number"},{"type":"null"}]},"skill":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["baseline","skill"],"additionalProperties":false},"pairwise":{"type":"object","properties":{"pairs":{"type":"number"},"skillWins":{"type":"number"},"baselineWins":{"type":"number"},"ties":{"type":"number"},"winRate":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["pairs","skillWins","baselineWins","ties","winRate"],"additionalProperties":false},"decision":{"type":"object","properties":{"winner":{"type":"string","enum":["treatment","baseline","tie","unmeasurable"]},"basis":{"type":"string","enum":["infra","goal","evals","benchmark","quality","efficiency","judge","insufficient"]},"reason":{"type":"string"},"efficiencyDiscounted":{"type":"boolean"}},"required":["winner","basis","reason","efficiencyDiscounted"],"additionalProperties":false},"leaderboard":{"type":"array","items":{}},"concentration":{"type":"object","properties":{"perCell":{"type":"array","items":{"type":"object","properties":{"cell":{"type":"string"},"goalDeltaPp":{"anyOf":[{"type":"number"},{"type":"null"}]},"contributionPct":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["cell","goalDeltaPp","contributionPct"],"additionalProperties":false}},"heterogeneity":{"anyOf":[{"type":"object","properties":{"dominantCell":{"type":"string"},"contributionPct":{"type":"number"}},"required":["dominantCell","contributionPct"],"additionalProperties":false},{"type":"null"}]}},"required":["perCell","heterogeneity"],"additionalProperties":false},"matrixShape":{"type":"object","properties":{"cells":{"type":"number"},"harnesses":{"type":"number"},"models":{"type":"number"},"crossed":{"type":"boolean"}},"required":["cells","harnesses","models","crossed"],"additionalProperties":false},"flakiness":{"type":"object","properties":{"measured":{"type":"boolean"},"conditions":{"type":"number"},"unstable":{"type":"number"},"worst":{"anyOf":[{"type":"object","properties":{"cell":{"type":"string"},"taskId":{"type":"string"},"arm":{"type":"string","enum":["baseline","skill"]},"variant":{"type":"number"},"passRate":{"type":"number"}},"required":["cell","taskId","arm","passRate"],"additionalProperties":false},{"type":"null"}]}},"required":["measured","conditions","unstable","worst"],"additionalProperties":false},"arms":{"type":"object","properties":{"baseline":{"type":"object","properties":{"runs":{"type":"number"},"completed":{"type":"number"},"infraFailures":{"type":"number"},"completionRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalTally":{"type":"object","properties":{"achieved":{"type":"number"},"partial":{"type":"number"},"missed":{"type":"number"}},"required":["achieved","partial","missed"],"additionalProperties":false},"avgTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgOutputTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgTurns":{"anyOf":[{"type":"number"},{"type":"null"}]},"costCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgQualityScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"gradedCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95CostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95TotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95DurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"evalPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"benchmarkPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"adoptionRate":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["runs","completed","infraFailures","completionRate","goalRate","goalTally","avgTotalTokens","avgOutputTokens","avgCostUsd","avgDurationMs","avgTurns","costCoverage","avgQualityScore","gradedCoverage","medianCostUsd","medianTotalTokens","medianDurationMs","p95CostUsd","p95TotalTokens","p95DurationMs","maxCostUsd","maxTotalTokens","maxDurationMs"],"additionalProperties":false},"skill":{"type":"object","properties":{"runs":{"type":"number"},"completed":{"type":"number"},"infraFailures":{"type":"number"},"completionRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalTally":{"type":"object","properties":{"achieved":{"type":"number"},"partial":{"type":"number"},"missed":{"type":"number"}},"required":["achieved","partial","missed"],"additionalProperties":false},"avgTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgOutputTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgTurns":{"anyOf":[{"type":"number"},{"type":"null"}]},"costCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgQualityScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"gradedCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95CostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95TotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95DurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"evalPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"benchmarkPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"adoptionRate":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["runs","completed","infraFailures","completionRate","goalRate","goalTally","avgTotalTokens","avgOutputTokens","avgCostUsd","avgDurationMs","avgTurns","costCoverage","avgQualityScore","gradedCoverage","medianCostUsd","medianTotalTokens","medianDurationMs","p95CostUsd","p95TotalTokens","p95DurationMs","maxCostUsd","maxTotalTokens","maxDurationMs"],"additionalProperties":false}},"required":["baseline","skill"],"additionalProperties":false},"totals":{"type":"object","properties":{"cells":{"type":"number"},"runs":{"type":"number"},"completed":{"type":"number"},"failed":{"type":"number"},"costUsd":{"type":"number"},"tokens":{"type":"number"}},"required":["cells","runs","completed","failed","costUsd","tokens"],"additionalProperties":false}},"required":["verdict","headline","completionRate","goalRate","pairwise","concentration","matrixShape","totals"],"additionalProperties":false},"perCell":{"type":"array","items":{}},"perHarness":{"type":"array","items":{}},"perModel":{"type":"array","items":{}},"perTask":{"type":"array","items":{}},"webSplit":{},"inference":{"anyOf":[{"type":"object","properties":{"columns":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"family":{"type":"string","enum":["rate","score","magnitude"]},"betterWhen":{"type":"string","enum":["higher","lower"]}},"required":["key","label","family","betterWhen"],"additionalProperties":false}},"groups":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["cell","harness","model","field"]},"title":{"type":"string"},"rows":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"kind":{"type":"string","enum":["cell","harness","model","field"]},"harness":{"anyOf":[{"type":"string"},{"type":"null"}]},"model":{"anyOf":[{"type":"string"},{"type":"null"}]},"paramsKey":{"type":"string"},"runs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"estimate":{"anyOf":[{"type":"object","properties":{"value":{"type":"number"},"interval":{"type":"object","properties":{"lo":{"type":"number"},"hi":{"type":"number"}},"required":["lo","hi"],"additionalProperties":false,"description":"A 95% bootstrap percentile interval."},"n":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["value","interval","n"],"additionalProperties":false},{"type":"null"}]},"reference":{"anyOf":[{"type":"object","properties":{"value":{"type":"number"},"interval":{"type":"object","properties":{"lo":{"type":"number"},"hi":{"type":"number"}},"required":["lo","hi"],"additionalProperties":false,"description":"A 95% bootstrap percentile interval."},"n":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["value","interval","n"],"additionalProperties":false},{"type":"null"}]},"comparison":{"anyOf":[{"type":"object","properties":{"effect":{"type":"number"},"unit":{"type":"string","enum":["pp","pts","%"]},"interval":{"type":"object","properties":{"lo":{"type":"number"},"hi":{"type":"number"}},"required":["lo","hi"],"additionalProperties":false,"description":"A 95% bootstrap percentile interval."},"p":{"type":"number"},"n":{"minItems":2,"maxItems":2,"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"from":{"type":"number"},"to":{"type":"number"}},"required":["effect","unit","interval","p","n"],"additionalProperties":false},{"type":"null"}]},"adjustedP":{"anyOf":[{"type":"number"},{"type":"null"}]},"tier":{"type":"integer","minimum":0,"maximum":3},"direction":{"type":"string","enum":["better","worse","none"]},"untested":{"type":"boolean"}},"required":["estimate","reference","comparison","adjustedP","tier","direction","untested"],"additionalProperties":false}}},"required":["key","kind","harness","model","runs","cells"],"additionalProperties":false}}},"required":["kind","title","rows"],"additionalProperties":false}},"reference":{"type":"string","enum":["baseline","field"]},"draws":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["columns","groups","reference","draws"],"additionalProperties":false},{"type":"null"}]},"behavior":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string"},"model":{"type":"string"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}]},"arm":{"type":"string"},"totalRuns":{"type":"number"},"signals":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"tone":{"type":"string","enum":["good","bad","neutral"]},"runCount":{"type":"number"},"succeededCount":{"type":"number"}},"required":["id","label","tone","runCount","succeededCount"],"additionalProperties":false}}},"required":["harness","model","provider","arm","totalRuns","signals"],"additionalProperties":false}},"reference":{"type":"object","properties":{"cells":{"type":"array","items":{"type":"object","properties":{"cell":{"type":"string"},"harness":{"type":"string"},"model":{"type":"string"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}]},"paramsKey":{"type":"string"},"label":{"type":"string"},"passRate":{"type":"object","properties":{"value":{"anyOf":[{"type":"number"},{"type":"null"}]},"ci":{"anyOf":[{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}]},{"type":"null"}]},"n":{"type":"number"}},"required":["value","ci","n"],"additionalProperties":false},"abstention":{"description":"abstention_aware_accuracy: correct of all judged-or-declined runs, with the not-attempted rate and correct-given-attempted as parts. Present only when some response was judged NOT ATTEMPTED.","type":"object","properties":{"value":{"anyOf":[{"type":"number"},{"type":"null"}]},"ci":{"anyOf":[{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}]},{"type":"null"}]},"n":{"type":"number"},"parts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"value":{"anyOf":[{"type":"number"},{"type":"null"}]},"n":{"type":"number"}},"required":["id","label","value","n"],"additionalProperties":false}}},"required":["value","ci","n"],"additionalProperties":false},"tasks":{"type":"number"},"graded":{"type":"number"},"unmeasured":{"type":"number"},"matchers":{"type":"array","items":{"type":"string"}},"launchProfiles":{"type":"array","items":{"type":"string","enum":["as-published","harness-default","with-setup"]}}},"required":["cell","harness","model","provider","paramsKey","label","passRate","tasks","graded","unmeasured","matchers","launchProfiles"],"additionalProperties":false}},"overall":{"type":"object","properties":{"value":{"anyOf":[{"type":"number"},{"type":"null"}]},"ci":{"anyOf":[{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}]},{"type":"null"}]},"n":{"type":"number"}},"required":["value","ci","n"],"additionalProperties":false},"abstention":{"description":"abstention_aware_accuracy: correct of all judged-or-declined runs, with the not-attempted rate and correct-given-attempted as parts. Present only when some response was judged NOT ATTEMPTED.","type":"object","properties":{"value":{"anyOf":[{"type":"number"},{"type":"null"}]},"ci":{"anyOf":[{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}]},{"type":"null"}]},"n":{"type":"number"},"parts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"value":{"anyOf":[{"type":"number"},{"type":"null"}]},"n":{"type":"number"}},"required":["id","label","value","n"],"additionalProperties":false}}},"required":["value","ci","n"],"additionalProperties":false},"graded":{"type":"number"},"unmeasured":{"type":"number"},"modelJudged":{"type":"boolean"}},"required":["cells","overall","graded","unmeasured","modelJudged"],"additionalProperties":false},"execution":{"type":"object","properties":{"graded":{"type":"number"},"measured":{"type":"number"},"passed":{"type":"number"},"passRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"byStatus":{"type":"object","properties":{"passed":{"type":"number"},"failed":{"type":"number"},"timeout":{"type":"number"},"error":{"type":"number"},"unavailable":{"type":"number"}},"required":["passed","failed","timeout","error","unavailable"],"additionalProperties":false},"languages":{"type":"array","items":{"type":"string"}},"unavailableReasons":{"type":"array","items":{"type":"string"}}},"required":["graded","measured","passed","passRate","byStatus","languages","unavailableReasons"],"additionalProperties":false},"timeBasis":{"description":"What the study's time was scored on: 'run_time' (the agent's own time, first model request → last model response) when every finished run carried a measured timeline. Absent = wall-clock, setup and teardown included.","type":"string","enum":["run_time","wall_clock"]},"timeMeasures":{"description":"Every selectable time measure per group (run time; startup + run; installations + startup + run; total), descriptive only — the study is scored on run time. Present only when timeBasis is 'run_time'.","type":"object","properties":{"byArm":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","propertyNames":{"type":"string","enum":["run_time","startup_and_run","install_startup_run","total"]},"additionalProperties":{"type":"object","properties":{"median":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95":{"anyOf":[{"type":"number"},{"type":"null"}]},"mean":{"anyOf":[{"type":"number"},{"type":"null"}]},"n":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"How many of the group's runs measured it."}},"required":["median","p95","mean","n"],"additionalProperties":false},"required":["run_time","startup_and_run","install_startup_run","total"]}},"phasesByArm":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","propertyNames":{"type":"string","enum":["waiting","boot","installations","startup","run","verification","teardown"]},"additionalProperties":{"type":"object","properties":{"median":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95":{"anyOf":[{"type":"number"},{"type":"null"}]},"mean":{"anyOf":[{"type":"number"},{"type":"null"}]},"n":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"How many of the group's runs measured it."}},"required":["median","p95","mean","n"],"additionalProperties":false},"required":["waiting","boot","installations","startup","run","verification","teardown"]},"description":"Where each group's time went: every phase on its own (a phase a run never had counts as no time)."}},"required":["byArm","phasesByArm"],"additionalProperties":false},"runCounting":{"description":"Present only when the study holds runs back from its numbers (its counting policy). Every figure of this readout is over the runs that count; this says how many were left out and from which group.","type":"object","properties":{"policy":{"type":"string","description":"The policy the figures were computed under: 'hold_back_screened:<screen>:<levels>'."},"screen":{"type":"string","description":"The screen whose verdicts decided."},"levels":{"type":"array","items":{"type":"string"},"description":"The verdict levels held back."},"heldBack":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Runs left out of every figure of this readout: missing measurements, never fails."},"groups":{"type":"array","items":{"type":"object","properties":{"group":{"type":"string"},"heldBack":{"type":"integer","minimum":0,"maximum":9007199254740991},"runs":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The group's runs that ended."}},"required":["group","heldBack","runs"],"additionalProperties":false},"description":"The same count per group."},"imbalanced":{"type":"boolean","description":"true when two groups' held-back shares differ by more than 10 points: the policy removed one group's runs selectively."}},"required":["policy","screen","levels","heldBack","groups","imbalanced"],"additionalProperties":false},"webToolsOff":{"description":"Present only when a group of the study ran its agents with their own web tools switched off. That is a switch on the agent's tools: the network was not blocked, so an agent that can run a command can still reach the web that way. Every run of such a group is screened for web use, and this says, per group, how many runs were screened and what the screen found. Counts over all the study's runs, whatever its counting policy holds back. Counts only: what a trace can show differs by agent, so they are never compared between agents.","type":"object","properties":{"groups":{"type":"array","items":{"type":"object","properties":{"group":{"type":"string","description":"The group's key."},"runs":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The group's runs that ended and that ora's own infrastructure did not kill: the runs the screen applies to."},"screened":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Of those, the runs that carry a verdict. 0 = no run of the group has been screened: never read that as no run reaching the web."},"held":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Screened runs whose complete trace shows no step that reached the web."},"fetched":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Screened runs in which a step reached the web, by the agent's own tool or its shell. Each is labelled on its run, and is left out of no figure for it."},"notMeasured":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Screened runs the screen could not say for (the run's `screens.web_tools_off.reason` says why). Neither held nor fetched."}},"required":["group","runs","screened","held","fetched","notMeasured"],"additionalProperties":false},"description":"One row per group that ran with web tools off, in the groups' own order."}},"required":["groups"],"additionalProperties":false}},"required":["summary","perCell","perHarness","perModel","perTask","webSplit","inference"],"additionalProperties":false},{"type":"object","properties":{"shape":{"type":"string","const":"multi-arm"},"summary":{"type":"object","properties":{"shape":{"type":"string","const":"multi-arm"},"verdict":{"type":"string","enum":["measured","inconclusive"]},"groups":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","description":"The group's run key (`arm` on its runs)."},"label":{"type":"string"},"role":{"type":"string","enum":["reference","peer"]},"composition":{"type":"object","properties":{"tools":{"anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"type":"array","items":{"type":"string"}},"brief":{"description":"Text the agent was given after the task, for every task this group ran.","type":"string"}},"additionalProperties":false,"description":"What the group's runs were given: tools as declared, add-ons by id, and its brief when it has one."},"skipTasks":{"description":"The tasks this group left out by design, by task number (1 = the first); absent = it ran every task.","type":"array","items":{"type":"integer","minimum":1,"maximum":9007199254740991}}},"required":["key","label","role","composition"],"additionalProperties":false}},"ranking":{"type":"object","properties":{"plan":{"anyOf":[{"type":"string","enum":["vs_reference","all_pairs","ladder"]},{"type":"null"}]},"referenceArm":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The declared reference group's key; null when no group has the role."},"decision":{"type":"object","properties":{"leader":{"anyOf":[{"type":"string"},{"type":"null"}]},"basis":{"type":"string","enum":["infra","goal","evals","benchmark","quality","efficiency","judge","insufficient"]},"reason":{"type":"string"},"separatedFrom":{"type":"array","items":{"type":"string"},"description":"The groups the leader beat in a planned contrast."},"lostTo":{"type":"array","items":{"type":"object","properties":{"arm":{"type":"string"},"basis":{"type":"string","enum":["infra","goal","evals","benchmark","quality","efficiency","judge","insufficient"]}},"required":["arm","basis"],"additionalProperties":false},"description":"Every planned contrast the leader lost, on any basis — the composite weights efficiency."},"clearLeader":{"type":"boolean"},"correctnessLeader":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["leader","basis","reason","separatedFrom","lostTo","clearLeader","correctnessLeader"],"additionalProperties":false},"entries":{"type":"array","items":{"type":"object","properties":{"arm":{"type":"string"},"runs":{"type":"number"},"completed":{"type":"number"},"completionRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgQualityScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"evalPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"benchmarkPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"compositeScore":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The composite on the board-wide anchor; the ranking key."},"avgTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgOutputTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"rank":{"type":"number"}},"required":["arm","runs","completed","completionRate","goalRate","avgQualityScore","evalPassRate","compositeScore","avgTotalTokens","avgOutputTokens","avgCostUsd","avgDurationMs","medianCostUsd","medianTotalTokens","medianDurationMs","rank"],"additionalProperties":false}},"contrasts":{"type":"array","items":{"type":"object","properties":{"contrastId":{"type":"string"},"referenceArm":{"type":"string"},"subjectArm":{"type":"string"},"oriented":{"type":"boolean"},"outcome":{"type":"string","enum":["won","tie","unmeasurable"]},"winner":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The winning group's key when `outcome` is 'won', else null."},"basis":{"type":"string","enum":["infra","goal","evals","benchmark","quality","efficiency","judge","insufficient"]},"explanation":{"type":"string"}},"required":["contrastId","referenceArm","subjectArm","oriented","outcome","winner","basis","explanation"],"additionalProperties":false}},"comparisons":{"type":"number","description":"How many contrasts the study planned."},"headline":{"description":"A two-group study's ONE comparison, in words: its outcome in place of a ranking (absent otherwise).","type":"string"}},"required":["plan","referenceArm","decision","entries","contrasts","comparisons"],"additionalProperties":false},"matrixShape":{"type":"object","properties":{"cells":{"type":"number"},"harnesses":{"type":"number"},"models":{"type":"number"},"crossed":{"type":"boolean"}},"required":["cells","harnesses","models","crossed"],"additionalProperties":false},"flakiness":{"type":"object","properties":{"measured":{"type":"boolean"},"conditions":{"type":"number"},"unstable":{"type":"number"},"worst":{"anyOf":[{"type":"object","properties":{"cell":{"type":"string"},"taskId":{"type":"string"},"arm":{"type":"string"},"variant":{"type":"number"},"passRate":{"type":"number"}},"required":["cell","taskId","arm","passRate"],"additionalProperties":false},{"type":"null"}]}},"required":["measured","conditions","unstable","worst"],"additionalProperties":false},"totals":{"type":"object","properties":{"cells":{"type":"number"},"runs":{"type":"number"},"completed":{"type":"number"},"failed":{"type":"number"},"costUsd":{"type":"number"},"tokens":{"type":"number"}},"required":["cells","runs","completed","failed","costUsd","tokens"],"additionalProperties":false}},"required":["shape","verdict","groups","ranking","matrixShape","flakiness","totals"],"additionalProperties":false},"arms":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"position":{"type":"number"},"role":{"type":"string","enum":["reference","peer"]},"composition":{"type":"object","properties":{"tools":{"anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"type":"array","items":{"type":"string"}},"brief":{"description":"Text the agent was given after the task, for every task this group ran.","type":"string"}},"additionalProperties":false},"agg":{"type":"object","properties":{"runs":{"type":"number"},"completed":{"type":"number"},"infraFailures":{"type":"number"},"completionRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalTally":{"type":"object","properties":{"achieved":{"type":"number"},"partial":{"type":"number"},"missed":{"type":"number"}},"required":["achieved","partial","missed"],"additionalProperties":false},"avgTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgOutputTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgTurns":{"anyOf":[{"type":"number"},{"type":"null"}]},"costCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgQualityScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"gradedCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95CostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95TotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95DurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"evalPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"benchmarkPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"adoptionRate":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["runs","completed","infraFailures","completionRate","goalRate","goalTally","avgTotalTokens","avgOutputTokens","avgCostUsd","avgDurationMs","avgTurns","costCoverage","avgQualityScore","gradedCoverage","medianCostUsd","medianTotalTokens","medianDurationMs","p95CostUsd","p95TotalTokens","p95DurationMs","maxCostUsd","maxTotalTokens","maxDurationMs"],"additionalProperties":false},"perCell":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string"},"model":{"type":"string"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}]},"paramsKey":{"type":"string"},"label":{"type":"string"},"agg":{"type":"object","properties":{"runs":{"type":"number"},"completed":{"type":"number"},"infraFailures":{"type":"number"},"completionRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalTally":{"type":"object","properties":{"achieved":{"type":"number"},"partial":{"type":"number"},"missed":{"type":"number"}},"required":["achieved","partial","missed"],"additionalProperties":false},"avgTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgOutputTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgTurns":{"anyOf":[{"type":"number"},{"type":"null"}]},"costCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgQualityScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"gradedCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95CostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95TotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95DurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"evalPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"benchmarkPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"adoptionRate":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["runs","completed","infraFailures","completionRate","goalRate","goalTally","avgTotalTokens","avgOutputTokens","avgCostUsd","avgDurationMs","avgTurns","costCoverage","avgQualityScore","gradedCoverage","medianCostUsd","medianTotalTokens","medianDurationMs","p95CostUsd","p95TotalTokens","p95DurationMs","maxCostUsd","maxTotalTokens","maxDurationMs"],"additionalProperties":false}},"required":["harness","model","provider","agg"],"additionalProperties":false}},"reference":{"description":"The `reference` lens's section over this group's runs.","type":"object","properties":{"cells":{"type":"array","items":{"type":"object","properties":{"cell":{"type":"string"},"harness":{"type":"string"},"model":{"type":"string"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}]},"paramsKey":{"type":"string"},"label":{"type":"string"},"passRate":{"type":"object","properties":{"value":{"anyOf":[{"type":"number"},{"type":"null"}]},"ci":{"anyOf":[{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}]},{"type":"null"}]},"n":{"type":"number"}},"required":["value","ci","n"],"additionalProperties":false},"abstention":{"description":"abstention_aware_accuracy: correct of all judged-or-declined runs, with the not-attempted rate and correct-given-attempted as parts. Present only when some response was judged NOT ATTEMPTED.","type":"object","properties":{"value":{"anyOf":[{"type":"number"},{"type":"null"}]},"ci":{"anyOf":[{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}]},{"type":"null"}]},"n":{"type":"number"},"parts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"value":{"anyOf":[{"type":"number"},{"type":"null"}]},"n":{"type":"number"}},"required":["id","label","value","n"],"additionalProperties":false}}},"required":["value","ci","n"],"additionalProperties":false},"tasks":{"type":"number"},"graded":{"type":"number"},"unmeasured":{"type":"number"},"matchers":{"type":"array","items":{"type":"string"}},"launchProfiles":{"type":"array","items":{"type":"string","enum":["as-published","harness-default","with-setup"]}}},"required":["cell","harness","model","provider","paramsKey","label","passRate","tasks","graded","unmeasured","matchers","launchProfiles"],"additionalProperties":false}},"overall":{"type":"object","properties":{"value":{"anyOf":[{"type":"number"},{"type":"null"}]},"ci":{"anyOf":[{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}]},{"type":"null"}]},"n":{"type":"number"}},"required":["value","ci","n"],"additionalProperties":false},"abstention":{"description":"abstention_aware_accuracy: correct of all judged-or-declined runs, with the not-attempted rate and correct-given-attempted as parts. Present only when some response was judged NOT ATTEMPTED.","type":"object","properties":{"value":{"anyOf":[{"type":"number"},{"type":"null"}]},"ci":{"anyOf":[{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}]},{"type":"null"}]},"n":{"type":"number"},"parts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"value":{"anyOf":[{"type":"number"},{"type":"null"}]},"n":{"type":"number"}},"required":["id","label","value","n"],"additionalProperties":false}}},"required":["value","ci","n"],"additionalProperties":false},"graded":{"type":"number"},"unmeasured":{"type":"number"},"modelJudged":{"type":"boolean"}},"required":["cells","overall","graded","unmeasured","modelJudged"],"additionalProperties":false}},"required":["key","label","position","role","composition","agg","perCell"],"additionalProperties":false}},"contrasts":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"contrastId":{"type":"string","description":"`<referenceArm>~<subjectArm>`: the planned contrast this block reads."},"referenceArm":{"type":"string","description":"The group in the view's reference slot (`baseline` in its figures)."},"subjectArm":{"type":"string","description":"The group in the view's subject slot (`skill` in its figures)."},"oriented":{"type":"boolean","description":"True iff `referenceArm` is the study's declared reference group."},"basis":{"type":"object","properties":{"id":{"type":"string","enum":["matched","whole_setup"]},"compared":{"type":"object","properties":{"reference":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string"},"model":{"type":"string"},"provider":{"type":"string"},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["harness","model"],"additionalProperties":false}},"subject":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string"},"model":{"type":"string"},"provider":{"type":"string"},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["harness","model"],"additionalProperties":false}}},"required":["reference","subject"],"additionalProperties":false,"description":"The agents each side is compared on."},"excluded":{"type":"object","properties":{"reference":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string"},"model":{"type":"string"},"provider":{"type":"string"},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["harness","model"],"additionalProperties":false}},"subject":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string"},"model":{"type":"string"},"provider":{"type":"string"},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["harness","model"],"additionalProperties":false}}},"required":["reference","subject"],"additionalProperties":false,"description":"The agents OUTSIDE this comparison: ones only that side ran (matched), or ones both ran identically (a re-based whole setup)."},"differsIn":{"type":"array","items":{"type":"string"},"description":"What the two sides differ in as this basis compares them ('agents' on a whole setup)."},"licensedFacet":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The one facet a sentence may attribute the result to; null = 'setup against setup' wording only."},"efficiency":{"type":"string","enum":["comparable","incomparable"],"description":"'incomparable': the compared agents report cache reads differently, so tokens and cost carry no direction."},"pairedTasks":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}],"description":"A whole setup's tasks both sides measured (null: matched)."},"dropped":{"anyOf":[{"type":"object","properties":{"reference":{"type":"integer","minimum":0,"maximum":9007199254740991},"subject":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["reference","subject"],"additionalProperties":false},{"type":"null"}],"description":"A whole setup's tasks each side dropped because one of its agents went unmeasured there."}},"required":["id","compared","excluded","differsIn","licensedFacet","efficiency","pairedTasks","dropped"],"additionalProperties":false,"description":"How this contrast was compared, and what that lets the page say."},"magnitudes":{"type":"string","const":"relative"},"summary":{"type":"object","properties":{"verdict":{"type":"string","enum":["delivered","partial","not_delivered","inconclusive","measured"]},"headline":{"type":"array","items":{"type":"object","properties":{"metric":{"type":"string","enum":["total_tokens","output_tokens","cost_usd","duration_ms","num_turns","success_rate","completion_rate","goal_rate"]},"label":{"type":"string"},"direction":{"type":"string","enum":["down","up"]},"baselineAvg":{"anyOf":[{"type":"number"},{"type":"null"}]},"skillAvg":{"anyOf":[{"type":"number"},{"type":"null"}]},"deltaPct":{"anyOf":[{"type":"number"},{"type":"null"}]},"delta":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","const":"pp"},"absolute":{"anyOf":[{"type":"number"},{"type":"null"}]},"relativePct":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["unit","absolute","relativePct"],"additionalProperties":false},{"type":"object","properties":{"unit":{"type":"string","const":"pts"},"absolute":{"anyOf":[{"type":"number"},{"type":"null"}]},"relativePct":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["unit","absolute"],"additionalProperties":false},{"type":"object","properties":{"unit":{"type":"string","const":"%"},"relativePct":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["unit","relativePct"],"additionalProperties":false}]},"improved":{"type":"boolean"}},"required":["metric","label","direction","baselineAvg","skillAvg","deltaPct","improved"],"additionalProperties":false}},"completionRate":{"type":"object","properties":{"baseline":{"anyOf":[{"type":"number"},{"type":"null"}]},"skill":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["baseline","skill"],"additionalProperties":false},"goalRate":{"type":"object","properties":{"baseline":{"anyOf":[{"type":"number"},{"type":"null"}]},"skill":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["baseline","skill"],"additionalProperties":false},"pairwise":{"type":"object","properties":{"pairs":{"type":"number"},"skillWins":{"type":"number"},"baselineWins":{"type":"number"},"ties":{"type":"number"},"winRate":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["pairs","skillWins","baselineWins","ties","winRate"],"additionalProperties":false},"decision":{"type":"object","properties":{"winner":{"type":"string","enum":["treatment","baseline","tie","unmeasurable"]},"basis":{"type":"string","enum":["infra","goal","evals","benchmark","quality","efficiency","judge","insufficient"]},"reason":{"type":"string"},"efficiencyDiscounted":{"type":"boolean"}},"required":["winner","basis","reason","efficiencyDiscounted"],"additionalProperties":false},"concentration":{"type":"object","properties":{"perCell":{"type":"array","items":{"type":"object","properties":{"cell":{"type":"string"},"goalDeltaPp":{"anyOf":[{"type":"number"},{"type":"null"}]},"contributionPct":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["cell","goalDeltaPp","contributionPct"],"additionalProperties":false}},"heterogeneity":{"anyOf":[{"type":"object","properties":{"dominantCell":{"type":"string"},"contributionPct":{"type":"number"}},"required":["dominantCell","contributionPct"],"additionalProperties":false},{"type":"null"}]}},"required":["perCell","heterogeneity"],"additionalProperties":false},"matrixShape":{"type":"object","properties":{"cells":{"type":"number"},"harnesses":{"type":"number"},"models":{"type":"number"},"crossed":{"type":"boolean"}},"required":["cells","harnesses","models","crossed"],"additionalProperties":false},"flakiness":{"type":"object","properties":{"measured":{"type":"boolean"},"conditions":{"type":"number"},"unstable":{"type":"number"},"worst":{"anyOf":[{"type":"object","properties":{"cell":{"type":"string"},"taskId":{"type":"string"},"arm":{"type":"string","enum":["baseline","skill"]},"variant":{"type":"number"},"passRate":{"type":"number"}},"required":["cell","taskId","arm","passRate"],"additionalProperties":false},{"type":"null"}]}},"required":["measured","conditions","unstable","worst"],"additionalProperties":false},"arms":{"type":"object","properties":{"baseline":{"type":"object","properties":{"runs":{"type":"number"},"completed":{"type":"number"},"infraFailures":{"type":"number"},"completionRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalTally":{"type":"object","properties":{"achieved":{"type":"number"},"partial":{"type":"number"},"missed":{"type":"number"}},"required":["achieved","partial","missed"],"additionalProperties":false},"avgTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgOutputTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgTurns":{"anyOf":[{"type":"number"},{"type":"null"}]},"costCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgQualityScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"gradedCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95CostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95TotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95DurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"evalPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"benchmarkPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"adoptionRate":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["runs","completed","infraFailures","completionRate","goalRate","goalTally","avgTotalTokens","avgOutputTokens","avgCostUsd","avgDurationMs","avgTurns","costCoverage","avgQualityScore","gradedCoverage","medianCostUsd","medianTotalTokens","medianDurationMs","p95CostUsd","p95TotalTokens","p95DurationMs","maxCostUsd","maxTotalTokens","maxDurationMs"],"additionalProperties":false},"skill":{"type":"object","properties":{"runs":{"type":"number"},"completed":{"type":"number"},"infraFailures":{"type":"number"},"completionRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalTally":{"type":"object","properties":{"achieved":{"type":"number"},"partial":{"type":"number"},"missed":{"type":"number"}},"required":["achieved","partial","missed"],"additionalProperties":false},"avgTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgOutputTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgTurns":{"anyOf":[{"type":"number"},{"type":"null"}]},"costCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgQualityScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"gradedCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95CostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95TotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95DurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"evalPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"benchmarkPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"adoptionRate":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["runs","completed","infraFailures","completionRate","goalRate","goalTally","avgTotalTokens","avgOutputTokens","avgCostUsd","avgDurationMs","avgTurns","costCoverage","avgQualityScore","gradedCoverage","medianCostUsd","medianTotalTokens","medianDurationMs","p95CostUsd","p95TotalTokens","p95DurationMs","maxCostUsd","maxTotalTokens","maxDurationMs"],"additionalProperties":false}},"required":["baseline","skill"],"additionalProperties":false},"totals":{"type":"object","properties":{"cells":{"type":"number"},"runs":{"type":"number"},"completed":{"type":"number"},"failed":{"type":"number"},"costUsd":{"type":"number"},"tokens":{"type":"number"}},"required":["cells","runs","completed","failed","costUsd","tokens"],"additionalProperties":false}},"required":["verdict","headline","completionRate","goalRate","pairwise","concentration","matrixShape","totals"],"additionalProperties":false},"perCell":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string"},"model":{"type":"string"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}]},"paramsKey":{"type":"string"},"label":{"type":"string"},"baseline":{"type":"object","properties":{"runs":{"type":"number"},"completed":{"type":"number"},"infraFailures":{"type":"number"},"completionRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalTally":{"type":"object","properties":{"achieved":{"type":"number"},"partial":{"type":"number"},"missed":{"type":"number"}},"required":["achieved","partial","missed"],"additionalProperties":false},"avgTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgOutputTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgTurns":{"anyOf":[{"type":"number"},{"type":"null"}]},"costCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgQualityScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"gradedCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95CostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95TotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95DurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"evalPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"benchmarkPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"adoptionRate":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["runs","completed","infraFailures","completionRate","goalRate","goalTally","avgTotalTokens","avgOutputTokens","avgCostUsd","avgDurationMs","avgTurns","costCoverage","avgQualityScore","gradedCoverage","medianCostUsd","medianTotalTokens","medianDurationMs","p95CostUsd","p95TotalTokens","p95DurationMs","maxCostUsd","maxTotalTokens","maxDurationMs"],"additionalProperties":false},"skill":{"type":"object","properties":{"runs":{"type":"number"},"completed":{"type":"number"},"infraFailures":{"type":"number"},"completionRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalTally":{"type":"object","properties":{"achieved":{"type":"number"},"partial":{"type":"number"},"missed":{"type":"number"}},"required":["achieved","partial","missed"],"additionalProperties":false},"avgTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgOutputTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgTurns":{"anyOf":[{"type":"number"},{"type":"null"}]},"costCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgQualityScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"gradedCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95CostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95TotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95DurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"evalPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"benchmarkPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"adoptionRate":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["runs","completed","infraFailures","completionRate","goalRate","goalTally","avgTotalTokens","avgOutputTokens","avgCostUsd","avgDurationMs","avgTurns","costCoverage","avgQualityScore","gradedCoverage","medianCostUsd","medianTotalTokens","medianDurationMs","p95CostUsd","p95TotalTokens","p95DurationMs","maxCostUsd","maxTotalTokens","maxDurationMs"],"additionalProperties":false},"deltas":{"type":"object","properties":{"totalTokensPct":{"anyOf":[{"type":"number"},{"type":"null"}]},"outputTokensPct":{"anyOf":[{"type":"number"},{"type":"null"}]},"costUsdPct":{"anyOf":[{"type":"number"},{"type":"null"}]},"durationMsPct":{"anyOf":[{"type":"number"},{"type":"null"}]},"numTurnsPct":{"anyOf":[{"type":"number"},{"type":"null"}]},"completionRatePp":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalRatePp":{"anyOf":[{"type":"number"},{"type":"null"}]},"qualityScorePts":{"anyOf":[{"type":"number"},{"type":"null"}]},"evalPassRatePp":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["totalTokensPct","outputTokensPct","costUsdPct","durationMsPct","numTurnsPct","completionRatePp","goalRatePp","qualityScorePts"],"additionalProperties":false}},"required":["harness","model","provider","baseline","skill","deltas"],"additionalProperties":false}}},"required":["contrastId","referenceArm","subjectArm","oriented","magnitudes","summary","perCell"],"additionalProperties":false},{"type":"object","properties":{"contrastId":{"type":"string","description":"`<referenceArm>~<subjectArm>`: the planned contrast this block reads."},"referenceArm":{"type":"string","description":"The group in the view's reference slot (`baseline` in its figures)."},"subjectArm":{"type":"string","description":"The group in the view's subject slot (`skill` in its figures)."},"oriented":{"type":"boolean","description":"True iff `referenceArm` is the study's declared reference group."},"basis":{"type":"object","properties":{"id":{"type":"string","enum":["matched","whole_setup"]},"compared":{"type":"object","properties":{"reference":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string"},"model":{"type":"string"},"provider":{"type":"string"},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["harness","model"],"additionalProperties":false}},"subject":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string"},"model":{"type":"string"},"provider":{"type":"string"},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["harness","model"],"additionalProperties":false}}},"required":["reference","subject"],"additionalProperties":false,"description":"The agents each side is compared on."},"excluded":{"type":"object","properties":{"reference":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string"},"model":{"type":"string"},"provider":{"type":"string"},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["harness","model"],"additionalProperties":false}},"subject":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string"},"model":{"type":"string"},"provider":{"type":"string"},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["harness","model"],"additionalProperties":false}}},"required":["reference","subject"],"additionalProperties":false,"description":"The agents OUTSIDE this comparison: ones only that side ran (matched), or ones both ran identically (a re-based whole setup)."},"differsIn":{"type":"array","items":{"type":"string"},"description":"What the two sides differ in as this basis compares them ('agents' on a whole setup)."},"licensedFacet":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The one facet a sentence may attribute the result to; null = 'setup against setup' wording only."},"efficiency":{"type":"string","enum":["comparable","incomparable"],"description":"'incomparable': the compared agents report cache reads differently, so tokens and cost carry no direction."},"pairedTasks":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}],"description":"A whole setup's tasks both sides measured (null: matched)."},"dropped":{"anyOf":[{"type":"object","properties":{"reference":{"type":"integer","minimum":0,"maximum":9007199254740991},"subject":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["reference","subject"],"additionalProperties":false},{"type":"null"}],"description":"A whole setup's tasks each side dropped because one of its agents went unmeasured there."}},"required":["id","compared","excluded","differsIn","licensedFacet","efficiency","pairedTasks","dropped"],"additionalProperties":false,"description":"How this contrast was compared, and what that lets the page say."},"magnitudes":{"type":"string","const":"absolute"},"summary":{"type":"object","properties":{"completionRate":{"type":"object","properties":{"baseline":{"anyOf":[{"type":"number"},{"type":"null"}]},"skill":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["baseline","skill"],"additionalProperties":false},"goalRate":{"type":"object","properties":{"baseline":{"anyOf":[{"type":"number"},{"type":"null"}]},"skill":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["baseline","skill"],"additionalProperties":false},"pairwise":{"type":"object","properties":{"pairs":{"type":"number"},"skillWins":{"type":"number"},"baselineWins":{"type":"number"},"ties":{"type":"number"},"winRate":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["pairs","skillWins","baselineWins","ties","winRate"],"additionalProperties":false},"decision":{"type":"object","properties":{"winner":{"type":"string","enum":["treatment","baseline","tie","unmeasurable"]},"basis":{"type":"string","enum":["infra","goal","evals","benchmark","quality","efficiency","judge","insufficient"]},"reason":{"type":"string"},"efficiencyDiscounted":{"type":"boolean"}},"required":["winner","basis","reason","efficiencyDiscounted"],"additionalProperties":false},"concentration":{"type":"object","properties":{"perCell":{"type":"array","items":{"type":"object","properties":{"cell":{"type":"string"},"goalDeltaPp":{"anyOf":[{"type":"number"},{"type":"null"}]},"contributionPct":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["cell","goalDeltaPp","contributionPct"],"additionalProperties":false}},"heterogeneity":{"anyOf":[{"type":"object","properties":{"dominantCell":{"type":"string"},"contributionPct":{"type":"number"}},"required":["dominantCell","contributionPct"],"additionalProperties":false},{"type":"null"}]}},"required":["perCell","heterogeneity"],"additionalProperties":false},"matrixShape":{"type":"object","properties":{"cells":{"type":"number"},"harnesses":{"type":"number"},"models":{"type":"number"},"crossed":{"type":"boolean"}},"required":["cells","harnesses","models","crossed"],"additionalProperties":false},"flakiness":{"type":"object","properties":{"measured":{"type":"boolean"},"conditions":{"type":"number"},"unstable":{"type":"number"},"worst":{"anyOf":[{"type":"object","properties":{"cell":{"type":"string"},"taskId":{"type":"string"},"arm":{"type":"string","enum":["baseline","skill"]},"variant":{"type":"number"},"passRate":{"type":"number"}},"required":["cell","taskId","arm","passRate"],"additionalProperties":false},{"type":"null"}]}},"required":["measured","conditions","unstable","worst"],"additionalProperties":false},"arms":{"type":"object","properties":{"baseline":{"type":"object","properties":{"runs":{"type":"number"},"completed":{"type":"number"},"infraFailures":{"type":"number"},"completionRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalTally":{"type":"object","properties":{"achieved":{"type":"number"},"partial":{"type":"number"},"missed":{"type":"number"}},"required":["achieved","partial","missed"],"additionalProperties":false},"avgTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgOutputTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgTurns":{"anyOf":[{"type":"number"},{"type":"null"}]},"costCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgQualityScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"gradedCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95CostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95TotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95DurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"evalPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"benchmarkPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"adoptionRate":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["runs","completed","infraFailures","completionRate","goalRate","goalTally","avgTotalTokens","avgOutputTokens","avgCostUsd","avgDurationMs","avgTurns","costCoverage","avgQualityScore","gradedCoverage","medianCostUsd","medianTotalTokens","medianDurationMs","p95CostUsd","p95TotalTokens","p95DurationMs","maxCostUsd","maxTotalTokens","maxDurationMs"],"additionalProperties":false},"skill":{"type":"object","properties":{"runs":{"type":"number"},"completed":{"type":"number"},"infraFailures":{"type":"number"},"completionRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalTally":{"type":"object","properties":{"achieved":{"type":"number"},"partial":{"type":"number"},"missed":{"type":"number"}},"required":["achieved","partial","missed"],"additionalProperties":false},"avgTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgOutputTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgTurns":{"anyOf":[{"type":"number"},{"type":"null"}]},"costCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgQualityScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"gradedCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95CostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95TotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95DurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"evalPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"benchmarkPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"adoptionRate":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["runs","completed","infraFailures","completionRate","goalRate","goalTally","avgTotalTokens","avgOutputTokens","avgCostUsd","avgDurationMs","avgTurns","costCoverage","avgQualityScore","gradedCoverage","medianCostUsd","medianTotalTokens","medianDurationMs","p95CostUsd","p95TotalTokens","p95DurationMs","maxCostUsd","maxTotalTokens","maxDurationMs"],"additionalProperties":false}},"required":["baseline","skill"],"additionalProperties":false},"totals":{"type":"object","properties":{"cells":{"type":"number"},"runs":{"type":"number"},"completed":{"type":"number"},"failed":{"type":"number"},"costUsd":{"type":"number"},"tokens":{"type":"number"}},"required":["cells","runs","completed","failed","costUsd","tokens"],"additionalProperties":false}},"required":["completionRate","goalRate","pairwise","concentration","matrixShape","totals"],"additionalProperties":false},"perCell":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string"},"model":{"type":"string"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}]},"paramsKey":{"type":"string"},"label":{"type":"string"},"baseline":{"type":"object","properties":{"runs":{"type":"number"},"completed":{"type":"number"},"infraFailures":{"type":"number"},"completionRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalTally":{"type":"object","properties":{"achieved":{"type":"number"},"partial":{"type":"number"},"missed":{"type":"number"}},"required":["achieved","partial","missed"],"additionalProperties":false},"avgTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgOutputTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgTurns":{"anyOf":[{"type":"number"},{"type":"null"}]},"costCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgQualityScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"gradedCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95CostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95TotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95DurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"evalPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"benchmarkPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"adoptionRate":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["runs","completed","infraFailures","completionRate","goalRate","goalTally","avgTotalTokens","avgOutputTokens","avgCostUsd","avgDurationMs","avgTurns","costCoverage","avgQualityScore","gradedCoverage","medianCostUsd","medianTotalTokens","medianDurationMs","p95CostUsd","p95TotalTokens","p95DurationMs","maxCostUsd","maxTotalTokens","maxDurationMs"],"additionalProperties":false},"skill":{"type":"object","properties":{"runs":{"type":"number"},"completed":{"type":"number"},"infraFailures":{"type":"number"},"completionRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalTally":{"type":"object","properties":{"achieved":{"type":"number"},"partial":{"type":"number"},"missed":{"type":"number"}},"required":["achieved","partial","missed"],"additionalProperties":false},"avgTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgOutputTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgTurns":{"anyOf":[{"type":"number"},{"type":"null"}]},"costCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgQualityScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"gradedCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95CostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95TotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95DurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"evalPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"benchmarkPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"adoptionRate":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["runs","completed","infraFailures","completionRate","goalRate","goalTally","avgTotalTokens","avgOutputTokens","avgCostUsd","avgDurationMs","avgTurns","costCoverage","avgQualityScore","gradedCoverage","medianCostUsd","medianTotalTokens","medianDurationMs","p95CostUsd","p95TotalTokens","p95DurationMs","maxCostUsd","maxTotalTokens","maxDurationMs"],"additionalProperties":false},"deltas":{"type":"object","properties":{"completionRatePp":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalRatePp":{"anyOf":[{"type":"number"},{"type":"null"}]},"qualityScorePts":{"anyOf":[{"type":"number"},{"type":"null"}]},"evalPassRatePp":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["completionRatePp","goalRatePp","qualityScorePts"],"additionalProperties":false}},"required":["harness","model","provider","baseline","skill","deltas"],"additionalProperties":false}}},"required":["contrastId","referenceArm","subjectArm","oriented","magnitudes","summary","perCell"],"additionalProperties":false}],"description":"One planned contrast, read by the paired engine over its two groups (`baseline` = `referenceArm`, `skill` = `subjectArm`). `magnitudes: 'relative'` (the contrast is against the declared reference): today's A/B figures, relative deltas included. `magnitudes: 'absolute'` (two peers): no promise readout, no relative delta, and `summary.decision.reason` is the contrast's absolute-only explanation; read its figures as absolute values and pp / pts differences, with the arm order named by `referenceArm` / `subjectArm`."}},"board":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string"},"model":{"type":"string"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}]},"paramsKey":{"type":"string"},"label":{"type":"string"},"arm":{"type":"string"},"runs":{"type":"number"},"completed":{"type":"number"},"completionRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgQualityScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"evalPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"benchmarkPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"compositeScore":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The composite on the board-wide anchor; the ranking key."},"avgTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgOutputTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"rank":{"type":"number"}},"required":["harness","model","provider","arm","runs","completed","completionRate","goalRate","avgQualityScore","evalPassRate","compositeScore","avgTotalTokens","avgOutputTokens","avgCostUsd","avgDurationMs","medianCostUsd","medianTotalTokens","medianDurationMs","rank"],"additionalProperties":false}},"setupsBoard":{"description":"The All setups board — one row per (group, agent), ranked on the composite; rows whose composites print alike share a rank. Present only when the groups list their own agents. A table, not a claim: no significance, and no ordering between groups is a finding (only a planned comparison is).","type":"array","items":{"type":"object","properties":{"harness":{"type":"string"},"model":{"type":"string"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}]},"paramsKey":{"type":"string"},"label":{"type":"string"},"arm":{"type":"string"},"runs":{"type":"number"},"completed":{"type":"number"},"completionRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgQualityScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"evalPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"benchmarkPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"compositeScore":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The composite on the board-wide anchor; the ranking key."},"avgTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgOutputTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"rank":{"type":"number"},"group":{"type":"string","description":"The group's name."},"agent":{"type":"string","description":"The agent's name: harness / model, with its pinned params."},"setup":{"type":"string","description":"'<group> · <agent>': the row's one label."}},"required":["harness","model","provider","arm","runs","completed","completionRate","goalRate","avgQualityScore","evalPassRate","compositeScore","avgTotalTokens","avgOutputTokens","avgCostUsd","avgDurationMs","medianCostUsd","medianTotalTokens","medianDurationMs","rank","group","agent","setup"],"additionalProperties":false}},"perTask":{"type":"array","items":{"type":"object","properties":{"taskId":{"type":"string"},"position":{"type":"number"},"promptPreview":{"type":"string"},"requiresWeb":{"type":"boolean"},"category":{"anyOf":[{"type":"string"},{"type":"null"}]},"byArm":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"tally":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"}},"evalPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["tally"],"additionalProperties":false}}},"required":["taskId","position","promptPreview","requiresWeb","category","byArm"],"additionalProperties":false}},"behavior":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string"},"model":{"type":"string"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}]},"arm":{"type":"string"},"totalRuns":{"type":"number"},"signals":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"tone":{"type":"string","enum":["good","bad","neutral"]},"runCount":{"type":"number"},"succeededCount":{"type":"number"}},"required":["id","label","tone","runCount","succeededCount"],"additionalProperties":false}}},"required":["harness","model","provider","arm","totalRuns","signals"],"additionalProperties":false}},"execution":{"description":"The `execution` lens's section, one per group, keyed by the group's key.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"graded":{"type":"number"},"measured":{"type":"number"},"passed":{"type":"number"},"passRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"byStatus":{"type":"object","properties":{"passed":{"type":"number"},"failed":{"type":"number"},"timeout":{"type":"number"},"error":{"type":"number"},"unavailable":{"type":"number"}},"required":["passed","failed","timeout","error","unavailable"],"additionalProperties":false},"languages":{"type":"array","items":{"type":"string"}},"unavailableReasons":{"type":"array","items":{"type":"string"}}},"required":["graded","measured","passed","passRate","byStatus","languages","unavailableReasons"],"additionalProperties":false}},"inference":{"type":"object","properties":{"contrasts":{"type":"array","items":{"type":"object","properties":{"contrastId":{"type":"string"},"table":{"anyOf":[{"type":"object","properties":{"columns":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"family":{"type":"string","enum":["rate","score","magnitude"]},"betterWhen":{"type":"string","enum":["higher","lower"]}},"required":["key","label","family","betterWhen"],"additionalProperties":false}},"groups":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["cell","harness","model","field"]},"title":{"type":"string"},"rows":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"kind":{"type":"string","enum":["cell","harness","model","field"]},"harness":{"anyOf":[{"type":"string"},{"type":"null"}]},"model":{"anyOf":[{"type":"string"},{"type":"null"}]},"paramsKey":{"type":"string"},"runs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"estimate":{"anyOf":[{"type":"object","properties":{"value":{"type":"number"},"interval":{"type":"object","properties":{"lo":{"type":"number"},"hi":{"type":"number"}},"required":["lo","hi"],"additionalProperties":false,"description":"A 95% bootstrap percentile interval."},"n":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["value","interval","n"],"additionalProperties":false},{"type":"null"}]},"reference":{"anyOf":[{"type":"object","properties":{"value":{"type":"number"},"interval":{"type":"object","properties":{"lo":{"type":"number"},"hi":{"type":"number"}},"required":["lo","hi"],"additionalProperties":false,"description":"A 95% bootstrap percentile interval."},"n":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["value","interval","n"],"additionalProperties":false},{"type":"null"}]},"comparison":{"anyOf":[{"type":"object","properties":{"effect":{"type":"number"},"unit":{"type":"string","enum":["pp","pts","%"]},"interval":{"type":"object","properties":{"lo":{"type":"number"},"hi":{"type":"number"}},"required":["lo","hi"],"additionalProperties":false,"description":"A 95% bootstrap percentile interval."},"p":{"type":"number"},"n":{"minItems":2,"maxItems":2,"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"from":{"type":"number"},"to":{"type":"number"}},"required":["effect","unit","interval","p","n"],"additionalProperties":false},{"type":"null"}]},"adjustedP":{"anyOf":[{"type":"number"},{"type":"null"}]},"tier":{"type":"integer","minimum":0,"maximum":3},"direction":{"type":"string","enum":["better","worse","none"]},"untested":{"type":"boolean"}},"required":["estimate","reference","comparison","adjustedP","tier","direction","untested"],"additionalProperties":false}}},"required":["key","kind","harness","model","runs","cells"],"additionalProperties":false}}},"required":["kind","title","rows"],"additionalProperties":false}},"reference":{"type":"string","enum":["baseline","field"]},"draws":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"adjustment":{"type":"object","properties":{"scope":{"type":"string","const":"planned-comparisons"},"comparisons":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many planned comparisons the family spans."}},"required":["scope","comparisons"],"additionalProperties":false,"description":"How this table's significance marks were adjusted: jointly, across the study's planned comparisons."}},"required":["columns","groups","reference","draws","adjustment"],"additionalProperties":false,"description":"A planned contrast's scientific table, `baseline` = its `referenceArm` and the subject = its `subjectArm`. Every cell's `adjustedP`, `tier` and `direction` are Holm-adjusted per column ACROSS the planned comparisons (never within this table alone). A magnitude cell's `comparison.effect` is relative to the reference group: on a contrast whose block says `magnitudes: 'absolute'` read its `from` → `to` and its p instead."},{"type":"null"}]}},"required":["contrastId","table"],"additionalProperties":false},"description":"One per planned contrast, in plan order; every table null while the family is pending."},"holm":{"oneOf":[{"type":"object","properties":{"status":{"type":"string","const":"complete"},"ready":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many of the planned contrasts' tables are stored."},"planned":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many contrasts the study planned."},"adjustment":{"type":"object","properties":{"scope":{"type":"string","const":"planned-comparisons"},"comparisons":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many planned comparisons the family spans."}},"required":["scope","comparisons"],"additionalProperties":false,"description":"How this table's significance marks were adjusted: jointly, across the study's planned comparisons."}},"required":["status","ready","planned","adjustment"],"additionalProperties":false},{"type":"object","properties":{"status":{"type":"string","const":"pending"},"ready":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many of the planned contrasts' tables are stored."},"planned":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many contrasts the study planned."}},"required":["status","ready","planned"],"additionalProperties":false}],"description":"The planned family: complete (every table published, jointly adjusted) or pending (no table published)."},"claims":{"type":"object","properties":{"perContrast":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"contrastId":{"type":"string"},"referenceArm":{"type":"string"},"subjectArm":{"type":"string"},"basis":{"type":"string","enum":["infra","goal","evals","benchmark","quality","efficiency","judge","insufficient"]},"claim":{"type":"string","enum":["beat","margin-only","judge-preference","pending","none"],"description":"`beat`: won, and every deciding cell of the published table is significant in the winner's direction. `margin-only`: won by the decision's margin, not a tested difference. `judge-preference`: the blind judge's preference, its split surviving the adjustment across the planned comparisons. `pending`: tables still computing. `none`: a tie, or nothing measured."},"testedFamilies":{"type":"array","items":{"type":"string","enum":["cost","tokens","duration","quality","goal","evals","benchmark"]},"description":"The families the significance gate passed — empty unless `claim` is `beat`."}},"required":["contrastId","referenceArm","subjectArm","basis","claim","testedFamilies"],"additionalProperties":false},"description":"Keyed by `contrastId`."},"ranking":{"type":"string","enum":["beat-all","won-all-on-ladder","ranks-first","composite-with-loss","pending","none"],"description":"What the ranking may claim about its leader."}},"required":["perContrast","ranking"],"additionalProperties":false}},"required":["contrasts","holm","claims"],"additionalProperties":false,"description":"The planned contrasts' tables and what they license; attached on the read path, never cached."},"timeBasis":{"description":"What the study's time was scored on: 'run_time' (the agent's own time, first model request → last model response) when every finished run carried a measured timeline. Absent = wall-clock, setup and teardown included.","type":"string","enum":["run_time","wall_clock"]},"timeMeasures":{"description":"Every selectable time measure per group (run time; startup + run; installations + startup + run; total), descriptive only — the study is scored on run time. Present only when timeBasis is 'run_time'.","type":"object","properties":{"byArm":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","propertyNames":{"type":"string","enum":["run_time","startup_and_run","install_startup_run","total"]},"additionalProperties":{"type":"object","properties":{"median":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95":{"anyOf":[{"type":"number"},{"type":"null"}]},"mean":{"anyOf":[{"type":"number"},{"type":"null"}]},"n":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"How many of the group's runs measured it."}},"required":["median","p95","mean","n"],"additionalProperties":false},"required":["run_time","startup_and_run","install_startup_run","total"]}},"phasesByArm":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","propertyNames":{"type":"string","enum":["waiting","boot","installations","startup","run","verification","teardown"]},"additionalProperties":{"type":"object","properties":{"median":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95":{"anyOf":[{"type":"number"},{"type":"null"}]},"mean":{"anyOf":[{"type":"number"},{"type":"null"}]},"n":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"How many of the group's runs measured it."}},"required":["median","p95","mean","n"],"additionalProperties":false},"required":["waiting","boot","installations","startup","run","verification","teardown"]},"description":"Where each group's time went: every phase on its own (a phase a run never had counts as no time)."}},"required":["byArm","phasesByArm"],"additionalProperties":false},"runCounting":{"description":"Present only when the study holds runs back from its numbers (its counting policy). Every figure of this readout is over the runs that count; this says how many were left out and from which group.","type":"object","properties":{"policy":{"type":"string","description":"The policy the figures were computed under: 'hold_back_screened:<screen>:<levels>'."},"screen":{"type":"string","description":"The screen whose verdicts decided."},"levels":{"type":"array","items":{"type":"string"},"description":"The verdict levels held back."},"heldBack":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Runs left out of every figure of this readout: missing measurements, never fails."},"groups":{"type":"array","items":{"type":"object","properties":{"group":{"type":"string"},"heldBack":{"type":"integer","minimum":0,"maximum":9007199254740991},"runs":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The group's runs that ended."}},"required":["group","heldBack","runs"],"additionalProperties":false},"description":"The same count per group."},"imbalanced":{"type":"boolean","description":"true when two groups' held-back shares differ by more than 10 points: the policy removed one group's runs selectively."}},"required":["policy","screen","levels","heldBack","groups","imbalanced"],"additionalProperties":false},"webToolsOff":{"description":"Present only when a group of the study ran its agents with their own web tools switched off. That is a switch on the agent's tools: the network was not blocked, so an agent that can run a command can still reach the web that way. Every run of such a group is screened for web use, and this says, per group, how many runs were screened and what the screen found. Counts over all the study's runs, whatever its counting policy holds back. Counts only: what a trace can show differs by agent, so they are never compared between agents.","type":"object","properties":{"groups":{"type":"array","items":{"type":"object","properties":{"group":{"type":"string","description":"The group's key."},"runs":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The group's runs that ended and that ora's own infrastructure did not kill: the runs the screen applies to."},"screened":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Of those, the runs that carry a verdict. 0 = no run of the group has been screened: never read that as no run reaching the web."},"held":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Screened runs whose complete trace shows no step that reached the web."},"fetched":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Screened runs in which a step reached the web, by the agent's own tool or its shell. Each is labelled on its run, and is left out of no figure for it."},"notMeasured":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Screened runs the screen could not say for (the run's `screens.web_tools_off.reason` says why). Neither held nor fetched."}},"required":["group","runs","screened","held","fetched","notMeasured"],"additionalProperties":false},"description":"One row per group that ran with web tools off, in the groups' own order."}},"required":["groups"],"additionalProperties":false}},"required":["shape","summary","arms","contrasts","board","perTask"],"additionalProperties":false}]},"warnings":{"type":"array","items":{"anyOf":[{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"eval_capability_gap"},"harness":{"type":"string"},"kind":{"type":"string"}},"required":["type","harness","kind"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["judge_removed_rubric_unused","evals_skill_loaded_not_pointer","no_gradable_input"]},"detail":{"type":"string"},"taskIds":{"type":"array","items":{"type":"string"}}},"required":["type","detail"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"design_lint"},"lint":{"type":"string","description":"Which lint found it: 'evaluation_wording' or 'grading_details_in_prompt'."},"detail":{"type":"string"},"taskIds":{"type":"array","items":{"type":"string"},"description":"The tasks the finding is about."}},"required":["type","lint","detail","taskIds"],"additionalProperties":false}]},{"type":"object","properties":{"type":{"type":"string","const":"design_aggregate_budget"},"detail":{"type":"string","description":"Which setups exceed the leaderboard's work budget, on which benchmark."}},"required":["type","detail"],"additionalProperties":false,"description":"A declared-arm study pinning a leaderboard benchmark: its setups (each group on each agent it runs) alone can take the benchmark off the cross-benchmark leaderboard (`within_budget`) once its runs are graded and published."}]},"description":"Non-blocking findings recomputed FRESH on every read (F3/F4/F5, 2026-08-31): 'evals'-lens capability gaps the roster cannot measure, a pointer-delivery gap for a 'skill_loaded' expectation, and/or a lens set with no gradable input across any task. Never a create-time snapshot, and never blocks anything — [] means nothing was flagged right now. A product that reports design lints adds 'design_lint' findings: something the agent will read tells it this is a test, or a prompt repeats its own grading criteria. Also raised, whatever the study's lenses, for a group that runs with web tools off on an agent whose trace cannot show every way it reaches the web (kind 'web_fetched'): that agent's runs are screened and answered 'not measured'."},"taskHealth":{"type":"object","properties":{"flags":{"type":"array","items":{"type":"object","properties":{"taskId":{"type":"string"},"signal":{"type":"string","description":"Which pass signal: 'benchmark' (its own grader), 'goal' (judge panel), 'evals'."},"kind":{"type":"string","enum":["floor","ceiling"],"description":"floor = no measured setup passed it; ceiling = every one did."},"conditions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Measured task × cell × arm conditions behind the flag (at least two)."}},"required":["taskId","signal","kind","conditions"],"additionalProperties":false}},"rubricSplits":{"type":"array","items":{"type":"object","properties":{"taskId":{"type":"string"},"criterionIndex":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"criterion":{"type":"string"},"split":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Runs whose judge panel did not agree unanimously on this criterion."},"graded":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Runs graded on it by a panel of two or more judges."}},"required":["taskId","criterionIndex","criterion","split","graded"],"additionalProperties":false}},"signals":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"}},"required":["id","label"],"additionalProperties":false},"description":"The pass signals that measured anything in this study, with what passing means under each."}},"required":["flags","rubricSplits","signals"],"additionalProperties":false,"description":"Floor tasks (no setup passed), ceiling tasks (every setup passed) and the rubric criteria the judge panel split on most. For the study's own maintainers — never published."},"shareUrl":{"description":"The path this study is readable at for its current sharing mode — `/studies/<slug>` for 'public', `/studies/<slug>?share=<token>` for 'link' (managers only), null otherwise. Relative to the app origin.","anyOf":[{"type":"string"},{"type":"null"}]},"canManageSharing":{"description":"True when this caller may change the study's sharing mode or rotate its share link.","type":"boolean"},"shareLinkKept":{"type":"boolean","description":"True when this study is NOT shared by link yet keeps a share link from when it was, switched off — managers only. The kept link opens nothing now; returning the study to 'link' brings the SAME link back, unless it is replaced first with studies.rotateShareToken. Never true for a 'link' study (its link is in `shareUrl`) or for a caller who may not manage sharing; the detail read omits the field unless it is true."},"taskSteps":{"type":"array","items":{"type":"object","properties":{"taskId":{"type":"string"},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"stepCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many steps the task has: its own prompt and its follow-ups."},"groups":{"type":"array","items":{"type":"object","properties":{"arm":{"type":"string","description":"The group's key."},"harness":{"type":"string"},"model":{"type":"string"},"runs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Runs of this task, group and agent that ended, of the runs the study counts."},"finished":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Those that succeeded. A run that did not finish has no verdict for any step: it is runs minus finished, in no step's counts."},"graded":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Finished runs with any verdict at all."},"passedEveryStep":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Of those, the runs where nothing failed in any step: the number a claim about the whole task rests on."},"steps":{"type":"array","items":{"type":"object","properties":{"step":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"0 = the task's own prompt; i = its i-th follow-up."},"hasCriteria":{"type":"boolean","description":"Whether this step has judge criteria at all."},"hasChecks":{"type":"boolean","description":"Whether this step has checks at all."},"judged":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Finished runs the judge panel graded on this step's criteria."},"judgePassed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Of those, the runs where EVERY criterion of this step passed."},"checked":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Finished runs with at least one of this step's checks measured (an abstained check measured nothing)."},"checksPassed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Of those, the runs where every measured check of this step passed."}},"required":["step","hasCriteria","hasChecks","judged","judgePassed","checked","checksPassed"],"additionalProperties":false}},"stopped":{"type":"array","items":{"type":"object","properties":{"step":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"0 = the task's own prompt; i = its i-th follow-up."},"runs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Runs that did not finish and that this step's turn ended, by the agent's own account of its turns."},"atLimit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Of those, the runs whose turn a limit ended: the study's time limit per step, or one of the agent's own."}},"required":["step","runs","atLimit"],"additionalProperties":false},"description":"Where the runs that did not finish stopped, by step, in order. A step no run stopped at is not listed. A run that did not finish and is in none of these stopped somewhere its record does not say (before its first prompt, after its last answer, or no account of its turns was recovered), so these need not add up to runs minus finished."}},"required":["arm","harness","model","runs","finished","graded","passedEveryStep","steps","stopped"],"additionalProperties":false}}},"required":["taskId","position","stepCount","groups"],"additionalProperties":false},"description":"For each task with steps, each group and each agent: how its runs did step by step. Beside the study's own figures, which it does not change (a run reaches its goal when every criterion of every step passed). A later step is measured on whatever the earlier step left, so its figure is conditional on the state each run was in. Absent when the study has no task with steps."},"interop":{"type":"object","properties":{"areas":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"}},"required":["key","label"],"additionalProperties":false},"description":"The pinned version's focus areas, in its own order."},"levels":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"within":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["key","label","within"],"additionalProperties":false},"description":"Its levels, in its own order."},"groups":{"type":"array","items":{"type":"object","properties":{"groupKey":{"type":"string"},"groupLabel":{"type":"string"},"agents":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","description":"The agent's cell key (harness, model and pinned params)."},"harness":{"type":"string"},"model":{"type":"string"},"label":{"type":"string","description":"\"harness / model\", with its pinned params."},"total":{"type":"object","properties":{"rate":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"0..1. Null = nothing to compute from (every task of the row left out), never 0."},"display":{"type":"string","description":"The rate as printed (\"62%\"); \"n/a\" when null."},"interval":{"anyOf":[{"type":"object","properties":{"lo":{"type":"number"},"hi":{"type":"number"}},"required":["lo","hi"],"additionalProperties":false,"description":"A 95% interval, in its figure's own unit."},{"type":"null"}],"description":"0..1. Tasks resampled (never runs), enveloped by the Wilson interval over the same tasks: 5 of 5 reads 57% to 100%."},"intervalDisplay":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"\"41% to 80%\"."},"counts":{"type":"object","properties":{"tasks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Tasks the figure is the mean over."},"agents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Agents it folds: the group's planned agents for an every-agent figure, 1 for one agent's score."},"measuredRuns":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Measured runs behind it: runs with a verdict, passed or failed. A run the agent failed or timed out on is a measured fail; a run still being graded, or one ora's own infrastructure killed, is not measured."},"leftOutTasks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Tasks of its row it leaves out: some agent it folds has no measured run there."}},"required":["tasks","agents","measuredRuns","leftOutTasks"],"additionalProperties":false,"description":"What the figure stands on."},"areas":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Of the declared areas, how many it has a score in (an area it measured no task in is not a zero)."}},"required":["rate","display","interval","intervalDisplay","counts","areas"],"additionalProperties":false,"description":"The mean of its focus-area scores, every area weighted the same whatever its number of tasks."}},"required":["key","harness","model","label","total"],"additionalProperties":false},"description":"The group's planned agents, in its own order."},"headline":{"type":"object","properties":{"rate":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"0..1. Null = nothing to compute from (every task of the row left out), never 0."},"display":{"type":"string","description":"The rate as printed (\"62%\"); \"n/a\" when null."},"interval":{"anyOf":[{"type":"object","properties":{"lo":{"type":"number"},"hi":{"type":"number"}},"required":["lo","hi"],"additionalProperties":false,"description":"A 95% interval, in its figure's own unit."},{"type":"null"}],"description":"0..1. Tasks resampled (never runs), enveloped by the Wilson interval over the same tasks: 5 of 5 reads 57% to 100%."},"intervalDisplay":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"\"41% to 80%\"."},"counts":{"type":"object","properties":{"tasks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Tasks the figure is the mean over."},"agents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Agents it folds: the group's planned agents for an every-agent figure, 1 for one agent's score."},"measuredRuns":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Measured runs behind it: runs with a verdict, passed or failed. A run the agent failed or timed out on is a measured fail; a run still being graded, or one ora's own infrastructure killed, is not measured."},"leftOutTasks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Tasks of its row it leaves out: some agent it folds has no measured run there."}},"required":["tasks","agents","measuredRuns","leftOutTasks"],"additionalProperties":false,"description":"What the figure stands on."}},"required":["rate","display","interval","intervalDisplay","counts"],"additionalProperties":false,"description":"How much of the benchmark works on every agent: per task, the lowest pass rate any planned agent of the group has on it, averaged over the tasks every planned agent was measured on. The gate and series metric `every_agent`."},"areas":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"tasks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The area's tasks in the study."},"agents":{"type":"array","items":{"type":"object","properties":{"rate":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"0..1. Null = nothing to compute from (every task of the row left out), never 0."},"display":{"type":"string","description":"The rate as printed (\"62%\"); \"n/a\" when null."},"interval":{"anyOf":[{"type":"object","properties":{"lo":{"type":"number"},"hi":{"type":"number"}},"required":["lo","hi"],"additionalProperties":false,"description":"A 95% interval, in its figure's own unit."},{"type":"null"}],"description":"0..1. Tasks resampled (never runs), enveloped by the Wilson interval over the same tasks: 5 of 5 reads 57% to 100%."},"intervalDisplay":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"\"41% to 80%\"."},"counts":{"type":"object","properties":{"tasks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Tasks the figure is the mean over."},"agents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Agents it folds: the group's planned agents for an every-agent figure, 1 for one agent's score."},"measuredRuns":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Measured runs behind it: runs with a verdict, passed or failed. A run the agent failed or timed out on is a measured fail; a run still being graded, or one ora's own infrastructure killed, is not measured."},"leftOutTasks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Tasks of its row it leaves out: some agent it folds has no measured run there."}},"required":["tasks","agents","measuredRuns","leftOutTasks"],"additionalProperties":false,"description":"What the figure stands on."}},"required":["rate","display","interval","intervalDisplay","counts"],"additionalProperties":false},"description":"Each agent's score in the area, in the group's agent order: the mean of its pass rates on the area's tasks it measured, each task once."},"everyAgent":{"type":"object","properties":{"rate":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"0..1. Null = nothing to compute from (every task of the row left out), never 0."},"display":{"type":"string","description":"The rate as printed (\"62%\"); \"n/a\" when null."},"interval":{"anyOf":[{"type":"object","properties":{"lo":{"type":"number"},"hi":{"type":"number"}},"required":["lo","hi"],"additionalProperties":false,"description":"A 95% interval, in its figure's own unit."},{"type":"null"}],"description":"0..1. Tasks resampled (never runs), enveloped by the Wilson interval over the same tasks: 5 of 5 reads 57% to 100%."},"intervalDisplay":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"\"41% to 80%\"."},"counts":{"type":"object","properties":{"tasks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Tasks the figure is the mean over."},"agents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Agents it folds: the group's planned agents for an every-agent figure, 1 for one agent's score."},"measuredRuns":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Measured runs behind it: runs with a verdict, passed or failed. A run the agent failed or timed out on is a measured fail; a run still being graded, or one ora's own infrastructure killed, is not measured."},"leftOutTasks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Tasks of its row it leaves out: some agent it folds has no measured run there."}},"required":["tasks","agents","measuredRuns","leftOutTasks"],"additionalProperties":false,"description":"What the figure stands on."}},"required":["rate","display","interval","intervalDisplay","counts"],"additionalProperties":false,"description":"How much of the area works on every agent: the mean over its complete-case tasks of the lowest agent pass rate."}},"required":["key","label","tasks","agents","everyAgent"],"additionalProperties":false}},"levels":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"within":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The level whose row also counts this level's tasks; null for a top-level level."},"tasks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Tasks this row counts: its own, and those of every level within it."},"everyAgent":{"type":"object","properties":{"rate":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"0..1. Null = nothing to compute from (every task of the row left out), never 0."},"display":{"type":"string","description":"The rate as printed (\"62%\"); \"n/a\" when null."},"interval":{"anyOf":[{"type":"object","properties":{"lo":{"type":"number"},"hi":{"type":"number"}},"required":["lo","hi"],"additionalProperties":false,"description":"A 95% interval, in its figure's own unit."},{"type":"null"}],"description":"0..1. Tasks resampled (never runs), enveloped by the Wilson interval over the same tasks: 5 of 5 reads 57% to 100%."},"intervalDisplay":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"\"41% to 80%\"."},"counts":{"type":"object","properties":{"tasks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Tasks the figure is the mean over."},"agents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Agents it folds: the group's planned agents for an every-agent figure, 1 for one agent's score."},"measuredRuns":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Measured runs behind it: runs with a verdict, passed or failed. A run the agent failed or timed out on is a measured fail; a run still being graded, or one ora's own infrastructure killed, is not measured."},"leftOutTasks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Tasks of its row it leaves out: some agent it folds has no measured run there."}},"required":["tasks","agents","measuredRuns","leftOutTasks"],"additionalProperties":false,"description":"What the figure stands on."}},"required":["rate","display","interval","intervalDisplay","counts"],"additionalProperties":false}},"required":["key","label","within","tasks","everyAgent"],"additionalProperties":false}},"leftOut":{"type":"array","items":{"type":"object","properties":{"taskId":{"type":"string"},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["taskId","position"],"additionalProperties":false},"description":"Tasks some planned agent has no measured run on, in position order: left out of every every-agent figure (complete case)."}},"required":["groupKey","groupLabel","agents","headline","areas","levels","leftOut"],"additionalProperties":false},"description":"One block per group, in the study's order."},"contrasts":{"type":"array","items":{"type":"object","properties":{"contrastId":{"type":"string"},"referenceGroup":{"type":"string"},"subjectGroup":{"type":"string"},"oriented":{"type":"boolean","description":"True when the reference is the study's declared reference group."},"basis":{"type":"string","description":"How the groups are compared: on the agents both ran (`matched`), or each on its own (`whole_setup`)."},"referenceAgents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The agents the reference group's figure folds on this basis."},"subjectAgents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The agents the subject group's figure folds on this basis."},"headline":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","const":"pp"},"pp":{"type":"number","description":"Subject group minus reference group, in percentage points, on the paired tasks."},"display":{"type":"string","description":"\"+12pp\"."},"interval":{"type":"object","properties":{"lo":{"type":"number"},"hi":{"type":"number"}},"required":["lo","hi"],"additionalProperties":false,"description":"In percentage points: the paired task bootstrap, enveloped by Newcombe's interval."},"intervalDisplay":{"type":"string","description":"\"+2pp to +21pp\"."},"direction":{"anyOf":[{"type":"string","enum":["up","down"]},{"type":"null"}],"description":"Stated only where the interval excludes zero: up = the subject group's figure is higher. Null = no direction."},"pairedTasks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Tasks both groups measured on the contrast's basis: the difference stands on these and no others."},"from":{"type":"object","properties":{"rate":{"type":"number"},"display":{"type":"string"}},"required":["rate","display"],"additionalProperties":false,"description":"The reference group's figure on the paired tasks."},"to":{"type":"object","properties":{"rate":{"type":"number"},"display":{"type":"string"}},"required":["rate","display"],"additionalProperties":false,"description":"The subject group's figure on the paired tasks."}},"required":["unit","pp","display","interval","intervalDisplay","direction","pairedTasks","from","to"],"additionalProperties":false,"description":"A difference between two groups' every-agent figures, paired by task."},{"type":"null"}]},"areas":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"difference":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","const":"pp"},"pp":{"type":"number","description":"Subject group minus reference group, in percentage points, on the paired tasks."},"display":{"type":"string","description":"\"+12pp\"."},"interval":{"type":"object","properties":{"lo":{"type":"number"},"hi":{"type":"number"}},"required":["lo","hi"],"additionalProperties":false,"description":"In percentage points: the paired task bootstrap, enveloped by Newcombe's interval."},"intervalDisplay":{"type":"string","description":"\"+2pp to +21pp\"."},"direction":{"anyOf":[{"type":"string","enum":["up","down"]},{"type":"null"}],"description":"Stated only where the interval excludes zero: up = the subject group's figure is higher. Null = no direction."},"pairedTasks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Tasks both groups measured on the contrast's basis: the difference stands on these and no others."},"from":{"type":"object","properties":{"rate":{"type":"number"},"display":{"type":"string"}},"required":["rate","display"],"additionalProperties":false,"description":"The reference group's figure on the paired tasks."},"to":{"type":"object","properties":{"rate":{"type":"number"},"display":{"type":"string"}},"required":["rate","display"],"additionalProperties":false,"description":"The subject group's figure on the paired tasks."}},"required":["unit","pp","display","interval","intervalDisplay","direction","pairedTasks","from","to"],"additionalProperties":false,"description":"A difference between two groups' every-agent figures, paired by task."},{"type":"null"}],"description":"Null: fewer than two paired tasks."}},"required":["key","label","difference"],"additionalProperties":false}},"levels":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"difference":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","const":"pp"},"pp":{"type":"number","description":"Subject group minus reference group, in percentage points, on the paired tasks."},"display":{"type":"string","description":"\"+12pp\"."},"interval":{"type":"object","properties":{"lo":{"type":"number"},"hi":{"type":"number"}},"required":["lo","hi"],"additionalProperties":false,"description":"In percentage points: the paired task bootstrap, enveloped by Newcombe's interval."},"intervalDisplay":{"type":"string","description":"\"+2pp to +21pp\"."},"direction":{"anyOf":[{"type":"string","enum":["up","down"]},{"type":"null"}],"description":"Stated only where the interval excludes zero: up = the subject group's figure is higher. Null = no direction."},"pairedTasks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Tasks both groups measured on the contrast's basis: the difference stands on these and no others."},"from":{"type":"object","properties":{"rate":{"type":"number"},"display":{"type":"string"}},"required":["rate","display"],"additionalProperties":false,"description":"The reference group's figure on the paired tasks."},"to":{"type":"object","properties":{"rate":{"type":"number"},"display":{"type":"string"}},"required":["rate","display"],"additionalProperties":false,"description":"The subject group's figure on the paired tasks."}},"required":["unit","pp","display","interval","intervalDisplay","direction","pairedTasks","from","to"],"additionalProperties":false,"description":"A difference between two groups' every-agent figures, paired by task."},{"type":"null"}],"description":"Null: fewer than two paired tasks."}},"required":["key","label","difference"],"additionalProperties":false}}},"required":["contrastId","referenceGroup","subjectGroup","oriented","basis","referenceAgents","subjectAgents","headline","areas","levels"],"additionalProperties":false},"description":"One difference per PLANNED contrast, in plan order: no other pair of groups is compared."}},"required":["areas","levels","groups","contrasts"],"additionalProperties":false,"description":"THE INTEROP READOUT (Agent Interop): per group, each agent's pass rate per focus area and its total, and how much of the benchmark works on every agent, overall, per area and per level, with the counts each figure stands on and the tasks left out; then the differences along the study's planned contrasts. A run passes when every grader of the benchmark that applies to its task passed it, and fails when any of them failed it or one of its steps, or when the agent failed or timed out; a run ora's own infrastructure killed is not measured. Beside the study's own figures, which it does not change. Present only for a study whose pinned benchmark version declares focus areas or levels."}},"required":["study","tasks","runs","aggregate","warnings","taskHealth"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:read","x-ora-product":"study","x-ora-service":"study-service"},"patch":{"operationId":"study.updateDetails","summary":"Edit a study's display name and/or description at ANY status, published included — a correction or a disclosure written after launch reaches the published report (the name as its heading, the description in full as the publisher's note) within the page's normal cache revalidation; the page title and meta description derive from the subject, not from these fields. Changes those two fields and nothing else: the slug (so every shared link stays live), the publication date, the sharing mode and token, the corpus and every grade are untouched. Each field follows study.create's own rule; send at least one. The response's `shareToken` is null — study.get carries a link study's token","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The study's uuid (from create or list)."},"example":"1f7e4d1c-4b2a-4f3e-9d8c-5a6b7c8d9e0f"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":160,"description":"Display name for the study (≤160 chars)."},"description":{"description":"Optional longer description shown on the study card.","type":"string","maxLength":4000}},"additionalProperties":false,"minProperties":1},"example":{"description":"Disclosure (added after publication): one harness ran with its default backend, which has no shell or HTTP tool, so its row measures that configuration."}}}},"responses":{"200":{"description":"Edit a study's display name and/or description at ANY status, published included — a correction or a disclosure written after launch reaches the published report (the name as its heading, the description in full as the publisher's note) within the page's normal cache revalidation; the page title and meta description derive from the subject, not from these fields. Changes those two fields and nothing else: the slug (so every shared link stays live), the publication date, the sharing mode and token, the corpus and every grade are untouched. Each field follows study.create's own rule; send at least one. The response's `shareToken` is null — study.get carries a link study's token","content":{"application/json":{"schema":{"type":"object","properties":{"study":{"type":"object","properties":{"id":{"type":"string"},"executiveSummary":{"anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryDraft":{"description":"A PUBLISHED study's summary held for review, never shown on the public page: what `studies.regenerateSummary` writes on a published study (and the first summary of a published study nothing asked for). `studies.publish` makes exactly this text the published `executiveSummary`, while the readout it was written from is still current; otherwise publish regenerates. Absent where the product has no review drafts.","anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryRequest":{"description":"A summary an explicit act asked for and not yet written: 'live' — a publish, a re-open, or a regenerate on an UNPUBLISHED completed study owes the summary in place (the public page, once published); 'draft' — a regenerate on a published study owes the review draft one. Null once the request is answered — poll `studies.get` until it is: by the written summary (`executiveSummary` or `executiveSummaryDraft`), by a later act that superseded it (a publish, a newer regenerate — its own write answers it), or as unavailable (`executiveSummaryUnavailableAt` set). While the automatic retries back off after a failed attempt it stays pending. Absent where the product has no review drafts.","anyOf":[{"type":"string","enum":["live","draft"]},{"type":"null"}]},"executiveSummaryRequestedAt":{"description":"When `executiveSummaryRequest` was made.","anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryUnavailableAt":{"description":"When the last summary request was answered as UNAVAILABLE: every attempt the retry policy allows on the study's readout failed, so no summary will be written for it until the readout changes (runs added, a re-run, a regrade) or someone regenerates or publishes again. Null otherwise; cleared by a new request or a written summary. Absent where the product has no review drafts.","anyOf":[{"type":"string"},{"type":"null"}]},"plannedRunCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The exact number of runs `launch` will fan out (taskCount × variantsPerTask × repeats × matrix cells × arms). Check this BEFORE launching."},"organizationId":{"type":"string"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"slug":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillRef":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillSlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillName":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillPromise":{"type":"string"},"subjectKind":{"type":"string","enum":["skill","tools","addon","custom","benchmark","site"],"description":"What the study measures. New studies: 'custom': any composition of skills, tools and add-ons, with its own subjectName and promise — under a comparisonMode that declares its groups, each group's configuration is in `arms`. 'benchmark': a pinned version of a catalog benchmark definition (requires definitionVersionId); the corpus is copied frozen from that version. 'site': a website (requires siteDomain, and a comparisonMode that declares its groups); the tasks are things to get done there, and every run is read against the site: whether the agent opened a page of it, and whether the site refused the agent. Every comparisonMode new studies use applies to 'benchmark': 'multi_arm' runs each declared group's setup: 1 group reads as the agent leaderboard: no reference group and no comparison, and it seeds the public leaderboard — when bare, labelled 'as published' on a model-API agent and 'harness default' on a harness agent, and 'with my setup' when it carries one; 2-6 groups are compared over the planned contrasts (with 2, one comparison, oriented only when a group has role 'reference'); only a bare group seeds the public leaderboard. A group that carries a setup is not the benchmark's bare protocol, so it does not seed the public leaderboard. 'skill', 'tools' and 'addon' are kept for the studies that already exist: under a comparisonMode new studies use, one answers 422 study_subject_invalid, and a create body that names no comparisonMode (or a legacy one) and carries it is read as the legacy body it is and answers 422 comparison_mode_removed (docs/studies/comparison-modes/README.md maps each legacy design onto the new ones)."},"subjectName":{"anyOf":[{"type":"string"},{"type":"null"}]},"siteDomain":{"description":"The website a 'site' study is run against (its host); absent for every other subject kind.","type":"string"},"subjectLabel":{"type":"string"},"armConfig":{"type":"object","properties":{"baseline":{"description":"The baseline arm's run-payload delta. Omitted = a bare run (no skill, no extras).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false},"treatment":{"description":"The treatment arm's run-payload delta (the thing under test).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"additionalProperties":false,"description":"Frozen per-arm run-payload deltas of a fixed pair of arms (comparisonMode 'ab_vs_none' or 'ab_custom' or 'single'), kept for the studies that already exist: new studies carry each group's configuration in `arms`, and a create body that names no comparisonMode (or a legacy one) and carries it is read as the legacy body it is and answers 422 comparison_mode_removed (docs/studies/comparison-modes/README.md maps each legacy design onto the new ones)."},"comparisonMode":{"type":"string","enum":["ab_vs_none","ab_custom","single","multi_arm"],"description":"The study's design. New studies: 'multi_arm' (Groups): 1-6 groups declared in `arms`, each with its own label and configuration — 1 group reads as the agent leaderboard: no reference group and no comparison, and it seeds the public leaderboard — when bare, labelled 'as published' on a model-API agent and 'harness default' on a harness agent, and 'with my setup' when it carries one; 2-6 groups are compared over the planned contrasts (with 2, one comparison, oriented only when a group has role 'reference'); only a bare group seeds the public leaderboard; which pairs are judged is `contrasts`. 'ab_vs_none', 'ab_custom' and 'single' are kept for the studies that already exist: a create naming one answers 422 comparison_mode_removed (docs/studies/comparison-modes/README.md maps each legacy design onto the new ones)."},"subjectBackend":{"anyOf":[{"type":"string","enum":["model","harness"],"description":"What answers a FRAMEWORK benchmark's requests: 'harness' — each request is answered by the cell's agent harness (the model inside its own loop, with the arm's tools, add-ons and skills), one agent run per request; 'model' — the framework's own client calls the cell's model directly and the cell's harness is not measured. Resolved once per study and recorded on every run."},{"type":"null"}]},"environmentExecutionPolicy":{"type":"string","enum":["legacy-v1","inside-v1"]},"importedFrom":{"type":"string"},"baselineLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"treatmentLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"promiseMetrics":{"type":"array","items":{"type":"object","properties":{"metric":{"type":"string","enum":["total_tokens","output_tokens","cost_usd","duration_ms","num_turns","success_rate","completion_rate","goal_rate"]},"direction":{"type":"string","enum":["down","up"]},"label":{"type":"string","minLength":1,"maxLength":120}},"required":["metric","direction","label"],"additionalProperties":false}},"matrix":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1,"maxLength":50,"description":"Harness id — the valid set (and each one's models) is GET /catalog; cells are validated against it at create."},"model":{"type":"string","minLength":1,"maxLength":100,"description":"Model id as the harness accepts it — valid ids per harness/provider are in GET /catalog (e.g. 'claude-sonnet-5', 'gpt-5.5')."},"provider":{"description":"Provider qualifier for multi-provider harnesses (e.g. 'anthropic', 'openai', 'google'). Omit to use the harness default.","type":"string","minLength":1,"maxLength":32},"params":{"description":"Provider params pinned for this cell (temperature, reasoningEffort, maxOutputTokens, thinkingBudgetTokens). A cell that pins none runs the provider's own defaults. Offered only where the harness declares support — see GET /catalog.","type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"maxOutputTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reasoningEffort":{"type":"string","enum":["low","medium","high"]},"thinkingBudgetTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"codeMode":{"type":"string","enum":["auto","on","off"]},"toolSearch":{"type":"string","enum":["on","off","directory"]},"location":{"type":"string","pattern":"^[A-Z]{2}$"},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$"}},"additionalProperties":false}},"required":["harness","model"],"additionalProperties":false,"description":"One (harness, model, params) cell — every task runs its arm(s) on every cell."}},"lenses":{"minItems":1,"type":"array","items":{"type":"string","enum":["judge","evals","reference","framework","execution","verifier"]},"description":"Which grading lenses this study runs under. Defaults to ['judge'] at create and stays editable while status is 'ready' (frozen at launch, like task expectations/rubrics). 'judge': the LLM judge panel (rubric grades + blind pairwise). 'evals': the deterministic @ora/eval-checks engine, scored against each task's authored expectations. 'reference': the static-QA lens — an answer extracted from the response and matched against the task's own reference key, scored 1/0 (spec §6.4). 'framework': the benchmark's OWN framework (HELM today) reports the metrics, mapped verbatim into a section rather than re-averaged (SP2 Task 9). 'execution': the candidate's code is extracted from the response and run against the task's own tests inside a sandboxed, network-less runner image (SP2 Task 16)."},"judgeSupplementary":{"type":"boolean"},"taskCount":{"type":"number"},"variantsPerTask":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Semantics-preserving paraphrases sampled per task (1-5; mirrors the create body's variantsPerTask). Absent at create defaults to 1 — every response reports a concrete value, including studies created before sampling existed."},"repeats":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Identical re-runs sampled per condition (1-10; mirrors the create body's repeats). Absent at create defaults to 1 — every response reports a concrete value, including studies created before sampling existed."},"subset":{"anyOf":[{"type":"object","properties":{"count":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"seed":{"type":"string","minLength":1},"of":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["count","seed","of"],"additionalProperties":false},{"type":"null"}]},"status":{"type":"string"},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"preparation":{"anyOf":[{"type":"object","properties":{"since":{"type":"string"},"progressAt":{"type":"string"},"launchedBy":{"type":"object","properties":{"userId":{"type":"string"},"role":{"type":"string"}},"additionalProperties":false},"waitingOn":{"type":"array","items":{"type":"object","properties":{"imageKey":{"type":"string"},"buildId":{"type":"string"},"stage":{"type":"string","enum":["image","snapshot"]},"retry":{"type":"object","properties":{"failedAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maxAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"notBefore":{"type":"string"},"lastFailure":{"type":"string"}},"required":["failedAttempts","maxAttempts","notBefore","lastFailure"],"additionalProperties":false}},"required":["imageKey","buildId"],"additionalProperties":false}}},"required":["since","launchedBy","waitingOn"],"additionalProperties":false},{"type":"null"}]},"visibility":{"type":"string","enum":["private","org","link","public"],"description":"Who may read this study: private (creator + org owners) | org (the whole org) | link (anyone holding ?share=<token>, unlisted) | public (everyone, listed)."},"visibilityChangedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"visibilityChangedBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"shareToken":{"anyOf":[{"type":"string"},{"type":"null"}]},"lowSampleOverride":{"type":"boolean","description":"True iff this study was explicitly published below the sample-size floor (spec A6) — the published page shows a low-sample badge when set."},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"verdict":{},"definitionVersionId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The benchmark definition VERSION this study pinned at create — non-null only for subjectKind 'benchmark'. Its corpus was copied frozen from that version, so the study stays reproducible when the definition publishes a newer one."},"runnerKind":{"type":"string","enum":["ora-runs","batch-job"],"description":"Which executor fans this study out: 'ora-runs' (the ora runs spine) or 'batch-job' (a built runner image)."},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"liveUntil":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When this study's live stream stops being held open (null while it is still running). Attaching before it yields the remaining post-terminal frames (gradings, recordings, refined verdicts)."},"launch":{"description":"The launch record: planned / created runs, the runs it could not create (missing.retryable: launching again creates them; missing.refused: a re-launch is refused the same way) with one note per cell and group, and the fan-out's state (fanning_out | deferred | settled). Null for a study launched before records existed.","anyOf":[{"type":"object","properties":{"attempt":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"state":{"type":"string","enum":["fanning_out","deferred","settled"]},"startedAt":{"type":"string"},"progressAt":{"type":"string"},"planned":{"type":"integer","minimum":0,"maximum":9007199254740991},"created":{"type":"integer","minimum":0,"maximum":9007199254740991},"missing":{"type":"object","properties":{"retryable":{"type":"integer","minimum":0,"maximum":9007199254740991},"refused":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["retryable","refused"],"additionalProperties":false},"notes":{"type":"array","items":{"type":"string"}},"settledAt":{"type":"string"},"pacing":{"type":"object","properties":{"waiting":{"type":"integer","minimum":0,"maximum":9007199254740991},"nextUnit":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"nextWaveAt":{"type":"string"},"emptyWaves":{"type":"integer","minimum":0,"maximum":9007199254740991},"stopped":{"type":"string"}},"required":["waiting"],"additionalProperties":false},"recovery":{"type":"object","properties":{"state":{"type":"string","enum":["retrying","needs_attention"]},"attempts":{"type":"integer","minimum":0,"maximum":9007199254740991},"lastAttemptAt":{"type":"string"},"nextAttemptAt":{"type":"string"},"reason":{"type":"string"}},"required":["state","attempts"],"additionalProperties":false},"stopped":{"type":"object","properties":{"at":{"type":"string"},"notStarted":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["at","notStarted"],"additionalProperties":false}},"required":["attempt","state","startedAt","progressAt"],"additionalProperties":false},{"type":"null"}]},"pacing":{"description":"How fast this study may START its runs, as declared at create: maxInFlight (at most N of its runs unfinished at once) and/or startsPerMinute (at most N started in any 60 s). Its runs start in waves of whole comparison units (every group's run of one agent on one task sample, together); the launch record's `pacing` says how many wait for a later wave. Null = every run started at launch.","anyOf":[{"type":"object","properties":{"maxInFlight":{"description":"At most this many of the study's runs unfinished at once — queued, pending or running (1-500). The next runs start as earlier ones finish.","type":"integer","minimum":1,"maximum":500},"startsPerMinute":{"description":"At most this many of the study's runs started in any 60-second window (1-600).","type":"integer","minimum":1,"maximum":600}},"additionalProperties":false},{"type":"null"}]},"relaunchable":{"description":"True when this running study may be launched again: its launch record says planned runs are missing (missing.retryable > 0), or its fan-out stopped. POST …/launch then creates exactly the runs that do not exist.","type":"boolean"},"archivedAt":{"description":"When this study was archived; null while it is not. An archived study loses nothing: it leaves the default list, is read-only (409 study_archived), and is on no public page. Restoring it clears this.","anyOf":[{"type":"string"},{"type":"null"}]},"archivedBy":{"description":"The user who archived it. Null when an API key did, and while the study is not archived.","anyOf":[{"type":"string"},{"type":"null"}]},"arms":{"description":"A declared-arm study's groups, in position order.","type":"array","items":{"type":"object","properties":{"key":{"type":"string","description":"The group's run key (each of its runs' `arm`)."},"position":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"0-based display order."},"label":{"type":"string","maxLength":80,"description":"The group's display label. Never shown to the judge."},"role":{"type":"string","enum":["reference","peer"],"description":"'reference' marks the group the others are compared against; the rest are peers."},"payload":{"type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"brief":{"description":"Text the agent is given after the task, for every task this group runs. At most 600 characters. A group with a brief is a setup of its own, never the subject as published.","type":"string","minLength":1,"maxLength":600}},"additionalProperties":false,"description":"The group's run-payload delta ({} = the subject as published)."},"cells":{"description":"The group's OWN agents, when the study's groups each list theirs (cellPlan 'per_setup'); absent = the matrix.","type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1,"maxLength":50,"description":"Harness id — the valid set (and each one's models) is GET /catalog; cells are validated against it at create."},"model":{"type":"string","minLength":1,"maxLength":100,"description":"Model id as the harness accepts it — valid ids per harness/provider are in GET /catalog (e.g. 'claude-sonnet-5', 'gpt-5.5')."},"provider":{"description":"Provider qualifier for multi-provider harnesses (e.g. 'anthropic', 'openai', 'google'). Omit to use the harness default.","type":"string","minLength":1,"maxLength":32},"params":{"description":"Provider params pinned for this cell (temperature, reasoningEffort, maxOutputTokens, thinkingBudgetTokens). A cell that pins none runs the provider's own defaults. Offered only where the harness declares support — see GET /catalog.","type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"maxOutputTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reasoningEffort":{"type":"string","enum":["low","medium","high"]},"thinkingBudgetTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"codeMode":{"type":"string","enum":["auto","on","off"]},"toolSearch":{"type":"string","enum":["on","off","directory"]},"location":{"type":"string","pattern":"^[A-Z]{2}$"},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$"}},"additionalProperties":false}},"required":["harness","model"],"additionalProperties":false,"description":"One (harness, model, params) cell — every task runs its arm(s) on every cell."}},"skipTasks":{"description":"The tasks this group leaves out, by task number (1 = the first); absent = it runs every task.","type":"array","items":{"type":"integer","minimum":1,"maximum":9007199254740991}},"skills":{"description":"The group's skills as resolved when the study was created (absent for a study created before that existed).","type":"array","items":{"type":"object","properties":{"ref":{"type":"string","description":"The skill ref the group's selection names."},"name":{"type":"string","description":"The skill's name when the study was created."},"changedSinceCreate":{"description":"True when the skill's content now differs from what the study ran; absent when the reader cannot check it.","type":"boolean"}},"required":["ref","name"],"additionalProperties":false}},"addedAgents":{"description":"The agents this group gained after the study was created (`addAgents`), by position in `cells` — absent when none was added.","type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The agent's position in the group's `cells`."},"addedAt":{"type":"string","description":"When it was added (RFC 3339)."}},"required":["position","addedAt"],"additionalProperties":false}}},"required":["key","position","label","role","payload"],"additionalProperties":false}},"contrastPlan":{"description":"The study's planned-contrast policy.","type":"string","enum":["vs_reference","all_pairs","ladder"]},"cellPlan":{"description":"How the groups meet their agents: absent = every group runs the matrix; 'per_setup' = each its own.","type":"string","enum":["crossed","per_setup"]},"skillDisclosure":{"description":"Whether the published page names the groups' skills: absent = withheld (chosen at publish).","type":"string","enum":["withheld","named"]},"modeOptions":{"description":"The comparisonMode's private inputs.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"screens":{"description":"The run screens the study declares (frozen at launch, like lenses). Absent = none.","type":"array","items":{"type":"string","enum":["test_awareness","site_access"]}},"runCounting":{"description":"Which of the study's runs its numbers count (GET /studies/:id/run-counting). Absent = every run.","anyOf":[{"type":"object","properties":{"policy":{"type":"string","const":"hold_back_screened"},"screen":{"type":"string","enum":["test_awareness"],"description":"The screen whose verdicts decide. Today: 'test_awareness'."},"levels":{"minItems":1,"type":"array","items":{"type":"string","enum":["aware","influenced"]},"description":"The verdict levels held back. A run the screen could not judge is never held back."}},"required":["policy","screen","levels"],"additionalProperties":false,"description":"Which of the study's runs its numbers count. Absent or null = every run. 'hold_back_screened' leaves out the runs the named screen flagged at one of `levels`: each is a missing measurement with a named reason, never a fail, and the count held back is stated beside every figure."},{"type":"null"}]},"seriesKey":{"description":"The series the study belongs to (set at create). Absent = none.","anyOf":[{"type":"string","pattern":"^[a-z0-9][a-z0-9._/-]{0,119}$"},{"type":"null"}]},"ref":{"description":"Where the study was taken: commit, branch, pull request. Absent = not recorded.","anyOf":[{"type":"object","properties":{"commit":{"description":"The commit the study was taken at (a SHA).","type":"string","minLength":1,"maxLength":64},"branch":{"description":"The branch it was taken on, e.g. 'main'. A gate's series baseline filters on it.","type":"string","minLength":1,"maxLength":200},"pr":{"description":"The pull request number, when it was taken for one.","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"url":{"description":"A link back to the change (the commit or pull request page).","type":"string","maxLength":500,"format":"uri"}},"additionalProperties":false},{"type":"null"}]},"gradingRevision":{"description":"The study's grading revision, when its checks were revised after its runs finished. Absent = never revised.","type":"integer","minimum":2,"maximum":9007199254740991},"gradingRevisedAt":{"description":"When the checks were last revised. Later than `publishedAt` = the grades changed after publication.","anyOf":[{"type":"string"},{"type":"null"}]},"rehearsal":{"description":"The study is a rehearsal: the smallest real run of a design, made by POST /studies/rehearsals. Absent = an ordinary study.","type":"boolean","const":true},"rehearsalMode":{"description":"How a rehearsal runs: 'live' (the real agents), or 'setup' / 'mock' (no agent is started). Absent on every other study.","type":"string"},"behaviors":{"description":"The custom behaviors the study declares (frozen at launch, like lenses). A run's verdict on one is in its `screens` under `b_<key>`. Absent = none.","type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{1,29}$","description":"A short id for the behavior, lowercase snake (`deleted_files`). Its verdicts are stored and queried under `b_<key>`."},"name":{"type":"string","minLength":1,"maxLength":80,"description":"What a reader sees: \"Deleted files it was not asked to\"."},"question":{"type":"string","minLength":10,"maxLength":400,"description":"One yes-or-no question about a single run that a judge can answer from its trace: \"Did the agent …?\"."},"version":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The version of the behavior's wording. A verdict and a review belong to the version they were made on."}},"required":["key","name","question","version"],"additionalProperties":false}},"stepTimeLimitSeconds":{"description":"How long each step of a task with steps may take, in seconds, as declared at create. A step still running after it ends the run, whose reason names the step and the limit. Null or absent = no per-step limit.","anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["id","plannedRunCount","organizationId","createdBy","name","slug","description","skillRef","skillSlug","skillName","skillPromise","subjectKind","subjectName","subjectLabel","armConfig","comparisonMode","subjectBackend","baselineLabel","treatmentLabel","promiseMetrics","matrix","lenses","taskCount","variantsPerTask","repeats","subset","status","error","visibility","lowSampleOverride","publishedAt","verdict","definitionVersionId","runnerKind","createdAt","updatedAt","liveUntil"],"additionalProperties":false}},"required":["study"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"study_not_found — no such study this caller can open (another organization's, or a colleague's private study)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"VALIDATION_ERROR — the body is empty, names a field other than `name`/`description`, or a value breaks create's rule for that field","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:write","x-ora-product":"study","x-ora-service":"study-service"},"delete":{"operationId":"study.delete","summary":"Archive a study (409 while it is generating, preparing or running). Nothing is removed; restore brings it back. The study leaves the default list (list with archived=only to see it), becomes read-only (every change answers 409 study_archived until it is restored), and is unpublished first if it was shared outside the organisation. Archiving an archived study succeeds and changes nothing.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The study's uuid (from create or list)."}}],"responses":{"200":{"description":"Archive a study (409 while it is generating, preparing or running). Nothing is removed; restore brings it back. The study leaves the default list (list with archived=only to see it), becomes read-only (every change answers 409 study_archived until it is restored), and is unpublished first if it was shared outside the organisation. Archiving an archived study succeeds and changes nothing.","content":{"application/json":{"schema":{}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"study_invalid_state — a study that is generating, preparing or running cannot be archived; or study_archive_contended — the study kept changing while it was being archived, for example it was published again (nothing was archived: try again)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:write","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/studies/{id}/agents":{"post":{"operationId":"study.addAgents","summary":"Add agents to a running or completed-but-unpublished study — to one group when each group runs its own, to every group when they share the matrix — and create exactly the runs they owe, in the same study. Nothing that exists is re-run or re-graded; each comparison keeps its basis and only gains agents. A completed study re-opens until the new runs finish and are graded. Idempotent: an agent already present is reported, never added twice. dryRun answers the plan.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The study's uuid (from create or list)."},"example":"1f7e4d1c-4b2a-4f3e-9d8c-5a6b7c8d9e0f"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"group":{"description":"The group the agents join — required when each group runs its own agents, refused when every group runs the shared matrix (then each agent joins every group).","type":"string"},"agents":{"minItems":1,"maxItems":48,"type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1,"maxLength":50,"description":"Harness id — the valid set (and each one's models) is GET /catalog; cells are validated against it at create."},"model":{"type":"string","minLength":1,"maxLength":100,"description":"Model id as the harness accepts it — valid ids per harness/provider are in GET /catalog (e.g. 'claude-sonnet-5', 'gpt-5.5')."},"provider":{"description":"Provider qualifier for multi-provider harnesses (e.g. 'anthropic', 'openai', 'google'). Omit to use the harness default.","type":"string","minLength":1,"maxLength":32},"params":{"description":"Provider params pinned for this cell (temperature, reasoningEffort, maxOutputTokens, thinkingBudgetTokens). A cell that pins none runs the provider's own defaults. Offered only where the harness declares support — see GET /catalog.","type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"maxOutputTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reasoningEffort":{"type":"string","enum":["low","medium","high"]},"thinkingBudgetTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"codeMode":{"type":"string","enum":["auto","on","off"]},"toolSearch":{"type":"string","enum":["on","off","directory"]},"location":{"type":"string","pattern":"^[A-Z]{2}$"},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$"}},"additionalProperties":false}},"required":["harness","model"],"description":"One (harness, model, params) cell — every task runs its arm(s) on every cell."},"description":"The agents to add, in order — each a harness × model (× provider × params) cell the catalog offers. An agent the target already runs is reported in `alreadyPresent` and added once only."},"dryRun":{"description":"Answer the full plan — the agents, the jobs it would create, each comparison before and after — writing nothing (default false).","type":"boolean"}},"required":["agents"],"additionalProperties":false},"example":{"group":"g2","agents":[{"harness":"claude-code","model":"claude-sonnet-5"}],"dryRun":true}}}},"responses":{"200":{"description":"Add agents to a running or completed-but-unpublished study — to one group when each group runs its own, to every group when they share the matrix — and create exactly the runs they owe, in the same study. Nothing that exists is re-run or re-graded; each comparison keeps its basis and only gains agents. A completed study re-opens until the new runs finish and are graded. Idempotent: an agent already present is reported, never added twice. dryRun answers the plan.","content":{"application/json":{"schema":{"type":"object","properties":{"studyId":{"type":"string"},"dryRun":{"type":"boolean"},"status":{"type":"string","description":"The study's status AFTER the call — 'running' while the added agents' runs execute."},"reopened":{"type":"boolean","description":"True when a COMPLETED study went back to 'running' for the added runs: its summary was cleared, and completion, grading and the summary happen again once they finish."},"cellPlan":{"type":"string","description":"How the study's groups meet its agents (its stored plan, never changed by this call)."},"added":{"type":"array","items":{"type":"object","properties":{"group":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The group the agent joins; null = the shared matrix (every group)."},"harness":{"type":"string"},"model":{"type":"string"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}]},"paramsKey":{"type":"string","description":"The agent's pinned-params identity — empty when it pins none."},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Its position in the group's own list, or the matrix index."}},"required":["group","harness","model","provider","paramsKey","position"],"additionalProperties":false},"description":"The agents added (or, on a dry run, that would be), in order."},"alreadyPresent":{"type":"array","items":{"type":"object","properties":{"group":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The group the agent joins; null = the shared matrix (every group)."},"harness":{"type":"string"},"model":{"type":"string"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}]},"paramsKey":{"type":"string","description":"The agent's pinned-params identity — empty when it pins none."}},"required":["group","harness","model","provider","paramsKey"],"additionalProperties":false},"description":"Requested agents the target already runs — never added twice."},"matrix":{"type":"object","properties":{"before":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"after":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["before","after"],"additionalProperties":false,"description":"The study's distinct agents, before and after."},"jobs":{"type":"object","properties":{"plannedBefore":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"plannedAfter":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"toCreate":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Planned jobs with no run yet — the runs the launch creates. Nothing that exists is re-run."},"toCreateByGroup":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}}},"required":["plannedBefore","plannedAfter","toCreate","toCreateByGroup"],"additionalProperties":false,"description":"The study's planned (task, variant, repeat, group, agent) jobs, before and after."},"contrasts":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"string"},"subject":{"type":"string"},"before":{"type":"object","properties":{"basis":{"type":"string","description":"How the comparison pairs runs: matched (the agents both groups run) or whole_setup."},"sharedAxes":{"type":"array","items":{"type":"string"},"description":"The axes two runs must agree on to be compared."},"compared":{"type":"object","properties":{"reference":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"subject":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["reference","subject"],"additionalProperties":false,"description":"How many agents each side is compared on."}},"required":["basis","sharedAxes","compared"],"additionalProperties":false},"after":{"type":"object","properties":{"basis":{"type":"string","description":"How the comparison pairs runs: matched (the agents both groups run) or whole_setup."},"sharedAxes":{"type":"array","items":{"type":"string"},"description":"The axes two runs must agree on to be compared."},"compared":{"type":"object","properties":{"reference":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"subject":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["reference","subject"],"additionalProperties":false,"description":"How many agents each side is compared on."}},"required":["basis","sharedAxes","compared"],"additionalProperties":false}},"required":["reference","subject","before","after"],"additionalProperties":false},"description":"Each planned comparison, before and after: its basis and shared axes never change, and its compared agents only grow."},"quota":{"anyOf":[{"type":"object","properties":{"dimension":{"type":"string"},"remaining":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"allowed":{"type":"boolean"}},"required":["dimension","remaining","allowed"],"additionalProperties":false},{"type":"null"}],"description":"What the runs to create use of the plan's remaining runs; null when it cannot be read."},"launch":{"anyOf":[{"type":"object","properties":{"attempt":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"state":{"type":"string","enum":["fanning_out","deferred","settled"]},"startedAt":{"type":"string"},"progressAt":{"type":"string"},"planned":{"type":"integer","minimum":0,"maximum":9007199254740991},"created":{"type":"integer","minimum":0,"maximum":9007199254740991},"missing":{"type":"object","properties":{"retryable":{"type":"integer","minimum":0,"maximum":9007199254740991},"refused":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["retryable","refused"],"additionalProperties":false},"notes":{"type":"array","items":{"type":"string"}},"settledAt":{"type":"string"},"pacing":{"type":"object","properties":{"waiting":{"type":"integer","minimum":0,"maximum":9007199254740991},"nextUnit":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"nextWaveAt":{"type":"string"},"emptyWaves":{"type":"integer","minimum":0,"maximum":9007199254740991},"stopped":{"type":"string"}},"required":["waiting"],"additionalProperties":false},"recovery":{"type":"object","properties":{"state":{"type":"string","enum":["retrying","needs_attention"]},"attempts":{"type":"integer","minimum":0,"maximum":9007199254740991},"lastAttemptAt":{"type":"string"},"nextAttemptAt":{"type":"string"},"reason":{"type":"string"}},"required":["state","attempts"],"additionalProperties":false},"stopped":{"type":"object","properties":{"at":{"type":"string"},"notStarted":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["at","notStarted"],"additionalProperties":false}},"required":["attempt","state","startedAt","progressAt"],"additionalProperties":false},{"type":"null"}],"description":"The study's launch record after the call."},"relaunch":{"type":"object","properties":{"started":{"type":"boolean"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["started","reason"],"additionalProperties":false,"description":"Whether the launch that creates the added runs started. When it did not, `POST …/launch` starts it — the record still says the runs are missing."}},"required":["studyId","dryRun","status","reopened","cellPlan","added","alreadyPresent","matrix","jobs","contrasts","quota","launch","relaunch"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"study_not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"study_invalid_state (only a running or completed study takes agents), study_published (unpublish it first), study_extend_blocked (a re-run, a fan-out or a deferred launch holds the study, it has no launch record, its owner stopped it, or it changed during the call), or study_archived","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"study_extend_invalid (no such group, a group named or missing for the plan, an agent twice, two agents differing only in provider, over 48 agents), study_extend_rebases_contrast (a comparison would change its basis or drop an agent), study_design_too_large, study_matrix_invalid, study_model_params_unsupported or study_setup_unexecutable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:write","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/studies/{id}/behaviors":{"get":{"operationId":"study.behaviors","summary":"Read a study's custom behaviors: what each found, and how far its verdicts held up under review","description":"One entry per behavior the study declares. `measurement.verdicts` counts what the judge panel answered. `present.precision` is the share of REVIEWED 'present' verdicts a reviewer confirmed, with its 95% interval and counts; `absent.precision` is the same for 'absent'. null means nobody has reviewed one yet. The reviewed runs are the ones people chose to read, not a random sample: the figures describe those verdicts. A behavior never changes a grade. A read: nothing is spent.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Read a study's custom behaviors: what each found, and how far its verdicts held up under review","content":{"application/json":{"schema":{"type":"object","properties":{"behaviors":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"name":{"type":"string"},"question":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The version of the behavior's wording. A verdict and a review belong to the version they were made on."},"screenable":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Runs a behavior can judge: ended, and not killed by the platform's infrastructure."},"judged":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Of those, the runs this version has a verdict on. A 'could not say' is a verdict; a run that ended without succeeding is never judged and is not counted."},"measurement":{"type":"object","properties":{"key":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"verdicts":{"type":"object","properties":{"present":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"absent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unknown":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Runs the panel could not judge. Never counted as absent."}},"required":["present","absent","unknown"],"additionalProperties":false},"present":{"type":"object","properties":{"reviewed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Verdicts of this answer that someone reviewed and the reviewers did not tie on."},"confirmed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Of those, the verdicts the reviewers agreed with."},"precision":{"anyOf":[{"type":"object","properties":{"rate":{"type":"number","description":"confirmed / reviewed."},"lower":{"type":"number"},"upper":{"type":"number"},"successes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"n":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["rate","lower","upper","successes","n"],"additionalProperties":false,"description":"A measured share with its 95% Wilson interval and the counts it stands on."},{"type":"null"}],"description":"null = none was reviewed: not measured. Never 0 or 1 for nothing."}},"required":["reviewed","confirmed","precision"],"additionalProperties":false},"absent":{"type":"object","properties":{"reviewed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Verdicts of this answer that someone reviewed and the reviewers did not tie on."},"confirmed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Of those, the verdicts the reviewers agreed with."},"precision":{"anyOf":[{"type":"object","properties":{"rate":{"type":"number","description":"confirmed / reviewed."},"lower":{"type":"number"},"upper":{"type":"number"},"successes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"n":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["rate","lower","upper","successes","n"],"additionalProperties":false,"description":"A measured share with its 95% Wilson interval and the counts it stands on."},{"type":"null"}],"description":"null = none was reviewed: not measured. Never 0 or 1 for nothing."}},"required":["reviewed","confirmed","precision"],"additionalProperties":false},"contested":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Reviewed verdicts whose reviewers split evenly: in neither class."},"agreement":{"anyOf":[{"type":"object","properties":{"runs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Runs two people labelled."},"agreed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"kappa":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Cohen's kappa; null when both used one label for every run."}},"required":["runs","agreed","kappa"],"additionalProperties":false},{"type":"null"}]}},"required":["key","version","verdicts","present","absent","contested","agreement"],"additionalProperties":false}},"required":["key","name","question","version","screenable","judged","measurement"],"additionalProperties":false}},"reviews":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Reviews read for the measurement."},"reviewsTruncated":{"type":"boolean","description":"The study holds more reviews than one read returns."}},"required":["behaviors","reviews","reviewsTruncated"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Study unavailable to the caller","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:read","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/studies/{id}/carry":{"put":{"operationId":"study.setCarry","summary":"Turn carrying on or off for a study that has not launched","description":"Sets the study's carry policy while it has not launched. `{ carry: null }` turns carrying off: the launch then runs every job, which is how a study is made to measure everything again (for example to gate a group against the study its runs would have been carried from). `{ carry: { from: 'series', maxAgeDays: 7 } }` turns it on, for a study that is in a series. It answers the plan as the launch would now make it. Once the study has launched its policy is frozen: what it carried is a fact of its runs.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"carry":{"anyOf":[{"type":"object","properties":{"from":{"type":"string","enum":["series"],"description":"series: the series' newest completed study made before this one."},"maxAgeDays":{"default":7,"description":"A run older than this many days is run again, never carried.","type":"integer","minimum":1,"maximum":30}},"required":["from"],"additionalProperties":false},{"type":"null"}],"description":"The policy the study takes. null = carry nothing: every job runs when the study launches."}},"required":["carry"],"additionalProperties":false}}}},"responses":{"200":{"description":"Turn carrying on or off for a study that has not launched","content":{"application/json":{"schema":{"type":"object","properties":{"policy":{"anyOf":[{"type":"object","properties":{"from":{"type":"string","enum":["series"],"description":"series: the series' newest completed study made before this one."},"maxAgeDays":{"default":7,"description":"A run older than this many days is run again, never carried.","type":"integer","minimum":1,"maximum":30}},"required":["from","maxAgeDays"],"additionalProperties":false},{"type":"null"}],"description":"The study's carry policy: declared at create, changeable until the study launches, frozen then. null = none: every job runs."},"sourceStudyId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The study its jobs would be carried from: the series' newest completed study made before this one. null = none."},"planned":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Every job the study plans (carried + fresh). 0 when nothing can be planned to carry."},"carried":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Jobs that would be carried instead of run."},"fresh":{"type":"object","propertyNames":{"type":"string","enum":["not_comparable","setup_changed","no_run","not_succeeded","carried_source","too_old","other_judges"]},"additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"description":"Jobs that run, counted by why: not_comparable (the two studies differ before any run (tasks, lenses, counting policy or agents), so nothing is carried between them); setup_changed (the group's setup differs (its add-ons, tools or skill content), the previous study has no such group, or a setup cannot be identified); no_run (the previous study has no run of this job (this task, agent, variant and repeat)); not_succeeded (its run in the previous study did not succeed); carried_source (its run in the previous study was carried from a study that has since been removed, so it is run again); too_old (its run is older than the policy's age limit); other_judges (its run was graded by judges this deployment no longer grades with)."},"differences":{"type":"array","items":{"type":"string"},"description":"The parts the two studies differ in before any run (corpus, lenses, countingPolicy, agents). Non-empty = nothing is carried."},"carriedRuns":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Runs this study already holds that were carried (0 before its launch)."},"changed":{"type":"boolean","description":"false when the study already had this policy: nothing was written."}},"required":["policy","sourceStudyId","planned","carried","fresh","differences","carriedRuns","changed"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Study unavailable to the caller","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The study has launched (its policy is frozen), or it is archived","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"study_carry_needs_series: a policy carries from the study's series, and this study is in none","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:write","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/studies/{id}/carry-plan":{"get":{"operationId":"study.carryPlan","summary":"What a series study would carry instead of run","description":"For a study that declares a carry policy: the plan its launch makes, as it would be made now. It names the study its unchanged jobs would be carried from, how many jobs would be carried and how many run, and why each of those runs (its setup changed, its previous run failed or is too old, the two studies are not comparable). Read it before launching to know what the launch will spend, and after to see why a job ran again. It writes nothing. A study with no policy answers a plan that carries nothing.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"What a series study would carry instead of run","content":{"application/json":{"schema":{"type":"object","properties":{"policy":{"anyOf":[{"type":"object","properties":{"from":{"type":"string","enum":["series"],"description":"series: the series' newest completed study made before this one."},"maxAgeDays":{"default":7,"description":"A run older than this many days is run again, never carried.","type":"integer","minimum":1,"maximum":30}},"required":["from","maxAgeDays"],"additionalProperties":false},{"type":"null"}],"description":"The study's carry policy: declared at create, changeable until the study launches, frozen then. null = none: every job runs."},"sourceStudyId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The study its jobs would be carried from: the series' newest completed study made before this one. null = none."},"planned":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Every job the study plans (carried + fresh). 0 when nothing can be planned to carry."},"carried":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Jobs that would be carried instead of run."},"fresh":{"type":"object","propertyNames":{"type":"string","enum":["not_comparable","setup_changed","no_run","not_succeeded","carried_source","too_old","other_judges"]},"additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"description":"Jobs that run, counted by why: not_comparable (the two studies differ before any run (tasks, lenses, counting policy or agents), so nothing is carried between them); setup_changed (the group's setup differs (its add-ons, tools or skill content), the previous study has no such group, or a setup cannot be identified); no_run (the previous study has no run of this job (this task, agent, variant and repeat)); not_succeeded (its run in the previous study did not succeed); carried_source (its run in the previous study was carried from a study that has since been removed, so it is run again); too_old (its run is older than the policy's age limit); other_judges (its run was graded by judges this deployment no longer grades with)."},"differences":{"type":"array","items":{"type":"string"},"description":"The parts the two studies differ in before any run (corpus, lenses, countingPolicy, agents). Non-empty = nothing is carried."},"carriedRuns":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Runs this study already holds that were carried (0 before its launch)."}},"required":["policy","sourceStudyId","planned","carried","fresh","differences","carriedRuns"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Study unavailable to the caller","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:read","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/studies/{id}/exec-summary":{"post":{"operationId":"study.regenerateSummary","summary":"Regenerate the executive summary from the current aggregate (async; poll get). Where the product keeps review drafts, a PUBLISHED study's lands as `executiveSummaryDraft` and its public summary does not change until a re-publish makes the draft public — `target` in the answer says where it lands","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The study's uuid (from create or list)."},"example":"1f7e4d1c-4b2a-4f3e-9d8c-5a6b7c8d9e0f"}],"responses":{"200":{"description":"Regenerate the executive summary from the current aggregate (async; poll get). Where the product keeps review drafts, a PUBLISHED study's lands as `executiveSummaryDraft` and its public summary does not change until a re-publish makes the draft public — `target` in the answer says where it lands","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"queued","description":"The regeneration was accepted; poll `studies.get` for the new summary."},"target":{"type":"string","enum":["live","draft"],"description":"Where the regenerated summary lands. 'draft': the study is published, so it is held for review in `executiveSummaryDraft` (the public `executiveSummary` does not change) until `studies.publish` makes it public. 'live': written in place as `executiveSummary` — an unpublished study, or a published one whose publish's own summary is still pending: the regenerate joins that request instead of demoting it to a draft. Either way, on a completed study, poll `studies.get` until `executiveSummaryRequest` is null; `executiveSummaryUnavailableAt` set means the summary could not be written for this readout. (A study that has not completed takes no request: its completion writes the summary.)"}},"required":["status","target"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"study_not_found — no such study in this organization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"study_invalid_state — a 'draft' study has no aggregate yet to summarize — or study_archived: an imported study's results never change","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:write","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/studies/{id}/gate":{"post":{"operationId":"study.gate","summary":"Ask a study whether it passes a gate","description":"Evaluates a pass / fail / undecided gate over a study, for CI. The body is the gate: a `floor` and/or a `maxDrop` against a `baseline`, each with its unit (`{ rate: 0.8 }`, `{ pp: 5 }`). Nothing is stored and nothing is spent. `undecided` means the runs cannot say yet (still grading, too few tasks, an interval that straddles the threshold, a baseline that is not comparable); `gate.reason` says which and why.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"metric":{"description":"The metric the gate reads. Omitted = the study's own correctness measure (benchmark, else goal, else evals…). `every_agent`: the share of the group's tasks every one of its planned agents passes, by the benchmark's own checks (complete case: a task an agent has no measured run on is left out); asked for by name only.","type":"string","enum":["benchmark","goal","evals","quality","rubric","completion","every_agent"]},"group":{"description":"The group the gate judges, by key. Omitted = the study's only group, or its one non-reference group.","type":"string","minLength":1,"maxLength":64},"floor":{"description":"Pass when the metric's interval lies wholly at or above this. `{ rate: 0.8 }` for a rate, `{ points: 70 }` for a 0-100 score.","anyOf":[{"type":"object","properties":{"rate":{"type":"number","minimum":0,"maximum":1}},"required":["rate"],"additionalProperties":false},{"type":"object","properties":{"points":{"type":"number","minimum":0,"maximum":100}},"required":["points"],"additionalProperties":false}]},"maxDrop":{"description":"Fail when the metric fell against the baseline by more than this, for certain. `{ pp: 5 }` for a rate, `{ points: 5 }` for a score. Needs `baseline`.","anyOf":[{"type":"object","properties":{"pp":{"type":"number","minimum":0,"maximum":100}},"required":["pp"],"additionalProperties":false},{"type":"object","properties":{"points":{"type":"number","minimum":0,"maximum":100}},"required":["points"],"additionalProperties":false}]},"baseline":{"anyOf":[{"type":"object","properties":{"studyId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Compare against this study."}},"required":["studyId"],"additionalProperties":false},{"type":"object","properties":{"series":{"type":"object","properties":{"branch":{"description":"Only a study whose `ref.branch` is this (e.g. 'main'). Omitted = any study of the series.","type":"string","minLength":1,"maxLength":200}},"additionalProperties":false,"description":"Compare against the newest settled study of THIS study's series, created before it."}},"required":["series"],"additionalProperties":false}]},"minTasks":{"default":5,"description":"Fewer measured tasks than this is 'not enough runs to decide'.","type":"integer","minimum":2,"maximum":100000},"infraCeiling":{"default":0.2,"description":"The share of the group's runs ora's own infrastructure may have killed before the gate refuses to decide.","type":"number","minimum":0,"maximum":1},"counting":{"default":"policy","description":"Which runs the gate reads. 'policy' (the default): the runs the study counts, so a study that holds back test-aware runs is judged without them. 'all': every run, held back or not, on both this study and the baseline.","type":"string","enum":["policy","all"]}},"additionalProperties":false}}}},"responses":{"200":{"description":"Ask a study whether it passes a gate","content":{"application/json":{"schema":{"type":"object","properties":{"state":{"type":"string","enum":["settled","pending"],"description":"`pending` while the study still owes runs or grading: its numbers are not final and the gate is undecided."},"owed":{"type":"array","items":{"type":"string"},"description":"What a pending study still owes: 'runs', 'grading', and 'screens' when its counting policy reads a screen some run has no verdict from yet."},"countingPolicy":{"type":"string","description":"Which runs these figures count. 'count_all': every run. 'hold_back_screened:<screen>:<levels>': the runs that screen flagged at those levels are left out (each group says how many in `heldBackRuns`)."},"metric":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"family":{"type":"string","enum":["rate","score"],"description":"A rate is 0..1 and moves in percentage points; a score is 0..100 and moves in points."}},"required":["key","label","family"],"additionalProperties":false},"group":{"type":"string","description":"The key of the group the gate judged."},"groups":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The metric's value for this group; null = nothing measured."},"runs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Runs that carried a value."},"tasks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Tasks measured by every agent of the group: what the interval is about."},"interval":{"anyOf":[{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}],"description":"The 95% interval, low then high, in the value's own unit."},{"type":"null"}]},"carriedRuns":{"description":"How many of the group's ended runs were carried from an earlier study of the series instead of run in this one. Absent = none. A group whose runs were carried from the gate's own baseline is not decided.","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"heldBackRuns":{"description":"How many of the group's runs the study's counting policy held back from this figure. Absent = none.","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["key","label","value","runs","tasks","interval"],"additionalProperties":false},"description":"Every group of the study on the gate's metric."},"baseline":{"anyOf":[{"type":"object","properties":{"studyId":{"type":"string"},"name":{"type":"string"},"comparable":{"type":"boolean"},"differs":{"type":"array","items":{"type":"string"},"description":"The parts the two studies differ in: corpus, lenses, graders, classifiers, countingPolicy, agents."},"value":{"anyOf":[{"type":"number"},{"type":"null"}]},"interval":{"anyOf":[{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}],"description":"The 95% interval, low then high, in the value's own unit."},{"type":"null"}]},"difference":{"anyOf":[{"type":"object","properties":{"effect":{"type":"number","description":"This study minus the baseline, paired by task."},"unit":{"type":"string","enum":["pp","pts"]},"interval":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}],"description":"The 95% interval, low then high, in the value's own unit."},"tasks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Tasks both studies measured."}},"required":["effect","unit","interval","tasks"],"additionalProperties":false},{"type":"null"}]}},"required":["studyId","name","comparable","differs","value","interval","difference"],"additionalProperties":false},{"type":"null"}],"description":"The study compared against; null when the spec named none, or none was found."},"comparabilityKey":{"type":"string","description":"Equal for two studies exactly when their figures may be compared."},"series":{"anyOf":[{"type":"object","properties":{"key":{"type":"string"},"ref":{"anyOf":[{"type":"object","properties":{"commit":{"description":"The commit the study was taken at (a SHA).","type":"string","minLength":1,"maxLength":64},"branch":{"description":"The branch it was taken on, e.g. 'main'. A gate's series baseline filters on it.","type":"string","minLength":1,"maxLength":200},"pr":{"description":"The pull request number, when it was taken for one.","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"url":{"description":"A link back to the change (the commit or pull request page).","type":"string","maxLength":500,"format":"uri"}},"additionalProperties":false},{"type":"null"}]}},"required":["key","ref"],"additionalProperties":false},{"type":"null"}]},"gate":{"type":"object","properties":{"decision":{"type":"string","enum":["pass","fail","undecided"],"description":"`undecided` is an answer: the runs cannot say yet. It is never rounded to pass or fail."},"refusedBy":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The rule that decided a non-pass; null on a pass."},"reason":{"type":"string","description":"One sentence with its numbers in it."},"rules":{"type":"array","items":{"type":"object","properties":{"rule":{"type":"string","description":"The rule's id: settled, infra_clean, enough_evidence, comparable_baseline, floor, max_drop."},"decision":{"type":"string","enum":["pass","fail","undecided"]},"reason":{"type":"string"}},"required":["rule","decision","reason"],"additionalProperties":false},"description":"Every rule that spoke, in evaluation order."}},"required":["decision","refusedBy","reason","rules"],"additionalProperties":false}},"required":["state","owed","countingPolicy","metric","group","groups","baseline","comparabilityKey","series","gate"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Study unavailable to the caller","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The gate names a group the study does not have, a unit its metric does not carry, or a series baseline on a study with no series","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:read","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/studies/{id}/generate":{"post":{"operationId":"study.generate","summary":"Approve task generation from 'draft' (first generation), or regenerate from 'ready'/'failed' (wipes existing tasks and their rubrics)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The study's uuid (from create or list)."}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"default":{},"type":"object","properties":{"proposeExpectations":{"description":"Opt in to an LLM proposing 'evals'-lens `expectations` for each task this generation produces — the generate-time re-assertion of create's `proposeExpectations` (create-time no longer fires generation itself, so this is where the opt-in actually takes effect). Same REQUIRES/IGNORED rules as create's field.","type":"boolean"}}}}}},"responses":{"200":{"description":"Approve task generation from 'draft' (first generation), or regenerate from 'ready'/'failed' (wipes existing tasks and their rubrics)","content":{"application/json":{"schema":{"type":"object","properties":{"study":{"type":"object","properties":{"id":{"type":"string"},"executiveSummary":{"anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryDraft":{"description":"A PUBLISHED study's summary held for review, never shown on the public page: what `studies.regenerateSummary` writes on a published study (and the first summary of a published study nothing asked for). `studies.publish` makes exactly this text the published `executiveSummary`, while the readout it was written from is still current; otherwise publish regenerates. Absent where the product has no review drafts.","anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryRequest":{"description":"A summary an explicit act asked for and not yet written: 'live' — a publish, a re-open, or a regenerate on an UNPUBLISHED completed study owes the summary in place (the public page, once published); 'draft' — a regenerate on a published study owes the review draft one. Null once the request is answered — poll `studies.get` until it is: by the written summary (`executiveSummary` or `executiveSummaryDraft`), by a later act that superseded it (a publish, a newer regenerate — its own write answers it), or as unavailable (`executiveSummaryUnavailableAt` set). While the automatic retries back off after a failed attempt it stays pending. Absent where the product has no review drafts.","anyOf":[{"type":"string","enum":["live","draft"]},{"type":"null"}]},"executiveSummaryRequestedAt":{"description":"When `executiveSummaryRequest` was made.","anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryUnavailableAt":{"description":"When the last summary request was answered as UNAVAILABLE: every attempt the retry policy allows on the study's readout failed, so no summary will be written for it until the readout changes (runs added, a re-run, a regrade) or someone regenerates or publishes again. Null otherwise; cleared by a new request or a written summary. Absent where the product has no review drafts.","anyOf":[{"type":"string"},{"type":"null"}]},"plannedRunCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The exact number of runs `launch` will fan out (taskCount × variantsPerTask × repeats × matrix cells × arms). Check this BEFORE launching."},"organizationId":{"type":"string"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"slug":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillRef":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillSlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillName":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillPromise":{"type":"string"},"subjectKind":{"type":"string","enum":["skill","tools","addon","custom","benchmark","site"],"description":"What the study measures. New studies: 'custom': any composition of skills, tools and add-ons, with its own subjectName and promise — under a comparisonMode that declares its groups, each group's configuration is in `arms`. 'benchmark': a pinned version of a catalog benchmark definition (requires definitionVersionId); the corpus is copied frozen from that version. 'site': a website (requires siteDomain, and a comparisonMode that declares its groups); the tasks are things to get done there, and every run is read against the site: whether the agent opened a page of it, and whether the site refused the agent. Every comparisonMode new studies use applies to 'benchmark': 'multi_arm' runs each declared group's setup: 1 group reads as the agent leaderboard: no reference group and no comparison, and it seeds the public leaderboard — when bare, labelled 'as published' on a model-API agent and 'harness default' on a harness agent, and 'with my setup' when it carries one; 2-6 groups are compared over the planned contrasts (with 2, one comparison, oriented only when a group has role 'reference'); only a bare group seeds the public leaderboard. A group that carries a setup is not the benchmark's bare protocol, so it does not seed the public leaderboard. 'skill', 'tools' and 'addon' are kept for the studies that already exist: under a comparisonMode new studies use, one answers 422 study_subject_invalid, and a create body that names no comparisonMode (or a legacy one) and carries it is read as the legacy body it is and answers 422 comparison_mode_removed (docs/studies/comparison-modes/README.md maps each legacy design onto the new ones)."},"subjectName":{"anyOf":[{"type":"string"},{"type":"null"}]},"siteDomain":{"description":"The website a 'site' study is run against (its host); absent for every other subject kind.","type":"string"},"subjectLabel":{"type":"string"},"armConfig":{"type":"object","properties":{"baseline":{"description":"The baseline arm's run-payload delta. Omitted = a bare run (no skill, no extras).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false},"treatment":{"description":"The treatment arm's run-payload delta (the thing under test).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"additionalProperties":false,"description":"Frozen per-arm run-payload deltas of a fixed pair of arms (comparisonMode 'ab_vs_none' or 'ab_custom' or 'single'), kept for the studies that already exist: new studies carry each group's configuration in `arms`, and a create body that names no comparisonMode (or a legacy one) and carries it is read as the legacy body it is and answers 422 comparison_mode_removed (docs/studies/comparison-modes/README.md maps each legacy design onto the new ones)."},"comparisonMode":{"type":"string","enum":["ab_vs_none","ab_custom","single","multi_arm"],"description":"The study's design. New studies: 'multi_arm' (Groups): 1-6 groups declared in `arms`, each with its own label and configuration — 1 group reads as the agent leaderboard: no reference group and no comparison, and it seeds the public leaderboard — when bare, labelled 'as published' on a model-API agent and 'harness default' on a harness agent, and 'with my setup' when it carries one; 2-6 groups are compared over the planned contrasts (with 2, one comparison, oriented only when a group has role 'reference'); only a bare group seeds the public leaderboard; which pairs are judged is `contrasts`. 'ab_vs_none', 'ab_custom' and 'single' are kept for the studies that already exist: a create naming one answers 422 comparison_mode_removed (docs/studies/comparison-modes/README.md maps each legacy design onto the new ones)."},"subjectBackend":{"anyOf":[{"type":"string","enum":["model","harness"],"description":"What answers a FRAMEWORK benchmark's requests: 'harness' — each request is answered by the cell's agent harness (the model inside its own loop, with the arm's tools, add-ons and skills), one agent run per request; 'model' — the framework's own client calls the cell's model directly and the cell's harness is not measured. Resolved once per study and recorded on every run."},{"type":"null"}]},"environmentExecutionPolicy":{"type":"string","enum":["legacy-v1","inside-v1"]},"importedFrom":{"type":"string"},"baselineLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"treatmentLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"promiseMetrics":{"type":"array","items":{"type":"object","properties":{"metric":{"type":"string","enum":["total_tokens","output_tokens","cost_usd","duration_ms","num_turns","success_rate","completion_rate","goal_rate"]},"direction":{"type":"string","enum":["down","up"]},"label":{"type":"string","minLength":1,"maxLength":120}},"required":["metric","direction","label"],"additionalProperties":false}},"matrix":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1,"maxLength":50,"description":"Harness id — the valid set (and each one's models) is GET /catalog; cells are validated against it at create."},"model":{"type":"string","minLength":1,"maxLength":100,"description":"Model id as the harness accepts it — valid ids per harness/provider are in GET /catalog (e.g. 'claude-sonnet-5', 'gpt-5.5')."},"provider":{"description":"Provider qualifier for multi-provider harnesses (e.g. 'anthropic', 'openai', 'google'). Omit to use the harness default.","type":"string","minLength":1,"maxLength":32},"params":{"description":"Provider params pinned for this cell (temperature, reasoningEffort, maxOutputTokens, thinkingBudgetTokens). A cell that pins none runs the provider's own defaults. Offered only where the harness declares support — see GET /catalog.","type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"maxOutputTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reasoningEffort":{"type":"string","enum":["low","medium","high"]},"thinkingBudgetTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"codeMode":{"type":"string","enum":["auto","on","off"]},"toolSearch":{"type":"string","enum":["on","off","directory"]},"location":{"type":"string","pattern":"^[A-Z]{2}$"},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$"}},"additionalProperties":false}},"required":["harness","model"],"additionalProperties":false,"description":"One (harness, model, params) cell — every task runs its arm(s) on every cell."}},"lenses":{"minItems":1,"type":"array","items":{"type":"string","enum":["judge","evals","reference","framework","execution","verifier"]},"description":"Which grading lenses this study runs under. Defaults to ['judge'] at create and stays editable while status is 'ready' (frozen at launch, like task expectations/rubrics). 'judge': the LLM judge panel (rubric grades + blind pairwise). 'evals': the deterministic @ora/eval-checks engine, scored against each task's authored expectations. 'reference': the static-QA lens — an answer extracted from the response and matched against the task's own reference key, scored 1/0 (spec §6.4). 'framework': the benchmark's OWN framework (HELM today) reports the metrics, mapped verbatim into a section rather than re-averaged (SP2 Task 9). 'execution': the candidate's code is extracted from the response and run against the task's own tests inside a sandboxed, network-less runner image (SP2 Task 16)."},"judgeSupplementary":{"type":"boolean"},"taskCount":{"type":"number"},"variantsPerTask":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Semantics-preserving paraphrases sampled per task (1-5; mirrors the create body's variantsPerTask). Absent at create defaults to 1 — every response reports a concrete value, including studies created before sampling existed."},"repeats":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Identical re-runs sampled per condition (1-10; mirrors the create body's repeats). Absent at create defaults to 1 — every response reports a concrete value, including studies created before sampling existed."},"subset":{"anyOf":[{"type":"object","properties":{"count":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"seed":{"type":"string","minLength":1},"of":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["count","seed","of"],"additionalProperties":false},{"type":"null"}]},"status":{"type":"string"},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"preparation":{"anyOf":[{"type":"object","properties":{"since":{"type":"string"},"progressAt":{"type":"string"},"launchedBy":{"type":"object","properties":{"userId":{"type":"string"},"role":{"type":"string"}},"additionalProperties":false},"waitingOn":{"type":"array","items":{"type":"object","properties":{"imageKey":{"type":"string"},"buildId":{"type":"string"},"stage":{"type":"string","enum":["image","snapshot"]},"retry":{"type":"object","properties":{"failedAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maxAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"notBefore":{"type":"string"},"lastFailure":{"type":"string"}},"required":["failedAttempts","maxAttempts","notBefore","lastFailure"],"additionalProperties":false}},"required":["imageKey","buildId"],"additionalProperties":false}}},"required":["since","launchedBy","waitingOn"],"additionalProperties":false},{"type":"null"}]},"visibility":{"type":"string","enum":["private","org","link","public"],"description":"Who may read this study: private (creator + org owners) | org (the whole org) | link (anyone holding ?share=<token>, unlisted) | public (everyone, listed)."},"visibilityChangedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"visibilityChangedBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"shareToken":{"anyOf":[{"type":"string"},{"type":"null"}]},"lowSampleOverride":{"type":"boolean","description":"True iff this study was explicitly published below the sample-size floor (spec A6) — the published page shows a low-sample badge when set."},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"verdict":{},"definitionVersionId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The benchmark definition VERSION this study pinned at create — non-null only for subjectKind 'benchmark'. Its corpus was copied frozen from that version, so the study stays reproducible when the definition publishes a newer one."},"runnerKind":{"type":"string","enum":["ora-runs","batch-job"],"description":"Which executor fans this study out: 'ora-runs' (the ora runs spine) or 'batch-job' (a built runner image)."},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"liveUntil":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When this study's live stream stops being held open (null while it is still running). Attaching before it yields the remaining post-terminal frames (gradings, recordings, refined verdicts)."},"launch":{"description":"The launch record: planned / created runs, the runs it could not create (missing.retryable: launching again creates them; missing.refused: a re-launch is refused the same way) with one note per cell and group, and the fan-out's state (fanning_out | deferred | settled). Null for a study launched before records existed.","anyOf":[{"type":"object","properties":{"attempt":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"state":{"type":"string","enum":["fanning_out","deferred","settled"]},"startedAt":{"type":"string"},"progressAt":{"type":"string"},"planned":{"type":"integer","minimum":0,"maximum":9007199254740991},"created":{"type":"integer","minimum":0,"maximum":9007199254740991},"missing":{"type":"object","properties":{"retryable":{"type":"integer","minimum":0,"maximum":9007199254740991},"refused":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["retryable","refused"],"additionalProperties":false},"notes":{"type":"array","items":{"type":"string"}},"settledAt":{"type":"string"},"pacing":{"type":"object","properties":{"waiting":{"type":"integer","minimum":0,"maximum":9007199254740991},"nextUnit":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"nextWaveAt":{"type":"string"},"emptyWaves":{"type":"integer","minimum":0,"maximum":9007199254740991},"stopped":{"type":"string"}},"required":["waiting"],"additionalProperties":false},"recovery":{"type":"object","properties":{"state":{"type":"string","enum":["retrying","needs_attention"]},"attempts":{"type":"integer","minimum":0,"maximum":9007199254740991},"lastAttemptAt":{"type":"string"},"nextAttemptAt":{"type":"string"},"reason":{"type":"string"}},"required":["state","attempts"],"additionalProperties":false},"stopped":{"type":"object","properties":{"at":{"type":"string"},"notStarted":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["at","notStarted"],"additionalProperties":false}},"required":["attempt","state","startedAt","progressAt"],"additionalProperties":false},{"type":"null"}]},"pacing":{"description":"How fast this study may START its runs, as declared at create: maxInFlight (at most N of its runs unfinished at once) and/or startsPerMinute (at most N started in any 60 s). Its runs start in waves of whole comparison units (every group's run of one agent on one task sample, together); the launch record's `pacing` says how many wait for a later wave. Null = every run started at launch.","anyOf":[{"type":"object","properties":{"maxInFlight":{"description":"At most this many of the study's runs unfinished at once — queued, pending or running (1-500). The next runs start as earlier ones finish.","type":"integer","minimum":1,"maximum":500},"startsPerMinute":{"description":"At most this many of the study's runs started in any 60-second window (1-600).","type":"integer","minimum":1,"maximum":600}},"additionalProperties":false},{"type":"null"}]},"relaunchable":{"description":"True when this running study may be launched again: its launch record says planned runs are missing (missing.retryable > 0), or its fan-out stopped. POST …/launch then creates exactly the runs that do not exist.","type":"boolean"},"archivedAt":{"description":"When this study was archived; null while it is not. An archived study loses nothing: it leaves the default list, is read-only (409 study_archived), and is on no public page. Restoring it clears this.","anyOf":[{"type":"string"},{"type":"null"}]},"archivedBy":{"description":"The user who archived it. Null when an API key did, and while the study is not archived.","anyOf":[{"type":"string"},{"type":"null"}]},"arms":{"description":"A declared-arm study's groups, in position order.","type":"array","items":{"type":"object","properties":{"key":{"type":"string","description":"The group's run key (each of its runs' `arm`)."},"position":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"0-based display order."},"label":{"type":"string","maxLength":80,"description":"The group's display label. Never shown to the judge."},"role":{"type":"string","enum":["reference","peer"],"description":"'reference' marks the group the others are compared against; the rest are peers."},"payload":{"type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"brief":{"description":"Text the agent is given after the task, for every task this group runs. At most 600 characters. A group with a brief is a setup of its own, never the subject as published.","type":"string","minLength":1,"maxLength":600}},"additionalProperties":false,"description":"The group's run-payload delta ({} = the subject as published)."},"cells":{"description":"The group's OWN agents, when the study's groups each list theirs (cellPlan 'per_setup'); absent = the matrix.","type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1,"maxLength":50,"description":"Harness id — the valid set (and each one's models) is GET /catalog; cells are validated against it at create."},"model":{"type":"string","minLength":1,"maxLength":100,"description":"Model id as the harness accepts it — valid ids per harness/provider are in GET /catalog (e.g. 'claude-sonnet-5', 'gpt-5.5')."},"provider":{"description":"Provider qualifier for multi-provider harnesses (e.g. 'anthropic', 'openai', 'google'). Omit to use the harness default.","type":"string","minLength":1,"maxLength":32},"params":{"description":"Provider params pinned for this cell (temperature, reasoningEffort, maxOutputTokens, thinkingBudgetTokens). A cell that pins none runs the provider's own defaults. Offered only where the harness declares support — see GET /catalog.","type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"maxOutputTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reasoningEffort":{"type":"string","enum":["low","medium","high"]},"thinkingBudgetTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"codeMode":{"type":"string","enum":["auto","on","off"]},"toolSearch":{"type":"string","enum":["on","off","directory"]},"location":{"type":"string","pattern":"^[A-Z]{2}$"},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$"}},"additionalProperties":false}},"required":["harness","model"],"additionalProperties":false,"description":"One (harness, model, params) cell — every task runs its arm(s) on every cell."}},"skipTasks":{"description":"The tasks this group leaves out, by task number (1 = the first); absent = it runs every task.","type":"array","items":{"type":"integer","minimum":1,"maximum":9007199254740991}},"skills":{"description":"The group's skills as resolved when the study was created (absent for a study created before that existed).","type":"array","items":{"type":"object","properties":{"ref":{"type":"string","description":"The skill ref the group's selection names."},"name":{"type":"string","description":"The skill's name when the study was created."},"changedSinceCreate":{"description":"True when the skill's content now differs from what the study ran; absent when the reader cannot check it.","type":"boolean"}},"required":["ref","name"],"additionalProperties":false}},"addedAgents":{"description":"The agents this group gained after the study was created (`addAgents`), by position in `cells` — absent when none was added.","type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The agent's position in the group's `cells`."},"addedAt":{"type":"string","description":"When it was added (RFC 3339)."}},"required":["position","addedAt"],"additionalProperties":false}}},"required":["key","position","label","role","payload"],"additionalProperties":false}},"contrastPlan":{"description":"The study's planned-contrast policy.","type":"string","enum":["vs_reference","all_pairs","ladder"]},"cellPlan":{"description":"How the groups meet their agents: absent = every group runs the matrix; 'per_setup' = each its own.","type":"string","enum":["crossed","per_setup"]},"skillDisclosure":{"description":"Whether the published page names the groups' skills: absent = withheld (chosen at publish).","type":"string","enum":["withheld","named"]},"modeOptions":{"description":"The comparisonMode's private inputs.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"screens":{"description":"The run screens the study declares (frozen at launch, like lenses). Absent = none.","type":"array","items":{"type":"string","enum":["test_awareness","site_access"]}},"runCounting":{"description":"Which of the study's runs its numbers count (GET /studies/:id/run-counting). Absent = every run.","anyOf":[{"type":"object","properties":{"policy":{"type":"string","const":"hold_back_screened"},"screen":{"type":"string","enum":["test_awareness"],"description":"The screen whose verdicts decide. Today: 'test_awareness'."},"levels":{"minItems":1,"type":"array","items":{"type":"string","enum":["aware","influenced"]},"description":"The verdict levels held back. A run the screen could not judge is never held back."}},"required":["policy","screen","levels"],"additionalProperties":false,"description":"Which of the study's runs its numbers count. Absent or null = every run. 'hold_back_screened' leaves out the runs the named screen flagged at one of `levels`: each is a missing measurement with a named reason, never a fail, and the count held back is stated beside every figure."},{"type":"null"}]},"seriesKey":{"description":"The series the study belongs to (set at create). Absent = none.","anyOf":[{"type":"string","pattern":"^[a-z0-9][a-z0-9._/-]{0,119}$"},{"type":"null"}]},"ref":{"description":"Where the study was taken: commit, branch, pull request. Absent = not recorded.","anyOf":[{"type":"object","properties":{"commit":{"description":"The commit the study was taken at (a SHA).","type":"string","minLength":1,"maxLength":64},"branch":{"description":"The branch it was taken on, e.g. 'main'. A gate's series baseline filters on it.","type":"string","minLength":1,"maxLength":200},"pr":{"description":"The pull request number, when it was taken for one.","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"url":{"description":"A link back to the change (the commit or pull request page).","type":"string","maxLength":500,"format":"uri"}},"additionalProperties":false},{"type":"null"}]},"gradingRevision":{"description":"The study's grading revision, when its checks were revised after its runs finished. Absent = never revised.","type":"integer","minimum":2,"maximum":9007199254740991},"gradingRevisedAt":{"description":"When the checks were last revised. Later than `publishedAt` = the grades changed after publication.","anyOf":[{"type":"string"},{"type":"null"}]},"rehearsal":{"description":"The study is a rehearsal: the smallest real run of a design, made by POST /studies/rehearsals. Absent = an ordinary study.","type":"boolean","const":true},"rehearsalMode":{"description":"How a rehearsal runs: 'live' (the real agents), or 'setup' / 'mock' (no agent is started). Absent on every other study.","type":"string"},"behaviors":{"description":"The custom behaviors the study declares (frozen at launch, like lenses). A run's verdict on one is in its `screens` under `b_<key>`. Absent = none.","type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{1,29}$","description":"A short id for the behavior, lowercase snake (`deleted_files`). Its verdicts are stored and queried under `b_<key>`."},"name":{"type":"string","minLength":1,"maxLength":80,"description":"What a reader sees: \"Deleted files it was not asked to\"."},"question":{"type":"string","minLength":10,"maxLength":400,"description":"One yes-or-no question about a single run that a judge can answer from its trace: \"Did the agent …?\"."},"version":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The version of the behavior's wording. A verdict and a review belong to the version they were made on."}},"required":["key","name","question","version"],"additionalProperties":false}},"stepTimeLimitSeconds":{"description":"How long each step of a task with steps may take, in seconds, as declared at create. A step still running after it ends the run, whose reason names the step and the limit. Null or absent = no per-step limit.","anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["id","plannedRunCount","organizationId","createdBy","name","slug","description","skillRef","skillSlug","skillName","skillPromise","subjectKind","subjectName","subjectLabel","armConfig","comparisonMode","subjectBackend","baselineLabel","treatmentLabel","promiseMetrics","matrix","lenses","taskCount","variantsPerTask","repeats","subset","status","error","visibility","lowSampleOverride","publishedAt","verdict","definitionVersionId","runnerKind","createdAt","updatedAt","liveUntil"],"additionalProperties":false},"streamUrl":{"type":"string","description":"The study's live SSE stream, relative to this API origin. Frames: status (draft/generating/ready/running/completed/failed — terminal closes the stream), run (per-run fact updates), grading, published/unpublished. `ora … --watch` follows it automatically."},"warnings":{"description":"'evals'-lens create only: (harness, check kind) pairs the capability roster cannot measure (deny-by-default) — that cell will abstain at grading time rather than pass/fail. Non-blocking; absent/[] means nothing was flagged. Also raised, whatever the study's lenses, for a group that runs with web tools off on an agent whose trace cannot show every way it reaches the web (kind 'web_fetched'): that agent's runs are screened and answered 'not measured'.","type":"array","items":{"anyOf":[{"type":"object","properties":{"harness":{"type":"string"},"kind":{"type":"string"}},"required":["harness","kind"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"design_aggregate_budget"},"detail":{"type":"string","description":"Which setups exceed the leaderboard's work budget, on which benchmark."}},"required":["type","detail"],"additionalProperties":false,"description":"A declared-arm study pinning a leaderboard benchmark: its setups (each group on each agent it runs) alone can take the benchmark off the cross-benchmark leaderboard (`within_budget`) once its runs are graded and published."}]}}},"required":["study","streamUrl"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"study_invalid_state — only 'draft', 'ready' or 'failed' studies can (re)generate (the body lists the allowed statuses) — or study_archived: an imported study's results never change","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"LENS_MISMATCH — `proposeExpectations` is true but `lenses` omits 'evals'","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"study_generation_failed — the task-generation LLM call failed; safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:write","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/studies/{id}/grading-revisions":{"get":{"operationId":"study.gradingRevisions","summary":"List a study's grading revisions","description":"The study's current grading revision and the record of every revision, newest first: who, when, why, and each changed task's checks before and after.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"List a study's grading revisions","content":{"application/json":{"schema":{"type":"object","properties":{"revision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The study's current grading revision. 1 = never revised."},"revisions":{"type":"array","items":{"type":"object","properties":{"revision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"reason":{"type":"string"},"changes":{"type":"array","items":{"type":"object","properties":{"taskId":{"type":"string"},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The task's 1-based position."},"before":{"type":"object","properties":{"rubric":{"type":"array","items":{"type":"string"}},"expectations":{"type":"array","items":{}},"followUps":{"description":"A task with steps, on a change that touches one: EVERY follow-up step's checks, in order (step 1 first). Absent when only the task's own checks changed.","type":"array","items":{"type":"object","properties":{"prompt":{"type":"string","description":"The step's prompt. A revision never changes it."},"rubric":{"type":"array","items":{"type":"string"}},"expectations":{"type":"array","items":{}}},"required":["prompt","rubric","expectations"],"additionalProperties":false}}},"required":["rubric","expectations"],"additionalProperties":false},"after":{"type":"object","properties":{"rubric":{"type":"array","items":{"type":"string"}},"expectations":{"type":"array","items":{}},"followUps":{"description":"A task with steps, on a change that touches one: EVERY follow-up step's checks, in order (step 1 first). Absent when only the task's own checks changed.","type":"array","items":{"type":"object","properties":{"prompt":{"type":"string","description":"The step's prompt. A revision never changes it."},"rubric":{"type":"array","items":{"type":"string"}},"expectations":{"type":"array","items":{}}},"required":["prompt","rubric","expectations"],"additionalProperties":false}}},"required":["rubric","expectations"],"additionalProperties":false},"lenses":{"type":"array","items":{"type":"string","enum":["judge","evals"]},"description":"Which lenses' checks this change touches."}},"required":["taskId","position","before","after","lenses"],"additionalProperties":false}}},"required":["revision","createdBy","createdAt","reason","changes"],"additionalProperties":false},"description":"Every revision, newest first."}},"required":["revision","revisions"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Study unavailable to the caller","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:read","x-ora-product":"study","x-ora-service":"study-service"},"post":{"operationId":"study.reviseGrading","summary":"Revise a finished study's checks and re-grade it","description":"Changes the CHECKS of a completed, settled custom study (a task's `rubric` and/or `expectations`, and those of its follow-up steps under `followUps`, each named by its `step`; never a prompt, the agents or the setup, and never the number of steps), records the change with its reason, and re-grades the runs. Nothing is replaced without a record: the study's `gradingRevision` moves up by one and `GET …/grading-revisions` keeps every task's checks before and after. Send `dryRun: true` first: it changes nothing and answers the plan (`judgeReads` are model calls) and, for expectations, exactly which runs' scores would move. A benchmark study is refused (its checks belong to the pinned benchmark; use regrade).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","minLength":1,"maxLength":500,"description":"Why the checks are changing. Kept in the revision's record and shown beside it."},"tasks":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"taskId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"rubric":{"description":"The judge's criteria for this task, replacing the current ones. Needs the 'judge' lens.","minItems":1,"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":1000}},"expectations":{"description":"The task's 'evals'-lens expectations, replacing the current ones (see studies.create tasks[].expectations).","type":"array","items":{}},"followUps":{"description":"A task with steps: the follow-up steps whose checks change, each named by its `step`. A step not named is left as it is.","minItems":1,"maxItems":8,"type":"array","items":{"type":"object","properties":{"step":{"type":"integer","minimum":1,"maximum":8,"description":"Which follow-up step: 1 = the task's first follow-up. The step must exist: a revision adds and removes none."},"rubric":{"description":"The judge's criteria for this step, replacing the current ones. An empty list = the judge grades nothing for this step. Needs the 'judge' lens.","maxItems":8,"type":"array","items":{"type":"string","minLength":1,"maxLength":300}},"expectations":{"description":"This step's 'evals'-lens expectations, replacing the current ones. An empty list = no check for this step.","type":"array","items":{}}},"required":["step"],"additionalProperties":false}}},"required":["taskId"],"additionalProperties":false},"description":"The tasks whose checks change."},"dryRun":{"description":"true = change nothing: answer what the revision would change, and which runs' deterministic checks would flip.","type":"boolean"}},"required":["reason","tasks"],"additionalProperties":false}}}},"responses":{"200":{"description":"Revise a finished study's checks and re-grade it","content":{"application/json":{"schema":{"type":"object","properties":{"dryRun":{"type":"boolean"},"plan":{"type":"object","properties":{"revision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The revision the study moves to."},"lenses":{"type":"array","items":{"type":"string","enum":["judge","evals"]},"description":"The lenses whose grades are re-made."},"tasks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many tasks' checks change."},"evalRegrades":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Runs whose deterministic checks are re-graded. Free."},"judgeReads":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Runs the judge panel re-reads. These cost model calls; 0 when no rubric changes."}},"required":["revision","lenses","tasks","evalRegrades","judgeReads"],"additionalProperties":false},"changes":{"type":"array","items":{"type":"object","properties":{"taskId":{"type":"string"},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The task's 1-based position."},"before":{"type":"object","properties":{"rubric":{"type":"array","items":{"type":"string"}},"expectations":{"type":"array","items":{}},"followUps":{"description":"A task with steps, on a change that touches one: EVERY follow-up step's checks, in order (step 1 first). Absent when only the task's own checks changed.","type":"array","items":{"type":"object","properties":{"prompt":{"type":"string","description":"The step's prompt. A revision never changes it."},"rubric":{"type":"array","items":{"type":"string"}},"expectations":{"type":"array","items":{}}},"required":["prompt","rubric","expectations"],"additionalProperties":false}}},"required":["rubric","expectations"],"additionalProperties":false},"after":{"type":"object","properties":{"rubric":{"type":"array","items":{"type":"string"}},"expectations":{"type":"array","items":{}},"followUps":{"description":"A task with steps, on a change that touches one: EVERY follow-up step's checks, in order (step 1 first). Absent when only the task's own checks changed.","type":"array","items":{"type":"object","properties":{"prompt":{"type":"string","description":"The step's prompt. A revision never changes it."},"rubric":{"type":"array","items":{"type":"string"}},"expectations":{"type":"array","items":{}}},"required":["prompt","rubric","expectations"],"additionalProperties":false}}},"required":["rubric","expectations"],"additionalProperties":false},"lenses":{"type":"array","items":{"type":"string","enum":["judge","evals"]},"description":"Which lenses' checks this change touches."}},"required":["taskId","position","before","after","lenses"],"additionalProperties":false},"description":"Each changed task's checks before and after. A proposed task equal to its current checks is not listed."},"flips":{"description":"Dry run only: the runs whose deterministic score would move (the first 200). A rubric change lists none: it is not judged in a dry run.","type":"array","items":{"type":"object","properties":{"runId":{"type":"string"},"taskId":{"type":"string"},"arm":{"type":"string"},"before":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The run's deterministic score now; null = not measured."},"after":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Its score under the proposed checks."}},"required":["runId","taskId","arm","before","after"],"additionalProperties":false}},"flipCount":{"description":"Dry run only: how many runs' deterministic score would move, in all.","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["dryRun","plan","changes"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Study unavailable to the caller","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The study has not completed, its grading has not settled, it is archival, or another revision landed first","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The revision changes nothing, names a task or a follow-up step the study does not have, a lens it does not carry, or is on a benchmark study","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:write","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/studies/{id}/launch":{"post":{"operationId":"study.launch","summary":"Launch: fan out task × matrix-cell × arm runs (async — poll get until status 'completed'). Launching a RUNNING study again creates exactly the planned runs its launch record says are missing (`launch.missing.retryable`, `relaunchable`), or takes over a fan-out that stopped — never a duplicate","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The study's uuid (from create or list)."}}],"responses":{"200":{"description":"Launch: fan out task × matrix-cell × arm runs (async — poll get until status 'completed'). Launching a RUNNING study again creates exactly the planned runs its launch record says are missing (`launch.missing.retryable`, `relaunchable`), or takes over a fan-out that stopped — never a duplicate","content":{"application/json":{"schema":{"type":"object","properties":{"study":{"type":"object","properties":{"id":{"type":"string"},"executiveSummary":{"anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryDraft":{"description":"A PUBLISHED study's summary held for review, never shown on the public page: what `studies.regenerateSummary` writes on a published study (and the first summary of a published study nothing asked for). `studies.publish` makes exactly this text the published `executiveSummary`, while the readout it was written from is still current; otherwise publish regenerates. Absent where the product has no review drafts.","anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryRequest":{"description":"A summary an explicit act asked for and not yet written: 'live' — a publish, a re-open, or a regenerate on an UNPUBLISHED completed study owes the summary in place (the public page, once published); 'draft' — a regenerate on a published study owes the review draft one. Null once the request is answered — poll `studies.get` until it is: by the written summary (`executiveSummary` or `executiveSummaryDraft`), by a later act that superseded it (a publish, a newer regenerate — its own write answers it), or as unavailable (`executiveSummaryUnavailableAt` set). While the automatic retries back off after a failed attempt it stays pending. Absent where the product has no review drafts.","anyOf":[{"type":"string","enum":["live","draft"]},{"type":"null"}]},"executiveSummaryRequestedAt":{"description":"When `executiveSummaryRequest` was made.","anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryUnavailableAt":{"description":"When the last summary request was answered as UNAVAILABLE: every attempt the retry policy allows on the study's readout failed, so no summary will be written for it until the readout changes (runs added, a re-run, a regrade) or someone regenerates or publishes again. Null otherwise; cleared by a new request or a written summary. Absent where the product has no review drafts.","anyOf":[{"type":"string"},{"type":"null"}]},"plannedRunCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The exact number of runs `launch` will fan out (taskCount × variantsPerTask × repeats × matrix cells × arms). Check this BEFORE launching."},"organizationId":{"type":"string"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"slug":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillRef":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillSlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillName":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillPromise":{"type":"string"},"subjectKind":{"type":"string","enum":["skill","tools","addon","custom","benchmark","site"],"description":"What the study measures. New studies: 'custom': any composition of skills, tools and add-ons, with its own subjectName and promise — under a comparisonMode that declares its groups, each group's configuration is in `arms`. 'benchmark': a pinned version of a catalog benchmark definition (requires definitionVersionId); the corpus is copied frozen from that version. 'site': a website (requires siteDomain, and a comparisonMode that declares its groups); the tasks are things to get done there, and every run is read against the site: whether the agent opened a page of it, and whether the site refused the agent. Every comparisonMode new studies use applies to 'benchmark': 'multi_arm' runs each declared group's setup: 1 group reads as the agent leaderboard: no reference group and no comparison, and it seeds the public leaderboard — when bare, labelled 'as published' on a model-API agent and 'harness default' on a harness agent, and 'with my setup' when it carries one; 2-6 groups are compared over the planned contrasts (with 2, one comparison, oriented only when a group has role 'reference'); only a bare group seeds the public leaderboard. A group that carries a setup is not the benchmark's bare protocol, so it does not seed the public leaderboard. 'skill', 'tools' and 'addon' are kept for the studies that already exist: under a comparisonMode new studies use, one answers 422 study_subject_invalid, and a create body that names no comparisonMode (or a legacy one) and carries it is read as the legacy body it is and answers 422 comparison_mode_removed (docs/studies/comparison-modes/README.md maps each legacy design onto the new ones)."},"subjectName":{"anyOf":[{"type":"string"},{"type":"null"}]},"siteDomain":{"description":"The website a 'site' study is run against (its host); absent for every other subject kind.","type":"string"},"subjectLabel":{"type":"string"},"armConfig":{"type":"object","properties":{"baseline":{"description":"The baseline arm's run-payload delta. Omitted = a bare run (no skill, no extras).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false},"treatment":{"description":"The treatment arm's run-payload delta (the thing under test).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"additionalProperties":false,"description":"Frozen per-arm run-payload deltas of a fixed pair of arms (comparisonMode 'ab_vs_none' or 'ab_custom' or 'single'), kept for the studies that already exist: new studies carry each group's configuration in `arms`, and a create body that names no comparisonMode (or a legacy one) and carries it is read as the legacy body it is and answers 422 comparison_mode_removed (docs/studies/comparison-modes/README.md maps each legacy design onto the new ones)."},"comparisonMode":{"type":"string","enum":["ab_vs_none","ab_custom","single","multi_arm"],"description":"The study's design. New studies: 'multi_arm' (Groups): 1-6 groups declared in `arms`, each with its own label and configuration — 1 group reads as the agent leaderboard: no reference group and no comparison, and it seeds the public leaderboard — when bare, labelled 'as published' on a model-API agent and 'harness default' on a harness agent, and 'with my setup' when it carries one; 2-6 groups are compared over the planned contrasts (with 2, one comparison, oriented only when a group has role 'reference'); only a bare group seeds the public leaderboard; which pairs are judged is `contrasts`. 'ab_vs_none', 'ab_custom' and 'single' are kept for the studies that already exist: a create naming one answers 422 comparison_mode_removed (docs/studies/comparison-modes/README.md maps each legacy design onto the new ones)."},"subjectBackend":{"anyOf":[{"type":"string","enum":["model","harness"],"description":"What answers a FRAMEWORK benchmark's requests: 'harness' — each request is answered by the cell's agent harness (the model inside its own loop, with the arm's tools, add-ons and skills), one agent run per request; 'model' — the framework's own client calls the cell's model directly and the cell's harness is not measured. Resolved once per study and recorded on every run."},{"type":"null"}]},"environmentExecutionPolicy":{"type":"string","enum":["legacy-v1","inside-v1"]},"importedFrom":{"type":"string"},"baselineLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"treatmentLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"promiseMetrics":{"type":"array","items":{"type":"object","properties":{"metric":{"type":"string","enum":["total_tokens","output_tokens","cost_usd","duration_ms","num_turns","success_rate","completion_rate","goal_rate"]},"direction":{"type":"string","enum":["down","up"]},"label":{"type":"string","minLength":1,"maxLength":120}},"required":["metric","direction","label"],"additionalProperties":false}},"matrix":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1,"maxLength":50,"description":"Harness id — the valid set (and each one's models) is GET /catalog; cells are validated against it at create."},"model":{"type":"string","minLength":1,"maxLength":100,"description":"Model id as the harness accepts it — valid ids per harness/provider are in GET /catalog (e.g. 'claude-sonnet-5', 'gpt-5.5')."},"provider":{"description":"Provider qualifier for multi-provider harnesses (e.g. 'anthropic', 'openai', 'google'). Omit to use the harness default.","type":"string","minLength":1,"maxLength":32},"params":{"description":"Provider params pinned for this cell (temperature, reasoningEffort, maxOutputTokens, thinkingBudgetTokens). A cell that pins none runs the provider's own defaults. Offered only where the harness declares support — see GET /catalog.","type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"maxOutputTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reasoningEffort":{"type":"string","enum":["low","medium","high"]},"thinkingBudgetTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"codeMode":{"type":"string","enum":["auto","on","off"]},"toolSearch":{"type":"string","enum":["on","off","directory"]},"location":{"type":"string","pattern":"^[A-Z]{2}$"},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$"}},"additionalProperties":false}},"required":["harness","model"],"additionalProperties":false,"description":"One (harness, model, params) cell — every task runs its arm(s) on every cell."}},"lenses":{"minItems":1,"type":"array","items":{"type":"string","enum":["judge","evals","reference","framework","execution","verifier"]},"description":"Which grading lenses this study runs under. Defaults to ['judge'] at create and stays editable while status is 'ready' (frozen at launch, like task expectations/rubrics). 'judge': the LLM judge panel (rubric grades + blind pairwise). 'evals': the deterministic @ora/eval-checks engine, scored against each task's authored expectations. 'reference': the static-QA lens — an answer extracted from the response and matched against the task's own reference key, scored 1/0 (spec §6.4). 'framework': the benchmark's OWN framework (HELM today) reports the metrics, mapped verbatim into a section rather than re-averaged (SP2 Task 9). 'execution': the candidate's code is extracted from the response and run against the task's own tests inside a sandboxed, network-less runner image (SP2 Task 16)."},"judgeSupplementary":{"type":"boolean"},"taskCount":{"type":"number"},"variantsPerTask":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Semantics-preserving paraphrases sampled per task (1-5; mirrors the create body's variantsPerTask). Absent at create defaults to 1 — every response reports a concrete value, including studies created before sampling existed."},"repeats":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Identical re-runs sampled per condition (1-10; mirrors the create body's repeats). Absent at create defaults to 1 — every response reports a concrete value, including studies created before sampling existed."},"subset":{"anyOf":[{"type":"object","properties":{"count":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"seed":{"type":"string","minLength":1},"of":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["count","seed","of"],"additionalProperties":false},{"type":"null"}]},"status":{"type":"string"},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"preparation":{"anyOf":[{"type":"object","properties":{"since":{"type":"string"},"progressAt":{"type":"string"},"launchedBy":{"type":"object","properties":{"userId":{"type":"string"},"role":{"type":"string"}},"additionalProperties":false},"waitingOn":{"type":"array","items":{"type":"object","properties":{"imageKey":{"type":"string"},"buildId":{"type":"string"},"stage":{"type":"string","enum":["image","snapshot"]},"retry":{"type":"object","properties":{"failedAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maxAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"notBefore":{"type":"string"},"lastFailure":{"type":"string"}},"required":["failedAttempts","maxAttempts","notBefore","lastFailure"],"additionalProperties":false}},"required":["imageKey","buildId"],"additionalProperties":false}}},"required":["since","launchedBy","waitingOn"],"additionalProperties":false},{"type":"null"}]},"visibility":{"type":"string","enum":["private","org","link","public"],"description":"Who may read this study: private (creator + org owners) | org (the whole org) | link (anyone holding ?share=<token>, unlisted) | public (everyone, listed)."},"visibilityChangedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"visibilityChangedBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"shareToken":{"anyOf":[{"type":"string"},{"type":"null"}]},"lowSampleOverride":{"type":"boolean","description":"True iff this study was explicitly published below the sample-size floor (spec A6) — the published page shows a low-sample badge when set."},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"verdict":{},"definitionVersionId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The benchmark definition VERSION this study pinned at create — non-null only for subjectKind 'benchmark'. Its corpus was copied frozen from that version, so the study stays reproducible when the definition publishes a newer one."},"runnerKind":{"type":"string","enum":["ora-runs","batch-job"],"description":"Which executor fans this study out: 'ora-runs' (the ora runs spine) or 'batch-job' (a built runner image)."},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"liveUntil":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When this study's live stream stops being held open (null while it is still running). Attaching before it yields the remaining post-terminal frames (gradings, recordings, refined verdicts)."},"launch":{"description":"The launch record: planned / created runs, the runs it could not create (missing.retryable: launching again creates them; missing.refused: a re-launch is refused the same way) with one note per cell and group, and the fan-out's state (fanning_out | deferred | settled). Null for a study launched before records existed.","anyOf":[{"type":"object","properties":{"attempt":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"state":{"type":"string","enum":["fanning_out","deferred","settled"]},"startedAt":{"type":"string"},"progressAt":{"type":"string"},"planned":{"type":"integer","minimum":0,"maximum":9007199254740991},"created":{"type":"integer","minimum":0,"maximum":9007199254740991},"missing":{"type":"object","properties":{"retryable":{"type":"integer","minimum":0,"maximum":9007199254740991},"refused":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["retryable","refused"],"additionalProperties":false},"notes":{"type":"array","items":{"type":"string"}},"settledAt":{"type":"string"},"pacing":{"type":"object","properties":{"waiting":{"type":"integer","minimum":0,"maximum":9007199254740991},"nextUnit":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"nextWaveAt":{"type":"string"},"emptyWaves":{"type":"integer","minimum":0,"maximum":9007199254740991},"stopped":{"type":"string"}},"required":["waiting"],"additionalProperties":false},"recovery":{"type":"object","properties":{"state":{"type":"string","enum":["retrying","needs_attention"]},"attempts":{"type":"integer","minimum":0,"maximum":9007199254740991},"lastAttemptAt":{"type":"string"},"nextAttemptAt":{"type":"string"},"reason":{"type":"string"}},"required":["state","attempts"],"additionalProperties":false},"stopped":{"type":"object","properties":{"at":{"type":"string"},"notStarted":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["at","notStarted"],"additionalProperties":false}},"required":["attempt","state","startedAt","progressAt"],"additionalProperties":false},{"type":"null"}]},"pacing":{"description":"How fast this study may START its runs, as declared at create: maxInFlight (at most N of its runs unfinished at once) and/or startsPerMinute (at most N started in any 60 s). Its runs start in waves of whole comparison units (every group's run of one agent on one task sample, together); the launch record's `pacing` says how many wait for a later wave. Null = every run started at launch.","anyOf":[{"type":"object","properties":{"maxInFlight":{"description":"At most this many of the study's runs unfinished at once — queued, pending or running (1-500). The next runs start as earlier ones finish.","type":"integer","minimum":1,"maximum":500},"startsPerMinute":{"description":"At most this many of the study's runs started in any 60-second window (1-600).","type":"integer","minimum":1,"maximum":600}},"additionalProperties":false},{"type":"null"}]},"relaunchable":{"description":"True when this running study may be launched again: its launch record says planned runs are missing (missing.retryable > 0), or its fan-out stopped. POST …/launch then creates exactly the runs that do not exist.","type":"boolean"},"archivedAt":{"description":"When this study was archived; null while it is not. An archived study loses nothing: it leaves the default list, is read-only (409 study_archived), and is on no public page. Restoring it clears this.","anyOf":[{"type":"string"},{"type":"null"}]},"archivedBy":{"description":"The user who archived it. Null when an API key did, and while the study is not archived.","anyOf":[{"type":"string"},{"type":"null"}]},"arms":{"description":"A declared-arm study's groups, in position order.","type":"array","items":{"type":"object","properties":{"key":{"type":"string","description":"The group's run key (each of its runs' `arm`)."},"position":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"0-based display order."},"label":{"type":"string","maxLength":80,"description":"The group's display label. Never shown to the judge."},"role":{"type":"string","enum":["reference","peer"],"description":"'reference' marks the group the others are compared against; the rest are peers."},"payload":{"type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"brief":{"description":"Text the agent is given after the task, for every task this group runs. At most 600 characters. A group with a brief is a setup of its own, never the subject as published.","type":"string","minLength":1,"maxLength":600}},"additionalProperties":false,"description":"The group's run-payload delta ({} = the subject as published)."},"cells":{"description":"The group's OWN agents, when the study's groups each list theirs (cellPlan 'per_setup'); absent = the matrix.","type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1,"maxLength":50,"description":"Harness id — the valid set (and each one's models) is GET /catalog; cells are validated against it at create."},"model":{"type":"string","minLength":1,"maxLength":100,"description":"Model id as the harness accepts it — valid ids per harness/provider are in GET /catalog (e.g. 'claude-sonnet-5', 'gpt-5.5')."},"provider":{"description":"Provider qualifier for multi-provider harnesses (e.g. 'anthropic', 'openai', 'google'). Omit to use the harness default.","type":"string","minLength":1,"maxLength":32},"params":{"description":"Provider params pinned for this cell (temperature, reasoningEffort, maxOutputTokens, thinkingBudgetTokens). A cell that pins none runs the provider's own defaults. Offered only where the harness declares support — see GET /catalog.","type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"maxOutputTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reasoningEffort":{"type":"string","enum":["low","medium","high"]},"thinkingBudgetTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"codeMode":{"type":"string","enum":["auto","on","off"]},"toolSearch":{"type":"string","enum":["on","off","directory"]},"location":{"type":"string","pattern":"^[A-Z]{2}$"},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$"}},"additionalProperties":false}},"required":["harness","model"],"additionalProperties":false,"description":"One (harness, model, params) cell — every task runs its arm(s) on every cell."}},"skipTasks":{"description":"The tasks this group leaves out, by task number (1 = the first); absent = it runs every task.","type":"array","items":{"type":"integer","minimum":1,"maximum":9007199254740991}},"skills":{"description":"The group's skills as resolved when the study was created (absent for a study created before that existed).","type":"array","items":{"type":"object","properties":{"ref":{"type":"string","description":"The skill ref the group's selection names."},"name":{"type":"string","description":"The skill's name when the study was created."},"changedSinceCreate":{"description":"True when the skill's content now differs from what the study ran; absent when the reader cannot check it.","type":"boolean"}},"required":["ref","name"],"additionalProperties":false}},"addedAgents":{"description":"The agents this group gained after the study was created (`addAgents`), by position in `cells` — absent when none was added.","type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The agent's position in the group's `cells`."},"addedAt":{"type":"string","description":"When it was added (RFC 3339)."}},"required":["position","addedAt"],"additionalProperties":false}}},"required":["key","position","label","role","payload"],"additionalProperties":false}},"contrastPlan":{"description":"The study's planned-contrast policy.","type":"string","enum":["vs_reference","all_pairs","ladder"]},"cellPlan":{"description":"How the groups meet their agents: absent = every group runs the matrix; 'per_setup' = each its own.","type":"string","enum":["crossed","per_setup"]},"skillDisclosure":{"description":"Whether the published page names the groups' skills: absent = withheld (chosen at publish).","type":"string","enum":["withheld","named"]},"modeOptions":{"description":"The comparisonMode's private inputs.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"screens":{"description":"The run screens the study declares (frozen at launch, like lenses). Absent = none.","type":"array","items":{"type":"string","enum":["test_awareness","site_access"]}},"runCounting":{"description":"Which of the study's runs its numbers count (GET /studies/:id/run-counting). Absent = every run.","anyOf":[{"type":"object","properties":{"policy":{"type":"string","const":"hold_back_screened"},"screen":{"type":"string","enum":["test_awareness"],"description":"The screen whose verdicts decide. Today: 'test_awareness'."},"levels":{"minItems":1,"type":"array","items":{"type":"string","enum":["aware","influenced"]},"description":"The verdict levels held back. A run the screen could not judge is never held back."}},"required":["policy","screen","levels"],"additionalProperties":false,"description":"Which of the study's runs its numbers count. Absent or null = every run. 'hold_back_screened' leaves out the runs the named screen flagged at one of `levels`: each is a missing measurement with a named reason, never a fail, and the count held back is stated beside every figure."},{"type":"null"}]},"seriesKey":{"description":"The series the study belongs to (set at create). Absent = none.","anyOf":[{"type":"string","pattern":"^[a-z0-9][a-z0-9._/-]{0,119}$"},{"type":"null"}]},"ref":{"description":"Where the study was taken: commit, branch, pull request. Absent = not recorded.","anyOf":[{"type":"object","properties":{"commit":{"description":"The commit the study was taken at (a SHA).","type":"string","minLength":1,"maxLength":64},"branch":{"description":"The branch it was taken on, e.g. 'main'. A gate's series baseline filters on it.","type":"string","minLength":1,"maxLength":200},"pr":{"description":"The pull request number, when it was taken for one.","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"url":{"description":"A link back to the change (the commit or pull request page).","type":"string","maxLength":500,"format":"uri"}},"additionalProperties":false},{"type":"null"}]},"gradingRevision":{"description":"The study's grading revision, when its checks were revised after its runs finished. Absent = never revised.","type":"integer","minimum":2,"maximum":9007199254740991},"gradingRevisedAt":{"description":"When the checks were last revised. Later than `publishedAt` = the grades changed after publication.","anyOf":[{"type":"string"},{"type":"null"}]},"rehearsal":{"description":"The study is a rehearsal: the smallest real run of a design, made by POST /studies/rehearsals. Absent = an ordinary study.","type":"boolean","const":true},"rehearsalMode":{"description":"How a rehearsal runs: 'live' (the real agents), or 'setup' / 'mock' (no agent is started). Absent on every other study.","type":"string"},"behaviors":{"description":"The custom behaviors the study declares (frozen at launch, like lenses). A run's verdict on one is in its `screens` under `b_<key>`. Absent = none.","type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{1,29}$","description":"A short id for the behavior, lowercase snake (`deleted_files`). Its verdicts are stored and queried under `b_<key>`."},"name":{"type":"string","minLength":1,"maxLength":80,"description":"What a reader sees: \"Deleted files it was not asked to\"."},"question":{"type":"string","minLength":10,"maxLength":400,"description":"One yes-or-no question about a single run that a judge can answer from its trace: \"Did the agent …?\"."},"version":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The version of the behavior's wording. A verdict and a review belong to the version they were made on."}},"required":["key","name","question","version"],"additionalProperties":false}},"stepTimeLimitSeconds":{"description":"How long each step of a task with steps may take, in seconds, as declared at create. A step still running after it ends the run, whose reason names the step and the limit. Null or absent = no per-step limit.","anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["id","plannedRunCount","organizationId","createdBy","name","slug","description","skillRef","skillSlug","skillName","skillPromise","subjectKind","subjectName","subjectLabel","armConfig","comparisonMode","subjectBackend","baselineLabel","treatmentLabel","promiseMetrics","matrix","lenses","taskCount","variantsPerTask","repeats","subset","status","error","visibility","lowSampleOverride","publishedAt","verdict","definitionVersionId","runnerKind","createdAt","updatedAt","liveUntil"],"additionalProperties":false},"streamUrl":{"type":"string","description":"The study's live SSE stream, relative to this API origin. Frames: status (draft/generating/ready/running/completed/failed — terminal closes the stream), run (per-run fact updates), grading, published/unpublished. `ora … --watch` follows it automatically."},"warnings":{"description":"'evals'-lens create only: (harness, check kind) pairs the capability roster cannot measure (deny-by-default) — that cell will abstain at grading time rather than pass/fail. Non-blocking; absent/[] means nothing was flagged. Also raised, whatever the study's lenses, for a group that runs with web tools off on an agent whose trace cannot show every way it reaches the web (kind 'web_fetched'): that agent's runs are screened and answered 'not measured'.","type":"array","items":{"anyOf":[{"type":"object","properties":{"harness":{"type":"string"},"kind":{"type":"string"}},"required":["harness","kind"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"design_aggregate_budget"},"detail":{"type":"string","description":"Which setups exceed the leaderboard's work budget, on which benchmark."}},"required":["type","detail"],"additionalProperties":false,"description":"A declared-arm study pinning a leaderboard benchmark: its setups (each group on each agent it runs) alone can take the benchmark off the cross-benchmark leaderboard (`within_budget`) once its runs are graded and published."}]}}},"required":["study","streamUrl"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"study_invalid_state (only ready studies launch, and running ones with runs to create) or study_relaunch_refused (a running study whose runs are still being created, or that has nothing left to create; `reason` says which) or study_environment_policy_unavailable (create a new study to use the current environment method; existing evidence remains unchanged), or study_archived (an imported study's results never change)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:write","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/studies/{id}/lenses":{"put":{"operationId":"study.updateLenses","summary":"Change which grading lenses a study runs under before launch (status 'ready' only) — the complete replacement set, e.g. add 'evals' to a judge-only study so its tasks can carry expectations","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The study's uuid (from create or list)."},"example":"1f7e4d1c-4b2a-4f3e-9d8c-5a6b7c8d9e0f"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lenses":{"minItems":1,"type":"array","items":{"type":"string","enum":["judge","evals","reference","framework","execution","verifier"]},"description":"The COMPLETE replacement lens set (not a delta). Editable only while status is 'ready'. Removing 'evals' while a task still carries authored `expectations` is BLOCKED (422 LENS_REMOVAL_BLOCKED, names the task(s)); removing 'judge' while a task carries a `rubric` succeeds but returns a non-blocking warning (the rubric stays stored, just ungraded)."}},"required":["lenses"]},"example":{"lenses":["judge","evals"]}}}},"responses":{"200":{"description":"Change which grading lenses a study runs under before launch (status 'ready' only) — the complete replacement set, e.g. add 'evals' to a judge-only study so its tasks can carry expectations","content":{"application/json":{"schema":{"type":"object","properties":{"study":{"type":"object","properties":{"id":{"type":"string"},"executiveSummary":{"anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryDraft":{"description":"A PUBLISHED study's summary held for review, never shown on the public page: what `studies.regenerateSummary` writes on a published study (and the first summary of a published study nothing asked for). `studies.publish` makes exactly this text the published `executiveSummary`, while the readout it was written from is still current; otherwise publish regenerates. Absent where the product has no review drafts.","anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryRequest":{"description":"A summary an explicit act asked for and not yet written: 'live' — a publish, a re-open, or a regenerate on an UNPUBLISHED completed study owes the summary in place (the public page, once published); 'draft' — a regenerate on a published study owes the review draft one. Null once the request is answered — poll `studies.get` until it is: by the written summary (`executiveSummary` or `executiveSummaryDraft`), by a later act that superseded it (a publish, a newer regenerate — its own write answers it), or as unavailable (`executiveSummaryUnavailableAt` set). While the automatic retries back off after a failed attempt it stays pending. Absent where the product has no review drafts.","anyOf":[{"type":"string","enum":["live","draft"]},{"type":"null"}]},"executiveSummaryRequestedAt":{"description":"When `executiveSummaryRequest` was made.","anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryUnavailableAt":{"description":"When the last summary request was answered as UNAVAILABLE: every attempt the retry policy allows on the study's readout failed, so no summary will be written for it until the readout changes (runs added, a re-run, a regrade) or someone regenerates or publishes again. Null otherwise; cleared by a new request or a written summary. Absent where the product has no review drafts.","anyOf":[{"type":"string"},{"type":"null"}]},"plannedRunCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The exact number of runs `launch` will fan out (taskCount × variantsPerTask × repeats × matrix cells × arms). Check this BEFORE launching."},"organizationId":{"type":"string"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"slug":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillRef":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillSlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillName":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillPromise":{"type":"string"},"subjectKind":{"type":"string","enum":["skill","tools","addon","custom","benchmark","site"],"description":"What the study measures. New studies: 'custom': any composition of skills, tools and add-ons, with its own subjectName and promise — under a comparisonMode that declares its groups, each group's configuration is in `arms`. 'benchmark': a pinned version of a catalog benchmark definition (requires definitionVersionId); the corpus is copied frozen from that version. 'site': a website (requires siteDomain, and a comparisonMode that declares its groups); the tasks are things to get done there, and every run is read against the site: whether the agent opened a page of it, and whether the site refused the agent. Every comparisonMode new studies use applies to 'benchmark': 'multi_arm' runs each declared group's setup: 1 group reads as the agent leaderboard: no reference group and no comparison, and it seeds the public leaderboard — when bare, labelled 'as published' on a model-API agent and 'harness default' on a harness agent, and 'with my setup' when it carries one; 2-6 groups are compared over the planned contrasts (with 2, one comparison, oriented only when a group has role 'reference'); only a bare group seeds the public leaderboard. A group that carries a setup is not the benchmark's bare protocol, so it does not seed the public leaderboard. 'skill', 'tools' and 'addon' are kept for the studies that already exist: under a comparisonMode new studies use, one answers 422 study_subject_invalid, and a create body that names no comparisonMode (or a legacy one) and carries it is read as the legacy body it is and answers 422 comparison_mode_removed (docs/studies/comparison-modes/README.md maps each legacy design onto the new ones)."},"subjectName":{"anyOf":[{"type":"string"},{"type":"null"}]},"siteDomain":{"description":"The website a 'site' study is run against (its host); absent for every other subject kind.","type":"string"},"subjectLabel":{"type":"string"},"armConfig":{"type":"object","properties":{"baseline":{"description":"The baseline arm's run-payload delta. Omitted = a bare run (no skill, no extras).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false},"treatment":{"description":"The treatment arm's run-payload delta (the thing under test).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"additionalProperties":false,"description":"Frozen per-arm run-payload deltas of a fixed pair of arms (comparisonMode 'ab_vs_none' or 'ab_custom' or 'single'), kept for the studies that already exist: new studies carry each group's configuration in `arms`, and a create body that names no comparisonMode (or a legacy one) and carries it is read as the legacy body it is and answers 422 comparison_mode_removed (docs/studies/comparison-modes/README.md maps each legacy design onto the new ones)."},"comparisonMode":{"type":"string","enum":["ab_vs_none","ab_custom","single","multi_arm"],"description":"The study's design. New studies: 'multi_arm' (Groups): 1-6 groups declared in `arms`, each with its own label and configuration — 1 group reads as the agent leaderboard: no reference group and no comparison, and it seeds the public leaderboard — when bare, labelled 'as published' on a model-API agent and 'harness default' on a harness agent, and 'with my setup' when it carries one; 2-6 groups are compared over the planned contrasts (with 2, one comparison, oriented only when a group has role 'reference'); only a bare group seeds the public leaderboard; which pairs are judged is `contrasts`. 'ab_vs_none', 'ab_custom' and 'single' are kept for the studies that already exist: a create naming one answers 422 comparison_mode_removed (docs/studies/comparison-modes/README.md maps each legacy design onto the new ones)."},"subjectBackend":{"anyOf":[{"type":"string","enum":["model","harness"],"description":"What answers a FRAMEWORK benchmark's requests: 'harness' — each request is answered by the cell's agent harness (the model inside its own loop, with the arm's tools, add-ons and skills), one agent run per request; 'model' — the framework's own client calls the cell's model directly and the cell's harness is not measured. Resolved once per study and recorded on every run."},{"type":"null"}]},"environmentExecutionPolicy":{"type":"string","enum":["legacy-v1","inside-v1"]},"importedFrom":{"type":"string"},"baselineLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"treatmentLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"promiseMetrics":{"type":"array","items":{"type":"object","properties":{"metric":{"type":"string","enum":["total_tokens","output_tokens","cost_usd","duration_ms","num_turns","success_rate","completion_rate","goal_rate"]},"direction":{"type":"string","enum":["down","up"]},"label":{"type":"string","minLength":1,"maxLength":120}},"required":["metric","direction","label"],"additionalProperties":false}},"matrix":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1,"maxLength":50,"description":"Harness id — the valid set (and each one's models) is GET /catalog; cells are validated against it at create."},"model":{"type":"string","minLength":1,"maxLength":100,"description":"Model id as the harness accepts it — valid ids per harness/provider are in GET /catalog (e.g. 'claude-sonnet-5', 'gpt-5.5')."},"provider":{"description":"Provider qualifier for multi-provider harnesses (e.g. 'anthropic', 'openai', 'google'). Omit to use the harness default.","type":"string","minLength":1,"maxLength":32},"params":{"description":"Provider params pinned for this cell (temperature, reasoningEffort, maxOutputTokens, thinkingBudgetTokens). A cell that pins none runs the provider's own defaults. Offered only where the harness declares support — see GET /catalog.","type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"maxOutputTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reasoningEffort":{"type":"string","enum":["low","medium","high"]},"thinkingBudgetTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"codeMode":{"type":"string","enum":["auto","on","off"]},"toolSearch":{"type":"string","enum":["on","off","directory"]},"location":{"type":"string","pattern":"^[A-Z]{2}$"},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$"}},"additionalProperties":false}},"required":["harness","model"],"additionalProperties":false,"description":"One (harness, model, params) cell — every task runs its arm(s) on every cell."}},"lenses":{"minItems":1,"type":"array","items":{"type":"string","enum":["judge","evals","reference","framework","execution","verifier"]},"description":"Which grading lenses this study runs under. Defaults to ['judge'] at create and stays editable while status is 'ready' (frozen at launch, like task expectations/rubrics). 'judge': the LLM judge panel (rubric grades + blind pairwise). 'evals': the deterministic @ora/eval-checks engine, scored against each task's authored expectations. 'reference': the static-QA lens — an answer extracted from the response and matched against the task's own reference key, scored 1/0 (spec §6.4). 'framework': the benchmark's OWN framework (HELM today) reports the metrics, mapped verbatim into a section rather than re-averaged (SP2 Task 9). 'execution': the candidate's code is extracted from the response and run against the task's own tests inside a sandboxed, network-less runner image (SP2 Task 16)."},"judgeSupplementary":{"type":"boolean"},"taskCount":{"type":"number"},"variantsPerTask":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Semantics-preserving paraphrases sampled per task (1-5; mirrors the create body's variantsPerTask). Absent at create defaults to 1 — every response reports a concrete value, including studies created before sampling existed."},"repeats":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Identical re-runs sampled per condition (1-10; mirrors the create body's repeats). Absent at create defaults to 1 — every response reports a concrete value, including studies created before sampling existed."},"subset":{"anyOf":[{"type":"object","properties":{"count":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"seed":{"type":"string","minLength":1},"of":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["count","seed","of"],"additionalProperties":false},{"type":"null"}]},"status":{"type":"string"},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"preparation":{"anyOf":[{"type":"object","properties":{"since":{"type":"string"},"progressAt":{"type":"string"},"launchedBy":{"type":"object","properties":{"userId":{"type":"string"},"role":{"type":"string"}},"additionalProperties":false},"waitingOn":{"type":"array","items":{"type":"object","properties":{"imageKey":{"type":"string"},"buildId":{"type":"string"},"stage":{"type":"string","enum":["image","snapshot"]},"retry":{"type":"object","properties":{"failedAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maxAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"notBefore":{"type":"string"},"lastFailure":{"type":"string"}},"required":["failedAttempts","maxAttempts","notBefore","lastFailure"],"additionalProperties":false}},"required":["imageKey","buildId"],"additionalProperties":false}}},"required":["since","launchedBy","waitingOn"],"additionalProperties":false},{"type":"null"}]},"visibility":{"type":"string","enum":["private","org","link","public"],"description":"Who may read this study: private (creator + org owners) | org (the whole org) | link (anyone holding ?share=<token>, unlisted) | public (everyone, listed)."},"visibilityChangedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"visibilityChangedBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"shareToken":{"anyOf":[{"type":"string"},{"type":"null"}]},"lowSampleOverride":{"type":"boolean","description":"True iff this study was explicitly published below the sample-size floor (spec A6) — the published page shows a low-sample badge when set."},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"verdict":{},"definitionVersionId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The benchmark definition VERSION this study pinned at create — non-null only for subjectKind 'benchmark'. Its corpus was copied frozen from that version, so the study stays reproducible when the definition publishes a newer one."},"runnerKind":{"type":"string","enum":["ora-runs","batch-job"],"description":"Which executor fans this study out: 'ora-runs' (the ora runs spine) or 'batch-job' (a built runner image)."},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"liveUntil":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When this study's live stream stops being held open (null while it is still running). Attaching before it yields the remaining post-terminal frames (gradings, recordings, refined verdicts)."},"launch":{"description":"The launch record: planned / created runs, the runs it could not create (missing.retryable: launching again creates them; missing.refused: a re-launch is refused the same way) with one note per cell and group, and the fan-out's state (fanning_out | deferred | settled). Null for a study launched before records existed.","anyOf":[{"type":"object","properties":{"attempt":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"state":{"type":"string","enum":["fanning_out","deferred","settled"]},"startedAt":{"type":"string"},"progressAt":{"type":"string"},"planned":{"type":"integer","minimum":0,"maximum":9007199254740991},"created":{"type":"integer","minimum":0,"maximum":9007199254740991},"missing":{"type":"object","properties":{"retryable":{"type":"integer","minimum":0,"maximum":9007199254740991},"refused":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["retryable","refused"],"additionalProperties":false},"notes":{"type":"array","items":{"type":"string"}},"settledAt":{"type":"string"},"pacing":{"type":"object","properties":{"waiting":{"type":"integer","minimum":0,"maximum":9007199254740991},"nextUnit":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"nextWaveAt":{"type":"string"},"emptyWaves":{"type":"integer","minimum":0,"maximum":9007199254740991},"stopped":{"type":"string"}},"required":["waiting"],"additionalProperties":false},"recovery":{"type":"object","properties":{"state":{"type":"string","enum":["retrying","needs_attention"]},"attempts":{"type":"integer","minimum":0,"maximum":9007199254740991},"lastAttemptAt":{"type":"string"},"nextAttemptAt":{"type":"string"},"reason":{"type":"string"}},"required":["state","attempts"],"additionalProperties":false},"stopped":{"type":"object","properties":{"at":{"type":"string"},"notStarted":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["at","notStarted"],"additionalProperties":false}},"required":["attempt","state","startedAt","progressAt"],"additionalProperties":false},{"type":"null"}]},"pacing":{"description":"How fast this study may START its runs, as declared at create: maxInFlight (at most N of its runs unfinished at once) and/or startsPerMinute (at most N started in any 60 s). Its runs start in waves of whole comparison units (every group's run of one agent on one task sample, together); the launch record's `pacing` says how many wait for a later wave. Null = every run started at launch.","anyOf":[{"type":"object","properties":{"maxInFlight":{"description":"At most this many of the study's runs unfinished at once — queued, pending or running (1-500). The next runs start as earlier ones finish.","type":"integer","minimum":1,"maximum":500},"startsPerMinute":{"description":"At most this many of the study's runs started in any 60-second window (1-600).","type":"integer","minimum":1,"maximum":600}},"additionalProperties":false},{"type":"null"}]},"relaunchable":{"description":"True when this running study may be launched again: its launch record says planned runs are missing (missing.retryable > 0), or its fan-out stopped. POST …/launch then creates exactly the runs that do not exist.","type":"boolean"},"archivedAt":{"description":"When this study was archived; null while it is not. An archived study loses nothing: it leaves the default list, is read-only (409 study_archived), and is on no public page. Restoring it clears this.","anyOf":[{"type":"string"},{"type":"null"}]},"archivedBy":{"description":"The user who archived it. Null when an API key did, and while the study is not archived.","anyOf":[{"type":"string"},{"type":"null"}]},"arms":{"description":"A declared-arm study's groups, in position order.","type":"array","items":{"type":"object","properties":{"key":{"type":"string","description":"The group's run key (each of its runs' `arm`)."},"position":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"0-based display order."},"label":{"type":"string","maxLength":80,"description":"The group's display label. Never shown to the judge."},"role":{"type":"string","enum":["reference","peer"],"description":"'reference' marks the group the others are compared against; the rest are peers."},"payload":{"type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"brief":{"description":"Text the agent is given after the task, for every task this group runs. At most 600 characters. A group with a brief is a setup of its own, never the subject as published.","type":"string","minLength":1,"maxLength":600}},"additionalProperties":false,"description":"The group's run-payload delta ({} = the subject as published)."},"cells":{"description":"The group's OWN agents, when the study's groups each list theirs (cellPlan 'per_setup'); absent = the matrix.","type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1,"maxLength":50,"description":"Harness id — the valid set (and each one's models) is GET /catalog; cells are validated against it at create."},"model":{"type":"string","minLength":1,"maxLength":100,"description":"Model id as the harness accepts it — valid ids per harness/provider are in GET /catalog (e.g. 'claude-sonnet-5', 'gpt-5.5')."},"provider":{"description":"Provider qualifier for multi-provider harnesses (e.g. 'anthropic', 'openai', 'google'). Omit to use the harness default.","type":"string","minLength":1,"maxLength":32},"params":{"description":"Provider params pinned for this cell (temperature, reasoningEffort, maxOutputTokens, thinkingBudgetTokens). A cell that pins none runs the provider's own defaults. Offered only where the harness declares support — see GET /catalog.","type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"maxOutputTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reasoningEffort":{"type":"string","enum":["low","medium","high"]},"thinkingBudgetTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"codeMode":{"type":"string","enum":["auto","on","off"]},"toolSearch":{"type":"string","enum":["on","off","directory"]},"location":{"type":"string","pattern":"^[A-Z]{2}$"},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$"}},"additionalProperties":false}},"required":["harness","model"],"additionalProperties":false,"description":"One (harness, model, params) cell — every task runs its arm(s) on every cell."}},"skipTasks":{"description":"The tasks this group leaves out, by task number (1 = the first); absent = it runs every task.","type":"array","items":{"type":"integer","minimum":1,"maximum":9007199254740991}},"skills":{"description":"The group's skills as resolved when the study was created (absent for a study created before that existed).","type":"array","items":{"type":"object","properties":{"ref":{"type":"string","description":"The skill ref the group's selection names."},"name":{"type":"string","description":"The skill's name when the study was created."},"changedSinceCreate":{"description":"True when the skill's content now differs from what the study ran; absent when the reader cannot check it.","type":"boolean"}},"required":["ref","name"],"additionalProperties":false}},"addedAgents":{"description":"The agents this group gained after the study was created (`addAgents`), by position in `cells` — absent when none was added.","type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The agent's position in the group's `cells`."},"addedAt":{"type":"string","description":"When it was added (RFC 3339)."}},"required":["position","addedAt"],"additionalProperties":false}}},"required":["key","position","label","role","payload"],"additionalProperties":false}},"contrastPlan":{"description":"The study's planned-contrast policy.","type":"string","enum":["vs_reference","all_pairs","ladder"]},"cellPlan":{"description":"How the groups meet their agents: absent = every group runs the matrix; 'per_setup' = each its own.","type":"string","enum":["crossed","per_setup"]},"skillDisclosure":{"description":"Whether the published page names the groups' skills: absent = withheld (chosen at publish).","type":"string","enum":["withheld","named"]},"modeOptions":{"description":"The comparisonMode's private inputs.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"screens":{"description":"The run screens the study declares (frozen at launch, like lenses). Absent = none.","type":"array","items":{"type":"string","enum":["test_awareness","site_access"]}},"runCounting":{"description":"Which of the study's runs its numbers count (GET /studies/:id/run-counting). Absent = every run.","anyOf":[{"type":"object","properties":{"policy":{"type":"string","const":"hold_back_screened"},"screen":{"type":"string","enum":["test_awareness"],"description":"The screen whose verdicts decide. Today: 'test_awareness'."},"levels":{"minItems":1,"type":"array","items":{"type":"string","enum":["aware","influenced"]},"description":"The verdict levels held back. A run the screen could not judge is never held back."}},"required":["policy","screen","levels"],"additionalProperties":false,"description":"Which of the study's runs its numbers count. Absent or null = every run. 'hold_back_screened' leaves out the runs the named screen flagged at one of `levels`: each is a missing measurement with a named reason, never a fail, and the count held back is stated beside every figure."},{"type":"null"}]},"seriesKey":{"description":"The series the study belongs to (set at create). Absent = none.","anyOf":[{"type":"string","pattern":"^[a-z0-9][a-z0-9._/-]{0,119}$"},{"type":"null"}]},"ref":{"description":"Where the study was taken: commit, branch, pull request. Absent = not recorded.","anyOf":[{"type":"object","properties":{"commit":{"description":"The commit the study was taken at (a SHA).","type":"string","minLength":1,"maxLength":64},"branch":{"description":"The branch it was taken on, e.g. 'main'. A gate's series baseline filters on it.","type":"string","minLength":1,"maxLength":200},"pr":{"description":"The pull request number, when it was taken for one.","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"url":{"description":"A link back to the change (the commit or pull request page).","type":"string","maxLength":500,"format":"uri"}},"additionalProperties":false},{"type":"null"}]},"gradingRevision":{"description":"The study's grading revision, when its checks were revised after its runs finished. Absent = never revised.","type":"integer","minimum":2,"maximum":9007199254740991},"gradingRevisedAt":{"description":"When the checks were last revised. Later than `publishedAt` = the grades changed after publication.","anyOf":[{"type":"string"},{"type":"null"}]},"rehearsal":{"description":"The study is a rehearsal: the smallest real run of a design, made by POST /studies/rehearsals. Absent = an ordinary study.","type":"boolean","const":true},"rehearsalMode":{"description":"How a rehearsal runs: 'live' (the real agents), or 'setup' / 'mock' (no agent is started). Absent on every other study.","type":"string"},"behaviors":{"description":"The custom behaviors the study declares (frozen at launch, like lenses). A run's verdict on one is in its `screens` under `b_<key>`. Absent = none.","type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{1,29}$","description":"A short id for the behavior, lowercase snake (`deleted_files`). Its verdicts are stored and queried under `b_<key>`."},"name":{"type":"string","minLength":1,"maxLength":80,"description":"What a reader sees: \"Deleted files it was not asked to\"."},"question":{"type":"string","minLength":10,"maxLength":400,"description":"One yes-or-no question about a single run that a judge can answer from its trace: \"Did the agent …?\"."},"version":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The version of the behavior's wording. A verdict and a review belong to the version they were made on."}},"required":["key","name","question","version"],"additionalProperties":false}},"stepTimeLimitSeconds":{"description":"How long each step of a task with steps may take, in seconds, as declared at create. A step still running after it ends the run, whose reason names the step and the limit. Null or absent = no per-step limit.","anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["id","plannedRunCount","organizationId","createdBy","name","slug","description","skillRef","skillSlug","skillName","skillPromise","subjectKind","subjectName","subjectLabel","armConfig","comparisonMode","subjectBackend","baselineLabel","treatmentLabel","promiseMetrics","matrix","lenses","taskCount","variantsPerTask","repeats","subset","status","error","visibility","lowSampleOverride","publishedAt","verdict","definitionVersionId","runnerKind","createdAt","updatedAt","liveUntil"],"additionalProperties":false},"warnings":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["judge_removed_rubric_unused","evals_skill_loaded_not_pointer","no_gradable_input"]},"detail":{"type":"string"},"taskIds":{"type":"array","items":{"type":"string"}}},"required":["type","detail"],"additionalProperties":false},"description":"Non-blocking findings from this lens change: a removed 'judge' lens leaving a task's rubric ungraded, an 'evals' lens with a 'skill_loaded' expectation whose frozen arm_config was never forced to pointer delivery, or a resulting lens set with no gradable input at all. Never blocks the update — [] means nothing was flagged."}},"required":["study","warnings"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"study_invalid_state — lenses are frozen once launched (status must be 'ready') — or study_archived: an imported study's results never change","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"LENS_REMOVAL_BLOCKED — removing 'evals' while a task still carries authored `expectations` (the body names the task ids); study_subject_invalid — a BENCHMARK study's lenses are derived from the pinned definition version's grading_spec and cannot be re-declared; LENS_REQUIREMENT_UNMET — ADDING a lens whose required task field is frozen with the corpus (`reference`) over tasks that do not carry it; study_lens_unsupported — the body names a lens this deployment did not register (`registry` and `id` in the body say which; the detail names what IS registered) — the lens vocabulary is shared across products, so a lens one product runs may not exist in another","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:write","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/studies/{id}/preview":{"get":{"operationId":"study.preview","summary":"Preview the PUBLISHED page's exact payload before publishing — the same projection, aggregate and behavior block publicStudies.get will serve, org-scoped and available at any status (no visibility requirement)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The study's uuid (from create or list)."},"example":"1f7e4d1c-4b2a-4f3e-9d8c-5a6b7c8d9e0f"}],"responses":{"200":{"description":"Preview the PUBLISHED page's exact payload before publishing — the same projection, aggregate and behavior block publicStudies.get will serve, org-scoped and available at any status (no visibility requirement)","content":{"application/json":{"schema":{"type":"object","properties":{"study":{"type":"object","properties":{"executiveSummary":{"anyOf":[{"type":"string"},{"type":"null"}]},"slug":{"type":"string"},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillName":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillSlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillPromise":{"type":"string"},"subjectKind":{"type":"string","enum":["skill","tools","addon","custom","benchmark","site"],"description":"What the study measures. 'skill': an agent skill (requires skillRef; the treatment arm runs with the skill attached). 'tools': the run's tool policy (web tools on vs off). 'addon': one run add-on (tavily, brave, desktop, mcp, secrets…). 'custom': any composition of skill + tools + add-ons, both arms fully spelled out in armConfig. 'benchmark': a pinned version of a catalog benchmark definition (requires definitionVersionId); the corpus is copied frozen from that version. Every comparisonMode applies: 'single' is a harness × model shootout whose ONE arm may carry your setup in armConfig.treatment (armConfig.baseline is refused); 'ab_vs_none' runs the setup in armConfig.treatment against the bare benchmark; 'ab_custom' runs two labelled setups (armConfig.baseline and armConfig.treatment) head to head. An A/B study needs a setup under test and two arms that differ. An arm that carries a setup is not the benchmark's bare protocol, so it does not seed the public leaderboard."},"subjectName":{"anyOf":[{"type":"string"},{"type":"null"}]},"subjectLabel":{"type":"string"},"armConfig":{"type":"object","properties":{"baseline":{"type":"object","properties":{"tools":{"anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"type":"array","items":{"type":"string"}}},"additionalProperties":false},"treatment":{"type":"object","properties":{"tools":{"anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"type":"array","items":{"type":"string"}}},"additionalProperties":false}},"additionalProperties":false},"comparisonMode":{"type":"string","enum":["ab_vs_none","ab_custom","single","multi_arm"],"description":"The study's design. New studies: 'multi_arm' (Groups): 1-6 groups declared in `arms`, each with its own label and configuration — 1 group reads as the agent leaderboard: no reference group and no comparison, and it seeds the public leaderboard — when bare, labelled 'as published' on a model-API agent and 'harness default' on a harness agent, and 'with my setup' when it carries one; 2-6 groups are compared over the planned contrasts (with 2, one comparison, oriented only when a group has role 'reference'); only a bare group seeds the public leaderboard; which pairs are judged is `contrasts`. 'ab_vs_none', 'ab_custom' and 'single' are kept for the studies that already exist: a create naming one answers 422 comparison_mode_removed (docs/studies/comparison-modes/README.md maps each legacy design onto the new ones)."},"subjectBackend":{"type":"string","enum":["model","harness"],"description":"What answers a FRAMEWORK benchmark's requests: 'harness' — each request is answered by the cell's agent harness (the model inside its own loop, with the arm's tools, add-ons and skills), one agent run per request; 'model' — the framework's own client calls the cell's model directly and the cell's harness is not measured. Resolved once per study and recorded on every run."},"environmentExecutionPolicy":{"type":"string","enum":["legacy-v1","inside-v1"]},"baselineLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"treatmentLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"lenses":{"minItems":1,"type":"array","items":{"type":"string","enum":["judge","evals","reference","framework","execution","verifier"]},"description":"Which grading lenses this study runs under. Defaults to ['judge'] at create and stays editable while status is 'ready' (frozen at launch, like task expectations/rubrics). 'judge': the LLM judge panel (rubric grades + blind pairwise). 'evals': the deterministic @ora/eval-checks engine, scored against each task's authored expectations. 'reference': the static-QA lens — an answer extracted from the response and matched against the task's own reference key, scored 1/0 (spec §6.4). 'framework': the benchmark's OWN framework (HELM today) reports the metrics, mapped verbatim into a section rather than re-averaged (SP2 Task 9). 'execution': the candidate's code is extracted from the response and run against the task's own tests inside a sandboxed, network-less runner image (SP2 Task 16)."},"judgeSupplementary":{"type":"boolean","const":true},"promiseMetrics":{"type":"array","items":{"type":"object","properties":{"metric":{"type":"string","enum":["total_tokens","output_tokens","cost_usd","duration_ms","num_turns","success_rate","completion_rate","goal_rate"]},"direction":{"type":"string","enum":["down","up"]},"label":{"type":"string","minLength":1,"maxLength":120}},"required":["metric","direction","label"],"additionalProperties":false}},"matrix":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1,"maxLength":50,"description":"Harness id — the valid set (and each one's models) is GET /catalog; cells are validated against it at create."},"model":{"type":"string","minLength":1,"maxLength":100,"description":"Model id as the harness accepts it — valid ids per harness/provider are in GET /catalog (e.g. 'claude-sonnet-5', 'gpt-5.5')."},"provider":{"description":"Provider qualifier for multi-provider harnesses (e.g. 'anthropic', 'openai', 'google'). Omit to use the harness default.","type":"string","minLength":1,"maxLength":32},"params":{"description":"Provider params pinned for this cell (temperature, reasoningEffort, maxOutputTokens, thinkingBudgetTokens). A cell that pins none runs the provider's own defaults. Offered only where the harness declares support — see GET /catalog.","type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"maxOutputTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reasoningEffort":{"type":"string","enum":["low","medium","high"]},"thinkingBudgetTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"codeMode":{"type":"string","enum":["auto","on","off"]},"toolSearch":{"type":"string","enum":["on","off","directory"]},"location":{"type":"string","pattern":"^[A-Z]{2}$"},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$"}},"additionalProperties":false}},"required":["harness","model"],"additionalProperties":false,"description":"One (harness, model, params) cell — every task runs its arm(s) on every cell."}},"taskCount":{"type":"number"},"variantsPerTask":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"repeats":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"viewCount":{"description":"Page views of the published study, deduplicated per viewer per UTC day. Absent when the deployment does not count views; 0 means counted and never opened. May lag a recent view by the public cache's TTL.","type":"integer","minimum":0,"maximum":9007199254740991},"boardEligibility":{"description":"The board-eligibility chain's verdict for this study, recorded at completion whether it boarded or not, and re-recorded when its sharing changes. Absent means no verdict answers for the study as it is shared now: the chain never ran (the study predates boards, or never completed), or the verdict on record was about a sharing state the study has since left and its re-evaluation has not landed yet — either is a different statement from a refusal.","type":"object","properties":{"eligible":{"type":"boolean"},"refusedBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"failures":{"type":"array","items":{"type":"object","properties":{"ruleId":{"type":"string"},"reason":{"type":"string"}},"required":["ruleId","reason"],"additionalProperties":false}},"evaluatedAt":{"type":"string"}},"required":["eligible","refusedBy","reason","failures","evaluatedAt"],"additionalProperties":false},"subjectLicenseSpdx":{"description":"The pinned benchmark's licence SPDX id (e.g. 'MIT'), or null. Absent on a study that predates this column.","anyOf":[{"type":"string"},{"type":"null"}]},"subjectSourceUrl":{"description":"The pinned benchmark's homepage/source URL, or null. Absent on a study that predates this column.","anyOf":[{"type":"string"},{"type":"null"}]},"subjectWithheldReason":{"description":"Why this study's task text is withheld, when it is withheld for a documented reason beyond licence review (e.g. a contamination canary). Null when text is shown, or when it is withheld pending ordinary licence review.","anyOf":[{"type":"string"},{"type":"null"}]},"subjectNotices":{"description":"Methodology caveats about THIS study's own headline number, from the pinned benchmark's notice registry (e.g. arc-agi's per-pair-vs-ARC-Prize's-per-file scoring). Absent means never computed; [] means computed with nothing to disclose.","type":"array","items":{"type":"object","properties":{"kind":{"type":"string"},"text":{"type":"string"}},"required":["kind","text"],"additionalProperties":false}},"groupCount":{"description":"A Groups study's number of groups (absent for a study of another mode).","type":"integer","minimum":1,"maximum":9007199254740991},"group":{"description":"A ONE-group study's setup caption (absent otherwise).","type":"object","properties":{"label":{"type":"string","maxLength":80,"description":"The one group's name."},"composition":{"type":"object","properties":{"tools":{"anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"type":"array","items":{"type":"string"}},"brief":{"description":"Text the agent was given after the task, for every task this group ran.","type":"string"}},"additionalProperties":false,"description":"What the group's runs were given: tools as declared, add-ons by id, and its brief when it has one."}},"required":["label","composition"],"additionalProperties":false},"contrastPlan":{"description":"Which pairs of groups were compared (only for a study of two or more groups).","type":"string","enum":["vs_reference","all_pairs","ladder"]},"agentsAdded":{"description":"Groups that gained agents after the study was created, and when (absent when none did).","type":"array","items":{"type":"object","properties":{"group":{"type":"string","maxLength":80,"description":"The group's name."},"agents":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"How many agents it gained after the study was created."},"addedAt":{"type":"string","description":"When the latest of them was added (RFC 3339)."}},"required":["group","agents","addedAt"],"additionalProperties":false}},"groupComposition":{"description":"Each group's skills by name — only when the publisher chose to name them at publish (absent otherwise, and for a study of another mode). Add-on and MCP instance names are never published.","type":"array","items":{"type":"object","properties":{"key":{"type":"string","description":"The group's key."},"label":{"type":"string","maxLength":80,"description":"The group's name."},"skills":{"type":"array","items":{"type":"string"},"description":"The group's skills by name, as they were when the study was created."}},"required":["key","label","skills"],"additionalProperties":false}},"gradingRevision":{"description":"The study's grading revision, when its checks were revised after its runs finished. Absent = never revised.","type":"integer","minimum":2,"maximum":9007199254740991},"gradingRevisedAt":{"description":"When the checks were last revised. Later than `publishedAt` = the grades changed after publication.","anyOf":[{"type":"string"},{"type":"null"}]},"behaviors":{"description":"The custom behaviors the study declares (frozen at launch, like lenses). A run's verdict on one is in its `screens` under `b_<key>`. Absent = none.","type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{1,29}$","description":"A short id for the behavior, lowercase snake (`deleted_files`). Its verdicts are stored and queried under `b_<key>`."},"name":{"type":"string","minLength":1,"maxLength":80,"description":"What a reader sees: \"Deleted files it was not asked to\"."},"question":{"type":"string","minLength":10,"maxLength":400,"description":"One yes-or-no question about a single run that a judge can answer from its trace: \"Did the agent …?\"."},"version":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The version of the behavior's wording. A verdict and a review belong to the version they were made on."}},"required":["key","name","question","version"],"additionalProperties":false}},"stepTimeLimitSeconds":{"description":"How long each step of a task with steps may take, in seconds, as declared at create. A step still running after it ends the run, whose reason names the step and the limit. Null or absent = no per-step limit.","anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["slug","name","description","skillName","skillSlug","skillPromise","subjectKind","subjectName","subjectLabel","armConfig","comparisonMode","baselineLabel","treatmentLabel","lenses","promiseMetrics","matrix","taskCount","variantsPerTask","repeats","status","publishedAt","createdAt"],"additionalProperties":false},"tasks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"position":{"type":"number"},"prompt":{"type":"string"},"rationale":{"anyOf":[{"type":"string"},{"type":"null"}]},"category":{"anyOf":[{"type":"string"},{"type":"null"}]},"requiresWeb":{"type":"boolean"},"rubric":{"type":"array","items":{"type":"string"}},"variants":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"expectations":{"anyOf":[{"type":"array","items":{}},{"type":"null"}]},"textWithheld":{"description":"Present and true when this task's TEXT is withheld because the benchmark corpus it was copied from may not be republished (reference-only or licence-unverified source, or a held-out task). The measurement — runs, grades and every aggregate — is unaffected.","type":"boolean"},"followUps":{"description":"The task's follow-up steps: later prompts given to the agent in the same conversation, each with its own criteria (`rubric`) and checks (`expectations`). `prompt`, `rubric` and `expectations` on the task are step 1's. Omitted for a one-step task.","anyOf":[{"type":"array","items":{"type":"object","properties":{"prompt":{"type":"string"},"rubric":{"type":"array","items":{"type":"string"}},"expectations":{"anyOf":[{"type":"array","items":{}},{"type":"null"}]}},"required":["prompt","rubric"],"additionalProperties":false}},{"type":"null"}]},"files":{"description":"What is put into the agent's workspace before every run of the task starts: each a `path` with inline `content`, a `path` with the `url`, `sha256` and `sizeBytes` the run fetched and verified, or a `path` with the `repo` (its `url` and pinned `ref`) cloned into it. Omitted for a task that declares none.","anyOf":[{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"content":{"type":"string"},"url":{"type":"string"},"sha256":{"type":"string"},"sizeBytes":{"type":"number"},"repo":{"type":"object","properties":{"url":{"type":"string"},"ref":{"type":"string"},"subpath":{"type":"string"}},"required":["url","ref"],"additionalProperties":false}},"required":["path"],"additionalProperties":false}},{"type":"null"}]}},"required":["id","position","category","requiresWeb"],"additionalProperties":false}},"runs":{"type":"array","items":{"type":"object","properties":{"runId":{"type":"string"},"taskId":{"type":"string"},"arm":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]},"harness":{"type":"string"},"model":{"type":"string"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}]},"variantIndex":{"type":"integer","minimum":0,"maximum":9007199254740991},"repeatIndex":{"type":"integer","minimum":0,"maximum":9007199254740991},"status":{"type":"string"},"outcome":{"anyOf":[{"type":"string"},{"type":"null"}]},"outcomeReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"totalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"inputTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"outputTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"cacheReadTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"cacheCreationTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"costUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"numTurns":{"anyOf":[{"type":"number"},{"type":"null"}]},"durationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"intentSatisfied":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"frictionCount":{"anyOf":[{"type":"number"},{"type":"null"}]},"qualityScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"gradedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"judgeModel":{"anyOf":[{"type":"string"},{"type":"null"}]},"pairVerdict":{"anyOf":[{"type":"string","enum":["skill","baseline","tie","unmeasurable"]},{"type":"null"}]},"pairGradedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"evalScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"evalGradedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"executionBudgetS":{"description":"The run's EXECUTION wall-clock budget in seconds (armed at pod attach — never the capacity wait). Absent = not recorded.","anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"harnessImageDigest":{"description":"The sha256 identity of the harness image the run executed on — its build. Absent = not recorded.","anyOf":[{"type":"string"},{"type":"null"}]},"subjectEngaged":{"description":"Whether this run used its arm's subject (an MCP call to a server the run owns, a web fetch, or the skill loaded — per subject kind). Absent = not measured.","anyOf":[{"type":"boolean"},{"type":"null"}]},"runCreatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"startedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"lensGrades":{"description":"Every lens's bare {pass, score, gradedAt} verdict, keyed by lens id — no per-lens provenance, no evidence. The full per-lens shape (a matcher id, a runner language) is on the FULL row via publicStudies.run / the paged publicStudies.runs.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"pass":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"score":{"anyOf":[{"type":"number"},{"type":"null"}]},"gradedAt":{"type":"string"}},"required":["pass","score","gradedAt"],"additionalProperties":false}},"rubricPassed":{"anyOf":[{"type":"array","items":{"type":"boolean"}},{"type":"null"}],"description":"Per-criterion pass/fail in the task's criteria order: its own rubric (index i = criterion i), then each follow-up's in step order. null = not graded; [] = graded but ungradable. The full verdicts (votes, notes, each one's step) are on the run's rubricResults via publicStudies.run."},"evalOutcomes":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string"},"label":{"type":"string"},"passed":{"type":"boolean"},"abstained":{"type":"boolean"},"decisive":{"type":"boolean"},"taskStep":{"description":"For a task with steps: which follow-up this verdict belongs to (1 = the first). Absent = the task's own prompt.","type":"integer","minimum":1,"maximum":9007199254740991}},"required":["kind","passed"],"additionalProperties":false}},{"type":"null"}],"description":"The 'evals' lens outcomes WITHOUT their evidence (detail/stepIds live on the full run's evalResults). null = never eval-graded."},"paramsKey":{"description":"The canonical identity of the provider params this run's CELL pinned (spec 6.3) — absent when it pinned none. The params' own values are published per CELL on the aggregate; this is the key a page groups rows by, so two cells that differ only in params never pool into one row or one name.","type":"string"},"textWithheld":{"description":"Present and true when this run's task belongs to a benchmark corpus that may not be republished. The lite row already carries no evidence blobs; what this changes is that an eval outcome's `label` — which quotes the expected answer — is omitted too. Scores and verdicts are unaffected (SP2 Task 1b).","type":"boolean"},"runTimeMs":{"description":"The agent's RUN TIME in ms (first model request → last model response) — what a run-time study scores; durationMs beside it is the run's wall-clock, setup and teardown included. Absent = not measured.","anyOf":[{"type":"number"},{"type":"null"}]},"screens":{"description":"Whether this run is valid evidence, per screen the study declares (test_awareness first), keyed by screen id. Absent when the run was never screened. A study-wide read carries each verdict's summary; the evidence is on the reads that open one run.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"screenId":{"type":"string","description":"The screen that produced this verdict: 'test_awareness', or 'web_tools_off' on a run of a group whose agents ran with their own web tools switched off (no study declares that one: the group's setup implies it)."},"level":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The screen's verdict word. test_awareness: 'none' (the panel searched and found no sign), 'aware' (the agent said it might be under evaluation and worked the same way), 'influenced' (it acted on that). web_tools_off: 'held' (the run's complete trace shows no step that reached the web), 'fetched' (a step reached the web, by the agent's own tool or its shell: web tools off does not block the network). null = the screen could not say; `reason` then says why. Never read null as 'none' or as 'held'."},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why there is no level, when `level` is null: the screen could not say (panel_unavailable, panel_split, trace_unavailable), or the run ended without succeeding and so was never screened (run_not_succeeded). A run_not_succeeded run counts as not screened. web_tools_off: agent_not_measured (this agent's trace is not proven to show every way it reaches the web), answered_by_other_runs (a benchmark framework's own run: the agents that answered ran as separate runs, whose traces are not read), trace_degraded, trace_unfinalized, declared_servers_unrecorded."},"summary":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"The facts that qualify the verdict. test_awareness: `cause` (task_text | environment | agent_inference: what told the agent) and `reasoningVisible` (whether the trace carried any of the agent's reasoning; a 'none' without it is weaker evidence). The authed doors also carry the panel and the prompt version. web_tools_off: `fetchSteps` (how many steps reached the web) and `stepIds` (the first of them, by step id)."},"evidence":{"description":"What the verdict stands on, on a read that opened this one run. test_awareness: `statements` and `actions`, each a trace step and a verbatim quote the platform found there. A public door serves them only to a reader it serves the run's own text to; the authed doors also carry every judge's atomic vote. web_tools_off: `fetches`, each a cited step with the tool and the address, host or query it carried, under the same rule.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"classifierVersion":{"type":"string","description":"The classifier version that produced this verdict, pinned per verdict."},"screenedAt":{"type":"string"}},"required":["screenId","level","reason","summary","classifierVersion","screenedAt"],"additionalProperties":false}},"carriedRun":{"description":"Present and true when this run executed in an earlier study of the series and was carried into this one. Its own times say when it ran.","type":"boolean","const":true}},"required":["runId","taskId","arm","harness","model","provider","status","outcome","outcomeReason","totalTokens","inputTokens","outputTokens","cacheReadTokens","cacheCreationTokens","costUsd","numTurns","durationMs","intentSatisfied","frictionCount","qualityScore","gradedAt","judgeModel","pairVerdict","pairGradedAt","evalScore","evalGradedAt","runCreatedAt","startedAt","finishedAt","rubricPassed","evalOutcomes"],"additionalProperties":false}},"aggregate":{"anyOf":[{"type":"object","properties":{"summary":{"type":"object","properties":{"verdict":{"type":"string","enum":["delivered","partial","not_delivered","inconclusive","measured"]},"headline":{"type":"array","items":{"type":"object","properties":{"metric":{"type":"string","enum":["total_tokens","output_tokens","cost_usd","duration_ms","num_turns","success_rate","completion_rate","goal_rate"]},"label":{"type":"string"},"direction":{"type":"string","enum":["down","up"]},"baselineAvg":{"anyOf":[{"type":"number"},{"type":"null"}]},"skillAvg":{"anyOf":[{"type":"number"},{"type":"null"}]},"deltaPct":{"anyOf":[{"type":"number"},{"type":"null"}]},"delta":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","const":"pp"},"absolute":{"anyOf":[{"type":"number"},{"type":"null"}]},"relativePct":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["unit","absolute","relativePct"],"additionalProperties":false},{"type":"object","properties":{"unit":{"type":"string","const":"pts"},"absolute":{"anyOf":[{"type":"number"},{"type":"null"}]},"relativePct":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["unit","absolute"],"additionalProperties":false},{"type":"object","properties":{"unit":{"type":"string","const":"%"},"relativePct":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["unit","relativePct"],"additionalProperties":false}]},"improved":{"type":"boolean"}},"required":["metric","label","direction","baselineAvg","skillAvg","deltaPct","improved"],"additionalProperties":false}},"completionRate":{"type":"object","properties":{"baseline":{"anyOf":[{"type":"number"},{"type":"null"}]},"skill":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["baseline","skill"],"additionalProperties":false},"goalRate":{"type":"object","properties":{"baseline":{"anyOf":[{"type":"number"},{"type":"null"}]},"skill":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["baseline","skill"],"additionalProperties":false},"pairwise":{"type":"object","properties":{"pairs":{"type":"number"},"skillWins":{"type":"number"},"baselineWins":{"type":"number"},"ties":{"type":"number"},"winRate":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["pairs","skillWins","baselineWins","ties","winRate"],"additionalProperties":false},"decision":{"type":"object","properties":{"winner":{"type":"string","enum":["treatment","baseline","tie","unmeasurable"]},"basis":{"type":"string","enum":["infra","goal","evals","benchmark","quality","efficiency","judge","insufficient"]},"reason":{"type":"string"},"efficiencyDiscounted":{"type":"boolean"}},"required":["winner","basis","reason","efficiencyDiscounted"],"additionalProperties":false},"leaderboard":{"type":"array","items":{}},"concentration":{"type":"object","properties":{"perCell":{"type":"array","items":{"type":"object","properties":{"cell":{"type":"string"},"goalDeltaPp":{"anyOf":[{"type":"number"},{"type":"null"}]},"contributionPct":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["cell","goalDeltaPp","contributionPct"],"additionalProperties":false}},"heterogeneity":{"anyOf":[{"type":"object","properties":{"dominantCell":{"type":"string"},"contributionPct":{"type":"number"}},"required":["dominantCell","contributionPct"],"additionalProperties":false},{"type":"null"}]}},"required":["perCell","heterogeneity"],"additionalProperties":false},"matrixShape":{"type":"object","properties":{"cells":{"type":"number"},"harnesses":{"type":"number"},"models":{"type":"number"},"crossed":{"type":"boolean"}},"required":["cells","harnesses","models","crossed"],"additionalProperties":false},"flakiness":{"type":"object","properties":{"measured":{"type":"boolean"},"conditions":{"type":"number"},"unstable":{"type":"number"},"worst":{"anyOf":[{"type":"object","properties":{"cell":{"type":"string"},"taskId":{"type":"string"},"arm":{"type":"string","enum":["baseline","skill"]},"variant":{"type":"number"},"passRate":{"type":"number"}},"required":["cell","taskId","arm","passRate"],"additionalProperties":false},{"type":"null"}]}},"required":["measured","conditions","unstable","worst"],"additionalProperties":false},"arms":{"type":"object","properties":{"baseline":{"type":"object","properties":{"runs":{"type":"number"},"completed":{"type":"number"},"infraFailures":{"type":"number"},"completionRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalTally":{"type":"object","properties":{"achieved":{"type":"number"},"partial":{"type":"number"},"missed":{"type":"number"}},"required":["achieved","partial","missed"],"additionalProperties":false},"avgTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgOutputTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgTurns":{"anyOf":[{"type":"number"},{"type":"null"}]},"costCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgQualityScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"gradedCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95CostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95TotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95DurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"evalPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"benchmarkPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"adoptionRate":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["runs","completed","infraFailures","completionRate","goalRate","goalTally","avgTotalTokens","avgOutputTokens","avgCostUsd","avgDurationMs","avgTurns","costCoverage","avgQualityScore","gradedCoverage","medianCostUsd","medianTotalTokens","medianDurationMs","p95CostUsd","p95TotalTokens","p95DurationMs","maxCostUsd","maxTotalTokens","maxDurationMs"],"additionalProperties":false},"skill":{"type":"object","properties":{"runs":{"type":"number"},"completed":{"type":"number"},"infraFailures":{"type":"number"},"completionRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalTally":{"type":"object","properties":{"achieved":{"type":"number"},"partial":{"type":"number"},"missed":{"type":"number"}},"required":["achieved","partial","missed"],"additionalProperties":false},"avgTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgOutputTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgTurns":{"anyOf":[{"type":"number"},{"type":"null"}]},"costCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgQualityScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"gradedCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95CostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95TotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95DurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"evalPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"benchmarkPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"adoptionRate":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["runs","completed","infraFailures","completionRate","goalRate","goalTally","avgTotalTokens","avgOutputTokens","avgCostUsd","avgDurationMs","avgTurns","costCoverage","avgQualityScore","gradedCoverage","medianCostUsd","medianTotalTokens","medianDurationMs","p95CostUsd","p95TotalTokens","p95DurationMs","maxCostUsd","maxTotalTokens","maxDurationMs"],"additionalProperties":false}},"required":["baseline","skill"],"additionalProperties":false},"totals":{"type":"object","properties":{"cells":{"type":"number"},"runs":{"type":"number"},"completed":{"type":"number"},"failed":{"type":"number"},"costUsd":{"type":"number"},"tokens":{"type":"number"}},"required":["cells","runs","completed","failed","costUsd","tokens"],"additionalProperties":false}},"required":["verdict","headline","completionRate","goalRate","pairwise","concentration","matrixShape","totals"],"additionalProperties":false},"perCell":{"type":"array","items":{}},"perHarness":{"type":"array","items":{}},"perModel":{"type":"array","items":{}},"perTask":{"type":"array","items":{}},"webSplit":{},"inference":{"anyOf":[{"type":"object","properties":{"columns":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"family":{"type":"string","enum":["rate","score","magnitude"]},"betterWhen":{"type":"string","enum":["higher","lower"]}},"required":["key","label","family","betterWhen"],"additionalProperties":false}},"groups":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["cell","harness","model","field"]},"title":{"type":"string"},"rows":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"kind":{"type":"string","enum":["cell","harness","model","field"]},"harness":{"anyOf":[{"type":"string"},{"type":"null"}]},"model":{"anyOf":[{"type":"string"},{"type":"null"}]},"paramsKey":{"type":"string"},"runs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"estimate":{"anyOf":[{"type":"object","properties":{"value":{"type":"number"},"interval":{"type":"object","properties":{"lo":{"type":"number"},"hi":{"type":"number"}},"required":["lo","hi"],"additionalProperties":false,"description":"A 95% bootstrap percentile interval."},"n":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["value","interval","n"],"additionalProperties":false},{"type":"null"}]},"reference":{"anyOf":[{"type":"object","properties":{"value":{"type":"number"},"interval":{"type":"object","properties":{"lo":{"type":"number"},"hi":{"type":"number"}},"required":["lo","hi"],"additionalProperties":false,"description":"A 95% bootstrap percentile interval."},"n":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["value","interval","n"],"additionalProperties":false},{"type":"null"}]},"comparison":{"anyOf":[{"type":"object","properties":{"effect":{"type":"number"},"unit":{"type":"string","enum":["pp","pts","%"]},"interval":{"type":"object","properties":{"lo":{"type":"number"},"hi":{"type":"number"}},"required":["lo","hi"],"additionalProperties":false,"description":"A 95% bootstrap percentile interval."},"p":{"type":"number"},"n":{"minItems":2,"maxItems":2,"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"from":{"type":"number"},"to":{"type":"number"}},"required":["effect","unit","interval","p","n"],"additionalProperties":false},{"type":"null"}]},"adjustedP":{"anyOf":[{"type":"number"},{"type":"null"}]},"tier":{"type":"integer","minimum":0,"maximum":3},"direction":{"type":"string","enum":["better","worse","none"]},"untested":{"type":"boolean"}},"required":["estimate","reference","comparison","adjustedP","tier","direction","untested"],"additionalProperties":false}}},"required":["key","kind","harness","model","runs","cells"],"additionalProperties":false}}},"required":["kind","title","rows"],"additionalProperties":false}},"reference":{"type":"string","enum":["baseline","field"]},"draws":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["columns","groups","reference","draws"],"additionalProperties":false},{"type":"null"}]},"behavior":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string"},"model":{"type":"string"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}]},"arm":{"type":"string"},"totalRuns":{"type":"number"},"signals":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"tone":{"type":"string","enum":["good","bad","neutral"]},"runCount":{"type":"number"},"succeededCount":{"type":"number"}},"required":["id","label","tone","runCount","succeededCount"],"additionalProperties":false}}},"required":["harness","model","provider","arm","totalRuns","signals"],"additionalProperties":false}},"reference":{"type":"object","properties":{"cells":{"type":"array","items":{"type":"object","properties":{"cell":{"type":"string"},"harness":{"type":"string"},"model":{"type":"string"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}]},"paramsKey":{"type":"string"},"label":{"type":"string"},"passRate":{"type":"object","properties":{"value":{"anyOf":[{"type":"number"},{"type":"null"}]},"ci":{"anyOf":[{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}]},{"type":"null"}]},"n":{"type":"number"}},"required":["value","ci","n"],"additionalProperties":false},"abstention":{"description":"abstention_aware_accuracy: correct of all judged-or-declined runs, with the not-attempted rate and correct-given-attempted as parts. Present only when some response was judged NOT ATTEMPTED.","type":"object","properties":{"value":{"anyOf":[{"type":"number"},{"type":"null"}]},"ci":{"anyOf":[{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}]},{"type":"null"}]},"n":{"type":"number"},"parts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"value":{"anyOf":[{"type":"number"},{"type":"null"}]},"n":{"type":"number"}},"required":["id","label","value","n"],"additionalProperties":false}}},"required":["value","ci","n"],"additionalProperties":false},"tasks":{"type":"number"},"graded":{"type":"number"},"unmeasured":{"type":"number"},"matchers":{"type":"array","items":{"type":"string"}},"launchProfiles":{"type":"array","items":{"type":"string","enum":["as-published","harness-default","with-setup"]}}},"required":["cell","harness","model","provider","paramsKey","label","passRate","tasks","graded","unmeasured","matchers","launchProfiles"],"additionalProperties":false}},"overall":{"type":"object","properties":{"value":{"anyOf":[{"type":"number"},{"type":"null"}]},"ci":{"anyOf":[{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}]},{"type":"null"}]},"n":{"type":"number"}},"required":["value","ci","n"],"additionalProperties":false},"abstention":{"description":"abstention_aware_accuracy: correct of all judged-or-declined runs, with the not-attempted rate and correct-given-attempted as parts. Present only when some response was judged NOT ATTEMPTED.","type":"object","properties":{"value":{"anyOf":[{"type":"number"},{"type":"null"}]},"ci":{"anyOf":[{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}]},{"type":"null"}]},"n":{"type":"number"},"parts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"value":{"anyOf":[{"type":"number"},{"type":"null"}]},"n":{"type":"number"}},"required":["id","label","value","n"],"additionalProperties":false}}},"required":["value","ci","n"],"additionalProperties":false},"graded":{"type":"number"},"unmeasured":{"type":"number"},"modelJudged":{"type":"boolean"}},"required":["cells","overall","graded","unmeasured","modelJudged"],"additionalProperties":false},"execution":{"type":"object","properties":{"graded":{"type":"number"},"measured":{"type":"number"},"passed":{"type":"number"},"passRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"byStatus":{"type":"object","properties":{"passed":{"type":"number"},"failed":{"type":"number"},"timeout":{"type":"number"},"error":{"type":"number"},"unavailable":{"type":"number"}},"required":["passed","failed","timeout","error","unavailable"],"additionalProperties":false},"languages":{"type":"array","items":{"type":"string"}},"unavailableReasons":{"type":"array","items":{"type":"string"}}},"required":["graded","measured","passed","passRate","byStatus","languages","unavailableReasons"],"additionalProperties":false},"timeBasis":{"description":"What the study's time was scored on: 'run_time' (the agent's own time, first model request → last model response) when every finished run carried a measured timeline. Absent = wall-clock, setup and teardown included.","type":"string","enum":["run_time","wall_clock"]},"timeMeasures":{"description":"Every selectable time measure per group (run time; startup + run; installations + startup + run; total), descriptive only — the study is scored on run time. Present only when timeBasis is 'run_time'.","type":"object","properties":{"byArm":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","propertyNames":{"type":"string","enum":["run_time","startup_and_run","install_startup_run","total"]},"additionalProperties":{"type":"object","properties":{"median":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95":{"anyOf":[{"type":"number"},{"type":"null"}]},"mean":{"anyOf":[{"type":"number"},{"type":"null"}]},"n":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"How many of the group's runs measured it."}},"required":["median","p95","mean","n"],"additionalProperties":false},"required":["run_time","startup_and_run","install_startup_run","total"]}},"phasesByArm":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","propertyNames":{"type":"string","enum":["waiting","boot","installations","startup","run","verification","teardown"]},"additionalProperties":{"type":"object","properties":{"median":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95":{"anyOf":[{"type":"number"},{"type":"null"}]},"mean":{"anyOf":[{"type":"number"},{"type":"null"}]},"n":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"How many of the group's runs measured it."}},"required":["median","p95","mean","n"],"additionalProperties":false},"required":["waiting","boot","installations","startup","run","verification","teardown"]},"description":"Where each group's time went: every phase on its own (a phase a run never had counts as no time)."}},"required":["byArm","phasesByArm"],"additionalProperties":false},"runCounting":{"description":"Present only when the study holds runs back from its numbers (its counting policy). Every figure of this readout is over the runs that count; this says how many were left out and from which group.","type":"object","properties":{"policy":{"type":"string","description":"The policy the figures were computed under: 'hold_back_screened:<screen>:<levels>'."},"screen":{"type":"string","description":"The screen whose verdicts decided."},"levels":{"type":"array","items":{"type":"string"},"description":"The verdict levels held back."},"heldBack":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Runs left out of every figure of this readout: missing measurements, never fails."},"groups":{"type":"array","items":{"type":"object","properties":{"group":{"type":"string"},"heldBack":{"type":"integer","minimum":0,"maximum":9007199254740991},"runs":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The group's runs that ended."}},"required":["group","heldBack","runs"],"additionalProperties":false},"description":"The same count per group."},"imbalanced":{"type":"boolean","description":"true when two groups' held-back shares differ by more than 10 points: the policy removed one group's runs selectively."}},"required":["policy","screen","levels","heldBack","groups","imbalanced"],"additionalProperties":false},"webToolsOff":{"description":"Present only when a group of the study ran its agents with their own web tools switched off. That is a switch on the agent's tools: the network was not blocked, so an agent that can run a command can still reach the web that way. Every run of such a group is screened for web use, and this says, per group, how many runs were screened and what the screen found. Counts over all the study's runs, whatever its counting policy holds back. Counts only: what a trace can show differs by agent, so they are never compared between agents.","type":"object","properties":{"groups":{"type":"array","items":{"type":"object","properties":{"group":{"type":"string","description":"The group's key."},"runs":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The group's runs that ended and that ora's own infrastructure did not kill: the runs the screen applies to."},"screened":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Of those, the runs that carry a verdict. 0 = no run of the group has been screened: never read that as no run reaching the web."},"held":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Screened runs whose complete trace shows no step that reached the web."},"fetched":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Screened runs in which a step reached the web, by the agent's own tool or its shell. Each is labelled on its run, and is left out of no figure for it."},"notMeasured":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Screened runs the screen could not say for (the run's `screens.web_tools_off.reason` says why). Neither held nor fetched."}},"required":["group","runs","screened","held","fetched","notMeasured"],"additionalProperties":false},"description":"One row per group that ran with web tools off, in the groups' own order."}},"required":["groups"],"additionalProperties":false}},"required":["summary","perCell","perHarness","perModel","perTask","webSplit","inference"],"additionalProperties":false},{"type":"object","properties":{"shape":{"type":"string","const":"multi-arm"},"summary":{"type":"object","properties":{"shape":{"type":"string","const":"multi-arm"},"verdict":{"type":"string","enum":["measured","inconclusive"]},"groups":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","description":"The group's run key (`arm` on its runs)."},"label":{"type":"string"},"role":{"type":"string","enum":["reference","peer"]},"composition":{"type":"object","properties":{"tools":{"anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"type":"array","items":{"type":"string"}},"brief":{"description":"Text the agent was given after the task, for every task this group ran.","type":"string"}},"additionalProperties":false,"description":"What the group's runs were given: tools as declared, add-ons by id, and its brief when it has one."},"skipTasks":{"description":"The tasks this group left out by design, by task number (1 = the first); absent = it ran every task.","type":"array","items":{"type":"integer","minimum":1,"maximum":9007199254740991}}},"required":["key","label","role","composition"],"additionalProperties":false}},"ranking":{"type":"object","properties":{"plan":{"anyOf":[{"type":"string","enum":["vs_reference","all_pairs","ladder"]},{"type":"null"}]},"referenceArm":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The declared reference group's key; null when no group has the role."},"decision":{"type":"object","properties":{"leader":{"anyOf":[{"type":"string"},{"type":"null"}]},"basis":{"type":"string","enum":["infra","goal","evals","benchmark","quality","efficiency","judge","insufficient"]},"reason":{"type":"string"},"separatedFrom":{"type":"array","items":{"type":"string"},"description":"The groups the leader beat in a planned contrast."},"lostTo":{"type":"array","items":{"type":"object","properties":{"arm":{"type":"string"},"basis":{"type":"string","enum":["infra","goal","evals","benchmark","quality","efficiency","judge","insufficient"]}},"required":["arm","basis"],"additionalProperties":false},"description":"Every planned contrast the leader lost, on any basis — the composite weights efficiency."},"clearLeader":{"type":"boolean"},"correctnessLeader":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["leader","basis","reason","separatedFrom","lostTo","clearLeader","correctnessLeader"],"additionalProperties":false},"entries":{"type":"array","items":{"type":"object","properties":{"arm":{"type":"string"},"runs":{"type":"number"},"completed":{"type":"number"},"completionRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgQualityScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"evalPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"benchmarkPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"compositeScore":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The composite on the board-wide anchor; the ranking key."},"avgTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgOutputTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"rank":{"type":"number"}},"required":["arm","runs","completed","completionRate","goalRate","avgQualityScore","evalPassRate","compositeScore","avgTotalTokens","avgOutputTokens","avgCostUsd","avgDurationMs","medianCostUsd","medianTotalTokens","medianDurationMs","rank"],"additionalProperties":false}},"contrasts":{"type":"array","items":{"type":"object","properties":{"contrastId":{"type":"string"},"referenceArm":{"type":"string"},"subjectArm":{"type":"string"},"oriented":{"type":"boolean"},"outcome":{"type":"string","enum":["won","tie","unmeasurable"]},"winner":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The winning group's key when `outcome` is 'won', else null."},"basis":{"type":"string","enum":["infra","goal","evals","benchmark","quality","efficiency","judge","insufficient"]},"explanation":{"type":"string"}},"required":["contrastId","referenceArm","subjectArm","oriented","outcome","winner","basis","explanation"],"additionalProperties":false}},"comparisons":{"type":"number","description":"How many contrasts the study planned."},"headline":{"description":"A two-group study's ONE comparison, in words: its outcome in place of a ranking (absent otherwise).","type":"string"}},"required":["plan","referenceArm","decision","entries","contrasts","comparisons"],"additionalProperties":false},"matrixShape":{"type":"object","properties":{"cells":{"type":"number"},"harnesses":{"type":"number"},"models":{"type":"number"},"crossed":{"type":"boolean"}},"required":["cells","harnesses","models","crossed"],"additionalProperties":false},"flakiness":{"type":"object","properties":{"measured":{"type":"boolean"},"conditions":{"type":"number"},"unstable":{"type":"number"},"worst":{"anyOf":[{"type":"object","properties":{"cell":{"type":"string"},"taskId":{"type":"string"},"arm":{"type":"string"},"variant":{"type":"number"},"passRate":{"type":"number"}},"required":["cell","taskId","arm","passRate"],"additionalProperties":false},{"type":"null"}]}},"required":["measured","conditions","unstable","worst"],"additionalProperties":false},"totals":{"type":"object","properties":{"cells":{"type":"number"},"runs":{"type":"number"},"completed":{"type":"number"},"failed":{"type":"number"},"costUsd":{"type":"number"},"tokens":{"type":"number"}},"required":["cells","runs","completed","failed","costUsd","tokens"],"additionalProperties":false}},"required":["shape","verdict","groups","ranking","matrixShape","flakiness","totals"],"additionalProperties":false},"arms":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"position":{"type":"number"},"role":{"type":"string","enum":["reference","peer"]},"composition":{"type":"object","properties":{"tools":{"anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"type":"array","items":{"type":"string"}},"brief":{"description":"Text the agent was given after the task, for every task this group ran.","type":"string"}},"additionalProperties":false},"agg":{"type":"object","properties":{"runs":{"type":"number"},"completed":{"type":"number"},"infraFailures":{"type":"number"},"completionRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalTally":{"type":"object","properties":{"achieved":{"type":"number"},"partial":{"type":"number"},"missed":{"type":"number"}},"required":["achieved","partial","missed"],"additionalProperties":false},"avgTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgOutputTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgTurns":{"anyOf":[{"type":"number"},{"type":"null"}]},"costCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgQualityScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"gradedCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95CostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95TotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95DurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"evalPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"benchmarkPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"adoptionRate":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["runs","completed","infraFailures","completionRate","goalRate","goalTally","avgTotalTokens","avgOutputTokens","avgCostUsd","avgDurationMs","avgTurns","costCoverage","avgQualityScore","gradedCoverage","medianCostUsd","medianTotalTokens","medianDurationMs","p95CostUsd","p95TotalTokens","p95DurationMs","maxCostUsd","maxTotalTokens","maxDurationMs"],"additionalProperties":false},"perCell":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string"},"model":{"type":"string"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}]},"paramsKey":{"type":"string"},"label":{"type":"string"},"agg":{"type":"object","properties":{"runs":{"type":"number"},"completed":{"type":"number"},"infraFailures":{"type":"number"},"completionRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalTally":{"type":"object","properties":{"achieved":{"type":"number"},"partial":{"type":"number"},"missed":{"type":"number"}},"required":["achieved","partial","missed"],"additionalProperties":false},"avgTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgOutputTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgTurns":{"anyOf":[{"type":"number"},{"type":"null"}]},"costCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgQualityScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"gradedCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95CostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95TotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95DurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"evalPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"benchmarkPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"adoptionRate":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["runs","completed","infraFailures","completionRate","goalRate","goalTally","avgTotalTokens","avgOutputTokens","avgCostUsd","avgDurationMs","avgTurns","costCoverage","avgQualityScore","gradedCoverage","medianCostUsd","medianTotalTokens","medianDurationMs","p95CostUsd","p95TotalTokens","p95DurationMs","maxCostUsd","maxTotalTokens","maxDurationMs"],"additionalProperties":false}},"required":["harness","model","provider","agg"],"additionalProperties":false}},"reference":{"description":"The `reference` lens's section over this group's runs.","type":"object","properties":{"cells":{"type":"array","items":{"type":"object","properties":{"cell":{"type":"string"},"harness":{"type":"string"},"model":{"type":"string"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}]},"paramsKey":{"type":"string"},"label":{"type":"string"},"passRate":{"type":"object","properties":{"value":{"anyOf":[{"type":"number"},{"type":"null"}]},"ci":{"anyOf":[{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}]},{"type":"null"}]},"n":{"type":"number"}},"required":["value","ci","n"],"additionalProperties":false},"abstention":{"description":"abstention_aware_accuracy: correct of all judged-or-declined runs, with the not-attempted rate and correct-given-attempted as parts. Present only when some response was judged NOT ATTEMPTED.","type":"object","properties":{"value":{"anyOf":[{"type":"number"},{"type":"null"}]},"ci":{"anyOf":[{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}]},{"type":"null"}]},"n":{"type":"number"},"parts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"value":{"anyOf":[{"type":"number"},{"type":"null"}]},"n":{"type":"number"}},"required":["id","label","value","n"],"additionalProperties":false}}},"required":["value","ci","n"],"additionalProperties":false},"tasks":{"type":"number"},"graded":{"type":"number"},"unmeasured":{"type":"number"},"matchers":{"type":"array","items":{"type":"string"}},"launchProfiles":{"type":"array","items":{"type":"string","enum":["as-published","harness-default","with-setup"]}}},"required":["cell","harness","model","provider","paramsKey","label","passRate","tasks","graded","unmeasured","matchers","launchProfiles"],"additionalProperties":false}},"overall":{"type":"object","properties":{"value":{"anyOf":[{"type":"number"},{"type":"null"}]},"ci":{"anyOf":[{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}]},{"type":"null"}]},"n":{"type":"number"}},"required":["value","ci","n"],"additionalProperties":false},"abstention":{"description":"abstention_aware_accuracy: correct of all judged-or-declined runs, with the not-attempted rate and correct-given-attempted as parts. Present only when some response was judged NOT ATTEMPTED.","type":"object","properties":{"value":{"anyOf":[{"type":"number"},{"type":"null"}]},"ci":{"anyOf":[{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}]},{"type":"null"}]},"n":{"type":"number"},"parts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"value":{"anyOf":[{"type":"number"},{"type":"null"}]},"n":{"type":"number"}},"required":["id","label","value","n"],"additionalProperties":false}}},"required":["value","ci","n"],"additionalProperties":false},"graded":{"type":"number"},"unmeasured":{"type":"number"},"modelJudged":{"type":"boolean"}},"required":["cells","overall","graded","unmeasured","modelJudged"],"additionalProperties":false}},"required":["key","label","position","role","composition","agg","perCell"],"additionalProperties":false}},"contrasts":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"contrastId":{"type":"string","description":"`<referenceArm>~<subjectArm>`: the planned contrast this block reads."},"referenceArm":{"type":"string","description":"The group in the view's reference slot (`baseline` in its figures)."},"subjectArm":{"type":"string","description":"The group in the view's subject slot (`skill` in its figures)."},"oriented":{"type":"boolean","description":"True iff `referenceArm` is the study's declared reference group."},"basis":{"type":"object","properties":{"id":{"type":"string","enum":["matched","whole_setup"]},"compared":{"type":"object","properties":{"reference":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string"},"model":{"type":"string"},"provider":{"type":"string"},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["harness","model"],"additionalProperties":false}},"subject":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string"},"model":{"type":"string"},"provider":{"type":"string"},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["harness","model"],"additionalProperties":false}}},"required":["reference","subject"],"additionalProperties":false,"description":"The agents each side is compared on."},"excluded":{"type":"object","properties":{"reference":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string"},"model":{"type":"string"},"provider":{"type":"string"},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["harness","model"],"additionalProperties":false}},"subject":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string"},"model":{"type":"string"},"provider":{"type":"string"},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["harness","model"],"additionalProperties":false}}},"required":["reference","subject"],"additionalProperties":false,"description":"The agents OUTSIDE this comparison: ones only that side ran (matched), or ones both ran identically (a re-based whole setup)."},"differsIn":{"type":"array","items":{"type":"string"},"description":"What the two sides differ in as this basis compares them ('agents' on a whole setup)."},"licensedFacet":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The one facet a sentence may attribute the result to; null = 'setup against setup' wording only."},"efficiency":{"type":"string","enum":["comparable","incomparable"],"description":"'incomparable': the compared agents report cache reads differently, so tokens and cost carry no direction."},"pairedTasks":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}],"description":"A whole setup's tasks both sides measured (null: matched)."},"dropped":{"anyOf":[{"type":"object","properties":{"reference":{"type":"integer","minimum":0,"maximum":9007199254740991},"subject":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["reference","subject"],"additionalProperties":false},{"type":"null"}],"description":"A whole setup's tasks each side dropped because one of its agents went unmeasured there."}},"required":["id","compared","excluded","differsIn","licensedFacet","efficiency","pairedTasks","dropped"],"additionalProperties":false,"description":"How this contrast was compared, and what that lets the page say."},"magnitudes":{"type":"string","const":"relative"},"summary":{"type":"object","properties":{"verdict":{"type":"string","enum":["delivered","partial","not_delivered","inconclusive","measured"]},"headline":{"type":"array","items":{"type":"object","properties":{"metric":{"type":"string","enum":["total_tokens","output_tokens","cost_usd","duration_ms","num_turns","success_rate","completion_rate","goal_rate"]},"label":{"type":"string"},"direction":{"type":"string","enum":["down","up"]},"baselineAvg":{"anyOf":[{"type":"number"},{"type":"null"}]},"skillAvg":{"anyOf":[{"type":"number"},{"type":"null"}]},"deltaPct":{"anyOf":[{"type":"number"},{"type":"null"}]},"delta":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","const":"pp"},"absolute":{"anyOf":[{"type":"number"},{"type":"null"}]},"relativePct":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["unit","absolute","relativePct"],"additionalProperties":false},{"type":"object","properties":{"unit":{"type":"string","const":"pts"},"absolute":{"anyOf":[{"type":"number"},{"type":"null"}]},"relativePct":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["unit","absolute"],"additionalProperties":false},{"type":"object","properties":{"unit":{"type":"string","const":"%"},"relativePct":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["unit","relativePct"],"additionalProperties":false}]},"improved":{"type":"boolean"}},"required":["metric","label","direction","baselineAvg","skillAvg","deltaPct","improved"],"additionalProperties":false}},"completionRate":{"type":"object","properties":{"baseline":{"anyOf":[{"type":"number"},{"type":"null"}]},"skill":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["baseline","skill"],"additionalProperties":false},"goalRate":{"type":"object","properties":{"baseline":{"anyOf":[{"type":"number"},{"type":"null"}]},"skill":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["baseline","skill"],"additionalProperties":false},"pairwise":{"type":"object","properties":{"pairs":{"type":"number"},"skillWins":{"type":"number"},"baselineWins":{"type":"number"},"ties":{"type":"number"},"winRate":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["pairs","skillWins","baselineWins","ties","winRate"],"additionalProperties":false},"decision":{"type":"object","properties":{"winner":{"type":"string","enum":["treatment","baseline","tie","unmeasurable"]},"basis":{"type":"string","enum":["infra","goal","evals","benchmark","quality","efficiency","judge","insufficient"]},"reason":{"type":"string"},"efficiencyDiscounted":{"type":"boolean"}},"required":["winner","basis","reason","efficiencyDiscounted"],"additionalProperties":false},"concentration":{"type":"object","properties":{"perCell":{"type":"array","items":{"type":"object","properties":{"cell":{"type":"string"},"goalDeltaPp":{"anyOf":[{"type":"number"},{"type":"null"}]},"contributionPct":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["cell","goalDeltaPp","contributionPct"],"additionalProperties":false}},"heterogeneity":{"anyOf":[{"type":"object","properties":{"dominantCell":{"type":"string"},"contributionPct":{"type":"number"}},"required":["dominantCell","contributionPct"],"additionalProperties":false},{"type":"null"}]}},"required":["perCell","heterogeneity"],"additionalProperties":false},"matrixShape":{"type":"object","properties":{"cells":{"type":"number"},"harnesses":{"type":"number"},"models":{"type":"number"},"crossed":{"type":"boolean"}},"required":["cells","harnesses","models","crossed"],"additionalProperties":false},"flakiness":{"type":"object","properties":{"measured":{"type":"boolean"},"conditions":{"type":"number"},"unstable":{"type":"number"},"worst":{"anyOf":[{"type":"object","properties":{"cell":{"type":"string"},"taskId":{"type":"string"},"arm":{"type":"string","enum":["baseline","skill"]},"variant":{"type":"number"},"passRate":{"type":"number"}},"required":["cell","taskId","arm","passRate"],"additionalProperties":false},{"type":"null"}]}},"required":["measured","conditions","unstable","worst"],"additionalProperties":false},"arms":{"type":"object","properties":{"baseline":{"type":"object","properties":{"runs":{"type":"number"},"completed":{"type":"number"},"infraFailures":{"type":"number"},"completionRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalTally":{"type":"object","properties":{"achieved":{"type":"number"},"partial":{"type":"number"},"missed":{"type":"number"}},"required":["achieved","partial","missed"],"additionalProperties":false},"avgTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgOutputTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgTurns":{"anyOf":[{"type":"number"},{"type":"null"}]},"costCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgQualityScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"gradedCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95CostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95TotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95DurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"evalPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"benchmarkPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"adoptionRate":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["runs","completed","infraFailures","completionRate","goalRate","goalTally","avgTotalTokens","avgOutputTokens","avgCostUsd","avgDurationMs","avgTurns","costCoverage","avgQualityScore","gradedCoverage","medianCostUsd","medianTotalTokens","medianDurationMs","p95CostUsd","p95TotalTokens","p95DurationMs","maxCostUsd","maxTotalTokens","maxDurationMs"],"additionalProperties":false},"skill":{"type":"object","properties":{"runs":{"type":"number"},"completed":{"type":"number"},"infraFailures":{"type":"number"},"completionRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalTally":{"type":"object","properties":{"achieved":{"type":"number"},"partial":{"type":"number"},"missed":{"type":"number"}},"required":["achieved","partial","missed"],"additionalProperties":false},"avgTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgOutputTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgTurns":{"anyOf":[{"type":"number"},{"type":"null"}]},"costCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgQualityScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"gradedCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95CostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95TotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95DurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"evalPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"benchmarkPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"adoptionRate":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["runs","completed","infraFailures","completionRate","goalRate","goalTally","avgTotalTokens","avgOutputTokens","avgCostUsd","avgDurationMs","avgTurns","costCoverage","avgQualityScore","gradedCoverage","medianCostUsd","medianTotalTokens","medianDurationMs","p95CostUsd","p95TotalTokens","p95DurationMs","maxCostUsd","maxTotalTokens","maxDurationMs"],"additionalProperties":false}},"required":["baseline","skill"],"additionalProperties":false},"totals":{"type":"object","properties":{"cells":{"type":"number"},"runs":{"type":"number"},"completed":{"type":"number"},"failed":{"type":"number"},"costUsd":{"type":"number"},"tokens":{"type":"number"}},"required":["cells","runs","completed","failed","costUsd","tokens"],"additionalProperties":false}},"required":["verdict","headline","completionRate","goalRate","pairwise","concentration","matrixShape","totals"],"additionalProperties":false},"perCell":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string"},"model":{"type":"string"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}]},"paramsKey":{"type":"string"},"label":{"type":"string"},"baseline":{"type":"object","properties":{"runs":{"type":"number"},"completed":{"type":"number"},"infraFailures":{"type":"number"},"completionRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalTally":{"type":"object","properties":{"achieved":{"type":"number"},"partial":{"type":"number"},"missed":{"type":"number"}},"required":["achieved","partial","missed"],"additionalProperties":false},"avgTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgOutputTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgTurns":{"anyOf":[{"type":"number"},{"type":"null"}]},"costCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgQualityScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"gradedCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95CostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95TotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95DurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"evalPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"benchmarkPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"adoptionRate":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["runs","completed","infraFailures","completionRate","goalRate","goalTally","avgTotalTokens","avgOutputTokens","avgCostUsd","avgDurationMs","avgTurns","costCoverage","avgQualityScore","gradedCoverage","medianCostUsd","medianTotalTokens","medianDurationMs","p95CostUsd","p95TotalTokens","p95DurationMs","maxCostUsd","maxTotalTokens","maxDurationMs"],"additionalProperties":false},"skill":{"type":"object","properties":{"runs":{"type":"number"},"completed":{"type":"number"},"infraFailures":{"type":"number"},"completionRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalTally":{"type":"object","properties":{"achieved":{"type":"number"},"partial":{"type":"number"},"missed":{"type":"number"}},"required":["achieved","partial","missed"],"additionalProperties":false},"avgTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgOutputTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgTurns":{"anyOf":[{"type":"number"},{"type":"null"}]},"costCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgQualityScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"gradedCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95CostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95TotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95DurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"evalPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"benchmarkPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"adoptionRate":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["runs","completed","infraFailures","completionRate","goalRate","goalTally","avgTotalTokens","avgOutputTokens","avgCostUsd","avgDurationMs","avgTurns","costCoverage","avgQualityScore","gradedCoverage","medianCostUsd","medianTotalTokens","medianDurationMs","p95CostUsd","p95TotalTokens","p95DurationMs","maxCostUsd","maxTotalTokens","maxDurationMs"],"additionalProperties":false},"deltas":{"type":"object","properties":{"totalTokensPct":{"anyOf":[{"type":"number"},{"type":"null"}]},"outputTokensPct":{"anyOf":[{"type":"number"},{"type":"null"}]},"costUsdPct":{"anyOf":[{"type":"number"},{"type":"null"}]},"durationMsPct":{"anyOf":[{"type":"number"},{"type":"null"}]},"numTurnsPct":{"anyOf":[{"type":"number"},{"type":"null"}]},"completionRatePp":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalRatePp":{"anyOf":[{"type":"number"},{"type":"null"}]},"qualityScorePts":{"anyOf":[{"type":"number"},{"type":"null"}]},"evalPassRatePp":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["totalTokensPct","outputTokensPct","costUsdPct","durationMsPct","numTurnsPct","completionRatePp","goalRatePp","qualityScorePts"],"additionalProperties":false}},"required":["harness","model","provider","baseline","skill","deltas"],"additionalProperties":false}}},"required":["contrastId","referenceArm","subjectArm","oriented","magnitudes","summary","perCell"],"additionalProperties":false},{"type":"object","properties":{"contrastId":{"type":"string","description":"`<referenceArm>~<subjectArm>`: the planned contrast this block reads."},"referenceArm":{"type":"string","description":"The group in the view's reference slot (`baseline` in its figures)."},"subjectArm":{"type":"string","description":"The group in the view's subject slot (`skill` in its figures)."},"oriented":{"type":"boolean","description":"True iff `referenceArm` is the study's declared reference group."},"basis":{"type":"object","properties":{"id":{"type":"string","enum":["matched","whole_setup"]},"compared":{"type":"object","properties":{"reference":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string"},"model":{"type":"string"},"provider":{"type":"string"},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["harness","model"],"additionalProperties":false}},"subject":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string"},"model":{"type":"string"},"provider":{"type":"string"},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["harness","model"],"additionalProperties":false}}},"required":["reference","subject"],"additionalProperties":false,"description":"The agents each side is compared on."},"excluded":{"type":"object","properties":{"reference":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string"},"model":{"type":"string"},"provider":{"type":"string"},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["harness","model"],"additionalProperties":false}},"subject":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string"},"model":{"type":"string"},"provider":{"type":"string"},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["harness","model"],"additionalProperties":false}}},"required":["reference","subject"],"additionalProperties":false,"description":"The agents OUTSIDE this comparison: ones only that side ran (matched), or ones both ran identically (a re-based whole setup)."},"differsIn":{"type":"array","items":{"type":"string"},"description":"What the two sides differ in as this basis compares them ('agents' on a whole setup)."},"licensedFacet":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The one facet a sentence may attribute the result to; null = 'setup against setup' wording only."},"efficiency":{"type":"string","enum":["comparable","incomparable"],"description":"'incomparable': the compared agents report cache reads differently, so tokens and cost carry no direction."},"pairedTasks":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}],"description":"A whole setup's tasks both sides measured (null: matched)."},"dropped":{"anyOf":[{"type":"object","properties":{"reference":{"type":"integer","minimum":0,"maximum":9007199254740991},"subject":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["reference","subject"],"additionalProperties":false},{"type":"null"}],"description":"A whole setup's tasks each side dropped because one of its agents went unmeasured there."}},"required":["id","compared","excluded","differsIn","licensedFacet","efficiency","pairedTasks","dropped"],"additionalProperties":false,"description":"How this contrast was compared, and what that lets the page say."},"magnitudes":{"type":"string","const":"absolute"},"summary":{"type":"object","properties":{"completionRate":{"type":"object","properties":{"baseline":{"anyOf":[{"type":"number"},{"type":"null"}]},"skill":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["baseline","skill"],"additionalProperties":false},"goalRate":{"type":"object","properties":{"baseline":{"anyOf":[{"type":"number"},{"type":"null"}]},"skill":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["baseline","skill"],"additionalProperties":false},"pairwise":{"type":"object","properties":{"pairs":{"type":"number"},"skillWins":{"type":"number"},"baselineWins":{"type":"number"},"ties":{"type":"number"},"winRate":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["pairs","skillWins","baselineWins","ties","winRate"],"additionalProperties":false},"decision":{"type":"object","properties":{"winner":{"type":"string","enum":["treatment","baseline","tie","unmeasurable"]},"basis":{"type":"string","enum":["infra","goal","evals","benchmark","quality","efficiency","judge","insufficient"]},"reason":{"type":"string"},"efficiencyDiscounted":{"type":"boolean"}},"required":["winner","basis","reason","efficiencyDiscounted"],"additionalProperties":false},"concentration":{"type":"object","properties":{"perCell":{"type":"array","items":{"type":"object","properties":{"cell":{"type":"string"},"goalDeltaPp":{"anyOf":[{"type":"number"},{"type":"null"}]},"contributionPct":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["cell","goalDeltaPp","contributionPct"],"additionalProperties":false}},"heterogeneity":{"anyOf":[{"type":"object","properties":{"dominantCell":{"type":"string"},"contributionPct":{"type":"number"}},"required":["dominantCell","contributionPct"],"additionalProperties":false},{"type":"null"}]}},"required":["perCell","heterogeneity"],"additionalProperties":false},"matrixShape":{"type":"object","properties":{"cells":{"type":"number"},"harnesses":{"type":"number"},"models":{"type":"number"},"crossed":{"type":"boolean"}},"required":["cells","harnesses","models","crossed"],"additionalProperties":false},"flakiness":{"type":"object","properties":{"measured":{"type":"boolean"},"conditions":{"type":"number"},"unstable":{"type":"number"},"worst":{"anyOf":[{"type":"object","properties":{"cell":{"type":"string"},"taskId":{"type":"string"},"arm":{"type":"string","enum":["baseline","skill"]},"variant":{"type":"number"},"passRate":{"type":"number"}},"required":["cell","taskId","arm","passRate"],"additionalProperties":false},{"type":"null"}]}},"required":["measured","conditions","unstable","worst"],"additionalProperties":false},"arms":{"type":"object","properties":{"baseline":{"type":"object","properties":{"runs":{"type":"number"},"completed":{"type":"number"},"infraFailures":{"type":"number"},"completionRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalTally":{"type":"object","properties":{"achieved":{"type":"number"},"partial":{"type":"number"},"missed":{"type":"number"}},"required":["achieved","partial","missed"],"additionalProperties":false},"avgTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgOutputTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgTurns":{"anyOf":[{"type":"number"},{"type":"null"}]},"costCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgQualityScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"gradedCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95CostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95TotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95DurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"evalPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"benchmarkPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"adoptionRate":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["runs","completed","infraFailures","completionRate","goalRate","goalTally","avgTotalTokens","avgOutputTokens","avgCostUsd","avgDurationMs","avgTurns","costCoverage","avgQualityScore","gradedCoverage","medianCostUsd","medianTotalTokens","medianDurationMs","p95CostUsd","p95TotalTokens","p95DurationMs","maxCostUsd","maxTotalTokens","maxDurationMs"],"additionalProperties":false},"skill":{"type":"object","properties":{"runs":{"type":"number"},"completed":{"type":"number"},"infraFailures":{"type":"number"},"completionRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalTally":{"type":"object","properties":{"achieved":{"type":"number"},"partial":{"type":"number"},"missed":{"type":"number"}},"required":["achieved","partial","missed"],"additionalProperties":false},"avgTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgOutputTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgTurns":{"anyOf":[{"type":"number"},{"type":"null"}]},"costCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgQualityScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"gradedCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95CostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95TotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95DurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"evalPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"benchmarkPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"adoptionRate":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["runs","completed","infraFailures","completionRate","goalRate","goalTally","avgTotalTokens","avgOutputTokens","avgCostUsd","avgDurationMs","avgTurns","costCoverage","avgQualityScore","gradedCoverage","medianCostUsd","medianTotalTokens","medianDurationMs","p95CostUsd","p95TotalTokens","p95DurationMs","maxCostUsd","maxTotalTokens","maxDurationMs"],"additionalProperties":false}},"required":["baseline","skill"],"additionalProperties":false},"totals":{"type":"object","properties":{"cells":{"type":"number"},"runs":{"type":"number"},"completed":{"type":"number"},"failed":{"type":"number"},"costUsd":{"type":"number"},"tokens":{"type":"number"}},"required":["cells","runs","completed","failed","costUsd","tokens"],"additionalProperties":false}},"required":["completionRate","goalRate","pairwise","concentration","matrixShape","totals"],"additionalProperties":false},"perCell":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string"},"model":{"type":"string"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}]},"paramsKey":{"type":"string"},"label":{"type":"string"},"baseline":{"type":"object","properties":{"runs":{"type":"number"},"completed":{"type":"number"},"infraFailures":{"type":"number"},"completionRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalTally":{"type":"object","properties":{"achieved":{"type":"number"},"partial":{"type":"number"},"missed":{"type":"number"}},"required":["achieved","partial","missed"],"additionalProperties":false},"avgTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgOutputTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgTurns":{"anyOf":[{"type":"number"},{"type":"null"}]},"costCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgQualityScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"gradedCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95CostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95TotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95DurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"evalPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"benchmarkPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"adoptionRate":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["runs","completed","infraFailures","completionRate","goalRate","goalTally","avgTotalTokens","avgOutputTokens","avgCostUsd","avgDurationMs","avgTurns","costCoverage","avgQualityScore","gradedCoverage","medianCostUsd","medianTotalTokens","medianDurationMs","p95CostUsd","p95TotalTokens","p95DurationMs","maxCostUsd","maxTotalTokens","maxDurationMs"],"additionalProperties":false},"skill":{"type":"object","properties":{"runs":{"type":"number"},"completed":{"type":"number"},"infraFailures":{"type":"number"},"completionRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalTally":{"type":"object","properties":{"achieved":{"type":"number"},"partial":{"type":"number"},"missed":{"type":"number"}},"required":["achieved","partial","missed"],"additionalProperties":false},"avgTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgOutputTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgTurns":{"anyOf":[{"type":"number"},{"type":"null"}]},"costCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgQualityScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"gradedCoverage":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95CostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95TotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95DurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"evalPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"benchmarkPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"adoptionRate":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["runs","completed","infraFailures","completionRate","goalRate","goalTally","avgTotalTokens","avgOutputTokens","avgCostUsd","avgDurationMs","avgTurns","costCoverage","avgQualityScore","gradedCoverage","medianCostUsd","medianTotalTokens","medianDurationMs","p95CostUsd","p95TotalTokens","p95DurationMs","maxCostUsd","maxTotalTokens","maxDurationMs"],"additionalProperties":false},"deltas":{"type":"object","properties":{"completionRatePp":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalRatePp":{"anyOf":[{"type":"number"},{"type":"null"}]},"qualityScorePts":{"anyOf":[{"type":"number"},{"type":"null"}]},"evalPassRatePp":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["completionRatePp","goalRatePp","qualityScorePts"],"additionalProperties":false}},"required":["harness","model","provider","baseline","skill","deltas"],"additionalProperties":false}}},"required":["contrastId","referenceArm","subjectArm","oriented","magnitudes","summary","perCell"],"additionalProperties":false}],"description":"One planned contrast, read by the paired engine over its two groups (`baseline` = `referenceArm`, `skill` = `subjectArm`). `magnitudes: 'relative'` (the contrast is against the declared reference): today's A/B figures, relative deltas included. `magnitudes: 'absolute'` (two peers): no promise readout, no relative delta, and `summary.decision.reason` is the contrast's absolute-only explanation; read its figures as absolute values and pp / pts differences, with the arm order named by `referenceArm` / `subjectArm`."}},"board":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string"},"model":{"type":"string"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}]},"paramsKey":{"type":"string"},"label":{"type":"string"},"arm":{"type":"string"},"runs":{"type":"number"},"completed":{"type":"number"},"completionRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgQualityScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"evalPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"benchmarkPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"compositeScore":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The composite on the board-wide anchor; the ranking key."},"avgTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgOutputTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"rank":{"type":"number"}},"required":["harness","model","provider","arm","runs","completed","completionRate","goalRate","avgQualityScore","evalPassRate","compositeScore","avgTotalTokens","avgOutputTokens","avgCostUsd","avgDurationMs","medianCostUsd","medianTotalTokens","medianDurationMs","rank"],"additionalProperties":false}},"setupsBoard":{"description":"The All setups board — one row per (group, agent), ranked on the composite; rows whose composites print alike share a rank. Present only when the groups list their own agents. A table, not a claim: no significance, and no ordering between groups is a finding (only a planned comparison is).","type":"array","items":{"type":"object","properties":{"harness":{"type":"string"},"model":{"type":"string"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}]},"paramsKey":{"type":"string"},"label":{"type":"string"},"arm":{"type":"string"},"runs":{"type":"number"},"completed":{"type":"number"},"completionRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"goalRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgQualityScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"evalPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"benchmarkPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"compositeScore":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The composite on the board-wide anchor; the ranking key."},"avgTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgOutputTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"avgDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianCostUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianTotalTokens":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianDurationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"rank":{"type":"number"},"group":{"type":"string","description":"The group's name."},"agent":{"type":"string","description":"The agent's name: harness / model, with its pinned params."},"setup":{"type":"string","description":"'<group> · <agent>': the row's one label."}},"required":["harness","model","provider","arm","runs","completed","completionRate","goalRate","avgQualityScore","evalPassRate","compositeScore","avgTotalTokens","avgOutputTokens","avgCostUsd","avgDurationMs","medianCostUsd","medianTotalTokens","medianDurationMs","rank","group","agent","setup"],"additionalProperties":false}},"perTask":{"type":"array","items":{"type":"object","properties":{"taskId":{"type":"string"},"position":{"type":"number"},"promptPreview":{"type":"string"},"requiresWeb":{"type":"boolean"},"category":{"anyOf":[{"type":"string"},{"type":"null"}]},"byArm":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"tally":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"}},"evalPassRate":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["tally"],"additionalProperties":false}}},"required":["taskId","position","promptPreview","requiresWeb","category","byArm"],"additionalProperties":false}},"behavior":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string"},"model":{"type":"string"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}]},"arm":{"type":"string"},"totalRuns":{"type":"number"},"signals":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"tone":{"type":"string","enum":["good","bad","neutral"]},"runCount":{"type":"number"},"succeededCount":{"type":"number"}},"required":["id","label","tone","runCount","succeededCount"],"additionalProperties":false}}},"required":["harness","model","provider","arm","totalRuns","signals"],"additionalProperties":false}},"execution":{"description":"The `execution` lens's section, one per group, keyed by the group's key.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"graded":{"type":"number"},"measured":{"type":"number"},"passed":{"type":"number"},"passRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"byStatus":{"type":"object","properties":{"passed":{"type":"number"},"failed":{"type":"number"},"timeout":{"type":"number"},"error":{"type":"number"},"unavailable":{"type":"number"}},"required":["passed","failed","timeout","error","unavailable"],"additionalProperties":false},"languages":{"type":"array","items":{"type":"string"}},"unavailableReasons":{"type":"array","items":{"type":"string"}}},"required":["graded","measured","passed","passRate","byStatus","languages","unavailableReasons"],"additionalProperties":false}},"inference":{"type":"object","properties":{"contrasts":{"type":"array","items":{"type":"object","properties":{"contrastId":{"type":"string"},"table":{"anyOf":[{"type":"object","properties":{"columns":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"family":{"type":"string","enum":["rate","score","magnitude"]},"betterWhen":{"type":"string","enum":["higher","lower"]}},"required":["key","label","family","betterWhen"],"additionalProperties":false}},"groups":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["cell","harness","model","field"]},"title":{"type":"string"},"rows":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"kind":{"type":"string","enum":["cell","harness","model","field"]},"harness":{"anyOf":[{"type":"string"},{"type":"null"}]},"model":{"anyOf":[{"type":"string"},{"type":"null"}]},"paramsKey":{"type":"string"},"runs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"estimate":{"anyOf":[{"type":"object","properties":{"value":{"type":"number"},"interval":{"type":"object","properties":{"lo":{"type":"number"},"hi":{"type":"number"}},"required":["lo","hi"],"additionalProperties":false,"description":"A 95% bootstrap percentile interval."},"n":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["value","interval","n"],"additionalProperties":false},{"type":"null"}]},"reference":{"anyOf":[{"type":"object","properties":{"value":{"type":"number"},"interval":{"type":"object","properties":{"lo":{"type":"number"},"hi":{"type":"number"}},"required":["lo","hi"],"additionalProperties":false,"description":"A 95% bootstrap percentile interval."},"n":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["value","interval","n"],"additionalProperties":false},{"type":"null"}]},"comparison":{"anyOf":[{"type":"object","properties":{"effect":{"type":"number"},"unit":{"type":"string","enum":["pp","pts","%"]},"interval":{"type":"object","properties":{"lo":{"type":"number"},"hi":{"type":"number"}},"required":["lo","hi"],"additionalProperties":false,"description":"A 95% bootstrap percentile interval."},"p":{"type":"number"},"n":{"minItems":2,"maxItems":2,"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"from":{"type":"number"},"to":{"type":"number"}},"required":["effect","unit","interval","p","n"],"additionalProperties":false},{"type":"null"}]},"adjustedP":{"anyOf":[{"type":"number"},{"type":"null"}]},"tier":{"type":"integer","minimum":0,"maximum":3},"direction":{"type":"string","enum":["better","worse","none"]},"untested":{"type":"boolean"}},"required":["estimate","reference","comparison","adjustedP","tier","direction","untested"],"additionalProperties":false}}},"required":["key","kind","harness","model","runs","cells"],"additionalProperties":false}}},"required":["kind","title","rows"],"additionalProperties":false}},"reference":{"type":"string","enum":["baseline","field"]},"draws":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"adjustment":{"type":"object","properties":{"scope":{"type":"string","const":"planned-comparisons"},"comparisons":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many planned comparisons the family spans."}},"required":["scope","comparisons"],"additionalProperties":false,"description":"How this table's significance marks were adjusted: jointly, across the study's planned comparisons."}},"required":["columns","groups","reference","draws","adjustment"],"additionalProperties":false,"description":"A planned contrast's scientific table, `baseline` = its `referenceArm` and the subject = its `subjectArm`. Every cell's `adjustedP`, `tier` and `direction` are Holm-adjusted per column ACROSS the planned comparisons (never within this table alone). A magnitude cell's `comparison.effect` is relative to the reference group: on a contrast whose block says `magnitudes: 'absolute'` read its `from` → `to` and its p instead."},{"type":"null"}]}},"required":["contrastId","table"],"additionalProperties":false},"description":"One per planned contrast, in plan order; every table null while the family is pending."},"holm":{"oneOf":[{"type":"object","properties":{"status":{"type":"string","const":"complete"},"ready":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many of the planned contrasts' tables are stored."},"planned":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many contrasts the study planned."},"adjustment":{"type":"object","properties":{"scope":{"type":"string","const":"planned-comparisons"},"comparisons":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many planned comparisons the family spans."}},"required":["scope","comparisons"],"additionalProperties":false,"description":"How this table's significance marks were adjusted: jointly, across the study's planned comparisons."}},"required":["status","ready","planned","adjustment"],"additionalProperties":false},{"type":"object","properties":{"status":{"type":"string","const":"pending"},"ready":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many of the planned contrasts' tables are stored."},"planned":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many contrasts the study planned."}},"required":["status","ready","planned"],"additionalProperties":false}],"description":"The planned family: complete (every table published, jointly adjusted) or pending (no table published)."},"claims":{"type":"object","properties":{"perContrast":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"contrastId":{"type":"string"},"referenceArm":{"type":"string"},"subjectArm":{"type":"string"},"basis":{"type":"string","enum":["infra","goal","evals","benchmark","quality","efficiency","judge","insufficient"]},"claim":{"type":"string","enum":["beat","margin-only","judge-preference","pending","none"],"description":"`beat`: won, and every deciding cell of the published table is significant in the winner's direction. `margin-only`: won by the decision's margin, not a tested difference. `judge-preference`: the blind judge's preference, its split surviving the adjustment across the planned comparisons. `pending`: tables still computing. `none`: a tie, or nothing measured."},"testedFamilies":{"type":"array","items":{"type":"string","enum":["cost","tokens","duration","quality","goal","evals","benchmark"]},"description":"The families the significance gate passed — empty unless `claim` is `beat`."}},"required":["contrastId","referenceArm","subjectArm","basis","claim","testedFamilies"],"additionalProperties":false},"description":"Keyed by `contrastId`."},"ranking":{"type":"string","enum":["beat-all","won-all-on-ladder","ranks-first","composite-with-loss","pending","none"],"description":"What the ranking may claim about its leader."}},"required":["perContrast","ranking"],"additionalProperties":false}},"required":["contrasts","holm","claims"],"additionalProperties":false,"description":"The planned contrasts' tables and what they license; attached on the read path, never cached."},"timeBasis":{"description":"What the study's time was scored on: 'run_time' (the agent's own time, first model request → last model response) when every finished run carried a measured timeline. Absent = wall-clock, setup and teardown included.","type":"string","enum":["run_time","wall_clock"]},"timeMeasures":{"description":"Every selectable time measure per group (run time; startup + run; installations + startup + run; total), descriptive only — the study is scored on run time. Present only when timeBasis is 'run_time'.","type":"object","properties":{"byArm":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","propertyNames":{"type":"string","enum":["run_time","startup_and_run","install_startup_run","total"]},"additionalProperties":{"type":"object","properties":{"median":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95":{"anyOf":[{"type":"number"},{"type":"null"}]},"mean":{"anyOf":[{"type":"number"},{"type":"null"}]},"n":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"How many of the group's runs measured it."}},"required":["median","p95","mean","n"],"additionalProperties":false},"required":["run_time","startup_and_run","install_startup_run","total"]}},"phasesByArm":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","propertyNames":{"type":"string","enum":["waiting","boot","installations","startup","run","verification","teardown"]},"additionalProperties":{"type":"object","properties":{"median":{"anyOf":[{"type":"number"},{"type":"null"}]},"p95":{"anyOf":[{"type":"number"},{"type":"null"}]},"mean":{"anyOf":[{"type":"number"},{"type":"null"}]},"n":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"How many of the group's runs measured it."}},"required":["median","p95","mean","n"],"additionalProperties":false},"required":["waiting","boot","installations","startup","run","verification","teardown"]},"description":"Where each group's time went: every phase on its own (a phase a run never had counts as no time)."}},"required":["byArm","phasesByArm"],"additionalProperties":false},"runCounting":{"description":"Present only when the study holds runs back from its numbers (its counting policy). Every figure of this readout is over the runs that count; this says how many were left out and from which group.","type":"object","properties":{"policy":{"type":"string","description":"The policy the figures were computed under: 'hold_back_screened:<screen>:<levels>'."},"screen":{"type":"string","description":"The screen whose verdicts decided."},"levels":{"type":"array","items":{"type":"string"},"description":"The verdict levels held back."},"heldBack":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Runs left out of every figure of this readout: missing measurements, never fails."},"groups":{"type":"array","items":{"type":"object","properties":{"group":{"type":"string"},"heldBack":{"type":"integer","minimum":0,"maximum":9007199254740991},"runs":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The group's runs that ended."}},"required":["group","heldBack","runs"],"additionalProperties":false},"description":"The same count per group."},"imbalanced":{"type":"boolean","description":"true when two groups' held-back shares differ by more than 10 points: the policy removed one group's runs selectively."}},"required":["policy","screen","levels","heldBack","groups","imbalanced"],"additionalProperties":false},"webToolsOff":{"description":"Present only when a group of the study ran its agents with their own web tools switched off. That is a switch on the agent's tools: the network was not blocked, so an agent that can run a command can still reach the web that way. Every run of such a group is screened for web use, and this says, per group, how many runs were screened and what the screen found. Counts over all the study's runs, whatever its counting policy holds back. Counts only: what a trace can show differs by agent, so they are never compared between agents.","type":"object","properties":{"groups":{"type":"array","items":{"type":"object","properties":{"group":{"type":"string","description":"The group's key."},"runs":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The group's runs that ended and that ora's own infrastructure did not kill: the runs the screen applies to."},"screened":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Of those, the runs that carry a verdict. 0 = no run of the group has been screened: never read that as no run reaching the web."},"held":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Screened runs whose complete trace shows no step that reached the web."},"fetched":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Screened runs in which a step reached the web, by the agent's own tool or its shell. Each is labelled on its run, and is left out of no figure for it."},"notMeasured":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Screened runs the screen could not say for (the run's `screens.web_tools_off.reason` says why). Neither held nor fetched."}},"required":["group","runs","screened","held","fetched","notMeasured"],"additionalProperties":false},"description":"One row per group that ran with web tools off, in the groups' own order."}},"required":["groups"],"additionalProperties":false}},"required":["shape","summary","arms","contrasts","board","perTask"],"additionalProperties":false}]},"textWithheldReason":{"type":"string","enum":["sign_in_required","terms_required","licence"]},"taskSteps":{"type":"array","items":{"type":"object","properties":{"taskId":{"type":"string"},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"stepCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many steps the task has: its own prompt and its follow-ups."},"groups":{"type":"array","items":{"type":"object","properties":{"arm":{"type":"string","description":"The group's key."},"harness":{"type":"string"},"model":{"type":"string"},"runs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Runs of this task, group and agent that ended, of the runs the study counts."},"finished":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Those that succeeded. A run that did not finish has no verdict for any step: it is runs minus finished, in no step's counts."},"graded":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Finished runs with any verdict at all."},"passedEveryStep":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Of those, the runs where nothing failed in any step: the number a claim about the whole task rests on."},"steps":{"type":"array","items":{"type":"object","properties":{"step":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"0 = the task's own prompt; i = its i-th follow-up."},"hasCriteria":{"type":"boolean","description":"Whether this step has judge criteria at all."},"hasChecks":{"type":"boolean","description":"Whether this step has checks at all."},"judged":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Finished runs the judge panel graded on this step's criteria."},"judgePassed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Of those, the runs where EVERY criterion of this step passed."},"checked":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Finished runs with at least one of this step's checks measured (an abstained check measured nothing)."},"checksPassed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Of those, the runs where every measured check of this step passed."}},"required":["step","hasCriteria","hasChecks","judged","judgePassed","checked","checksPassed"],"additionalProperties":false}},"stopped":{"type":"array","items":{"type":"object","properties":{"step":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"0 = the task's own prompt; i = its i-th follow-up."},"runs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Runs that did not finish and that this step's turn ended, by the agent's own account of its turns."},"atLimit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Of those, the runs whose turn a limit ended: the study's time limit per step, or one of the agent's own."}},"required":["step","runs","atLimit"],"additionalProperties":false},"description":"Where the runs that did not finish stopped, by step, in order. A step no run stopped at is not listed. A run that did not finish and is in none of these stopped somewhere its record does not say (before its first prompt, after its last answer, or no account of its turns was recovered), so these need not add up to runs minus finished."}},"required":["arm","harness","model","runs","finished","graded","passedEveryStep","steps","stopped"],"additionalProperties":false}}},"required":["taskId","position","stepCount","groups"],"additionalProperties":false},"description":"For each task with steps, each group and each agent: how its runs did step by step. Beside the study's own figures, which it does not change (a run reaches its goal when every criterion of every step passed). A later step is measured on whatever the earlier step left, so its figure is conditional on the state each run was in. Absent when the study has no task with steps."},"interop":{"type":"object","properties":{"areas":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"}},"required":["key","label"],"additionalProperties":false},"description":"The pinned version's focus areas, in its own order."},"levels":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"within":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["key","label","within"],"additionalProperties":false},"description":"Its levels, in its own order."},"groups":{"type":"array","items":{"type":"object","properties":{"groupKey":{"type":"string"},"groupLabel":{"type":"string"},"agents":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","description":"The agent's cell key (harness, model and pinned params)."},"harness":{"type":"string"},"model":{"type":"string"},"label":{"type":"string","description":"\"harness / model\", with its pinned params."},"total":{"type":"object","properties":{"rate":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"0..1. Null = nothing to compute from (every task of the row left out), never 0."},"display":{"type":"string","description":"The rate as printed (\"62%\"); \"n/a\" when null."},"interval":{"anyOf":[{"type":"object","properties":{"lo":{"type":"number"},"hi":{"type":"number"}},"required":["lo","hi"],"additionalProperties":false,"description":"A 95% interval, in its figure's own unit."},{"type":"null"}],"description":"0..1. Tasks resampled (never runs), enveloped by the Wilson interval over the same tasks: 5 of 5 reads 57% to 100%."},"intervalDisplay":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"\"41% to 80%\"."},"counts":{"type":"object","properties":{"tasks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Tasks the figure is the mean over."},"agents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Agents it folds: the group's planned agents for an every-agent figure, 1 for one agent's score."},"measuredRuns":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Measured runs behind it: runs with a verdict, passed or failed. A run the agent failed or timed out on is a measured fail; a run still being graded, or one ora's own infrastructure killed, is not measured."},"leftOutTasks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Tasks of its row it leaves out: some agent it folds has no measured run there."}},"required":["tasks","agents","measuredRuns","leftOutTasks"],"additionalProperties":false,"description":"What the figure stands on."},"areas":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Of the declared areas, how many it has a score in (an area it measured no task in is not a zero)."}},"required":["rate","display","interval","intervalDisplay","counts","areas"],"additionalProperties":false,"description":"The mean of its focus-area scores, every area weighted the same whatever its number of tasks."}},"required":["key","harness","model","label","total"],"additionalProperties":false},"description":"The group's planned agents, in its own order."},"headline":{"type":"object","properties":{"rate":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"0..1. Null = nothing to compute from (every task of the row left out), never 0."},"display":{"type":"string","description":"The rate as printed (\"62%\"); \"n/a\" when null."},"interval":{"anyOf":[{"type":"object","properties":{"lo":{"type":"number"},"hi":{"type":"number"}},"required":["lo","hi"],"additionalProperties":false,"description":"A 95% interval, in its figure's own unit."},{"type":"null"}],"description":"0..1. Tasks resampled (never runs), enveloped by the Wilson interval over the same tasks: 5 of 5 reads 57% to 100%."},"intervalDisplay":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"\"41% to 80%\"."},"counts":{"type":"object","properties":{"tasks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Tasks the figure is the mean over."},"agents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Agents it folds: the group's planned agents for an every-agent figure, 1 for one agent's score."},"measuredRuns":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Measured runs behind it: runs with a verdict, passed or failed. A run the agent failed or timed out on is a measured fail; a run still being graded, or one ora's own infrastructure killed, is not measured."},"leftOutTasks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Tasks of its row it leaves out: some agent it folds has no measured run there."}},"required":["tasks","agents","measuredRuns","leftOutTasks"],"additionalProperties":false,"description":"What the figure stands on."}},"required":["rate","display","interval","intervalDisplay","counts"],"additionalProperties":false,"description":"How much of the benchmark works on every agent: per task, the lowest pass rate any planned agent of the group has on it, averaged over the tasks every planned agent was measured on. The gate and series metric `every_agent`."},"areas":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"tasks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The area's tasks in the study."},"agents":{"type":"array","items":{"type":"object","properties":{"rate":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"0..1. Null = nothing to compute from (every task of the row left out), never 0."},"display":{"type":"string","description":"The rate as printed (\"62%\"); \"n/a\" when null."},"interval":{"anyOf":[{"type":"object","properties":{"lo":{"type":"number"},"hi":{"type":"number"}},"required":["lo","hi"],"additionalProperties":false,"description":"A 95% interval, in its figure's own unit."},{"type":"null"}],"description":"0..1. Tasks resampled (never runs), enveloped by the Wilson interval over the same tasks: 5 of 5 reads 57% to 100%."},"intervalDisplay":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"\"41% to 80%\"."},"counts":{"type":"object","properties":{"tasks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Tasks the figure is the mean over."},"agents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Agents it folds: the group's planned agents for an every-agent figure, 1 for one agent's score."},"measuredRuns":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Measured runs behind it: runs with a verdict, passed or failed. A run the agent failed or timed out on is a measured fail; a run still being graded, or one ora's own infrastructure killed, is not measured."},"leftOutTasks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Tasks of its row it leaves out: some agent it folds has no measured run there."}},"required":["tasks","agents","measuredRuns","leftOutTasks"],"additionalProperties":false,"description":"What the figure stands on."}},"required":["rate","display","interval","intervalDisplay","counts"],"additionalProperties":false},"description":"Each agent's score in the area, in the group's agent order: the mean of its pass rates on the area's tasks it measured, each task once."},"everyAgent":{"type":"object","properties":{"rate":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"0..1. Null = nothing to compute from (every task of the row left out), never 0."},"display":{"type":"string","description":"The rate as printed (\"62%\"); \"n/a\" when null."},"interval":{"anyOf":[{"type":"object","properties":{"lo":{"type":"number"},"hi":{"type":"number"}},"required":["lo","hi"],"additionalProperties":false,"description":"A 95% interval, in its figure's own unit."},{"type":"null"}],"description":"0..1. Tasks resampled (never runs), enveloped by the Wilson interval over the same tasks: 5 of 5 reads 57% to 100%."},"intervalDisplay":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"\"41% to 80%\"."},"counts":{"type":"object","properties":{"tasks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Tasks the figure is the mean over."},"agents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Agents it folds: the group's planned agents for an every-agent figure, 1 for one agent's score."},"measuredRuns":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Measured runs behind it: runs with a verdict, passed or failed. A run the agent failed or timed out on is a measured fail; a run still being graded, or one ora's own infrastructure killed, is not measured."},"leftOutTasks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Tasks of its row it leaves out: some agent it folds has no measured run there."}},"required":["tasks","agents","measuredRuns","leftOutTasks"],"additionalProperties":false,"description":"What the figure stands on."}},"required":["rate","display","interval","intervalDisplay","counts"],"additionalProperties":false,"description":"How much of the area works on every agent: the mean over its complete-case tasks of the lowest agent pass rate."}},"required":["key","label","tasks","agents","everyAgent"],"additionalProperties":false}},"levels":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"within":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The level whose row also counts this level's tasks; null for a top-level level."},"tasks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Tasks this row counts: its own, and those of every level within it."},"everyAgent":{"type":"object","properties":{"rate":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"0..1. Null = nothing to compute from (every task of the row left out), never 0."},"display":{"type":"string","description":"The rate as printed (\"62%\"); \"n/a\" when null."},"interval":{"anyOf":[{"type":"object","properties":{"lo":{"type":"number"},"hi":{"type":"number"}},"required":["lo","hi"],"additionalProperties":false,"description":"A 95% interval, in its figure's own unit."},{"type":"null"}],"description":"0..1. Tasks resampled (never runs), enveloped by the Wilson interval over the same tasks: 5 of 5 reads 57% to 100%."},"intervalDisplay":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"\"41% to 80%\"."},"counts":{"type":"object","properties":{"tasks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Tasks the figure is the mean over."},"agents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Agents it folds: the group's planned agents for an every-agent figure, 1 for one agent's score."},"measuredRuns":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Measured runs behind it: runs with a verdict, passed or failed. A run the agent failed or timed out on is a measured fail; a run still being graded, or one ora's own infrastructure killed, is not measured."},"leftOutTasks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Tasks of its row it leaves out: some agent it folds has no measured run there."}},"required":["tasks","agents","measuredRuns","leftOutTasks"],"additionalProperties":false,"description":"What the figure stands on."}},"required":["rate","display","interval","intervalDisplay","counts"],"additionalProperties":false}},"required":["key","label","within","tasks","everyAgent"],"additionalProperties":false}},"leftOut":{"type":"array","items":{"type":"object","properties":{"taskId":{"type":"string"},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["taskId","position"],"additionalProperties":false},"description":"Tasks some planned agent has no measured run on, in position order: left out of every every-agent figure (complete case)."}},"required":["groupKey","groupLabel","agents","headline","areas","levels","leftOut"],"additionalProperties":false},"description":"One block per group, in the study's order."},"contrasts":{"type":"array","items":{"type":"object","properties":{"contrastId":{"type":"string"},"referenceGroup":{"type":"string"},"subjectGroup":{"type":"string"},"oriented":{"type":"boolean","description":"True when the reference is the study's declared reference group."},"basis":{"type":"string","description":"How the groups are compared: on the agents both ran (`matched`), or each on its own (`whole_setup`)."},"referenceAgents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The agents the reference group's figure folds on this basis."},"subjectAgents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The agents the subject group's figure folds on this basis."},"headline":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","const":"pp"},"pp":{"type":"number","description":"Subject group minus reference group, in percentage points, on the paired tasks."},"display":{"type":"string","description":"\"+12pp\"."},"interval":{"type":"object","properties":{"lo":{"type":"number"},"hi":{"type":"number"}},"required":["lo","hi"],"additionalProperties":false,"description":"In percentage points: the paired task bootstrap, enveloped by Newcombe's interval."},"intervalDisplay":{"type":"string","description":"\"+2pp to +21pp\"."},"direction":{"anyOf":[{"type":"string","enum":["up","down"]},{"type":"null"}],"description":"Stated only where the interval excludes zero: up = the subject group's figure is higher. Null = no direction."},"pairedTasks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Tasks both groups measured on the contrast's basis: the difference stands on these and no others."},"from":{"type":"object","properties":{"rate":{"type":"number"},"display":{"type":"string"}},"required":["rate","display"],"additionalProperties":false,"description":"The reference group's figure on the paired tasks."},"to":{"type":"object","properties":{"rate":{"type":"number"},"display":{"type":"string"}},"required":["rate","display"],"additionalProperties":false,"description":"The subject group's figure on the paired tasks."}},"required":["unit","pp","display","interval","intervalDisplay","direction","pairedTasks","from","to"],"additionalProperties":false,"description":"A difference between two groups' every-agent figures, paired by task."},{"type":"null"}]},"areas":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"difference":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","const":"pp"},"pp":{"type":"number","description":"Subject group minus reference group, in percentage points, on the paired tasks."},"display":{"type":"string","description":"\"+12pp\"."},"interval":{"type":"object","properties":{"lo":{"type":"number"},"hi":{"type":"number"}},"required":["lo","hi"],"additionalProperties":false,"description":"In percentage points: the paired task bootstrap, enveloped by Newcombe's interval."},"intervalDisplay":{"type":"string","description":"\"+2pp to +21pp\"."},"direction":{"anyOf":[{"type":"string","enum":["up","down"]},{"type":"null"}],"description":"Stated only where the interval excludes zero: up = the subject group's figure is higher. Null = no direction."},"pairedTasks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Tasks both groups measured on the contrast's basis: the difference stands on these and no others."},"from":{"type":"object","properties":{"rate":{"type":"number"},"display":{"type":"string"}},"required":["rate","display"],"additionalProperties":false,"description":"The reference group's figure on the paired tasks."},"to":{"type":"object","properties":{"rate":{"type":"number"},"display":{"type":"string"}},"required":["rate","display"],"additionalProperties":false,"description":"The subject group's figure on the paired tasks."}},"required":["unit","pp","display","interval","intervalDisplay","direction","pairedTasks","from","to"],"additionalProperties":false,"description":"A difference between two groups' every-agent figures, paired by task."},{"type":"null"}],"description":"Null: fewer than two paired tasks."}},"required":["key","label","difference"],"additionalProperties":false}},"levels":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"difference":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","const":"pp"},"pp":{"type":"number","description":"Subject group minus reference group, in percentage points, on the paired tasks."},"display":{"type":"string","description":"\"+12pp\"."},"interval":{"type":"object","properties":{"lo":{"type":"number"},"hi":{"type":"number"}},"required":["lo","hi"],"additionalProperties":false,"description":"In percentage points: the paired task bootstrap, enveloped by Newcombe's interval."},"intervalDisplay":{"type":"string","description":"\"+2pp to +21pp\"."},"direction":{"anyOf":[{"type":"string","enum":["up","down"]},{"type":"null"}],"description":"Stated only where the interval excludes zero: up = the subject group's figure is higher. Null = no direction."},"pairedTasks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Tasks both groups measured on the contrast's basis: the difference stands on these and no others."},"from":{"type":"object","properties":{"rate":{"type":"number"},"display":{"type":"string"}},"required":["rate","display"],"additionalProperties":false,"description":"The reference group's figure on the paired tasks."},"to":{"type":"object","properties":{"rate":{"type":"number"},"display":{"type":"string"}},"required":["rate","display"],"additionalProperties":false,"description":"The subject group's figure on the paired tasks."}},"required":["unit","pp","display","interval","intervalDisplay","direction","pairedTasks","from","to"],"additionalProperties":false,"description":"A difference between two groups' every-agent figures, paired by task."},{"type":"null"}],"description":"Null: fewer than two paired tasks."}},"required":["key","label","difference"],"additionalProperties":false}}},"required":["contrastId","referenceGroup","subjectGroup","oriented","basis","referenceAgents","subjectAgents","headline","areas","levels"],"additionalProperties":false},"description":"One difference per PLANNED contrast, in plan order: no other pair of groups is compared."}},"required":["areas","levels","groups","contrasts"],"additionalProperties":false,"description":"THE INTEROP READOUT (Agent Interop): per group, each agent's pass rate per focus area and its total, and how much of the benchmark works on every agent, overall, per area and per level, with the counts each figure stands on and the tasks left out; then the differences along the study's planned contrasts. A run passes when every grader of the benchmark that applies to its task passed it, and fails when any of them failed it or one of its steps, or when the agent failed or timed out; a run ora's own infrastructure killed is not measured. Beside the study's own figures, which it does not change. Present only for a study whose pinned benchmark version declares focus areas or levels."}},"required":["study","tasks","runs","aggregate"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:read","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/studies/{id}/publish":{"post":{"operationId":"study.publish","summary":"Publish a completed study under a shareable mode: 'public' (listed in the anonymous catalog) or — where the deployment supports sharing — 'link' (unlisted, openable only with the returned share token). A study that holds no publication — every study inside its org (private or org): never published, unpublished, or moved back in, each of which retracts the publication — is published only under the mode the body names: a publish of it that names no `visibility` is refused (422 study_publish_mode_required) and nothing is written. A re-publish that names no `visibility` keeps the mode of a study shared outside its org (a link-shared study stays unlisted); send `expectPublished: true` to update a publication, so a study unpublished meanwhile is refused (409) rather than published afresh. Idempotent slug upsert. Where the product keeps review drafts, a pending draft (`executiveSummaryDraft`) whose readout is still current becomes the published summary as-is (the response's `executiveSummary`); otherwise the summary is regenerated (`executiveSummaryRequest: 'live'` until it lands).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The study's uuid (from create or list)."},"example":"1f7e4d1c-4b2a-4f3e-9d8c-5a6b7c8d9e0f"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"description":"Public catalog URL slug (lowercase [a-z0-9-], ≤80). Omitted → the study's own generated slug. 409 study_slug_taken if another published study holds it.","type":"string","minLength":1,"maxLength":80,"pattern":"^[a-z0-9][a-z0-9-]*$"},"visibility":{"description":"Publish under this sharing mode: 'public' (listed in the catalog) or 'link' (unlisted; openable only at /studies/<slug>?share=<token>, which the response carries). Required for a study that holds no publication — every study inside its org (never published, unpublished, or moved back into its org since; each retracts the publication): omitted there, the publish is refused with 422 study_publish_mode_required and nothing is written. Omitted on a published study, the re-publish keeps the mode it is in now — a link-shared study stays unlisted (409 study_unpublished_meanwhile if it was unpublished while the re-publish ran). State it to change the mode. 'private'/'org' are 422. To UPDATE a publication, refused rather than published afresh if it was unpublished meanwhile, send expectPublished: true.","type":"string","enum":["private","org","link","public"]},"expectPublished":{"description":"Precondition: the study must already be published (in any mode) — this request updates that publication. If it holds none (it was unpublished since you read it), the publish fails with 409 study_unpublished_meanwhile and NOTHING is written — never a first publication, even under a mode the body names. Omitted or false: no precondition.","type":"boolean"},"skillNames":{"description":"A Groups study only: 'named' shows each group's skills by name on the published page (as they were when the study was created); 'withheld' (the default, also when omitted) keeps them private. Every publish states it, so a re-publish that omits it withholds the names again. Add-on and MCP instance names are never published.","type":"string","enum":["withheld","named"]}}},"example":{"slug":"tavily-search-ab","visibility":"public"}}}},"responses":{"200":{"description":"Publish a completed study under a shareable mode: 'public' (listed in the anonymous catalog) or — where the deployment supports sharing — 'link' (unlisted, openable only with the returned share token). A study that holds no publication — every study inside its org (private or org): never published, unpublished, or moved back in, each of which retracts the publication — is published only under the mode the body names: a publish of it that names no `visibility` is refused (422 study_publish_mode_required) and nothing is written. A re-publish that names no `visibility` keeps the mode of a study shared outside its org (a link-shared study stays unlisted); send `expectPublished: true` to update a publication, so a study unpublished meanwhile is refused (409) rather than published afresh. Idempotent slug upsert. Where the product keeps review drafts, a pending draft (`executiveSummaryDraft`) whose readout is still current becomes the published summary as-is (the response's `executiveSummary`); otherwise the summary is regenerated (`executiveSummaryRequest: 'live'` until it lands).","content":{"application/json":{"schema":{"type":"object","properties":{"study":{"type":"object","properties":{"id":{"type":"string"},"executiveSummary":{"anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryDraft":{"description":"A PUBLISHED study's summary held for review, never shown on the public page: what `studies.regenerateSummary` writes on a published study (and the first summary of a published study nothing asked for). `studies.publish` makes exactly this text the published `executiveSummary`, while the readout it was written from is still current; otherwise publish regenerates. Absent where the product has no review drafts.","anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryRequest":{"description":"A summary an explicit act asked for and not yet written: 'live' — a publish, a re-open, or a regenerate on an UNPUBLISHED completed study owes the summary in place (the public page, once published); 'draft' — a regenerate on a published study owes the review draft one. Null once the request is answered — poll `studies.get` until it is: by the written summary (`executiveSummary` or `executiveSummaryDraft`), by a later act that superseded it (a publish, a newer regenerate — its own write answers it), or as unavailable (`executiveSummaryUnavailableAt` set). While the automatic retries back off after a failed attempt it stays pending. Absent where the product has no review drafts.","anyOf":[{"type":"string","enum":["live","draft"]},{"type":"null"}]},"executiveSummaryRequestedAt":{"description":"When `executiveSummaryRequest` was made.","anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryUnavailableAt":{"description":"When the last summary request was answered as UNAVAILABLE: every attempt the retry policy allows on the study's readout failed, so no summary will be written for it until the readout changes (runs added, a re-run, a regrade) or someone regenerates or publishes again. Null otherwise; cleared by a new request or a written summary. Absent where the product has no review drafts.","anyOf":[{"type":"string"},{"type":"null"}]},"plannedRunCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The exact number of runs `launch` will fan out (taskCount × variantsPerTask × repeats × matrix cells × arms). Check this BEFORE launching."},"organizationId":{"type":"string"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"slug":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillRef":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillSlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillName":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillPromise":{"type":"string"},"subjectKind":{"type":"string","enum":["skill","tools","addon","custom","benchmark","site"],"description":"What the study measures. New studies: 'custom': any composition of skills, tools and add-ons, with its own subjectName and promise — under a comparisonMode that declares its groups, each group's configuration is in `arms`. 'benchmark': a pinned version of a catalog benchmark definition (requires definitionVersionId); the corpus is copied frozen from that version. 'site': a website (requires siteDomain, and a comparisonMode that declares its groups); the tasks are things to get done there, and every run is read against the site: whether the agent opened a page of it, and whether the site refused the agent. Every comparisonMode new studies use applies to 'benchmark': 'multi_arm' runs each declared group's setup: 1 group reads as the agent leaderboard: no reference group and no comparison, and it seeds the public leaderboard — when bare, labelled 'as published' on a model-API agent and 'harness default' on a harness agent, and 'with my setup' when it carries one; 2-6 groups are compared over the planned contrasts (with 2, one comparison, oriented only when a group has role 'reference'); only a bare group seeds the public leaderboard. A group that carries a setup is not the benchmark's bare protocol, so it does not seed the public leaderboard. 'skill', 'tools' and 'addon' are kept for the studies that already exist: under a comparisonMode new studies use, one answers 422 study_subject_invalid, and a create body that names no comparisonMode (or a legacy one) and carries it is read as the legacy body it is and answers 422 comparison_mode_removed (docs/studies/comparison-modes/README.md maps each legacy design onto the new ones)."},"subjectName":{"anyOf":[{"type":"string"},{"type":"null"}]},"siteDomain":{"description":"The website a 'site' study is run against (its host); absent for every other subject kind.","type":"string"},"subjectLabel":{"type":"string"},"armConfig":{"type":"object","properties":{"baseline":{"description":"The baseline arm's run-payload delta. Omitted = a bare run (no skill, no extras).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false},"treatment":{"description":"The treatment arm's run-payload delta (the thing under test).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"additionalProperties":false,"description":"Frozen per-arm run-payload deltas of a fixed pair of arms (comparisonMode 'ab_vs_none' or 'ab_custom' or 'single'), kept for the studies that already exist: new studies carry each group's configuration in `arms`, and a create body that names no comparisonMode (or a legacy one) and carries it is read as the legacy body it is and answers 422 comparison_mode_removed (docs/studies/comparison-modes/README.md maps each legacy design onto the new ones)."},"comparisonMode":{"type":"string","enum":["ab_vs_none","ab_custom","single","multi_arm"],"description":"The study's design. New studies: 'multi_arm' (Groups): 1-6 groups declared in `arms`, each with its own label and configuration — 1 group reads as the agent leaderboard: no reference group and no comparison, and it seeds the public leaderboard — when bare, labelled 'as published' on a model-API agent and 'harness default' on a harness agent, and 'with my setup' when it carries one; 2-6 groups are compared over the planned contrasts (with 2, one comparison, oriented only when a group has role 'reference'); only a bare group seeds the public leaderboard; which pairs are judged is `contrasts`. 'ab_vs_none', 'ab_custom' and 'single' are kept for the studies that already exist: a create naming one answers 422 comparison_mode_removed (docs/studies/comparison-modes/README.md maps each legacy design onto the new ones)."},"subjectBackend":{"anyOf":[{"type":"string","enum":["model","harness"],"description":"What answers a FRAMEWORK benchmark's requests: 'harness' — each request is answered by the cell's agent harness (the model inside its own loop, with the arm's tools, add-ons and skills), one agent run per request; 'model' — the framework's own client calls the cell's model directly and the cell's harness is not measured. Resolved once per study and recorded on every run."},{"type":"null"}]},"environmentExecutionPolicy":{"type":"string","enum":["legacy-v1","inside-v1"]},"importedFrom":{"type":"string"},"baselineLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"treatmentLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"promiseMetrics":{"type":"array","items":{"type":"object","properties":{"metric":{"type":"string","enum":["total_tokens","output_tokens","cost_usd","duration_ms","num_turns","success_rate","completion_rate","goal_rate"]},"direction":{"type":"string","enum":["down","up"]},"label":{"type":"string","minLength":1,"maxLength":120}},"required":["metric","direction","label"],"additionalProperties":false}},"matrix":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1,"maxLength":50,"description":"Harness id — the valid set (and each one's models) is GET /catalog; cells are validated against it at create."},"model":{"type":"string","minLength":1,"maxLength":100,"description":"Model id as the harness accepts it — valid ids per harness/provider are in GET /catalog (e.g. 'claude-sonnet-5', 'gpt-5.5')."},"provider":{"description":"Provider qualifier for multi-provider harnesses (e.g. 'anthropic', 'openai', 'google'). Omit to use the harness default.","type":"string","minLength":1,"maxLength":32},"params":{"description":"Provider params pinned for this cell (temperature, reasoningEffort, maxOutputTokens, thinkingBudgetTokens). A cell that pins none runs the provider's own defaults. Offered only where the harness declares support — see GET /catalog.","type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"maxOutputTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reasoningEffort":{"type":"string","enum":["low","medium","high"]},"thinkingBudgetTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"codeMode":{"type":"string","enum":["auto","on","off"]},"toolSearch":{"type":"string","enum":["on","off","directory"]},"location":{"type":"string","pattern":"^[A-Z]{2}$"},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$"}},"additionalProperties":false}},"required":["harness","model"],"additionalProperties":false,"description":"One (harness, model, params) cell — every task runs its arm(s) on every cell."}},"lenses":{"minItems":1,"type":"array","items":{"type":"string","enum":["judge","evals","reference","framework","execution","verifier"]},"description":"Which grading lenses this study runs under. Defaults to ['judge'] at create and stays editable while status is 'ready' (frozen at launch, like task expectations/rubrics). 'judge': the LLM judge panel (rubric grades + blind pairwise). 'evals': the deterministic @ora/eval-checks engine, scored against each task's authored expectations. 'reference': the static-QA lens — an answer extracted from the response and matched against the task's own reference key, scored 1/0 (spec §6.4). 'framework': the benchmark's OWN framework (HELM today) reports the metrics, mapped verbatim into a section rather than re-averaged (SP2 Task 9). 'execution': the candidate's code is extracted from the response and run against the task's own tests inside a sandboxed, network-less runner image (SP2 Task 16)."},"judgeSupplementary":{"type":"boolean"},"taskCount":{"type":"number"},"variantsPerTask":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Semantics-preserving paraphrases sampled per task (1-5; mirrors the create body's variantsPerTask). Absent at create defaults to 1 — every response reports a concrete value, including studies created before sampling existed."},"repeats":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Identical re-runs sampled per condition (1-10; mirrors the create body's repeats). Absent at create defaults to 1 — every response reports a concrete value, including studies created before sampling existed."},"subset":{"anyOf":[{"type":"object","properties":{"count":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"seed":{"type":"string","minLength":1},"of":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["count","seed","of"],"additionalProperties":false},{"type":"null"}]},"status":{"type":"string"},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"preparation":{"anyOf":[{"type":"object","properties":{"since":{"type":"string"},"progressAt":{"type":"string"},"launchedBy":{"type":"object","properties":{"userId":{"type":"string"},"role":{"type":"string"}},"additionalProperties":false},"waitingOn":{"type":"array","items":{"type":"object","properties":{"imageKey":{"type":"string"},"buildId":{"type":"string"},"stage":{"type":"string","enum":["image","snapshot"]},"retry":{"type":"object","properties":{"failedAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maxAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"notBefore":{"type":"string"},"lastFailure":{"type":"string"}},"required":["failedAttempts","maxAttempts","notBefore","lastFailure"],"additionalProperties":false}},"required":["imageKey","buildId"],"additionalProperties":false}}},"required":["since","launchedBy","waitingOn"],"additionalProperties":false},{"type":"null"}]},"visibility":{"type":"string","enum":["private","org","link","public"],"description":"Who may read this study: private (creator + org owners) | org (the whole org) | link (anyone holding ?share=<token>, unlisted) | public (everyone, listed)."},"visibilityChangedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"visibilityChangedBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"shareToken":{"anyOf":[{"type":"string"},{"type":"null"}]},"lowSampleOverride":{"type":"boolean","description":"True iff this study was explicitly published below the sample-size floor (spec A6) — the published page shows a low-sample badge when set."},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"verdict":{},"definitionVersionId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The benchmark definition VERSION this study pinned at create — non-null only for subjectKind 'benchmark'. Its corpus was copied frozen from that version, so the study stays reproducible when the definition publishes a newer one."},"runnerKind":{"type":"string","enum":["ora-runs","batch-job"],"description":"Which executor fans this study out: 'ora-runs' (the ora runs spine) or 'batch-job' (a built runner image)."},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"liveUntil":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When this study's live stream stops being held open (null while it is still running). Attaching before it yields the remaining post-terminal frames (gradings, recordings, refined verdicts)."},"launch":{"description":"The launch record: planned / created runs, the runs it could not create (missing.retryable: launching again creates them; missing.refused: a re-launch is refused the same way) with one note per cell and group, and the fan-out's state (fanning_out | deferred | settled). Null for a study launched before records existed.","anyOf":[{"type":"object","properties":{"attempt":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"state":{"type":"string","enum":["fanning_out","deferred","settled"]},"startedAt":{"type":"string"},"progressAt":{"type":"string"},"planned":{"type":"integer","minimum":0,"maximum":9007199254740991},"created":{"type":"integer","minimum":0,"maximum":9007199254740991},"missing":{"type":"object","properties":{"retryable":{"type":"integer","minimum":0,"maximum":9007199254740991},"refused":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["retryable","refused"],"additionalProperties":false},"notes":{"type":"array","items":{"type":"string"}},"settledAt":{"type":"string"},"pacing":{"type":"object","properties":{"waiting":{"type":"integer","minimum":0,"maximum":9007199254740991},"nextUnit":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"nextWaveAt":{"type":"string"},"emptyWaves":{"type":"integer","minimum":0,"maximum":9007199254740991},"stopped":{"type":"string"}},"required":["waiting"],"additionalProperties":false},"recovery":{"type":"object","properties":{"state":{"type":"string","enum":["retrying","needs_attention"]},"attempts":{"type":"integer","minimum":0,"maximum":9007199254740991},"lastAttemptAt":{"type":"string"},"nextAttemptAt":{"type":"string"},"reason":{"type":"string"}},"required":["state","attempts"],"additionalProperties":false},"stopped":{"type":"object","properties":{"at":{"type":"string"},"notStarted":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["at","notStarted"],"additionalProperties":false}},"required":["attempt","state","startedAt","progressAt"],"additionalProperties":false},{"type":"null"}]},"pacing":{"description":"How fast this study may START its runs, as declared at create: maxInFlight (at most N of its runs unfinished at once) and/or startsPerMinute (at most N started in any 60 s). Its runs start in waves of whole comparison units (every group's run of one agent on one task sample, together); the launch record's `pacing` says how many wait for a later wave. Null = every run started at launch.","anyOf":[{"type":"object","properties":{"maxInFlight":{"description":"At most this many of the study's runs unfinished at once — queued, pending or running (1-500). The next runs start as earlier ones finish.","type":"integer","minimum":1,"maximum":500},"startsPerMinute":{"description":"At most this many of the study's runs started in any 60-second window (1-600).","type":"integer","minimum":1,"maximum":600}},"additionalProperties":false},{"type":"null"}]},"relaunchable":{"description":"True when this running study may be launched again: its launch record says planned runs are missing (missing.retryable > 0), or its fan-out stopped. POST …/launch then creates exactly the runs that do not exist.","type":"boolean"},"archivedAt":{"description":"When this study was archived; null while it is not. An archived study loses nothing: it leaves the default list, is read-only (409 study_archived), and is on no public page. Restoring it clears this.","anyOf":[{"type":"string"},{"type":"null"}]},"archivedBy":{"description":"The user who archived it. Null when an API key did, and while the study is not archived.","anyOf":[{"type":"string"},{"type":"null"}]},"arms":{"description":"A declared-arm study's groups, in position order.","type":"array","items":{"type":"object","properties":{"key":{"type":"string","description":"The group's run key (each of its runs' `arm`)."},"position":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"0-based display order."},"label":{"type":"string","maxLength":80,"description":"The group's display label. Never shown to the judge."},"role":{"type":"string","enum":["reference","peer"],"description":"'reference' marks the group the others are compared against; the rest are peers."},"payload":{"type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"brief":{"description":"Text the agent is given after the task, for every task this group runs. At most 600 characters. A group with a brief is a setup of its own, never the subject as published.","type":"string","minLength":1,"maxLength":600}},"additionalProperties":false,"description":"The group's run-payload delta ({} = the subject as published)."},"cells":{"description":"The group's OWN agents, when the study's groups each list theirs (cellPlan 'per_setup'); absent = the matrix.","type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1,"maxLength":50,"description":"Harness id — the valid set (and each one's models) is GET /catalog; cells are validated against it at create."},"model":{"type":"string","minLength":1,"maxLength":100,"description":"Model id as the harness accepts it — valid ids per harness/provider are in GET /catalog (e.g. 'claude-sonnet-5', 'gpt-5.5')."},"provider":{"description":"Provider qualifier for multi-provider harnesses (e.g. 'anthropic', 'openai', 'google'). Omit to use the harness default.","type":"string","minLength":1,"maxLength":32},"params":{"description":"Provider params pinned for this cell (temperature, reasoningEffort, maxOutputTokens, thinkingBudgetTokens). A cell that pins none runs the provider's own defaults. Offered only where the harness declares support — see GET /catalog.","type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"maxOutputTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reasoningEffort":{"type":"string","enum":["low","medium","high"]},"thinkingBudgetTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"codeMode":{"type":"string","enum":["auto","on","off"]},"toolSearch":{"type":"string","enum":["on","off","directory"]},"location":{"type":"string","pattern":"^[A-Z]{2}$"},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$"}},"additionalProperties":false}},"required":["harness","model"],"additionalProperties":false,"description":"One (harness, model, params) cell — every task runs its arm(s) on every cell."}},"skipTasks":{"description":"The tasks this group leaves out, by task number (1 = the first); absent = it runs every task.","type":"array","items":{"type":"integer","minimum":1,"maximum":9007199254740991}},"skills":{"description":"The group's skills as resolved when the study was created (absent for a study created before that existed).","type":"array","items":{"type":"object","properties":{"ref":{"type":"string","description":"The skill ref the group's selection names."},"name":{"type":"string","description":"The skill's name when the study was created."},"changedSinceCreate":{"description":"True when the skill's content now differs from what the study ran; absent when the reader cannot check it.","type":"boolean"}},"required":["ref","name"],"additionalProperties":false}},"addedAgents":{"description":"The agents this group gained after the study was created (`addAgents`), by position in `cells` — absent when none was added.","type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The agent's position in the group's `cells`."},"addedAt":{"type":"string","description":"When it was added (RFC 3339)."}},"required":["position","addedAt"],"additionalProperties":false}}},"required":["key","position","label","role","payload"],"additionalProperties":false}},"contrastPlan":{"description":"The study's planned-contrast policy.","type":"string","enum":["vs_reference","all_pairs","ladder"]},"cellPlan":{"description":"How the groups meet their agents: absent = every group runs the matrix; 'per_setup' = each its own.","type":"string","enum":["crossed","per_setup"]},"skillDisclosure":{"description":"Whether the published page names the groups' skills: absent = withheld (chosen at publish).","type":"string","enum":["withheld","named"]},"modeOptions":{"description":"The comparisonMode's private inputs.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"screens":{"description":"The run screens the study declares (frozen at launch, like lenses). Absent = none.","type":"array","items":{"type":"string","enum":["test_awareness","site_access"]}},"runCounting":{"description":"Which of the study's runs its numbers count (GET /studies/:id/run-counting). Absent = every run.","anyOf":[{"type":"object","properties":{"policy":{"type":"string","const":"hold_back_screened"},"screen":{"type":"string","enum":["test_awareness"],"description":"The screen whose verdicts decide. Today: 'test_awareness'."},"levels":{"minItems":1,"type":"array","items":{"type":"string","enum":["aware","influenced"]},"description":"The verdict levels held back. A run the screen could not judge is never held back."}},"required":["policy","screen","levels"],"additionalProperties":false,"description":"Which of the study's runs its numbers count. Absent or null = every run. 'hold_back_screened' leaves out the runs the named screen flagged at one of `levels`: each is a missing measurement with a named reason, never a fail, and the count held back is stated beside every figure."},{"type":"null"}]},"seriesKey":{"description":"The series the study belongs to (set at create). Absent = none.","anyOf":[{"type":"string","pattern":"^[a-z0-9][a-z0-9._/-]{0,119}$"},{"type":"null"}]},"ref":{"description":"Where the study was taken: commit, branch, pull request. Absent = not recorded.","anyOf":[{"type":"object","properties":{"commit":{"description":"The commit the study was taken at (a SHA).","type":"string","minLength":1,"maxLength":64},"branch":{"description":"The branch it was taken on, e.g. 'main'. A gate's series baseline filters on it.","type":"string","minLength":1,"maxLength":200},"pr":{"description":"The pull request number, when it was taken for one.","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"url":{"description":"A link back to the change (the commit or pull request page).","type":"string","maxLength":500,"format":"uri"}},"additionalProperties":false},{"type":"null"}]},"gradingRevision":{"description":"The study's grading revision, when its checks were revised after its runs finished. Absent = never revised.","type":"integer","minimum":2,"maximum":9007199254740991},"gradingRevisedAt":{"description":"When the checks were last revised. Later than `publishedAt` = the grades changed after publication.","anyOf":[{"type":"string"},{"type":"null"}]},"rehearsal":{"description":"The study is a rehearsal: the smallest real run of a design, made by POST /studies/rehearsals. Absent = an ordinary study.","type":"boolean","const":true},"rehearsalMode":{"description":"How a rehearsal runs: 'live' (the real agents), or 'setup' / 'mock' (no agent is started). Absent on every other study.","type":"string"},"behaviors":{"description":"The custom behaviors the study declares (frozen at launch, like lenses). A run's verdict on one is in its `screens` under `b_<key>`. Absent = none.","type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{1,29}$","description":"A short id for the behavior, lowercase snake (`deleted_files`). Its verdicts are stored and queried under `b_<key>`."},"name":{"type":"string","minLength":1,"maxLength":80,"description":"What a reader sees: \"Deleted files it was not asked to\"."},"question":{"type":"string","minLength":10,"maxLength":400,"description":"One yes-or-no question about a single run that a judge can answer from its trace: \"Did the agent …?\"."},"version":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The version of the behavior's wording. A verdict and a review belong to the version they were made on."}},"required":["key","name","question","version"],"additionalProperties":false}},"stepTimeLimitSeconds":{"description":"How long each step of a task with steps may take, in seconds, as declared at create. A step still running after it ends the run, whose reason names the step and the limit. Null or absent = no per-step limit.","anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["id","plannedRunCount","organizationId","createdBy","name","slug","description","skillRef","skillSlug","skillName","skillPromise","subjectKind","subjectName","subjectLabel","armConfig","comparisonMode","subjectBackend","baselineLabel","treatmentLabel","promiseMetrics","matrix","lenses","taskCount","variantsPerTask","repeats","subset","status","error","visibility","lowSampleOverride","publishedAt","verdict","definitionVersionId","runnerKind","createdAt","updatedAt","liveUntil"],"additionalProperties":false}},"required":["study"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"study_invalid_state (not completed), study_slug_taken (another openable study owns the slug), or study_unpublished_meanwhile (the study holds no publication — `expectPublished` was sent, or an unpublish landed while a re-publish keeping the mode ran; nothing was written)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"study_publish_requires_shareable_mode — 'private'/'org' are not publication states (use studies.setVisibility), and 'link' only where the deployment implements sharing; study_publish_mode_required — the study holds no publication and the body names no `visibility` (nothing was written)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:write","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/studies/{id}/query":{"post":{"operationId":"study.query","summary":"Ask a question of a study's runs: which runs, split how, measured on what","description":"A small modelled query over the study's runs: `metrics` (what to measure), `groupBy` (up to 3 dimensions to split by) and `filters` (`{ field, in }`: keep the runs whose value on a dimension is one of these). No expressions and no SQL. Every cell answers its figure AND the number of runs it stands on. The answer is `basis: \"runs\"`: shares and averages over the matched runs, pooled. That describes the runs; the study's own readout and the gate are what a claim rests on. A read: nothing is stored and nothing is spent.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"metrics":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"string","minLength":1,"maxLength":80},"description":"Metric ids. `GET …/query/vocabulary` lists them."},"groupBy":{"default":[],"description":"Dimension ids to split the runs by. None = one row over every matched run.","maxItems":3,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}},"filters":{"default":[],"maxItems":8,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":80,"description":"A dimension id."},"in":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","maxLength":200},"description":"Keep the runs whose value on the dimension is one of these."}},"required":["field","in"],"additionalProperties":false}},"limit":{"default":200,"type":"integer","minimum":1,"maximum":500}},"required":["metrics"],"additionalProperties":false}}}},"responses":{"200":{"description":"Ask a question of a study's runs: which runs, split how, measured on what","content":{"application/json":{"schema":{"type":"object","properties":{"basis":{"type":"string","const":"runs","description":"Every figure is over the runs the query matched, POOLED. It describes those runs. It is not the study's estimate, which folds runs into tasks first: read the study's readout or the gate for a claim."},"matchedRuns":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Runs the filters kept, before any limit."},"groupBy":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"}},"required":["id","label"],"additionalProperties":false}},"metrics":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"unit":{"type":"string","enum":["count","rate","points","usd","tokens","ms"],"description":"`rate` is 0..1; `points` is 0..100."},"fold":{"type":"string","description":"How the runs were folded: count, share, mean, median or total."}},"required":["id","label","unit","fold"],"additionalProperties":false}},"rows":{"type":"array","items":{"type":"object","properties":{"key":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"},"description":"The row's value on each group-by dimension, by dimension id."},"runs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"value":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The figure; null = no run in the row carries the metric. Never 0 for nothing."},"n":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many runs the figure was computed from."}},"required":["value","n"],"additionalProperties":false},"description":"One cell per asked metric, by metric id."}},"required":["key","runs","cells"],"additionalProperties":false}},"truncated":{"type":"boolean","description":"More rows exist than `limit` answered."}},"required":["basis","matchedRuns","groupBy","metrics","rows","truncated"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Study unavailable to the caller","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"run_query_unknown: a metric or a dimension the study does not have (`known` lists them), or a body that is not a query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:read","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/studies/{id}/query/vocabulary":{"get":{"operationId":"study.queryVocabulary","summary":"List what a study's runs can be split by and measured on","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"List what a study's runs can be split by and measured on","content":{"application/json":{"schema":{"type":"object","properties":{"dimensions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"}},"required":["id","label"],"additionalProperties":false},"description":"What runs can be split and filtered by. A study with a screen has one more per screen (`screen.<id>`)."},"metrics":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"unit":{"type":"string","enum":["count","rate","points","usd","tokens","ms"],"description":"`rate` is 0..1; `points` is 0..100."},"fold":{"type":"string","description":"How the runs were folded: count, share, mean, median or total."}},"required":["id","label","unit","fold"],"additionalProperties":false}}},"required":["dimensions","metrics"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Study unavailable to the caller","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:read","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/studies/{id}/reconcile-runs":{"post":{"operationId":"study.reconcileRuns","summary":"Re-derive a study's run projection from the authoritative run rows and re-probe completion (platform-admin only; idempotent) — the repair for runs left non-terminal in the projection while the spine says they finished","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The study's uuid (from create or list)."},"example":"1f7e4d1c-4b2a-4f3e-9d8c-5a6b7c8d9e0f"}],"responses":{"200":{"description":"Re-derive a study's run projection from the authoritative run rows and re-probe completion (platform-admin only; idempotent) — the repair for runs left non-terminal in the projection while the spine says they finished","content":{"application/json":{"schema":{"type":"object","properties":{"studyId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The study that was reconciled."},"laggingRuns":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Projection rows found in a NON-TERMINAL status. Includes runs that are genuinely still executing — being non-terminal is what makes a row a candidate, not evidence of a fault."},"projected":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Rows re-projected because their authoritative base run row IS terminal — the genuinely stuck ones. A healthy study reports 0."},"refinedInsights":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Rows that were TERMINAL in the projection and still owed their insight, and whose insight landed on this call. A separate candidate set from `projected`: after the reactor split a run still owed its insight is already `succeeded`, so it can never appear in `laggingRuns`. Measured by re-reading the state, not counted from attempts — so it reports what this call OBSERVED landing, which under concurrent drivers (a terminal run's completion probe, a detail read) can be the same insight another driver also observed."},"redrivenLensGrades":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"description":"Runs whose grade for one lens was missing or stuck on a retryable deferral, and were re-driven on this call — keyed by lens id (e.g. 'execution', 'reference'), one count per lens the study enables that had something lagging. A lens with nothing lagging is simply absent from this object, never a zero entry; an empty object means nothing was lagging on any enabled lens."},"skipped":{"type":"boolean","description":"True when more rows lag than one call is willing to fan out to (the study is mid-flight, or far past a straggler problem); the completion claim is still probed."},"status":{"type":"string","description":"The study's status AFTER the reconcile — 'completed' when this call's convergence let the claim land."}},"required":["studyId","laggingRuns","projected","refinedInsights","redrivenLensGrades","skipped","status"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"the caller is neither a platform admin nor an allow-listed service principal","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"study_not_found — no study with this id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:write","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/studies/{id}/regrade":{"post":{"operationId":"study.regrade","summary":"Clear and re-run every grading lens the study declares for a completed study — the judge panel (rubrics + blind pairwise), the evals checks and the benchmark's own graders","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The study's uuid (from create or list)."}}],"responses":{"200":{"description":"Clear and re-run every grading lens the study declares for a completed study — the judge panel (rubrics + blind pairwise), the evals checks and the benchmark's own graders","content":{"application/json":{"schema":{"type":"object","properties":{"study":{"type":"object","properties":{"id":{"type":"string"},"executiveSummary":{"anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryDraft":{"description":"A PUBLISHED study's summary held for review, never shown on the public page: what `studies.regenerateSummary` writes on a published study (and the first summary of a published study nothing asked for). `studies.publish` makes exactly this text the published `executiveSummary`, while the readout it was written from is still current; otherwise publish regenerates. Absent where the product has no review drafts.","anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryRequest":{"description":"A summary an explicit act asked for and not yet written: 'live' — a publish, a re-open, or a regenerate on an UNPUBLISHED completed study owes the summary in place (the public page, once published); 'draft' — a regenerate on a published study owes the review draft one. Null once the request is answered — poll `studies.get` until it is: by the written summary (`executiveSummary` or `executiveSummaryDraft`), by a later act that superseded it (a publish, a newer regenerate — its own write answers it), or as unavailable (`executiveSummaryUnavailableAt` set). While the automatic retries back off after a failed attempt it stays pending. Absent where the product has no review drafts.","anyOf":[{"type":"string","enum":["live","draft"]},{"type":"null"}]},"executiveSummaryRequestedAt":{"description":"When `executiveSummaryRequest` was made.","anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryUnavailableAt":{"description":"When the last summary request was answered as UNAVAILABLE: every attempt the retry policy allows on the study's readout failed, so no summary will be written for it until the readout changes (runs added, a re-run, a regrade) or someone regenerates or publishes again. Null otherwise; cleared by a new request or a written summary. Absent where the product has no review drafts.","anyOf":[{"type":"string"},{"type":"null"}]},"plannedRunCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The exact number of runs `launch` will fan out (taskCount × variantsPerTask × repeats × matrix cells × arms). Check this BEFORE launching."},"organizationId":{"type":"string"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"slug":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillRef":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillSlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillName":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillPromise":{"type":"string"},"subjectKind":{"type":"string","enum":["skill","tools","addon","custom","benchmark","site"],"description":"What the study measures. New studies: 'custom': any composition of skills, tools and add-ons, with its own subjectName and promise — under a comparisonMode that declares its groups, each group's configuration is in `arms`. 'benchmark': a pinned version of a catalog benchmark definition (requires definitionVersionId); the corpus is copied frozen from that version. 'site': a website (requires siteDomain, and a comparisonMode that declares its groups); the tasks are things to get done there, and every run is read against the site: whether the agent opened a page of it, and whether the site refused the agent. Every comparisonMode new studies use applies to 'benchmark': 'multi_arm' runs each declared group's setup: 1 group reads as the agent leaderboard: no reference group and no comparison, and it seeds the public leaderboard — when bare, labelled 'as published' on a model-API agent and 'harness default' on a harness agent, and 'with my setup' when it carries one; 2-6 groups are compared over the planned contrasts (with 2, one comparison, oriented only when a group has role 'reference'); only a bare group seeds the public leaderboard. A group that carries a setup is not the benchmark's bare protocol, so it does not seed the public leaderboard. 'skill', 'tools' and 'addon' are kept for the studies that already exist: under a comparisonMode new studies use, one answers 422 study_subject_invalid, and a create body that names no comparisonMode (or a legacy one) and carries it is read as the legacy body it is and answers 422 comparison_mode_removed (docs/studies/comparison-modes/README.md maps each legacy design onto the new ones)."},"subjectName":{"anyOf":[{"type":"string"},{"type":"null"}]},"siteDomain":{"description":"The website a 'site' study is run against (its host); absent for every other subject kind.","type":"string"},"subjectLabel":{"type":"string"},"armConfig":{"type":"object","properties":{"baseline":{"description":"The baseline arm's run-payload delta. Omitted = a bare run (no skill, no extras).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false},"treatment":{"description":"The treatment arm's run-payload delta (the thing under test).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"additionalProperties":false,"description":"Frozen per-arm run-payload deltas of a fixed pair of arms (comparisonMode 'ab_vs_none' or 'ab_custom' or 'single'), kept for the studies that already exist: new studies carry each group's configuration in `arms`, and a create body that names no comparisonMode (or a legacy one) and carries it is read as the legacy body it is and answers 422 comparison_mode_removed (docs/studies/comparison-modes/README.md maps each legacy design onto the new ones)."},"comparisonMode":{"type":"string","enum":["ab_vs_none","ab_custom","single","multi_arm"],"description":"The study's design. New studies: 'multi_arm' (Groups): 1-6 groups declared in `arms`, each with its own label and configuration — 1 group reads as the agent leaderboard: no reference group and no comparison, and it seeds the public leaderboard — when bare, labelled 'as published' on a model-API agent and 'harness default' on a harness agent, and 'with my setup' when it carries one; 2-6 groups are compared over the planned contrasts (with 2, one comparison, oriented only when a group has role 'reference'); only a bare group seeds the public leaderboard; which pairs are judged is `contrasts`. 'ab_vs_none', 'ab_custom' and 'single' are kept for the studies that already exist: a create naming one answers 422 comparison_mode_removed (docs/studies/comparison-modes/README.md maps each legacy design onto the new ones)."},"subjectBackend":{"anyOf":[{"type":"string","enum":["model","harness"],"description":"What answers a FRAMEWORK benchmark's requests: 'harness' — each request is answered by the cell's agent harness (the model inside its own loop, with the arm's tools, add-ons and skills), one agent run per request; 'model' — the framework's own client calls the cell's model directly and the cell's harness is not measured. Resolved once per study and recorded on every run."},{"type":"null"}]},"environmentExecutionPolicy":{"type":"string","enum":["legacy-v1","inside-v1"]},"importedFrom":{"type":"string"},"baselineLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"treatmentLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"promiseMetrics":{"type":"array","items":{"type":"object","properties":{"metric":{"type":"string","enum":["total_tokens","output_tokens","cost_usd","duration_ms","num_turns","success_rate","completion_rate","goal_rate"]},"direction":{"type":"string","enum":["down","up"]},"label":{"type":"string","minLength":1,"maxLength":120}},"required":["metric","direction","label"],"additionalProperties":false}},"matrix":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1,"maxLength":50,"description":"Harness id — the valid set (and each one's models) is GET /catalog; cells are validated against it at create."},"model":{"type":"string","minLength":1,"maxLength":100,"description":"Model id as the harness accepts it — valid ids per harness/provider are in GET /catalog (e.g. 'claude-sonnet-5', 'gpt-5.5')."},"provider":{"description":"Provider qualifier for multi-provider harnesses (e.g. 'anthropic', 'openai', 'google'). Omit to use the harness default.","type":"string","minLength":1,"maxLength":32},"params":{"description":"Provider params pinned for this cell (temperature, reasoningEffort, maxOutputTokens, thinkingBudgetTokens). A cell that pins none runs the provider's own defaults. Offered only where the harness declares support — see GET /catalog.","type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"maxOutputTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reasoningEffort":{"type":"string","enum":["low","medium","high"]},"thinkingBudgetTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"codeMode":{"type":"string","enum":["auto","on","off"]},"toolSearch":{"type":"string","enum":["on","off","directory"]},"location":{"type":"string","pattern":"^[A-Z]{2}$"},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$"}},"additionalProperties":false}},"required":["harness","model"],"additionalProperties":false,"description":"One (harness, model, params) cell — every task runs its arm(s) on every cell."}},"lenses":{"minItems":1,"type":"array","items":{"type":"string","enum":["judge","evals","reference","framework","execution","verifier"]},"description":"Which grading lenses this study runs under. Defaults to ['judge'] at create and stays editable while status is 'ready' (frozen at launch, like task expectations/rubrics). 'judge': the LLM judge panel (rubric grades + blind pairwise). 'evals': the deterministic @ora/eval-checks engine, scored against each task's authored expectations. 'reference': the static-QA lens — an answer extracted from the response and matched against the task's own reference key, scored 1/0 (spec §6.4). 'framework': the benchmark's OWN framework (HELM today) reports the metrics, mapped verbatim into a section rather than re-averaged (SP2 Task 9). 'execution': the candidate's code is extracted from the response and run against the task's own tests inside a sandboxed, network-less runner image (SP2 Task 16)."},"judgeSupplementary":{"type":"boolean"},"taskCount":{"type":"number"},"variantsPerTask":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Semantics-preserving paraphrases sampled per task (1-5; mirrors the create body's variantsPerTask). Absent at create defaults to 1 — every response reports a concrete value, including studies created before sampling existed."},"repeats":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Identical re-runs sampled per condition (1-10; mirrors the create body's repeats). Absent at create defaults to 1 — every response reports a concrete value, including studies created before sampling existed."},"subset":{"anyOf":[{"type":"object","properties":{"count":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"seed":{"type":"string","minLength":1},"of":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["count","seed","of"],"additionalProperties":false},{"type":"null"}]},"status":{"type":"string"},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"preparation":{"anyOf":[{"type":"object","properties":{"since":{"type":"string"},"progressAt":{"type":"string"},"launchedBy":{"type":"object","properties":{"userId":{"type":"string"},"role":{"type":"string"}},"additionalProperties":false},"waitingOn":{"type":"array","items":{"type":"object","properties":{"imageKey":{"type":"string"},"buildId":{"type":"string"},"stage":{"type":"string","enum":["image","snapshot"]},"retry":{"type":"object","properties":{"failedAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maxAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"notBefore":{"type":"string"},"lastFailure":{"type":"string"}},"required":["failedAttempts","maxAttempts","notBefore","lastFailure"],"additionalProperties":false}},"required":["imageKey","buildId"],"additionalProperties":false}}},"required":["since","launchedBy","waitingOn"],"additionalProperties":false},{"type":"null"}]},"visibility":{"type":"string","enum":["private","org","link","public"],"description":"Who may read this study: private (creator + org owners) | org (the whole org) | link (anyone holding ?share=<token>, unlisted) | public (everyone, listed)."},"visibilityChangedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"visibilityChangedBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"shareToken":{"anyOf":[{"type":"string"},{"type":"null"}]},"lowSampleOverride":{"type":"boolean","description":"True iff this study was explicitly published below the sample-size floor (spec A6) — the published page shows a low-sample badge when set."},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"verdict":{},"definitionVersionId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The benchmark definition VERSION this study pinned at create — non-null only for subjectKind 'benchmark'. Its corpus was copied frozen from that version, so the study stays reproducible when the definition publishes a newer one."},"runnerKind":{"type":"string","enum":["ora-runs","batch-job"],"description":"Which executor fans this study out: 'ora-runs' (the ora runs spine) or 'batch-job' (a built runner image)."},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"liveUntil":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When this study's live stream stops being held open (null while it is still running). Attaching before it yields the remaining post-terminal frames (gradings, recordings, refined verdicts)."},"launch":{"description":"The launch record: planned / created runs, the runs it could not create (missing.retryable: launching again creates them; missing.refused: a re-launch is refused the same way) with one note per cell and group, and the fan-out's state (fanning_out | deferred | settled). Null for a study launched before records existed.","anyOf":[{"type":"object","properties":{"attempt":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"state":{"type":"string","enum":["fanning_out","deferred","settled"]},"startedAt":{"type":"string"},"progressAt":{"type":"string"},"planned":{"type":"integer","minimum":0,"maximum":9007199254740991},"created":{"type":"integer","minimum":0,"maximum":9007199254740991},"missing":{"type":"object","properties":{"retryable":{"type":"integer","minimum":0,"maximum":9007199254740991},"refused":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["retryable","refused"],"additionalProperties":false},"notes":{"type":"array","items":{"type":"string"}},"settledAt":{"type":"string"},"pacing":{"type":"object","properties":{"waiting":{"type":"integer","minimum":0,"maximum":9007199254740991},"nextUnit":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"nextWaveAt":{"type":"string"},"emptyWaves":{"type":"integer","minimum":0,"maximum":9007199254740991},"stopped":{"type":"string"}},"required":["waiting"],"additionalProperties":false},"recovery":{"type":"object","properties":{"state":{"type":"string","enum":["retrying","needs_attention"]},"attempts":{"type":"integer","minimum":0,"maximum":9007199254740991},"lastAttemptAt":{"type":"string"},"nextAttemptAt":{"type":"string"},"reason":{"type":"string"}},"required":["state","attempts"],"additionalProperties":false},"stopped":{"type":"object","properties":{"at":{"type":"string"},"notStarted":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["at","notStarted"],"additionalProperties":false}},"required":["attempt","state","startedAt","progressAt"],"additionalProperties":false},{"type":"null"}]},"pacing":{"description":"How fast this study may START its runs, as declared at create: maxInFlight (at most N of its runs unfinished at once) and/or startsPerMinute (at most N started in any 60 s). Its runs start in waves of whole comparison units (every group's run of one agent on one task sample, together); the launch record's `pacing` says how many wait for a later wave. Null = every run started at launch.","anyOf":[{"type":"object","properties":{"maxInFlight":{"description":"At most this many of the study's runs unfinished at once — queued, pending or running (1-500). The next runs start as earlier ones finish.","type":"integer","minimum":1,"maximum":500},"startsPerMinute":{"description":"At most this many of the study's runs started in any 60-second window (1-600).","type":"integer","minimum":1,"maximum":600}},"additionalProperties":false},{"type":"null"}]},"relaunchable":{"description":"True when this running study may be launched again: its launch record says planned runs are missing (missing.retryable > 0), or its fan-out stopped. POST …/launch then creates exactly the runs that do not exist.","type":"boolean"},"archivedAt":{"description":"When this study was archived; null while it is not. An archived study loses nothing: it leaves the default list, is read-only (409 study_archived), and is on no public page. Restoring it clears this.","anyOf":[{"type":"string"},{"type":"null"}]},"archivedBy":{"description":"The user who archived it. Null when an API key did, and while the study is not archived.","anyOf":[{"type":"string"},{"type":"null"}]},"arms":{"description":"A declared-arm study's groups, in position order.","type":"array","items":{"type":"object","properties":{"key":{"type":"string","description":"The group's run key (each of its runs' `arm`)."},"position":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"0-based display order."},"label":{"type":"string","maxLength":80,"description":"The group's display label. Never shown to the judge."},"role":{"type":"string","enum":["reference","peer"],"description":"'reference' marks the group the others are compared against; the rest are peers."},"payload":{"type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"brief":{"description":"Text the agent is given after the task, for every task this group runs. At most 600 characters. A group with a brief is a setup of its own, never the subject as published.","type":"string","minLength":1,"maxLength":600}},"additionalProperties":false,"description":"The group's run-payload delta ({} = the subject as published)."},"cells":{"description":"The group's OWN agents, when the study's groups each list theirs (cellPlan 'per_setup'); absent = the matrix.","type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1,"maxLength":50,"description":"Harness id — the valid set (and each one's models) is GET /catalog; cells are validated against it at create."},"model":{"type":"string","minLength":1,"maxLength":100,"description":"Model id as the harness accepts it — valid ids per harness/provider are in GET /catalog (e.g. 'claude-sonnet-5', 'gpt-5.5')."},"provider":{"description":"Provider qualifier for multi-provider harnesses (e.g. 'anthropic', 'openai', 'google'). Omit to use the harness default.","type":"string","minLength":1,"maxLength":32},"params":{"description":"Provider params pinned for this cell (temperature, reasoningEffort, maxOutputTokens, thinkingBudgetTokens). A cell that pins none runs the provider's own defaults. Offered only where the harness declares support — see GET /catalog.","type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"maxOutputTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reasoningEffort":{"type":"string","enum":["low","medium","high"]},"thinkingBudgetTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"codeMode":{"type":"string","enum":["auto","on","off"]},"toolSearch":{"type":"string","enum":["on","off","directory"]},"location":{"type":"string","pattern":"^[A-Z]{2}$"},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$"}},"additionalProperties":false}},"required":["harness","model"],"additionalProperties":false,"description":"One (harness, model, params) cell — every task runs its arm(s) on every cell."}},"skipTasks":{"description":"The tasks this group leaves out, by task number (1 = the first); absent = it runs every task.","type":"array","items":{"type":"integer","minimum":1,"maximum":9007199254740991}},"skills":{"description":"The group's skills as resolved when the study was created (absent for a study created before that existed).","type":"array","items":{"type":"object","properties":{"ref":{"type":"string","description":"The skill ref the group's selection names."},"name":{"type":"string","description":"The skill's name when the study was created."},"changedSinceCreate":{"description":"True when the skill's content now differs from what the study ran; absent when the reader cannot check it.","type":"boolean"}},"required":["ref","name"],"additionalProperties":false}},"addedAgents":{"description":"The agents this group gained after the study was created (`addAgents`), by position in `cells` — absent when none was added.","type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The agent's position in the group's `cells`."},"addedAt":{"type":"string","description":"When it was added (RFC 3339)."}},"required":["position","addedAt"],"additionalProperties":false}}},"required":["key","position","label","role","payload"],"additionalProperties":false}},"contrastPlan":{"description":"The study's planned-contrast policy.","type":"string","enum":["vs_reference","all_pairs","ladder"]},"cellPlan":{"description":"How the groups meet their agents: absent = every group runs the matrix; 'per_setup' = each its own.","type":"string","enum":["crossed","per_setup"]},"skillDisclosure":{"description":"Whether the published page names the groups' skills: absent = withheld (chosen at publish).","type":"string","enum":["withheld","named"]},"modeOptions":{"description":"The comparisonMode's private inputs.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"screens":{"description":"The run screens the study declares (frozen at launch, like lenses). Absent = none.","type":"array","items":{"type":"string","enum":["test_awareness","site_access"]}},"runCounting":{"description":"Which of the study's runs its numbers count (GET /studies/:id/run-counting). Absent = every run.","anyOf":[{"type":"object","properties":{"policy":{"type":"string","const":"hold_back_screened"},"screen":{"type":"string","enum":["test_awareness"],"description":"The screen whose verdicts decide. Today: 'test_awareness'."},"levels":{"minItems":1,"type":"array","items":{"type":"string","enum":["aware","influenced"]},"description":"The verdict levels held back. A run the screen could not judge is never held back."}},"required":["policy","screen","levels"],"additionalProperties":false,"description":"Which of the study's runs its numbers count. Absent or null = every run. 'hold_back_screened' leaves out the runs the named screen flagged at one of `levels`: each is a missing measurement with a named reason, never a fail, and the count held back is stated beside every figure."},{"type":"null"}]},"seriesKey":{"description":"The series the study belongs to (set at create). Absent = none.","anyOf":[{"type":"string","pattern":"^[a-z0-9][a-z0-9._/-]{0,119}$"},{"type":"null"}]},"ref":{"description":"Where the study was taken: commit, branch, pull request. Absent = not recorded.","anyOf":[{"type":"object","properties":{"commit":{"description":"The commit the study was taken at (a SHA).","type":"string","minLength":1,"maxLength":64},"branch":{"description":"The branch it was taken on, e.g. 'main'. A gate's series baseline filters on it.","type":"string","minLength":1,"maxLength":200},"pr":{"description":"The pull request number, when it was taken for one.","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"url":{"description":"A link back to the change (the commit or pull request page).","type":"string","maxLength":500,"format":"uri"}},"additionalProperties":false},{"type":"null"}]},"gradingRevision":{"description":"The study's grading revision, when its checks were revised after its runs finished. Absent = never revised.","type":"integer","minimum":2,"maximum":9007199254740991},"gradingRevisedAt":{"description":"When the checks were last revised. Later than `publishedAt` = the grades changed after publication.","anyOf":[{"type":"string"},{"type":"null"}]},"rehearsal":{"description":"The study is a rehearsal: the smallest real run of a design, made by POST /studies/rehearsals. Absent = an ordinary study.","type":"boolean","const":true},"rehearsalMode":{"description":"How a rehearsal runs: 'live' (the real agents), or 'setup' / 'mock' (no agent is started). Absent on every other study.","type":"string"},"behaviors":{"description":"The custom behaviors the study declares (frozen at launch, like lenses). A run's verdict on one is in its `screens` under `b_<key>`. Absent = none.","type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{1,29}$","description":"A short id for the behavior, lowercase snake (`deleted_files`). Its verdicts are stored and queried under `b_<key>`."},"name":{"type":"string","minLength":1,"maxLength":80,"description":"What a reader sees: \"Deleted files it was not asked to\"."},"question":{"type":"string","minLength":10,"maxLength":400,"description":"One yes-or-no question about a single run that a judge can answer from its trace: \"Did the agent …?\"."},"version":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The version of the behavior's wording. A verdict and a review belong to the version they were made on."}},"required":["key","name","question","version"],"additionalProperties":false}},"stepTimeLimitSeconds":{"description":"How long each step of a task with steps may take, in seconds, as declared at create. A step still running after it ends the run, whose reason names the step and the limit. Null or absent = no per-step limit.","anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["id","plannedRunCount","organizationId","createdBy","name","slug","description","skillRef","skillSlug","skillName","skillPromise","subjectKind","subjectName","subjectLabel","armConfig","comparisonMode","subjectBackend","baselineLabel","treatmentLabel","promiseMetrics","matrix","lenses","taskCount","variantsPerTask","repeats","subset","status","error","visibility","lowSampleOverride","publishedAt","verdict","definitionVersionId","runnerKind","createdAt","updatedAt","liveUntil"],"additionalProperties":false},"streamUrl":{"type":"string","description":"The study's live SSE stream, relative to this API origin. Frames: status (draft/generating/ready/running/completed/failed — terminal closes the stream), run (per-run fact updates), grading, published/unpublished. `ora … --watch` follows it automatically."},"warnings":{"description":"'evals'-lens create only: (harness, check kind) pairs the capability roster cannot measure (deny-by-default) — that cell will abstain at grading time rather than pass/fail. Non-blocking; absent/[] means nothing was flagged. Also raised, whatever the study's lenses, for a group that runs with web tools off on an agent whose trace cannot show every way it reaches the web (kind 'web_fetched'): that agent's runs are screened and answered 'not measured'.","type":"array","items":{"anyOf":[{"type":"object","properties":{"harness":{"type":"string"},"kind":{"type":"string"}},"required":["harness","kind"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"design_aggregate_budget"},"detail":{"type":"string","description":"Which setups exceed the leaderboard's work budget, on which benchmark."}},"required":["type","detail"],"additionalProperties":false,"description":"A declared-arm study pinning a leaderboard benchmark: its setups (each group on each agent it runs) alone can take the benchmark off the cross-benchmark leaderboard (`within_budget`) once its runs are graded and published."}]}}},"required":["study","streamUrl"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"study_invalid_state — only a completed study regrades — or study_archived: an imported study's results never change","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:write","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/studies/{id}/rehearsal":{"get":{"operationId":"study.rehearsalReport","summary":"Read what a rehearsal proved","description":"Per group, each check's answer with a sentence a person can act on: did the runs finish, did ora's own infrastructure kill one, did the agent finish, did it USE the group's setup (a finished run that never called the group's tools is a failure), did a run of a group with web tools off reach the web anyway (web tools off does not block the network), did grading produce a grade. Recomputed from the runs on every read.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Read what a rehearsal proved","content":{"application/json":{"schema":{"type":"object","properties":{"studyId":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","description":"The rehearsal study's own status."},"mode":{"type":"string","description":"The mode it ran in. It decides which checks the report asks."},"state":{"type":"string","enum":["pending","ready","not_ready"],"description":"`ready` only when every group is; `not_ready` as soon as one check has failed; else `pending`."},"groups":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"state":{"type":"string","enum":["pending","ready","not_ready"]},"checks":{"type":"array","items":{"type":"object","properties":{"check":{"type":"string","description":"A live rehearsal: runs_finished, no_infra_failure, agent_finished, setup_used (only for a group that carries a setup; asked of each agent the group rehearsed, and it passes only when every one of them used the setup: the detail names the agent that did not), web_tools_off (only for a group that runs with web tools off: did a rehearsed run reach the web anyway), graded. One that starts no agent: runs_finished, environment_booted, agent_not_started, and graded in 'mock'."},"answer":{"type":"string","enum":["pass","fail","pending","unknown"],"description":"`unknown` = this agent's trace cannot show it (for web_tools_off also: no rehearsed task needs the web, so nothing could show the tools were off); it is never counted as a pass."},"detail":{"type":"string","description":"One sentence a person can act on."}},"required":["check","answer","detail"],"additionalProperties":false}}},"required":["key","label","state","checks"],"additionalProperties":false}}},"required":["studyId","name","status","mode","state","groups"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Study unavailable to the caller","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"study_not_a_rehearsal","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:read","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/studies/{id}/rerun-attempts":{"get":{"operationId":"study.rerunAttempts","summary":"The study's re-run ledger: every in-place re-dispatch of one of its jobs — the run it replaced and how that run ended, why it was re-run (with a declared re-run's evidence), the run it created and whether it dispatched. Oldest first.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The study's uuid (from create or list)."},"example":"1f7e4d1c-4b2a-4f3e-9d8c-5a6b7c8d9e0f"}],"responses":{"200":{"description":"The study's re-run ledger: every in-place re-dispatch of one of its jobs — the run it replaced and how that run ended, why it was re-run (with a declared re-run's evidence), the run it created and whether it dispatched. Oldest first.","content":{"application/json":{"schema":{"type":"object","properties":{"studyId":{"type":"string"},"attempts":{"type":"array","items":{"type":"object","properties":{"taskId":{"type":"string"},"variantIndex":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"repeatIndex":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"arm":{"type":"string"},"harness":{"type":"string"},"model":{"type":"string"},"paramsKey":{"type":"string"},"attempt":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The job's re-dispatch ordinal."},"cause":{"type":"string","enum":["infra_failure","missing","declared_infra"]},"evidence":{"anyOf":[{"type":"string"},{"type":"null"}]},"replacedRunId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The run this re-dispatch replaced (still in the run history)."},"replacedStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"replacedOutcomeReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"replacedStartedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"replacedFinishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"runId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The run it created — null when none was created."},"outcome":{"type":"string","enum":["dispatched","failed"]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"requestedBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["taskId","variantIndex","repeatIndex","arm","harness","model","paramsKey","attempt","cause","evidence","replacedRunId","replacedStatus","replacedOutcomeReason","replacedStartedAt","replacedFinishedAt","runId","outcome","error","requestedBy","createdAt"],"additionalProperties":false},"description":"The study's re-run ledger, oldest first: every re-dispatch, what it replaced and why."}},"required":["studyId","attempts"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"study_not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:read","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/studies/{id}/rerun-infra-failures":{"post":{"operationId":"study.rerunInfraFailures","summary":"Re-run, in place, the jobs of a running or completed-but-unpublished study whose run ora's own infrastructure killed (or that the launch never created): each new run takes its job's place, the failed run stays in the record, at most 2 re-runs per job, never while the job's run is still running. A completed study re-opens until its re-runs finish and are graded. Synchronous; dryRun answers the plan.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The study's uuid (from create or list)."},"example":"1f7e4d1c-4b2a-4f3e-9d8c-5a6b7c8d9e0f"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"default":{},"type":"object","properties":{"dryRun":{"description":"Answer what WOULD be re-run, dispatching and writing nothing (default false).","type":"boolean"},"limit":{"description":"The most jobs this call dispatches (default 200, or every declared run); the rest are counted in `skipped.overLimit` for the next call.","type":"integer","minimum":1,"maximum":500},"declared":{"description":"The DECLARED re-run: exactly these runs are re-run in place (cause declared_infra), each with its evidence — runs ora's own predicate does not flag. Absent: ora's own infra failures and never-created jobs.","minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"runId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"A current run of this study (any terminal status) the caller's audit classes as infra."},"evidence":{"type":"string","minLength":1,"maxLength":2000,"description":"Why the run tested nothing — the audit's rule and evidence. Kept on the re-run ledger beside the replaced run."}},"required":["runId","evidence"],"additionalProperties":false}}},"additionalProperties":false},"example":{"dryRun":true}}}},"responses":{"200":{"description":"Re-run, in place, the jobs of a running or completed-but-unpublished study whose run ora's own infrastructure killed (or that the launch never created): each new run takes its job's place, the failed run stays in the record, at most 2 re-runs per job, never while the job's run is still running. A completed study re-opens until its re-runs finish and are graded. Synchronous; dryRun answers the plan.","content":{"application/json":{"schema":{"type":"object","properties":{"studyId":{"type":"string"},"status":{"type":"string","description":"The study's status AFTER the call — 'running' while its re-runs execute."},"dryRun":{"type":"boolean"},"reopened":{"type":"boolean","description":"True when a COMPLETED study went back to 'running' for its re-runs: its summary was cleared, and completion, grading and the summary happen again once they finish."},"maxAttemptsPerJob":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many re-runs one job may have."},"jobs":{"type":"array","items":{"type":"object","properties":{"taskId":{"type":"string","description":"The job's task."},"variantIndex":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"repeatIndex":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"arm":{"type":"string","description":"The job's group (arm) key."},"harness":{"type":"string"},"model":{"type":"string"},"paramsKey":{"type":"string","description":"The cell's pinned-params identity — empty when the cell pins none."},"cause":{"type":"string","enum":["infra_failure","missing","declared_infra"],"description":"infra_failure: the job's run was killed by ora's own infrastructure; missing: the launcher never created it; declared_infra: the caller declared the run infra, with evidence."},"evidence":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A declared re-run's evidence — null for ora's own causes."},"attempt":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"This re-dispatch's ordinal for the job (1 = its first re-run)."},"replacedRunId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The infra-failed run this replaces — it stays in the run history and the study's re-run ledger. Null for a missing job."},"runId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The new run — null when it could not be created."},"outcome":{"type":"string","enum":["planned","dispatched","failed"],"description":"planned: a dry run (or a launch still waiting on its environment); dispatched: the new run replaced the job's; failed: see `error`."},"error":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["taskId","variantIndex","repeatIndex","arm","harness","model","paramsKey","cause","evidence","attempt","replacedRunId","runId","outcome","error"],"additionalProperties":false},"description":"Every job this call re-ran (or would re-run), in launch order."},"skipped":{"type":"object","properties":{"live":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Jobs whose run is still running — never two live attempts per job."},"exhausted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Infra-failed or missing jobs that used up their re-runs."},"missingDeferred":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Jobs with no run while the launch may still be creating runs (its newest run is under 15 minutes old)."},"overLimit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Eligible jobs past this call's `limit` — call again."}},"required":["live","exhausted","missingDeferred","overLimit"],"additionalProperties":false,"description":"Jobs NOT re-run, by reason. Successes and the agent's own failures are results and are never re-run."},"notes":{"type":"array","items":{"type":"string"},"description":"The fan-out's own notes (a refused create, an environment still being prepared)."},"byGroup":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"dispatched":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"planned":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["dispatched","failed","planned"],"additionalProperties":false},"description":"This call's jobs per group (arm key): a contrast's two sides re-run apart are visible at a glance."},"declaredRejected":{"type":"array","items":{"type":"object","properties":{"runId":{"type":"string"},"reason":{"type":"string"}},"required":["runId","reason"],"additionalProperties":false},"description":"Declared runs NOT re-run, each with why (not a current run of this study, still running, out of re-runs, past the limit). Empty without `declared`."}},"required":["studyId","status","dryRun","reopened","maxAttemptsPerJob","jobs","skipped","notes","byGroup","declaredRejected"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"study_not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"study_invalid_state (only a running or completed study re-runs), study_published (unpublish it first — a published page's numbers change only through an unpublish), study_rerun_in_progress (another re-run of this study is dispatching), study_stopped (its owner stopped it: a stopped study starts no more runs), or study_archived (an imported study's results never change)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:write","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/studies/{id}/restore":{"post":{"operationId":"study.restore","summary":"Restore an archived study: it returns to the default list and can be changed again. It comes back unpublished (archiving a shared study unpublishes it first); publishing again is a separate, deliberate call. Restoring a study that is not archived succeeds and changes nothing.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The study's uuid (from create or list)."},"example":"1f7e4d1c-4b2a-4f3e-9d8c-5a6b7c8d9e0f"}],"responses":{"200":{"description":"Restore an archived study: it returns to the default list and can be changed again. It comes back unpublished (archiving a shared study unpublishes it first); publishing again is a separate, deliberate call. Restoring a study that is not archived succeeds and changes nothing.","content":{"application/json":{"schema":{"type":"object","properties":{"study":{"type":"object","properties":{"id":{"type":"string"},"executiveSummary":{"anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryDraft":{"description":"A PUBLISHED study's summary held for review, never shown on the public page: what `studies.regenerateSummary` writes on a published study (and the first summary of a published study nothing asked for). `studies.publish` makes exactly this text the published `executiveSummary`, while the readout it was written from is still current; otherwise publish regenerates. Absent where the product has no review drafts.","anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryRequest":{"description":"A summary an explicit act asked for and not yet written: 'live' — a publish, a re-open, or a regenerate on an UNPUBLISHED completed study owes the summary in place (the public page, once published); 'draft' — a regenerate on a published study owes the review draft one. Null once the request is answered — poll `studies.get` until it is: by the written summary (`executiveSummary` or `executiveSummaryDraft`), by a later act that superseded it (a publish, a newer regenerate — its own write answers it), or as unavailable (`executiveSummaryUnavailableAt` set). While the automatic retries back off after a failed attempt it stays pending. Absent where the product has no review drafts.","anyOf":[{"type":"string","enum":["live","draft"]},{"type":"null"}]},"executiveSummaryRequestedAt":{"description":"When `executiveSummaryRequest` was made.","anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryUnavailableAt":{"description":"When the last summary request was answered as UNAVAILABLE: every attempt the retry policy allows on the study's readout failed, so no summary will be written for it until the readout changes (runs added, a re-run, a regrade) or someone regenerates or publishes again. Null otherwise; cleared by a new request or a written summary. Absent where the product has no review drafts.","anyOf":[{"type":"string"},{"type":"null"}]},"plannedRunCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The exact number of runs `launch` will fan out (taskCount × variantsPerTask × repeats × matrix cells × arms). Check this BEFORE launching."},"organizationId":{"type":"string"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"slug":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillRef":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillSlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillName":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillPromise":{"type":"string"},"subjectKind":{"type":"string","enum":["skill","tools","addon","custom","benchmark","site"],"description":"What the study measures. New studies: 'custom': any composition of skills, tools and add-ons, with its own subjectName and promise — under a comparisonMode that declares its groups, each group's configuration is in `arms`. 'benchmark': a pinned version of a catalog benchmark definition (requires definitionVersionId); the corpus is copied frozen from that version. 'site': a website (requires siteDomain, and a comparisonMode that declares its groups); the tasks are things to get done there, and every run is read against the site: whether the agent opened a page of it, and whether the site refused the agent. Every comparisonMode new studies use applies to 'benchmark': 'multi_arm' runs each declared group's setup: 1 group reads as the agent leaderboard: no reference group and no comparison, and it seeds the public leaderboard — when bare, labelled 'as published' on a model-API agent and 'harness default' on a harness agent, and 'with my setup' when it carries one; 2-6 groups are compared over the planned contrasts (with 2, one comparison, oriented only when a group has role 'reference'); only a bare group seeds the public leaderboard. A group that carries a setup is not the benchmark's bare protocol, so it does not seed the public leaderboard. 'skill', 'tools' and 'addon' are kept for the studies that already exist: under a comparisonMode new studies use, one answers 422 study_subject_invalid, and a create body that names no comparisonMode (or a legacy one) and carries it is read as the legacy body it is and answers 422 comparison_mode_removed (docs/studies/comparison-modes/README.md maps each legacy design onto the new ones)."},"subjectName":{"anyOf":[{"type":"string"},{"type":"null"}]},"siteDomain":{"description":"The website a 'site' study is run against (its host); absent for every other subject kind.","type":"string"},"subjectLabel":{"type":"string"},"armConfig":{"type":"object","properties":{"baseline":{"description":"The baseline arm's run-payload delta. Omitted = a bare run (no skill, no extras).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false},"treatment":{"description":"The treatment arm's run-payload delta (the thing under test).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"additionalProperties":false,"description":"Frozen per-arm run-payload deltas of a fixed pair of arms (comparisonMode 'ab_vs_none' or 'ab_custom' or 'single'), kept for the studies that already exist: new studies carry each group's configuration in `arms`, and a create body that names no comparisonMode (or a legacy one) and carries it is read as the legacy body it is and answers 422 comparison_mode_removed (docs/studies/comparison-modes/README.md maps each legacy design onto the new ones)."},"comparisonMode":{"type":"string","enum":["ab_vs_none","ab_custom","single","multi_arm"],"description":"The study's design. New studies: 'multi_arm' (Groups): 1-6 groups declared in `arms`, each with its own label and configuration — 1 group reads as the agent leaderboard: no reference group and no comparison, and it seeds the public leaderboard — when bare, labelled 'as published' on a model-API agent and 'harness default' on a harness agent, and 'with my setup' when it carries one; 2-6 groups are compared over the planned contrasts (with 2, one comparison, oriented only when a group has role 'reference'); only a bare group seeds the public leaderboard; which pairs are judged is `contrasts`. 'ab_vs_none', 'ab_custom' and 'single' are kept for the studies that already exist: a create naming one answers 422 comparison_mode_removed (docs/studies/comparison-modes/README.md maps each legacy design onto the new ones)."},"subjectBackend":{"anyOf":[{"type":"string","enum":["model","harness"],"description":"What answers a FRAMEWORK benchmark's requests: 'harness' — each request is answered by the cell's agent harness (the model inside its own loop, with the arm's tools, add-ons and skills), one agent run per request; 'model' — the framework's own client calls the cell's model directly and the cell's harness is not measured. Resolved once per study and recorded on every run."},{"type":"null"}]},"environmentExecutionPolicy":{"type":"string","enum":["legacy-v1","inside-v1"]},"importedFrom":{"type":"string"},"baselineLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"treatmentLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"promiseMetrics":{"type":"array","items":{"type":"object","properties":{"metric":{"type":"string","enum":["total_tokens","output_tokens","cost_usd","duration_ms","num_turns","success_rate","completion_rate","goal_rate"]},"direction":{"type":"string","enum":["down","up"]},"label":{"type":"string","minLength":1,"maxLength":120}},"required":["metric","direction","label"],"additionalProperties":false}},"matrix":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1,"maxLength":50,"description":"Harness id — the valid set (and each one's models) is GET /catalog; cells are validated against it at create."},"model":{"type":"string","minLength":1,"maxLength":100,"description":"Model id as the harness accepts it — valid ids per harness/provider are in GET /catalog (e.g. 'claude-sonnet-5', 'gpt-5.5')."},"provider":{"description":"Provider qualifier for multi-provider harnesses (e.g. 'anthropic', 'openai', 'google'). Omit to use the harness default.","type":"string","minLength":1,"maxLength":32},"params":{"description":"Provider params pinned for this cell (temperature, reasoningEffort, maxOutputTokens, thinkingBudgetTokens). A cell that pins none runs the provider's own defaults. Offered only where the harness declares support — see GET /catalog.","type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"maxOutputTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reasoningEffort":{"type":"string","enum":["low","medium","high"]},"thinkingBudgetTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"codeMode":{"type":"string","enum":["auto","on","off"]},"toolSearch":{"type":"string","enum":["on","off","directory"]},"location":{"type":"string","pattern":"^[A-Z]{2}$"},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$"}},"additionalProperties":false}},"required":["harness","model"],"additionalProperties":false,"description":"One (harness, model, params) cell — every task runs its arm(s) on every cell."}},"lenses":{"minItems":1,"type":"array","items":{"type":"string","enum":["judge","evals","reference","framework","execution","verifier"]},"description":"Which grading lenses this study runs under. Defaults to ['judge'] at create and stays editable while status is 'ready' (frozen at launch, like task expectations/rubrics). 'judge': the LLM judge panel (rubric grades + blind pairwise). 'evals': the deterministic @ora/eval-checks engine, scored against each task's authored expectations. 'reference': the static-QA lens — an answer extracted from the response and matched against the task's own reference key, scored 1/0 (spec §6.4). 'framework': the benchmark's OWN framework (HELM today) reports the metrics, mapped verbatim into a section rather than re-averaged (SP2 Task 9). 'execution': the candidate's code is extracted from the response and run against the task's own tests inside a sandboxed, network-less runner image (SP2 Task 16)."},"judgeSupplementary":{"type":"boolean"},"taskCount":{"type":"number"},"variantsPerTask":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Semantics-preserving paraphrases sampled per task (1-5; mirrors the create body's variantsPerTask). Absent at create defaults to 1 — every response reports a concrete value, including studies created before sampling existed."},"repeats":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Identical re-runs sampled per condition (1-10; mirrors the create body's repeats). Absent at create defaults to 1 — every response reports a concrete value, including studies created before sampling existed."},"subset":{"anyOf":[{"type":"object","properties":{"count":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"seed":{"type":"string","minLength":1},"of":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["count","seed","of"],"additionalProperties":false},{"type":"null"}]},"status":{"type":"string"},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"preparation":{"anyOf":[{"type":"object","properties":{"since":{"type":"string"},"progressAt":{"type":"string"},"launchedBy":{"type":"object","properties":{"userId":{"type":"string"},"role":{"type":"string"}},"additionalProperties":false},"waitingOn":{"type":"array","items":{"type":"object","properties":{"imageKey":{"type":"string"},"buildId":{"type":"string"},"stage":{"type":"string","enum":["image","snapshot"]},"retry":{"type":"object","properties":{"failedAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maxAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"notBefore":{"type":"string"},"lastFailure":{"type":"string"}},"required":["failedAttempts","maxAttempts","notBefore","lastFailure"],"additionalProperties":false}},"required":["imageKey","buildId"],"additionalProperties":false}}},"required":["since","launchedBy","waitingOn"],"additionalProperties":false},{"type":"null"}]},"visibility":{"type":"string","enum":["private","org","link","public"],"description":"Who may read this study: private (creator + org owners) | org (the whole org) | link (anyone holding ?share=<token>, unlisted) | public (everyone, listed)."},"visibilityChangedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"visibilityChangedBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"shareToken":{"anyOf":[{"type":"string"},{"type":"null"}]},"lowSampleOverride":{"type":"boolean","description":"True iff this study was explicitly published below the sample-size floor (spec A6) — the published page shows a low-sample badge when set."},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"verdict":{},"definitionVersionId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The benchmark definition VERSION this study pinned at create — non-null only for subjectKind 'benchmark'. Its corpus was copied frozen from that version, so the study stays reproducible when the definition publishes a newer one."},"runnerKind":{"type":"string","enum":["ora-runs","batch-job"],"description":"Which executor fans this study out: 'ora-runs' (the ora runs spine) or 'batch-job' (a built runner image)."},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"liveUntil":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When this study's live stream stops being held open (null while it is still running). Attaching before it yields the remaining post-terminal frames (gradings, recordings, refined verdicts)."},"launch":{"description":"The launch record: planned / created runs, the runs it could not create (missing.retryable: launching again creates them; missing.refused: a re-launch is refused the same way) with one note per cell and group, and the fan-out's state (fanning_out | deferred | settled). Null for a study launched before records existed.","anyOf":[{"type":"object","properties":{"attempt":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"state":{"type":"string","enum":["fanning_out","deferred","settled"]},"startedAt":{"type":"string"},"progressAt":{"type":"string"},"planned":{"type":"integer","minimum":0,"maximum":9007199254740991},"created":{"type":"integer","minimum":0,"maximum":9007199254740991},"missing":{"type":"object","properties":{"retryable":{"type":"integer","minimum":0,"maximum":9007199254740991},"refused":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["retryable","refused"],"additionalProperties":false},"notes":{"type":"array","items":{"type":"string"}},"settledAt":{"type":"string"},"pacing":{"type":"object","properties":{"waiting":{"type":"integer","minimum":0,"maximum":9007199254740991},"nextUnit":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"nextWaveAt":{"type":"string"},"emptyWaves":{"type":"integer","minimum":0,"maximum":9007199254740991},"stopped":{"type":"string"}},"required":["waiting"],"additionalProperties":false},"recovery":{"type":"object","properties":{"state":{"type":"string","enum":["retrying","needs_attention"]},"attempts":{"type":"integer","minimum":0,"maximum":9007199254740991},"lastAttemptAt":{"type":"string"},"nextAttemptAt":{"type":"string"},"reason":{"type":"string"}},"required":["state","attempts"],"additionalProperties":false},"stopped":{"type":"object","properties":{"at":{"type":"string"},"notStarted":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["at","notStarted"],"additionalProperties":false}},"required":["attempt","state","startedAt","progressAt"],"additionalProperties":false},{"type":"null"}]},"pacing":{"description":"How fast this study may START its runs, as declared at create: maxInFlight (at most N of its runs unfinished at once) and/or startsPerMinute (at most N started in any 60 s). Its runs start in waves of whole comparison units (every group's run of one agent on one task sample, together); the launch record's `pacing` says how many wait for a later wave. Null = every run started at launch.","anyOf":[{"type":"object","properties":{"maxInFlight":{"description":"At most this many of the study's runs unfinished at once — queued, pending or running (1-500). The next runs start as earlier ones finish.","type":"integer","minimum":1,"maximum":500},"startsPerMinute":{"description":"At most this many of the study's runs started in any 60-second window (1-600).","type":"integer","minimum":1,"maximum":600}},"additionalProperties":false},{"type":"null"}]},"relaunchable":{"description":"True when this running study may be launched again: its launch record says planned runs are missing (missing.retryable > 0), or its fan-out stopped. POST …/launch then creates exactly the runs that do not exist.","type":"boolean"},"archivedAt":{"description":"When this study was archived; null while it is not. An archived study loses nothing: it leaves the default list, is read-only (409 study_archived), and is on no public page. Restoring it clears this.","anyOf":[{"type":"string"},{"type":"null"}]},"archivedBy":{"description":"The user who archived it. Null when an API key did, and while the study is not archived.","anyOf":[{"type":"string"},{"type":"null"}]},"arms":{"description":"A declared-arm study's groups, in position order.","type":"array","items":{"type":"object","properties":{"key":{"type":"string","description":"The group's run key (each of its runs' `arm`)."},"position":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"0-based display order."},"label":{"type":"string","maxLength":80,"description":"The group's display label. Never shown to the judge."},"role":{"type":"string","enum":["reference","peer"],"description":"'reference' marks the group the others are compared against; the rest are peers."},"payload":{"type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"brief":{"description":"Text the agent is given after the task, for every task this group runs. At most 600 characters. A group with a brief is a setup of its own, never the subject as published.","type":"string","minLength":1,"maxLength":600}},"additionalProperties":false,"description":"The group's run-payload delta ({} = the subject as published)."},"cells":{"description":"The group's OWN agents, when the study's groups each list theirs (cellPlan 'per_setup'); absent = the matrix.","type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1,"maxLength":50,"description":"Harness id — the valid set (and each one's models) is GET /catalog; cells are validated against it at create."},"model":{"type":"string","minLength":1,"maxLength":100,"description":"Model id as the harness accepts it — valid ids per harness/provider are in GET /catalog (e.g. 'claude-sonnet-5', 'gpt-5.5')."},"provider":{"description":"Provider qualifier for multi-provider harnesses (e.g. 'anthropic', 'openai', 'google'). Omit to use the harness default.","type":"string","minLength":1,"maxLength":32},"params":{"description":"Provider params pinned for this cell (temperature, reasoningEffort, maxOutputTokens, thinkingBudgetTokens). A cell that pins none runs the provider's own defaults. Offered only where the harness declares support — see GET /catalog.","type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"maxOutputTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reasoningEffort":{"type":"string","enum":["low","medium","high"]},"thinkingBudgetTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"codeMode":{"type":"string","enum":["auto","on","off"]},"toolSearch":{"type":"string","enum":["on","off","directory"]},"location":{"type":"string","pattern":"^[A-Z]{2}$"},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$"}},"additionalProperties":false}},"required":["harness","model"],"additionalProperties":false,"description":"One (harness, model, params) cell — every task runs its arm(s) on every cell."}},"skipTasks":{"description":"The tasks this group leaves out, by task number (1 = the first); absent = it runs every task.","type":"array","items":{"type":"integer","minimum":1,"maximum":9007199254740991}},"skills":{"description":"The group's skills as resolved when the study was created (absent for a study created before that existed).","type":"array","items":{"type":"object","properties":{"ref":{"type":"string","description":"The skill ref the group's selection names."},"name":{"type":"string","description":"The skill's name when the study was created."},"changedSinceCreate":{"description":"True when the skill's content now differs from what the study ran; absent when the reader cannot check it.","type":"boolean"}},"required":["ref","name"],"additionalProperties":false}},"addedAgents":{"description":"The agents this group gained after the study was created (`addAgents`), by position in `cells` — absent when none was added.","type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The agent's position in the group's `cells`."},"addedAt":{"type":"string","description":"When it was added (RFC 3339)."}},"required":["position","addedAt"],"additionalProperties":false}}},"required":["key","position","label","role","payload"],"additionalProperties":false}},"contrastPlan":{"description":"The study's planned-contrast policy.","type":"string","enum":["vs_reference","all_pairs","ladder"]},"cellPlan":{"description":"How the groups meet their agents: absent = every group runs the matrix; 'per_setup' = each its own.","type":"string","enum":["crossed","per_setup"]},"skillDisclosure":{"description":"Whether the published page names the groups' skills: absent = withheld (chosen at publish).","type":"string","enum":["withheld","named"]},"modeOptions":{"description":"The comparisonMode's private inputs.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"screens":{"description":"The run screens the study declares (frozen at launch, like lenses). Absent = none.","type":"array","items":{"type":"string","enum":["test_awareness","site_access"]}},"runCounting":{"description":"Which of the study's runs its numbers count (GET /studies/:id/run-counting). Absent = every run.","anyOf":[{"type":"object","properties":{"policy":{"type":"string","const":"hold_back_screened"},"screen":{"type":"string","enum":["test_awareness"],"description":"The screen whose verdicts decide. Today: 'test_awareness'."},"levels":{"minItems":1,"type":"array","items":{"type":"string","enum":["aware","influenced"]},"description":"The verdict levels held back. A run the screen could not judge is never held back."}},"required":["policy","screen","levels"],"additionalProperties":false,"description":"Which of the study's runs its numbers count. Absent or null = every run. 'hold_back_screened' leaves out the runs the named screen flagged at one of `levels`: each is a missing measurement with a named reason, never a fail, and the count held back is stated beside every figure."},{"type":"null"}]},"seriesKey":{"description":"The series the study belongs to (set at create). Absent = none.","anyOf":[{"type":"string","pattern":"^[a-z0-9][a-z0-9._/-]{0,119}$"},{"type":"null"}]},"ref":{"description":"Where the study was taken: commit, branch, pull request. Absent = not recorded.","anyOf":[{"type":"object","properties":{"commit":{"description":"The commit the study was taken at (a SHA).","type":"string","minLength":1,"maxLength":64},"branch":{"description":"The branch it was taken on, e.g. 'main'. A gate's series baseline filters on it.","type":"string","minLength":1,"maxLength":200},"pr":{"description":"The pull request number, when it was taken for one.","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"url":{"description":"A link back to the change (the commit or pull request page).","type":"string","maxLength":500,"format":"uri"}},"additionalProperties":false},{"type":"null"}]},"gradingRevision":{"description":"The study's grading revision, when its checks were revised after its runs finished. Absent = never revised.","type":"integer","minimum":2,"maximum":9007199254740991},"gradingRevisedAt":{"description":"When the checks were last revised. Later than `publishedAt` = the grades changed after publication.","anyOf":[{"type":"string"},{"type":"null"}]},"rehearsal":{"description":"The study is a rehearsal: the smallest real run of a design, made by POST /studies/rehearsals. Absent = an ordinary study.","type":"boolean","const":true},"rehearsalMode":{"description":"How a rehearsal runs: 'live' (the real agents), or 'setup' / 'mock' (no agent is started). Absent on every other study.","type":"string"},"behaviors":{"description":"The custom behaviors the study declares (frozen at launch, like lenses). A run's verdict on one is in its `screens` under `b_<key>`. Absent = none.","type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{1,29}$","description":"A short id for the behavior, lowercase snake (`deleted_files`). Its verdicts are stored and queried under `b_<key>`."},"name":{"type":"string","minLength":1,"maxLength":80,"description":"What a reader sees: \"Deleted files it was not asked to\"."},"question":{"type":"string","minLength":10,"maxLength":400,"description":"One yes-or-no question about a single run that a judge can answer from its trace: \"Did the agent …?\"."},"version":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The version of the behavior's wording. A verdict and a review belong to the version they were made on."}},"required":["key","name","question","version"],"additionalProperties":false}},"stepTimeLimitSeconds":{"description":"How long each step of a task with steps may take, in seconds, as declared at create. A step still running after it ends the run, whose reason names the step and the limit. Null or absent = no per-step limit.","anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["id","plannedRunCount","organizationId","createdBy","name","slug","description","skillRef","skillSlug","skillName","skillPromise","subjectKind","subjectName","subjectLabel","armConfig","comparisonMode","subjectBackend","baselineLabel","treatmentLabel","promiseMetrics","matrix","lenses","taskCount","variantsPerTask","repeats","subset","status","error","visibility","lowSampleOverride","publishedAt","verdict","definitionVersionId","runnerKind","createdAt","updatedAt","liveUntil"],"additionalProperties":false}},"required":["study"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"study_not_found — no study with this id that the caller may open","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:write","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/studies/{id}/retests":{"get":{"operationId":"study.retests","summary":"List a study's re-checks","description":"Every re-check request of the study, newest first: its kind, why, who and when, each re-check run with the verdict it recorded, and what the request found (verdicts filled, or how many re-checks agreed with the run's own).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"List a study's re-checks","content":{"application/json":{"schema":{"type":"object","properties":{"retests":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["fill","audit"]},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"requestedBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"settledAt":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When every re-check had a verdict. null = still re-checking."},"summary":{"type":"object","properties":{"rechecked":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"recorded":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Re-checks that have recorded a verdict."},"filled":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"fill: verdicts the re-checks measured, which became the runs' grades."},"agreed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"audit: re-checks whose verdict equals the run's own."},"disagreements":{"type":"array","items":{"type":"object","properties":{"runId":{"type":"string"},"retestRunId":{"type":"string"},"run":{"type":"object","properties":{"pass":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"The scored verdict; null = not measured."},"status":{"type":"string","enum":["passed","failed","timeout","not-run","unavailable"]},"reason":{"description":"Why nothing was measured, when `pass` is null.","type":"string"}},"required":["pass","status"],"additionalProperties":false,"description":"The checker's verdict over the run's saved files."},"recheck":{"type":"object","properties":{"pass":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"The scored verdict; null = not measured."},"status":{"type":"string","enum":["passed","failed","timeout","not-run","unavailable"]},"reason":{"description":"Why nothing was measured, when `pass` is null.","type":"string"}},"required":["pass","status"],"additionalProperties":false,"description":"The checker's verdict over the run's saved files."}},"required":["runId","retestRunId","run","recheck"],"additionalProperties":false},"description":"audit: re-checks whose verdict differs from the run's own: the same check over the same files gave a different answer."}},"required":["rechecked","recorded","filled","agreed","disagreements"],"additionalProperties":false},"runs":{"type":"array","items":{"type":"object","properties":{"runId":{"type":"string"},"retestRunId":{"type":"string"},"runStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"verdict":{"anyOf":[{"type":"object","properties":{"pass":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"The scored verdict; null = not measured."},"status":{"type":"string","enum":["passed","failed","timeout","not-run","unavailable"]},"reason":{"description":"Why nothing was measured, when `pass` is null.","type":"string"}},"required":["pass","status"],"additionalProperties":false,"description":"The checker's verdict over the run's saved files."},{"type":"null"}]}},"required":["runId","retestRunId","runStatus","finishedAt","verdict"],"additionalProperties":false}}},"required":["id","kind","reason","requestedBy","createdAt","settledAt","summary","runs"],"additionalProperties":false},"description":"Every re-check request, newest first."}},"required":["retests"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Study unavailable to the caller","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:read","x-ora-product":"study","x-ora-service":"study-service"},"post":{"operationId":"study.retest","summary":"Re-check runs' saved files with the benchmark's own checker","description":"Runs the benchmark's own checker again over the files each run SAVED, without its agent: a run that starts no agent boots the run's environment, and its checker reads the original run's stored outputs. `fill` (the default) re-checks every run whose verifier verdict was never measured, and a verdict it measures becomes the run's grade; it never replaces a measured verdict. `audit` re-checks the named runs (or every measured one) and records the second verdict beside the first, changing no grade. A run whose saved files are gone is skipped with the file it lacks. Send `dryRun: true` first: it creates nothing and answers which runs would be re-checked.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"default":"fill","description":"fill (the default): re-check every run whose verifier verdict was never measured; a verdict the re-check measures becomes the run's grade. audit: re-check runs and record the second verdict beside the first; no grade changes.","type":"string","enum":["fill","audit"]},"runIds":{"description":"audit only: the runs to re-check. Absent = every run with a measured verdict.","minItems":1,"maxItems":200,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"reason":{"description":"Why the runs are being re-checked. Kept with the request.","type":"string","minLength":1,"maxLength":500},"dryRun":{"description":"true = create nothing: answer which runs would be re-checked, and which could not be (their saved files are gone).","type":"boolean"}},"additionalProperties":false}}}},"responses":{"200":{"description":"Re-check runs' saved files with the benchmark's own checker","content":{"application/json":{"schema":{"type":"object","properties":{"dryRun":{"type":"boolean"},"kind":{"type":"string","enum":["fill","audit"]},"retestId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The request's id. null for a dry run, or when nothing was re-checked."},"runs":{"type":"array","items":{"type":"object","properties":{"runId":{"type":"string"},"outcome":{"description":"Absent on a dry run.","type":"string","enum":["dispatched","failed"]},"retestRunId":{"description":"The re-check run, when one was created.","anyOf":[{"type":"string"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["runId"],"additionalProperties":false},"description":"The runs re-checked (a dry run: the runs that would be)."},"skipped":{"type":"array","items":{"type":"object","properties":{"runId":{"type":"string"},"reason":{"type":"string","enum":["not_in_study","not_succeeded","no_verdict","no_saved_inputs","saved_files_missing"]},"detail":{"type":"string"}},"required":["runId","reason","detail"],"additionalProperties":false},"description":"Runs not re-checked, each with why: their saved files are gone, or the request named a run that cannot be."}},"required":["dryRun","kind","retestId","runs","skipped"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Study unavailable to the caller","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The study has not completed, its grading has not settled, a fill of a published study, or another fill is still re-checking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The study has no verifier lens, is a rehearsal, a fill named runs, or the request would re-check too many runs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:write","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/studies/{id}/run-counting":{"get":{"operationId":"study.runCounting","summary":"Which of a study's runs its numbers count","description":"The study's counting policy and what it does: the runs it holds back (each a run a screen flagged, left out as a missing measurement, never a fail), how many per group, and every group's figure BOTH as counted and with every run in. A study with no policy counts every run; the answer then shows what the screen flagged so far. It also says whether a policy may be set here, and why not. It writes nothing.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Which of a study's runs its numbers count","content":{"application/json":{"schema":{"type":"object","properties":{"runCounting":{"anyOf":[{"type":"object","properties":{"policy":{"type":"string","const":"hold_back_screened"},"screen":{"type":"string","enum":["test_awareness"],"description":"The screen whose verdicts decide. Today: 'test_awareness'."},"levels":{"minItems":1,"type":"array","items":{"type":"string","enum":["aware","influenced"]},"description":"The verdict levels held back. A run the screen could not judge is never held back."}},"required":["policy","screen","levels"],"additionalProperties":false,"description":"Which of the study's runs its numbers count. Absent or null = every run. 'hold_back_screened' leaves out the runs the named screen flagged at one of `levels`: each is a missing measurement with a named reason, never a fail, and the count held back is stated beside every figure."},{"type":"null"}],"description":"The study's counting policy. null = every run counts."},"policy":{"type":"string","description":"The policy as one string: 'count_all', or 'hold_back_screened:<screen>:<levels>'."},"offered":{"type":"boolean","description":"Whether this study may hold runs back here. false = `refusal` says why."},"refusal":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","enum":["run_counting_not_enabled","run_counting_screen_not_enabled","run_counting_screen_undeclared","run_counting_pairs_unnamed","run_counting_platform_discloses_test","run_counting_benchmark_at_create"]},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false},{"type":"null"}],"description":"Why a policy cannot be set on this study here; null when one can."},"screen":{"type":"string","description":"The screen whose verdicts the counts below read: the policy's, or the default screen when the study has none."},"screenedRuns":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Runs that screen has judged. A run that ended without succeeding is never screened and is not counted here."},"unscreenedRuns":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Runs it can judge and has not yet. They count until it does, so the figures can still move."},"flagged":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"description":"Runs the screen flagged, by level (aware, influenced), whether or not the policy holds them back."},"heldBack":{"type":"array","items":{"type":"object","properties":{"runId":{"type":"string"},"group":{"type":"string"},"taskId":{"type":"string"},"level":{"type":"string"}},"required":["runId","group","taskId","level"],"additionalProperties":false},"description":"The runs the policy leaves out of the study's numbers, each with the level that held it back."},"groups":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"runs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Runs of the group that ended."},"heldBack":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Of those, runs the policy holds back."},"counted":{"anyOf":[{"type":"object","properties":{"value":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The metric's value; null = nothing measured."},"interval":{"anyOf":[{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}],"description":"The 95% interval, low then high, in the value's own unit."},{"type":"null"}]},"runs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Runs that carried a value."},"tasks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Tasks measured by every agent of the group."}},"required":["value","interval","runs","tasks"],"additionalProperties":false,"description":"One group's figure on the metric under one way of counting."},{"type":"null"}],"description":"The group's figure over the runs the policy counts."},"all":{"anyOf":[{"type":"object","properties":{"value":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The metric's value; null = nothing measured."},"interval":{"anyOf":[{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}],"description":"The 95% interval, low then high, in the value's own unit."},{"type":"null"}]},"runs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Runs that carried a value."},"tasks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Tasks measured by every agent of the group."}},"required":["value","interval","runs","tasks"],"additionalProperties":false,"description":"One group's figure on the metric under one way of counting."},{"type":"null"}],"description":"The same figure with every run counted."}},"required":["key","label","runs","heldBack","counted","all"],"additionalProperties":false},"description":"Every group of the study, with its figure both ways."},"imbalanced":{"type":"boolean","description":"true when two groups' held-back shares differ by more than 10 points: holding back removed one group's runs selectively."},"metric":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"family":{"type":"string"}},"required":["key","label","family"],"additionalProperties":false,"description":"The metric the figures are on: the study's own correctness measure."},"changes":{"type":"array","items":{"type":"object","properties":{"change":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"previous":{"anyOf":[{"type":"object","properties":{"policy":{"type":"string","const":"hold_back_screened"},"screen":{"type":"string","enum":["test_awareness"],"description":"The screen whose verdicts decide. Today: 'test_awareness'."},"levels":{"minItems":1,"type":"array","items":{"type":"string","enum":["aware","influenced"]},"description":"The verdict levels held back. A run the screen could not judge is never held back."}},"required":["policy","screen","levels"],"additionalProperties":false,"description":"Which of the study's runs its numbers count. Absent or null = every run. 'hold_back_screened' leaves out the runs the named screen flagged at one of `levels`: each is a missing measurement with a named reason, never a fail, and the count held back is stated beside every figure."},{"type":"null"}]},"runCounting":{"anyOf":[{"type":"object","properties":{"policy":{"type":"string","const":"hold_back_screened"},"screen":{"type":"string","enum":["test_awareness"],"description":"The screen whose verdicts decide. Today: 'test_awareness'."},"levels":{"minItems":1,"type":"array","items":{"type":"string","enum":["aware","influenced"]},"description":"The verdict levels held back. A run the screen could not judge is never held back."}},"required":["policy","screen","levels"],"additionalProperties":false,"description":"Which of the study's runs its numbers count. Absent or null = every run. 'hold_back_screened' leaves out the runs the named screen flagged at one of `levels`: each is a missing measurement with a named reason, never a fail, and the count held back is stated beside every figure."},{"type":"null"}]},"classifierVersion":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The screen classifier's version when the policy was set."}},"required":["change","createdBy","createdAt","previous","runCounting","classifierVersion"],"additionalProperties":false},"description":"Every change of the policy after create, newest first."}},"required":["runCounting","policy","offered","refusal","screen","screenedRuns","unscreenedRuns","flagged","heldBack","groups","imbalanced","metric","changes"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Study unavailable to the caller","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:read","x-ora-product":"study","x-ora-service":"study-service"},"put":{"operationId":"study.setRunCounting","summary":"Hold back the runs a screen flagged, or count every run again","description":"Sets the study's counting policy. `{ policy: 'hold_back_screened', screen: 'test_awareness', levels: ['influenced'] }` leaves the runs that screen flagged at those levels out of every number of the study: the readout, the tables, the gate and the series. A held-back run is a missing measurement, never a fail; a judged pair counts only when both its runs do; a run the screen could not judge is never held back. Nothing is re-run or re-judged, and `null` counts every run again. Every change is recorded with who made it. Send `dryRun: true` first to see what would be held back and each group's figure both ways.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"runCounting":{"anyOf":[{"type":"object","properties":{"policy":{"type":"string","const":"hold_back_screened"},"screen":{"type":"string","enum":["test_awareness"],"description":"The screen whose verdicts decide. Today: 'test_awareness'."},"levels":{"minItems":1,"type":"array","items":{"type":"string","enum":["aware","influenced"]},"description":"The verdict levels held back. A run the screen could not judge is never held back."}},"required":["policy","screen","levels"],"additionalProperties":false,"description":"Which of the study's runs its numbers count. Absent or null = every run. 'hold_back_screened' leaves out the runs the named screen flagged at one of `levels`: each is a missing measurement with a named reason, never a fail, and the count held back is stated beside every figure."},{"type":"null"}],"description":"The policy the study takes. null = count every run."},"dryRun":{"description":"true = change nothing and answer the state as it would be: what would be held back, and every group's figure both ways.","type":"boolean"}},"required":["runCounting"],"additionalProperties":false}}}},"responses":{"200":{"description":"Hold back the runs a screen flagged, or count every run again","content":{"application/json":{"schema":{"type":"object","properties":{"runCounting":{"anyOf":[{"type":"object","properties":{"policy":{"type":"string","const":"hold_back_screened"},"screen":{"type":"string","enum":["test_awareness"],"description":"The screen whose verdicts decide. Today: 'test_awareness'."},"levels":{"minItems":1,"type":"array","items":{"type":"string","enum":["aware","influenced"]},"description":"The verdict levels held back. A run the screen could not judge is never held back."}},"required":["policy","screen","levels"],"additionalProperties":false,"description":"Which of the study's runs its numbers count. Absent or null = every run. 'hold_back_screened' leaves out the runs the named screen flagged at one of `levels`: each is a missing measurement with a named reason, never a fail, and the count held back is stated beside every figure."},{"type":"null"}],"description":"The study's counting policy. null = every run counts."},"policy":{"type":"string","description":"The policy as one string: 'count_all', or 'hold_back_screened:<screen>:<levels>'."},"offered":{"type":"boolean","description":"Whether this study may hold runs back here. false = `refusal` says why."},"refusal":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","enum":["run_counting_not_enabled","run_counting_screen_not_enabled","run_counting_screen_undeclared","run_counting_pairs_unnamed","run_counting_platform_discloses_test","run_counting_benchmark_at_create"]},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false},{"type":"null"}],"description":"Why a policy cannot be set on this study here; null when one can."},"screen":{"type":"string","description":"The screen whose verdicts the counts below read: the policy's, or the default screen when the study has none."},"screenedRuns":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Runs that screen has judged. A run that ended without succeeding is never screened and is not counted here."},"unscreenedRuns":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Runs it can judge and has not yet. They count until it does, so the figures can still move."},"flagged":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"description":"Runs the screen flagged, by level (aware, influenced), whether or not the policy holds them back."},"heldBack":{"type":"array","items":{"type":"object","properties":{"runId":{"type":"string"},"group":{"type":"string"},"taskId":{"type":"string"},"level":{"type":"string"}},"required":["runId","group","taskId","level"],"additionalProperties":false},"description":"The runs the policy leaves out of the study's numbers, each with the level that held it back."},"groups":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"runs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Runs of the group that ended."},"heldBack":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Of those, runs the policy holds back."},"counted":{"anyOf":[{"type":"object","properties":{"value":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The metric's value; null = nothing measured."},"interval":{"anyOf":[{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}],"description":"The 95% interval, low then high, in the value's own unit."},{"type":"null"}]},"runs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Runs that carried a value."},"tasks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Tasks measured by every agent of the group."}},"required":["value","interval","runs","tasks"],"additionalProperties":false,"description":"One group's figure on the metric under one way of counting."},{"type":"null"}],"description":"The group's figure over the runs the policy counts."},"all":{"anyOf":[{"type":"object","properties":{"value":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The metric's value; null = nothing measured."},"interval":{"anyOf":[{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}],"description":"The 95% interval, low then high, in the value's own unit."},{"type":"null"}]},"runs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Runs that carried a value."},"tasks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Tasks measured by every agent of the group."}},"required":["value","interval","runs","tasks"],"additionalProperties":false,"description":"One group's figure on the metric under one way of counting."},{"type":"null"}],"description":"The same figure with every run counted."}},"required":["key","label","runs","heldBack","counted","all"],"additionalProperties":false},"description":"Every group of the study, with its figure both ways."},"imbalanced":{"type":"boolean","description":"true when two groups' held-back shares differ by more than 10 points: holding back removed one group's runs selectively."},"metric":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"family":{"type":"string"}},"required":["key","label","family"],"additionalProperties":false,"description":"The metric the figures are on: the study's own correctness measure."},"changes":{"type":"array","items":{"type":"object","properties":{"change":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"previous":{"anyOf":[{"type":"object","properties":{"policy":{"type":"string","const":"hold_back_screened"},"screen":{"type":"string","enum":["test_awareness"],"description":"The screen whose verdicts decide. Today: 'test_awareness'."},"levels":{"minItems":1,"type":"array","items":{"type":"string","enum":["aware","influenced"]},"description":"The verdict levels held back. A run the screen could not judge is never held back."}},"required":["policy","screen","levels"],"additionalProperties":false,"description":"Which of the study's runs its numbers count. Absent or null = every run. 'hold_back_screened' leaves out the runs the named screen flagged at one of `levels`: each is a missing measurement with a named reason, never a fail, and the count held back is stated beside every figure."},{"type":"null"}]},"runCounting":{"anyOf":[{"type":"object","properties":{"policy":{"type":"string","const":"hold_back_screened"},"screen":{"type":"string","enum":["test_awareness"],"description":"The screen whose verdicts decide. Today: 'test_awareness'."},"levels":{"minItems":1,"type":"array","items":{"type":"string","enum":["aware","influenced"]},"description":"The verdict levels held back. A run the screen could not judge is never held back."}},"required":["policy","screen","levels"],"additionalProperties":false,"description":"Which of the study's runs its numbers count. Absent or null = every run. 'hold_back_screened' leaves out the runs the named screen flagged at one of `levels`: each is a missing measurement with a named reason, never a fail, and the count held back is stated beside every figure."},{"type":"null"}]},"classifierVersion":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The screen classifier's version when the policy was set."}},"required":["change","createdBy","createdAt","previous","runCounting","classifierVersion"],"additionalProperties":false},"description":"Every change of the policy after create, newest first."},"dryRun":{"type":"boolean"},"changed":{"type":"boolean","description":"false when the study already had this policy (nothing was written), and on a dry run."}},"required":["runCounting","policy","offered","refusal","screen","screenedRuns","unscreenedRuns","flagged","heldBack","groups","imbalanced","metric","changes","dryRun","changed"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Study unavailable to the caller","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The study is archival, or another change of the policy landed first","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Holding runs back is not enabled here, the study does not declare the screen, or its judged pairs do not record both runs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:write","x-ora-product":"study","x-ora-cli-shorthands":[{"flag":"run-counting","field":"runCounting","pattern":"{policy?}:{screen?}:{levels}","defaults":{"policy":"hold_back_screened","screen":"test_awareness"},"words":{"count_all":null},"description":"The levels of the test_awareness screen's verdict whose runs are held back, joined by , or +: influenced (the agent changed what it did because it knew it was tested; the recommended setting), or aware,influenced (it noticed at all). A held-back run is left out of the study's numbers as not measured, never as a fail. The policy as `ora study run-counting` prints it works too: hold_back_screened:test_awareness:aware+influenced, or count_all to count every run."}],"x-ora-service":"study-service"}},"/study/v1/studies/{id}/runs/{runId}/answers":{"get":{"operationId":"study.listRunAnswers","summary":"List the agent runs that answered a framework benchmark run's requests (the 'harness' subject backend), oldest first. Empty for a run that asked for none.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"example":"1f7e4d1c-4b2a-4f3e-9d8c-5a6b7c8d9e0f"},{"name":"runId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"example":"7c9e6679-7425-40de-944b-e07fc1f90ae7"}],"responses":{"200":{"description":"List the agent runs that answered a framework benchmark run's requests (the 'harness' subject backend), oldest first. Empty for a run that asked for none.","content":{"application/json":{"schema":{"type":"object","properties":{"coordinatorRunId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"answers":{"type":"array","items":{"type":"object","properties":{"runId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The answer run — an ordinary run; read its trajectory through the runs surface."},"createdAt":{"type":"string","description":"When the framework asked (ISO 8601). Answers are listed in the order they were asked."},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The run's status, or null until it reports one."},"outcome":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The run's outcome, or null until it is terminal."},"totalTokens":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Tokens the agent loop used for this answer, when metered."},"costUsd":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Cost of this answer, when metered."},"startedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["runId","createdAt","status","outcome","totalTokens","costUsd","startedAt","finishedAt"],"additionalProperties":false}}},"required":["coordinatorRunId","answers"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:read","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/studies/{id}/runs/{runId}/delivered":{"get":{"operationId":"study.runDelivered","summary":"List what a study run delivered: the files and images ora keeps a copy of","description":"ora's private copy of one run's deliverables — files its final answer links to, files it left in its workspace, and the images the judges viewed — with where each came from, its size and checksum, and whether a copy is held. Credential shapes are redacted from the stored copy (`redactions`). Members of the study's organization only; no public door serves it.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"runId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"List what a study run delivered: the files and images ora keeps a copy of","content":{"application/json":{"schema":{"type":"object","properties":{"takenAt":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When the copy was taken. null = this run has no copy (it was never graded with delivered evidence)."},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"`file-1`, `image-2`: the id a download names, and the id a judge's verdict cites."},"kind":{"type":"string","enum":["file","image"]},"origin":{"type":"string","description":"`link` (the final answer links to it), `workspace` (left in the agent's workspace), `task` or `trace`."},"url":{"type":"string"},"path":{"description":"Its path in the agent's workspace, for a workspace item.","type":"string"},"status":{"type":"string","description":"`stored` / `fetched`, or why it was not kept: blocked, too_large, timed_out, failed, not_an_image."},"reason":{"type":"string"},"contentType":{"type":"string"},"bytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sha256":{"description":"Of the bytes as delivered, before any redaction of the stored copy.","type":"string"},"readable":{"description":"A reader turned it into a document the judges could read.","type":"boolean"},"redactions":{"description":"Credential shapes redacted from the stored copy, by detector name.","type":"array","items":{"type":"string"}},"truncated":{"description":"It came from a workspace archive that reached its size cap.","type":"boolean"},"downloadable":{"type":"boolean","description":"ora holds a copy of it that the download door serves."},"filename":{"type":"string","description":"The name a download is saved under."}},"required":["id","kind","origin","status","downloadable","filename"],"additionalProperties":false},"description":"Files first, then images, each in collection order."},"workspaceSkipped":{"description":"Workspace files left out of the copy, counted: dot and dependency directories, and files past the cap.","type":"object","properties":{"dependencyOrDot":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"overCap":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["dependencyOrDot","overCap"],"additionalProperties":false}},"required":["takenAt","items"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Study or linked run unavailable to the caller","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:read","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/studies/{id}/runs/{runId}/insight":{"get":{"operationId":"study.runInsight","summary":"Read a study run's full insight with the study's access permissions","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"runId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Read a study run's full insight with the study's access permissions","content":{"application/json":{"schema":{}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Study or linked run unavailable to the caller, or artifact not ready","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:read","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/studies/{id}/runs/{runId}/screens":{"get":{"operationId":"study.runScreens","summary":"Read a study run's screen verdicts with their evidence","description":"Whether this run is valid evidence, per screen the study declares (test_awareness: did the agent notice it was being tested, and act on it). Returns `{ screens }`, keyed by screen id: each verdict with its summary AND its evidence — the quoted trace steps and every judge's atomic vote. `{}` when the run was never screened. A study's `runs[]` carry the same verdicts without the evidence.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"runId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Read a study run's screen verdicts with their evidence","content":{"application/json":{"schema":{"type":"object","properties":{"screens":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"screenId":{"type":"string","description":"The screen that produced this verdict: 'test_awareness', or 'web_tools_off' on a run of a group whose agents ran with their own web tools switched off (no study declares that one: the group's setup implies it)."},"level":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The screen's verdict word. test_awareness: 'none' (the panel searched and found no sign), 'aware' (the agent said it might be under evaluation and worked the same way), 'influenced' (it acted on that). web_tools_off: 'held' (the run's complete trace shows no step that reached the web), 'fetched' (a step reached the web, by the agent's own tool or its shell: web tools off does not block the network). null = the screen could not say; `reason` then says why. Never read null as 'none' or as 'held'."},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why there is no level, when `level` is null: the screen could not say (panel_unavailable, panel_split, trace_unavailable), or the run ended without succeeding and so was never screened (run_not_succeeded). A run_not_succeeded run counts as not screened. web_tools_off: agent_not_measured (this agent's trace is not proven to show every way it reaches the web), answered_by_other_runs (a benchmark framework's own run: the agents that answered ran as separate runs, whose traces are not read), trace_degraded, trace_unfinalized, declared_servers_unrecorded."},"summary":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"The facts that qualify the verdict. test_awareness: `cause` (task_text | environment | agent_inference: what told the agent) and `reasoningVisible` (whether the trace carried any of the agent's reasoning; a 'none' without it is weaker evidence). The authed doors also carry the panel and the prompt version. web_tools_off: `fetchSteps` (how many steps reached the web) and `stepIds` (the first of them, by step id)."},"evidence":{"description":"What the verdict stands on, on a read that opened this one run. test_awareness: `statements` and `actions`, each a trace step and a verbatim quote the platform found there. A public door serves them only to a reader it serves the run's own text to; the authed doors also carry every judge's atomic vote. web_tools_off: `fetches`, each a cited step with the tool and the address, host or query it carried, under the same rule.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"classifierVersion":{"type":"string","description":"The classifier version that produced this verdict, pinned per verdict."},"screenedAt":{"type":"string"}},"required":["screenId","level","reason","summary","classifierVersion","screenedAt"],"additionalProperties":false}}},"required":["screens"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Study or linked run unavailable to the caller","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:read","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/studies/{id}/runs/{runId}/spans":{"get":{"operationId":"study.runSpans","summary":"Read a study run's stored spans with the study's access permissions","description":"The run's gen-ai spans as stored (a flat list: name, ids, start and end, the gen_ai and other attributes each carries). `?categories=` keeps only the spans of the named categories, comma-separated: lifecycle, prompt, reasoning, response, tool, error, meta. Members of the study's organization only.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"runId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"categories","in":"query","required":false,"schema":{"type":"string","maxLength":200}}],"responses":{"200":{"description":"Read a study run's stored spans with the study's access permissions","content":{"application/json":{"schema":{}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Study or linked run unavailable to the caller, or artifact not ready","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"span_category_unknown: `categories` names a category that does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:read","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/studies/{id}/runs/{runId}/trajectory":{"get":{"operationId":"study.runTrajectory","summary":"Read a study run's full trajectory with the study's access permissions","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"runId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"profile","in":"query","required":false,"schema":{"type":"string","enum":["raw","heuristic","full"]}}],"responses":{"200":{"description":"Read a study run's full trajectory with the study's access permissions","content":{"application/json":{"schema":{}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Study or linked run unavailable to the caller, or artifact not ready","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:read","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/studies/{id}/settlement":{"get":{"operationId":"study.settlement","summary":"Read whether a study's numbers are final","description":"Says whether a study has settled: `settled` once nothing is owed, `pending` while it still owes runs, grading, or a screen's verdict its counting policy reads (`owed` names which). A study reaches `completed` when its last run ends, usually before its grading does, so wait on this before reading or publishing its results. It is the same answer the gate gives, without a gate: nothing is stored and nothing is spent.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Read whether a study's numbers are final","content":{"application/json":{"schema":{"type":"object","properties":{"state":{"type":"string","enum":["settled","pending"],"description":"`pending` while the study still owes runs or grading: its numbers are not final and the gate is undecided."},"owed":{"type":"array","items":{"type":"string"},"description":"What a pending study still owes: 'runs', 'grading', and 'screens' when its counting policy reads a screen some run has no verdict from yet."},"countingPolicy":{"type":"string","description":"Which runs these figures count. 'count_all': every run. 'hold_back_screened:<screen>:<levels>': the runs that screen flagged at those levels are left out (each group says how many in `heldBackRuns`)."}},"required":["state","owed","countingPolicy"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Study unavailable to the caller","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:read","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/studies/{id}/share-token/rotate":{"post":{"operationId":"study.rotateShareToken","summary":"Replace the study's share link with a fresh one. The previous link stops working IMMEDIATELY — there is no grace window — and never works again. Works in ANY mode: a study that left 'link' keeps its link, switched off (`shareLinkKept`), and replacing it then retires a leaked link without opening it first (the new one opens only once the study is back in 'link'). This is the ONLY way a study's link changes.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The study's uuid (from create or list)."}}],"responses":{"200":{"description":"Replace the study's share link with a fresh one. The previous link stops working IMMEDIATELY — there is no grace window — and never works again. Works in ANY mode: a study that left 'link' keeps its link, switched off (`shareLinkKept`), and replacing it then retires a leaked link without opening it first (the new one opens only once the study is back in 'link'). This is the ONLY way a study's link changes.","content":{"application/json":{"schema":{"type":"object","properties":{"study":{"type":"object","properties":{"id":{"type":"string"},"executiveSummary":{"anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryDraft":{"description":"A PUBLISHED study's summary held for review, never shown on the public page: what `studies.regenerateSummary` writes on a published study (and the first summary of a published study nothing asked for). `studies.publish` makes exactly this text the published `executiveSummary`, while the readout it was written from is still current; otherwise publish regenerates. Absent where the product has no review drafts.","anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryRequest":{"description":"A summary an explicit act asked for and not yet written: 'live' — a publish, a re-open, or a regenerate on an UNPUBLISHED completed study owes the summary in place (the public page, once published); 'draft' — a regenerate on a published study owes the review draft one. Null once the request is answered — poll `studies.get` until it is: by the written summary (`executiveSummary` or `executiveSummaryDraft`), by a later act that superseded it (a publish, a newer regenerate — its own write answers it), or as unavailable (`executiveSummaryUnavailableAt` set). While the automatic retries back off after a failed attempt it stays pending. Absent where the product has no review drafts.","anyOf":[{"type":"string","enum":["live","draft"]},{"type":"null"}]},"executiveSummaryRequestedAt":{"description":"When `executiveSummaryRequest` was made.","anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryUnavailableAt":{"description":"When the last summary request was answered as UNAVAILABLE: every attempt the retry policy allows on the study's readout failed, so no summary will be written for it until the readout changes (runs added, a re-run, a regrade) or someone regenerates or publishes again. Null otherwise; cleared by a new request or a written summary. Absent where the product has no review drafts.","anyOf":[{"type":"string"},{"type":"null"}]},"plannedRunCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The exact number of runs `launch` will fan out (taskCount × variantsPerTask × repeats × matrix cells × arms). Check this BEFORE launching."},"organizationId":{"type":"string"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"slug":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillRef":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillSlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillName":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillPromise":{"type":"string"},"subjectKind":{"type":"string","enum":["skill","tools","addon","custom","benchmark","site"],"description":"What the study measures. New studies: 'custom': any composition of skills, tools and add-ons, with its own subjectName and promise — under a comparisonMode that declares its groups, each group's configuration is in `arms`. 'benchmark': a pinned version of a catalog benchmark definition (requires definitionVersionId); the corpus is copied frozen from that version. 'site': a website (requires siteDomain, and a comparisonMode that declares its groups); the tasks are things to get done there, and every run is read against the site: whether the agent opened a page of it, and whether the site refused the agent. Every comparisonMode new studies use applies to 'benchmark': 'multi_arm' runs each declared group's setup: 1 group reads as the agent leaderboard: no reference group and no comparison, and it seeds the public leaderboard — when bare, labelled 'as published' on a model-API agent and 'harness default' on a harness agent, and 'with my setup' when it carries one; 2-6 groups are compared over the planned contrasts (with 2, one comparison, oriented only when a group has role 'reference'); only a bare group seeds the public leaderboard. A group that carries a setup is not the benchmark's bare protocol, so it does not seed the public leaderboard. 'skill', 'tools' and 'addon' are kept for the studies that already exist: under a comparisonMode new studies use, one answers 422 study_subject_invalid, and a create body that names no comparisonMode (or a legacy one) and carries it is read as the legacy body it is and answers 422 comparison_mode_removed (docs/studies/comparison-modes/README.md maps each legacy design onto the new ones)."},"subjectName":{"anyOf":[{"type":"string"},{"type":"null"}]},"siteDomain":{"description":"The website a 'site' study is run against (its host); absent for every other subject kind.","type":"string"},"subjectLabel":{"type":"string"},"armConfig":{"type":"object","properties":{"baseline":{"description":"The baseline arm's run-payload delta. Omitted = a bare run (no skill, no extras).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false},"treatment":{"description":"The treatment arm's run-payload delta (the thing under test).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"additionalProperties":false,"description":"Frozen per-arm run-payload deltas of a fixed pair of arms (comparisonMode 'ab_vs_none' or 'ab_custom' or 'single'), kept for the studies that already exist: new studies carry each group's configuration in `arms`, and a create body that names no comparisonMode (or a legacy one) and carries it is read as the legacy body it is and answers 422 comparison_mode_removed (docs/studies/comparison-modes/README.md maps each legacy design onto the new ones)."},"comparisonMode":{"type":"string","enum":["ab_vs_none","ab_custom","single","multi_arm"],"description":"The study's design. New studies: 'multi_arm' (Groups): 1-6 groups declared in `arms`, each with its own label and configuration — 1 group reads as the agent leaderboard: no reference group and no comparison, and it seeds the public leaderboard — when bare, labelled 'as published' on a model-API agent and 'harness default' on a harness agent, and 'with my setup' when it carries one; 2-6 groups are compared over the planned contrasts (with 2, one comparison, oriented only when a group has role 'reference'); only a bare group seeds the public leaderboard; which pairs are judged is `contrasts`. 'ab_vs_none', 'ab_custom' and 'single' are kept for the studies that already exist: a create naming one answers 422 comparison_mode_removed (docs/studies/comparison-modes/README.md maps each legacy design onto the new ones)."},"subjectBackend":{"anyOf":[{"type":"string","enum":["model","harness"],"description":"What answers a FRAMEWORK benchmark's requests: 'harness' — each request is answered by the cell's agent harness (the model inside its own loop, with the arm's tools, add-ons and skills), one agent run per request; 'model' — the framework's own client calls the cell's model directly and the cell's harness is not measured. Resolved once per study and recorded on every run."},{"type":"null"}]},"environmentExecutionPolicy":{"type":"string","enum":["legacy-v1","inside-v1"]},"importedFrom":{"type":"string"},"baselineLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"treatmentLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"promiseMetrics":{"type":"array","items":{"type":"object","properties":{"metric":{"type":"string","enum":["total_tokens","output_tokens","cost_usd","duration_ms","num_turns","success_rate","completion_rate","goal_rate"]},"direction":{"type":"string","enum":["down","up"]},"label":{"type":"string","minLength":1,"maxLength":120}},"required":["metric","direction","label"],"additionalProperties":false}},"matrix":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1,"maxLength":50,"description":"Harness id — the valid set (and each one's models) is GET /catalog; cells are validated against it at create."},"model":{"type":"string","minLength":1,"maxLength":100,"description":"Model id as the harness accepts it — valid ids per harness/provider are in GET /catalog (e.g. 'claude-sonnet-5', 'gpt-5.5')."},"provider":{"description":"Provider qualifier for multi-provider harnesses (e.g. 'anthropic', 'openai', 'google'). Omit to use the harness default.","type":"string","minLength":1,"maxLength":32},"params":{"description":"Provider params pinned for this cell (temperature, reasoningEffort, maxOutputTokens, thinkingBudgetTokens). A cell that pins none runs the provider's own defaults. Offered only where the harness declares support — see GET /catalog.","type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"maxOutputTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reasoningEffort":{"type":"string","enum":["low","medium","high"]},"thinkingBudgetTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"codeMode":{"type":"string","enum":["auto","on","off"]},"toolSearch":{"type":"string","enum":["on","off","directory"]},"location":{"type":"string","pattern":"^[A-Z]{2}$"},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$"}},"additionalProperties":false}},"required":["harness","model"],"additionalProperties":false,"description":"One (harness, model, params) cell — every task runs its arm(s) on every cell."}},"lenses":{"minItems":1,"type":"array","items":{"type":"string","enum":["judge","evals","reference","framework","execution","verifier"]},"description":"Which grading lenses this study runs under. Defaults to ['judge'] at create and stays editable while status is 'ready' (frozen at launch, like task expectations/rubrics). 'judge': the LLM judge panel (rubric grades + blind pairwise). 'evals': the deterministic @ora/eval-checks engine, scored against each task's authored expectations. 'reference': the static-QA lens — an answer extracted from the response and matched against the task's own reference key, scored 1/0 (spec §6.4). 'framework': the benchmark's OWN framework (HELM today) reports the metrics, mapped verbatim into a section rather than re-averaged (SP2 Task 9). 'execution': the candidate's code is extracted from the response and run against the task's own tests inside a sandboxed, network-less runner image (SP2 Task 16)."},"judgeSupplementary":{"type":"boolean"},"taskCount":{"type":"number"},"variantsPerTask":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Semantics-preserving paraphrases sampled per task (1-5; mirrors the create body's variantsPerTask). Absent at create defaults to 1 — every response reports a concrete value, including studies created before sampling existed."},"repeats":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Identical re-runs sampled per condition (1-10; mirrors the create body's repeats). Absent at create defaults to 1 — every response reports a concrete value, including studies created before sampling existed."},"subset":{"anyOf":[{"type":"object","properties":{"count":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"seed":{"type":"string","minLength":1},"of":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["count","seed","of"],"additionalProperties":false},{"type":"null"}]},"status":{"type":"string"},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"preparation":{"anyOf":[{"type":"object","properties":{"since":{"type":"string"},"progressAt":{"type":"string"},"launchedBy":{"type":"object","properties":{"userId":{"type":"string"},"role":{"type":"string"}},"additionalProperties":false},"waitingOn":{"type":"array","items":{"type":"object","properties":{"imageKey":{"type":"string"},"buildId":{"type":"string"},"stage":{"type":"string","enum":["image","snapshot"]},"retry":{"type":"object","properties":{"failedAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maxAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"notBefore":{"type":"string"},"lastFailure":{"type":"string"}},"required":["failedAttempts","maxAttempts","notBefore","lastFailure"],"additionalProperties":false}},"required":["imageKey","buildId"],"additionalProperties":false}}},"required":["since","launchedBy","waitingOn"],"additionalProperties":false},{"type":"null"}]},"visibility":{"type":"string","enum":["private","org","link","public"],"description":"Who may read this study: private (creator + org owners) | org (the whole org) | link (anyone holding ?share=<token>, unlisted) | public (everyone, listed)."},"visibilityChangedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"visibilityChangedBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"shareToken":{"anyOf":[{"type":"string"},{"type":"null"}]},"lowSampleOverride":{"type":"boolean","description":"True iff this study was explicitly published below the sample-size floor (spec A6) — the published page shows a low-sample badge when set."},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"verdict":{},"definitionVersionId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The benchmark definition VERSION this study pinned at create — non-null only for subjectKind 'benchmark'. Its corpus was copied frozen from that version, so the study stays reproducible when the definition publishes a newer one."},"runnerKind":{"type":"string","enum":["ora-runs","batch-job"],"description":"Which executor fans this study out: 'ora-runs' (the ora runs spine) or 'batch-job' (a built runner image)."},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"liveUntil":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When this study's live stream stops being held open (null while it is still running). Attaching before it yields the remaining post-terminal frames (gradings, recordings, refined verdicts)."},"launch":{"description":"The launch record: planned / created runs, the runs it could not create (missing.retryable: launching again creates them; missing.refused: a re-launch is refused the same way) with one note per cell and group, and the fan-out's state (fanning_out | deferred | settled). Null for a study launched before records existed.","anyOf":[{"type":"object","properties":{"attempt":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"state":{"type":"string","enum":["fanning_out","deferred","settled"]},"startedAt":{"type":"string"},"progressAt":{"type":"string"},"planned":{"type":"integer","minimum":0,"maximum":9007199254740991},"created":{"type":"integer","minimum":0,"maximum":9007199254740991},"missing":{"type":"object","properties":{"retryable":{"type":"integer","minimum":0,"maximum":9007199254740991},"refused":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["retryable","refused"],"additionalProperties":false},"notes":{"type":"array","items":{"type":"string"}},"settledAt":{"type":"string"},"pacing":{"type":"object","properties":{"waiting":{"type":"integer","minimum":0,"maximum":9007199254740991},"nextUnit":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"nextWaveAt":{"type":"string"},"emptyWaves":{"type":"integer","minimum":0,"maximum":9007199254740991},"stopped":{"type":"string"}},"required":["waiting"],"additionalProperties":false},"recovery":{"type":"object","properties":{"state":{"type":"string","enum":["retrying","needs_attention"]},"attempts":{"type":"integer","minimum":0,"maximum":9007199254740991},"lastAttemptAt":{"type":"string"},"nextAttemptAt":{"type":"string"},"reason":{"type":"string"}},"required":["state","attempts"],"additionalProperties":false},"stopped":{"type":"object","properties":{"at":{"type":"string"},"notStarted":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["at","notStarted"],"additionalProperties":false}},"required":["attempt","state","startedAt","progressAt"],"additionalProperties":false},{"type":"null"}]},"pacing":{"description":"How fast this study may START its runs, as declared at create: maxInFlight (at most N of its runs unfinished at once) and/or startsPerMinute (at most N started in any 60 s). Its runs start in waves of whole comparison units (every group's run of one agent on one task sample, together); the launch record's `pacing` says how many wait for a later wave. Null = every run started at launch.","anyOf":[{"type":"object","properties":{"maxInFlight":{"description":"At most this many of the study's runs unfinished at once — queued, pending or running (1-500). The next runs start as earlier ones finish.","type":"integer","minimum":1,"maximum":500},"startsPerMinute":{"description":"At most this many of the study's runs started in any 60-second window (1-600).","type":"integer","minimum":1,"maximum":600}},"additionalProperties":false},{"type":"null"}]},"relaunchable":{"description":"True when this running study may be launched again: its launch record says planned runs are missing (missing.retryable > 0), or its fan-out stopped. POST …/launch then creates exactly the runs that do not exist.","type":"boolean"},"archivedAt":{"description":"When this study was archived; null while it is not. An archived study loses nothing: it leaves the default list, is read-only (409 study_archived), and is on no public page. Restoring it clears this.","anyOf":[{"type":"string"},{"type":"null"}]},"archivedBy":{"description":"The user who archived it. Null when an API key did, and while the study is not archived.","anyOf":[{"type":"string"},{"type":"null"}]},"arms":{"description":"A declared-arm study's groups, in position order.","type":"array","items":{"type":"object","properties":{"key":{"type":"string","description":"The group's run key (each of its runs' `arm`)."},"position":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"0-based display order."},"label":{"type":"string","maxLength":80,"description":"The group's display label. Never shown to the judge."},"role":{"type":"string","enum":["reference","peer"],"description":"'reference' marks the group the others are compared against; the rest are peers."},"payload":{"type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"brief":{"description":"Text the agent is given after the task, for every task this group runs. At most 600 characters. A group with a brief is a setup of its own, never the subject as published.","type":"string","minLength":1,"maxLength":600}},"additionalProperties":false,"description":"The group's run-payload delta ({} = the subject as published)."},"cells":{"description":"The group's OWN agents, when the study's groups each list theirs (cellPlan 'per_setup'); absent = the matrix.","type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1,"maxLength":50,"description":"Harness id — the valid set (and each one's models) is GET /catalog; cells are validated against it at create."},"model":{"type":"string","minLength":1,"maxLength":100,"description":"Model id as the harness accepts it — valid ids per harness/provider are in GET /catalog (e.g. 'claude-sonnet-5', 'gpt-5.5')."},"provider":{"description":"Provider qualifier for multi-provider harnesses (e.g. 'anthropic', 'openai', 'google'). Omit to use the harness default.","type":"string","minLength":1,"maxLength":32},"params":{"description":"Provider params pinned for this cell (temperature, reasoningEffort, maxOutputTokens, thinkingBudgetTokens). A cell that pins none runs the provider's own defaults. Offered only where the harness declares support — see GET /catalog.","type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"maxOutputTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reasoningEffort":{"type":"string","enum":["low","medium","high"]},"thinkingBudgetTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"codeMode":{"type":"string","enum":["auto","on","off"]},"toolSearch":{"type":"string","enum":["on","off","directory"]},"location":{"type":"string","pattern":"^[A-Z]{2}$"},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$"}},"additionalProperties":false}},"required":["harness","model"],"additionalProperties":false,"description":"One (harness, model, params) cell — every task runs its arm(s) on every cell."}},"skipTasks":{"description":"The tasks this group leaves out, by task number (1 = the first); absent = it runs every task.","type":"array","items":{"type":"integer","minimum":1,"maximum":9007199254740991}},"skills":{"description":"The group's skills as resolved when the study was created (absent for a study created before that existed).","type":"array","items":{"type":"object","properties":{"ref":{"type":"string","description":"The skill ref the group's selection names."},"name":{"type":"string","description":"The skill's name when the study was created."},"changedSinceCreate":{"description":"True when the skill's content now differs from what the study ran; absent when the reader cannot check it.","type":"boolean"}},"required":["ref","name"],"additionalProperties":false}},"addedAgents":{"description":"The agents this group gained after the study was created (`addAgents`), by position in `cells` — absent when none was added.","type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The agent's position in the group's `cells`."},"addedAt":{"type":"string","description":"When it was added (RFC 3339)."}},"required":["position","addedAt"],"additionalProperties":false}}},"required":["key","position","label","role","payload"],"additionalProperties":false}},"contrastPlan":{"description":"The study's planned-contrast policy.","type":"string","enum":["vs_reference","all_pairs","ladder"]},"cellPlan":{"description":"How the groups meet their agents: absent = every group runs the matrix; 'per_setup' = each its own.","type":"string","enum":["crossed","per_setup"]},"skillDisclosure":{"description":"Whether the published page names the groups' skills: absent = withheld (chosen at publish).","type":"string","enum":["withheld","named"]},"modeOptions":{"description":"The comparisonMode's private inputs.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"screens":{"description":"The run screens the study declares (frozen at launch, like lenses). Absent = none.","type":"array","items":{"type":"string","enum":["test_awareness","site_access"]}},"runCounting":{"description":"Which of the study's runs its numbers count (GET /studies/:id/run-counting). Absent = every run.","anyOf":[{"type":"object","properties":{"policy":{"type":"string","const":"hold_back_screened"},"screen":{"type":"string","enum":["test_awareness"],"description":"The screen whose verdicts decide. Today: 'test_awareness'."},"levels":{"minItems":1,"type":"array","items":{"type":"string","enum":["aware","influenced"]},"description":"The verdict levels held back. A run the screen could not judge is never held back."}},"required":["policy","screen","levels"],"additionalProperties":false,"description":"Which of the study's runs its numbers count. Absent or null = every run. 'hold_back_screened' leaves out the runs the named screen flagged at one of `levels`: each is a missing measurement with a named reason, never a fail, and the count held back is stated beside every figure."},{"type":"null"}]},"seriesKey":{"description":"The series the study belongs to (set at create). Absent = none.","anyOf":[{"type":"string","pattern":"^[a-z0-9][a-z0-9._/-]{0,119}$"},{"type":"null"}]},"ref":{"description":"Where the study was taken: commit, branch, pull request. Absent = not recorded.","anyOf":[{"type":"object","properties":{"commit":{"description":"The commit the study was taken at (a SHA).","type":"string","minLength":1,"maxLength":64},"branch":{"description":"The branch it was taken on, e.g. 'main'. A gate's series baseline filters on it.","type":"string","minLength":1,"maxLength":200},"pr":{"description":"The pull request number, when it was taken for one.","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"url":{"description":"A link back to the change (the commit or pull request page).","type":"string","maxLength":500,"format":"uri"}},"additionalProperties":false},{"type":"null"}]},"gradingRevision":{"description":"The study's grading revision, when its checks were revised after its runs finished. Absent = never revised.","type":"integer","minimum":2,"maximum":9007199254740991},"gradingRevisedAt":{"description":"When the checks were last revised. Later than `publishedAt` = the grades changed after publication.","anyOf":[{"type":"string"},{"type":"null"}]},"rehearsal":{"description":"The study is a rehearsal: the smallest real run of a design, made by POST /studies/rehearsals. Absent = an ordinary study.","type":"boolean","const":true},"rehearsalMode":{"description":"How a rehearsal runs: 'live' (the real agents), or 'setup' / 'mock' (no agent is started). Absent on every other study.","type":"string"},"behaviors":{"description":"The custom behaviors the study declares (frozen at launch, like lenses). A run's verdict on one is in its `screens` under `b_<key>`. Absent = none.","type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{1,29}$","description":"A short id for the behavior, lowercase snake (`deleted_files`). Its verdicts are stored and queried under `b_<key>`."},"name":{"type":"string","minLength":1,"maxLength":80,"description":"What a reader sees: \"Deleted files it was not asked to\"."},"question":{"type":"string","minLength":10,"maxLength":400,"description":"One yes-or-no question about a single run that a judge can answer from its trace: \"Did the agent …?\"."},"version":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The version of the behavior's wording. A verdict and a review belong to the version they were made on."}},"required":["key","name","question","version"],"additionalProperties":false}},"stepTimeLimitSeconds":{"description":"How long each step of a task with steps may take, in seconds, as declared at create. A step still running after it ends the run, whose reason names the step and the limit. Null or absent = no per-step limit.","anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["id","plannedRunCount","organizationId","createdBy","name","slug","description","skillRef","skillSlug","skillName","skillPromise","subjectKind","subjectName","subjectLabel","armConfig","comparisonMode","subjectBackend","baselineLabel","treatmentLabel","promiseMetrics","matrix","lenses","taskCount","variantsPerTask","repeats","subset","status","error","visibility","lowSampleOverride","publishedAt","verdict","definitionVersionId","runnerKind","createdAt","updatedAt","liveUntil"],"additionalProperties":false},"shareUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The path this study is readable at for its CURRENT mode — `/studies/<slug>` for 'public', `/studies/<slug>?share=<token>` for 'link', null for 'private'/'org' (no anonymous door). Relative to the app origin; resolve it against the page's own origin."},"shareLinkKept":{"type":"boolean","description":"True when this study is NOT shared by link yet keeps a share link from when it was, switched off — managers only. The kept link opens nothing now; returning the study to 'link' brings the SAME link back, unless it is replaced first with studies.rotateShareToken. Never true for a 'link' study (its link is in `shareUrl`) or for a caller who may not manage sharing; the detail read omits the field unless it is true."}},"required":["study","shareUrl","shareLinkKept"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"the caller is not an editor in the owning org — rotating RE-ISSUES a public credential, so it takes the same authority as publishing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"study_not_link_shared — the study has never been shared by link, so it holds no share link to replace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:write","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/studies/{id}/stop":{"post":{"operationId":"study.stop","summary":"Stop a running study: it starts no more runs (the ones a paced launch was holding back never start), and its unfinished runs are cancelled. Finished runs keep their results, and the study completes with them. It cannot be undone: a stopped study refuses a launch, a re-run and new agents. Calling it again is safe, and cancels any run that started in between.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The study's uuid (from create or list)."},"example":"1f7e4d1c-4b2a-4f3e-9d8c-5a6b7c8d9e0f"}],"responses":{"200":{"description":"Stop a running study: it starts no more runs (the ones a paced launch was holding back never start), and its unfinished runs are cancelled. Finished runs keep their results, and the study completes with them. It cannot be undone: a stopped study refuses a launch, a re-run and new agents. Calling it again is safe, and cancels any run that started in between.","content":{"application/json":{"schema":{"type":"object","properties":{"study":{"type":"object","properties":{"id":{"type":"string"},"executiveSummary":{"anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryDraft":{"description":"A PUBLISHED study's summary held for review, never shown on the public page: what `studies.regenerateSummary` writes on a published study (and the first summary of a published study nothing asked for). `studies.publish` makes exactly this text the published `executiveSummary`, while the readout it was written from is still current; otherwise publish regenerates. Absent where the product has no review drafts.","anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryRequest":{"description":"A summary an explicit act asked for and not yet written: 'live' — a publish, a re-open, or a regenerate on an UNPUBLISHED completed study owes the summary in place (the public page, once published); 'draft' — a regenerate on a published study owes the review draft one. Null once the request is answered — poll `studies.get` until it is: by the written summary (`executiveSummary` or `executiveSummaryDraft`), by a later act that superseded it (a publish, a newer regenerate — its own write answers it), or as unavailable (`executiveSummaryUnavailableAt` set). While the automatic retries back off after a failed attempt it stays pending. Absent where the product has no review drafts.","anyOf":[{"type":"string","enum":["live","draft"]},{"type":"null"}]},"executiveSummaryRequestedAt":{"description":"When `executiveSummaryRequest` was made.","anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryUnavailableAt":{"description":"When the last summary request was answered as UNAVAILABLE: every attempt the retry policy allows on the study's readout failed, so no summary will be written for it until the readout changes (runs added, a re-run, a regrade) or someone regenerates or publishes again. Null otherwise; cleared by a new request or a written summary. Absent where the product has no review drafts.","anyOf":[{"type":"string"},{"type":"null"}]},"plannedRunCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The exact number of runs `launch` will fan out (taskCount × variantsPerTask × repeats × matrix cells × arms). Check this BEFORE launching."},"organizationId":{"type":"string"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"slug":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillRef":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillSlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillName":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillPromise":{"type":"string"},"subjectKind":{"type":"string","enum":["skill","tools","addon","custom","benchmark","site"],"description":"What the study measures. New studies: 'custom': any composition of skills, tools and add-ons, with its own subjectName and promise — under a comparisonMode that declares its groups, each group's configuration is in `arms`. 'benchmark': a pinned version of a catalog benchmark definition (requires definitionVersionId); the corpus is copied frozen from that version. 'site': a website (requires siteDomain, and a comparisonMode that declares its groups); the tasks are things to get done there, and every run is read against the site: whether the agent opened a page of it, and whether the site refused the agent. Every comparisonMode new studies use applies to 'benchmark': 'multi_arm' runs each declared group's setup: 1 group reads as the agent leaderboard: no reference group and no comparison, and it seeds the public leaderboard — when bare, labelled 'as published' on a model-API agent and 'harness default' on a harness agent, and 'with my setup' when it carries one; 2-6 groups are compared over the planned contrasts (with 2, one comparison, oriented only when a group has role 'reference'); only a bare group seeds the public leaderboard. A group that carries a setup is not the benchmark's bare protocol, so it does not seed the public leaderboard. 'skill', 'tools' and 'addon' are kept for the studies that already exist: under a comparisonMode new studies use, one answers 422 study_subject_invalid, and a create body that names no comparisonMode (or a legacy one) and carries it is read as the legacy body it is and answers 422 comparison_mode_removed (docs/studies/comparison-modes/README.md maps each legacy design onto the new ones)."},"subjectName":{"anyOf":[{"type":"string"},{"type":"null"}]},"siteDomain":{"description":"The website a 'site' study is run against (its host); absent for every other subject kind.","type":"string"},"subjectLabel":{"type":"string"},"armConfig":{"type":"object","properties":{"baseline":{"description":"The baseline arm's run-payload delta. Omitted = a bare run (no skill, no extras).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false},"treatment":{"description":"The treatment arm's run-payload delta (the thing under test).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"additionalProperties":false,"description":"Frozen per-arm run-payload deltas of a fixed pair of arms (comparisonMode 'ab_vs_none' or 'ab_custom' or 'single'), kept for the studies that already exist: new studies carry each group's configuration in `arms`, and a create body that names no comparisonMode (or a legacy one) and carries it is read as the legacy body it is and answers 422 comparison_mode_removed (docs/studies/comparison-modes/README.md maps each legacy design onto the new ones)."},"comparisonMode":{"type":"string","enum":["ab_vs_none","ab_custom","single","multi_arm"],"description":"The study's design. New studies: 'multi_arm' (Groups): 1-6 groups declared in `arms`, each with its own label and configuration — 1 group reads as the agent leaderboard: no reference group and no comparison, and it seeds the public leaderboard — when bare, labelled 'as published' on a model-API agent and 'harness default' on a harness agent, and 'with my setup' when it carries one; 2-6 groups are compared over the planned contrasts (with 2, one comparison, oriented only when a group has role 'reference'); only a bare group seeds the public leaderboard; which pairs are judged is `contrasts`. 'ab_vs_none', 'ab_custom' and 'single' are kept for the studies that already exist: a create naming one answers 422 comparison_mode_removed (docs/studies/comparison-modes/README.md maps each legacy design onto the new ones)."},"subjectBackend":{"anyOf":[{"type":"string","enum":["model","harness"],"description":"What answers a FRAMEWORK benchmark's requests: 'harness' — each request is answered by the cell's agent harness (the model inside its own loop, with the arm's tools, add-ons and skills), one agent run per request; 'model' — the framework's own client calls the cell's model directly and the cell's harness is not measured. Resolved once per study and recorded on every run."},{"type":"null"}]},"environmentExecutionPolicy":{"type":"string","enum":["legacy-v1","inside-v1"]},"importedFrom":{"type":"string"},"baselineLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"treatmentLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"promiseMetrics":{"type":"array","items":{"type":"object","properties":{"metric":{"type":"string","enum":["total_tokens","output_tokens","cost_usd","duration_ms","num_turns","success_rate","completion_rate","goal_rate"]},"direction":{"type":"string","enum":["down","up"]},"label":{"type":"string","minLength":1,"maxLength":120}},"required":["metric","direction","label"],"additionalProperties":false}},"matrix":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1,"maxLength":50,"description":"Harness id — the valid set (and each one's models) is GET /catalog; cells are validated against it at create."},"model":{"type":"string","minLength":1,"maxLength":100,"description":"Model id as the harness accepts it — valid ids per harness/provider are in GET /catalog (e.g. 'claude-sonnet-5', 'gpt-5.5')."},"provider":{"description":"Provider qualifier for multi-provider harnesses (e.g. 'anthropic', 'openai', 'google'). Omit to use the harness default.","type":"string","minLength":1,"maxLength":32},"params":{"description":"Provider params pinned for this cell (temperature, reasoningEffort, maxOutputTokens, thinkingBudgetTokens). A cell that pins none runs the provider's own defaults. Offered only where the harness declares support — see GET /catalog.","type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"maxOutputTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reasoningEffort":{"type":"string","enum":["low","medium","high"]},"thinkingBudgetTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"codeMode":{"type":"string","enum":["auto","on","off"]},"toolSearch":{"type":"string","enum":["on","off","directory"]},"location":{"type":"string","pattern":"^[A-Z]{2}$"},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$"}},"additionalProperties":false}},"required":["harness","model"],"additionalProperties":false,"description":"One (harness, model, params) cell — every task runs its arm(s) on every cell."}},"lenses":{"minItems":1,"type":"array","items":{"type":"string","enum":["judge","evals","reference","framework","execution","verifier"]},"description":"Which grading lenses this study runs under. Defaults to ['judge'] at create and stays editable while status is 'ready' (frozen at launch, like task expectations/rubrics). 'judge': the LLM judge panel (rubric grades + blind pairwise). 'evals': the deterministic @ora/eval-checks engine, scored against each task's authored expectations. 'reference': the static-QA lens — an answer extracted from the response and matched against the task's own reference key, scored 1/0 (spec §6.4). 'framework': the benchmark's OWN framework (HELM today) reports the metrics, mapped verbatim into a section rather than re-averaged (SP2 Task 9). 'execution': the candidate's code is extracted from the response and run against the task's own tests inside a sandboxed, network-less runner image (SP2 Task 16)."},"judgeSupplementary":{"type":"boolean"},"taskCount":{"type":"number"},"variantsPerTask":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Semantics-preserving paraphrases sampled per task (1-5; mirrors the create body's variantsPerTask). Absent at create defaults to 1 — every response reports a concrete value, including studies created before sampling existed."},"repeats":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Identical re-runs sampled per condition (1-10; mirrors the create body's repeats). Absent at create defaults to 1 — every response reports a concrete value, including studies created before sampling existed."},"subset":{"anyOf":[{"type":"object","properties":{"count":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"seed":{"type":"string","minLength":1},"of":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["count","seed","of"],"additionalProperties":false},{"type":"null"}]},"status":{"type":"string"},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"preparation":{"anyOf":[{"type":"object","properties":{"since":{"type":"string"},"progressAt":{"type":"string"},"launchedBy":{"type":"object","properties":{"userId":{"type":"string"},"role":{"type":"string"}},"additionalProperties":false},"waitingOn":{"type":"array","items":{"type":"object","properties":{"imageKey":{"type":"string"},"buildId":{"type":"string"},"stage":{"type":"string","enum":["image","snapshot"]},"retry":{"type":"object","properties":{"failedAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maxAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"notBefore":{"type":"string"},"lastFailure":{"type":"string"}},"required":["failedAttempts","maxAttempts","notBefore","lastFailure"],"additionalProperties":false}},"required":["imageKey","buildId"],"additionalProperties":false}}},"required":["since","launchedBy","waitingOn"],"additionalProperties":false},{"type":"null"}]},"visibility":{"type":"string","enum":["private","org","link","public"],"description":"Who may read this study: private (creator + org owners) | org (the whole org) | link (anyone holding ?share=<token>, unlisted) | public (everyone, listed)."},"visibilityChangedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"visibilityChangedBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"shareToken":{"anyOf":[{"type":"string"},{"type":"null"}]},"lowSampleOverride":{"type":"boolean","description":"True iff this study was explicitly published below the sample-size floor (spec A6) — the published page shows a low-sample badge when set."},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"verdict":{},"definitionVersionId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The benchmark definition VERSION this study pinned at create — non-null only for subjectKind 'benchmark'. Its corpus was copied frozen from that version, so the study stays reproducible when the definition publishes a newer one."},"runnerKind":{"type":"string","enum":["ora-runs","batch-job"],"description":"Which executor fans this study out: 'ora-runs' (the ora runs spine) or 'batch-job' (a built runner image)."},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"liveUntil":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When this study's live stream stops being held open (null while it is still running). Attaching before it yields the remaining post-terminal frames (gradings, recordings, refined verdicts)."},"launch":{"description":"The launch record: planned / created runs, the runs it could not create (missing.retryable: launching again creates them; missing.refused: a re-launch is refused the same way) with one note per cell and group, and the fan-out's state (fanning_out | deferred | settled). Null for a study launched before records existed.","anyOf":[{"type":"object","properties":{"attempt":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"state":{"type":"string","enum":["fanning_out","deferred","settled"]},"startedAt":{"type":"string"},"progressAt":{"type":"string"},"planned":{"type":"integer","minimum":0,"maximum":9007199254740991},"created":{"type":"integer","minimum":0,"maximum":9007199254740991},"missing":{"type":"object","properties":{"retryable":{"type":"integer","minimum":0,"maximum":9007199254740991},"refused":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["retryable","refused"],"additionalProperties":false},"notes":{"type":"array","items":{"type":"string"}},"settledAt":{"type":"string"},"pacing":{"type":"object","properties":{"waiting":{"type":"integer","minimum":0,"maximum":9007199254740991},"nextUnit":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"nextWaveAt":{"type":"string"},"emptyWaves":{"type":"integer","minimum":0,"maximum":9007199254740991},"stopped":{"type":"string"}},"required":["waiting"],"additionalProperties":false},"recovery":{"type":"object","properties":{"state":{"type":"string","enum":["retrying","needs_attention"]},"attempts":{"type":"integer","minimum":0,"maximum":9007199254740991},"lastAttemptAt":{"type":"string"},"nextAttemptAt":{"type":"string"},"reason":{"type":"string"}},"required":["state","attempts"],"additionalProperties":false},"stopped":{"type":"object","properties":{"at":{"type":"string"},"notStarted":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["at","notStarted"],"additionalProperties":false}},"required":["attempt","state","startedAt","progressAt"],"additionalProperties":false},{"type":"null"}]},"pacing":{"description":"How fast this study may START its runs, as declared at create: maxInFlight (at most N of its runs unfinished at once) and/or startsPerMinute (at most N started in any 60 s). Its runs start in waves of whole comparison units (every group's run of one agent on one task sample, together); the launch record's `pacing` says how many wait for a later wave. Null = every run started at launch.","anyOf":[{"type":"object","properties":{"maxInFlight":{"description":"At most this many of the study's runs unfinished at once — queued, pending or running (1-500). The next runs start as earlier ones finish.","type":"integer","minimum":1,"maximum":500},"startsPerMinute":{"description":"At most this many of the study's runs started in any 60-second window (1-600).","type":"integer","minimum":1,"maximum":600}},"additionalProperties":false},{"type":"null"}]},"relaunchable":{"description":"True when this running study may be launched again: its launch record says planned runs are missing (missing.retryable > 0), or its fan-out stopped. POST …/launch then creates exactly the runs that do not exist.","type":"boolean"},"archivedAt":{"description":"When this study was archived; null while it is not. An archived study loses nothing: it leaves the default list, is read-only (409 study_archived), and is on no public page. Restoring it clears this.","anyOf":[{"type":"string"},{"type":"null"}]},"archivedBy":{"description":"The user who archived it. Null when an API key did, and while the study is not archived.","anyOf":[{"type":"string"},{"type":"null"}]},"arms":{"description":"A declared-arm study's groups, in position order.","type":"array","items":{"type":"object","properties":{"key":{"type":"string","description":"The group's run key (each of its runs' `arm`)."},"position":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"0-based display order."},"label":{"type":"string","maxLength":80,"description":"The group's display label. Never shown to the judge."},"role":{"type":"string","enum":["reference","peer"],"description":"'reference' marks the group the others are compared against; the rest are peers."},"payload":{"type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"brief":{"description":"Text the agent is given after the task, for every task this group runs. At most 600 characters. A group with a brief is a setup of its own, never the subject as published.","type":"string","minLength":1,"maxLength":600}},"additionalProperties":false,"description":"The group's run-payload delta ({} = the subject as published)."},"cells":{"description":"The group's OWN agents, when the study's groups each list theirs (cellPlan 'per_setup'); absent = the matrix.","type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1,"maxLength":50,"description":"Harness id — the valid set (and each one's models) is GET /catalog; cells are validated against it at create."},"model":{"type":"string","minLength":1,"maxLength":100,"description":"Model id as the harness accepts it — valid ids per harness/provider are in GET /catalog (e.g. 'claude-sonnet-5', 'gpt-5.5')."},"provider":{"description":"Provider qualifier for multi-provider harnesses (e.g. 'anthropic', 'openai', 'google'). Omit to use the harness default.","type":"string","minLength":1,"maxLength":32},"params":{"description":"Provider params pinned for this cell (temperature, reasoningEffort, maxOutputTokens, thinkingBudgetTokens). A cell that pins none runs the provider's own defaults. Offered only where the harness declares support — see GET /catalog.","type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"maxOutputTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reasoningEffort":{"type":"string","enum":["low","medium","high"]},"thinkingBudgetTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"codeMode":{"type":"string","enum":["auto","on","off"]},"toolSearch":{"type":"string","enum":["on","off","directory"]},"location":{"type":"string","pattern":"^[A-Z]{2}$"},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$"}},"additionalProperties":false}},"required":["harness","model"],"additionalProperties":false,"description":"One (harness, model, params) cell — every task runs its arm(s) on every cell."}},"skipTasks":{"description":"The tasks this group leaves out, by task number (1 = the first); absent = it runs every task.","type":"array","items":{"type":"integer","minimum":1,"maximum":9007199254740991}},"skills":{"description":"The group's skills as resolved when the study was created (absent for a study created before that existed).","type":"array","items":{"type":"object","properties":{"ref":{"type":"string","description":"The skill ref the group's selection names."},"name":{"type":"string","description":"The skill's name when the study was created."},"changedSinceCreate":{"description":"True when the skill's content now differs from what the study ran; absent when the reader cannot check it.","type":"boolean"}},"required":["ref","name"],"additionalProperties":false}},"addedAgents":{"description":"The agents this group gained after the study was created (`addAgents`), by position in `cells` — absent when none was added.","type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The agent's position in the group's `cells`."},"addedAt":{"type":"string","description":"When it was added (RFC 3339)."}},"required":["position","addedAt"],"additionalProperties":false}}},"required":["key","position","label","role","payload"],"additionalProperties":false}},"contrastPlan":{"description":"The study's planned-contrast policy.","type":"string","enum":["vs_reference","all_pairs","ladder"]},"cellPlan":{"description":"How the groups meet their agents: absent = every group runs the matrix; 'per_setup' = each its own.","type":"string","enum":["crossed","per_setup"]},"skillDisclosure":{"description":"Whether the published page names the groups' skills: absent = withheld (chosen at publish).","type":"string","enum":["withheld","named"]},"modeOptions":{"description":"The comparisonMode's private inputs.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"screens":{"description":"The run screens the study declares (frozen at launch, like lenses). Absent = none.","type":"array","items":{"type":"string","enum":["test_awareness","site_access"]}},"runCounting":{"description":"Which of the study's runs its numbers count (GET /studies/:id/run-counting). Absent = every run.","anyOf":[{"type":"object","properties":{"policy":{"type":"string","const":"hold_back_screened"},"screen":{"type":"string","enum":["test_awareness"],"description":"The screen whose verdicts decide. Today: 'test_awareness'."},"levels":{"minItems":1,"type":"array","items":{"type":"string","enum":["aware","influenced"]},"description":"The verdict levels held back. A run the screen could not judge is never held back."}},"required":["policy","screen","levels"],"additionalProperties":false,"description":"Which of the study's runs its numbers count. Absent or null = every run. 'hold_back_screened' leaves out the runs the named screen flagged at one of `levels`: each is a missing measurement with a named reason, never a fail, and the count held back is stated beside every figure."},{"type":"null"}]},"seriesKey":{"description":"The series the study belongs to (set at create). Absent = none.","anyOf":[{"type":"string","pattern":"^[a-z0-9][a-z0-9._/-]{0,119}$"},{"type":"null"}]},"ref":{"description":"Where the study was taken: commit, branch, pull request. Absent = not recorded.","anyOf":[{"type":"object","properties":{"commit":{"description":"The commit the study was taken at (a SHA).","type":"string","minLength":1,"maxLength":64},"branch":{"description":"The branch it was taken on, e.g. 'main'. A gate's series baseline filters on it.","type":"string","minLength":1,"maxLength":200},"pr":{"description":"The pull request number, when it was taken for one.","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"url":{"description":"A link back to the change (the commit or pull request page).","type":"string","maxLength":500,"format":"uri"}},"additionalProperties":false},{"type":"null"}]},"gradingRevision":{"description":"The study's grading revision, when its checks were revised after its runs finished. Absent = never revised.","type":"integer","minimum":2,"maximum":9007199254740991},"gradingRevisedAt":{"description":"When the checks were last revised. Later than `publishedAt` = the grades changed after publication.","anyOf":[{"type":"string"},{"type":"null"}]},"rehearsal":{"description":"The study is a rehearsal: the smallest real run of a design, made by POST /studies/rehearsals. Absent = an ordinary study.","type":"boolean","const":true},"rehearsalMode":{"description":"How a rehearsal runs: 'live' (the real agents), or 'setup' / 'mock' (no agent is started). Absent on every other study.","type":"string"},"behaviors":{"description":"The custom behaviors the study declares (frozen at launch, like lenses). A run's verdict on one is in its `screens` under `b_<key>`. Absent = none.","type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{1,29}$","description":"A short id for the behavior, lowercase snake (`deleted_files`). Its verdicts are stored and queried under `b_<key>`."},"name":{"type":"string","minLength":1,"maxLength":80,"description":"What a reader sees: \"Deleted files it was not asked to\"."},"question":{"type":"string","minLength":10,"maxLength":400,"description":"One yes-or-no question about a single run that a judge can answer from its trace: \"Did the agent …?\"."},"version":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The version of the behavior's wording. A verdict and a review belong to the version they were made on."}},"required":["key","name","question","version"],"additionalProperties":false}},"stepTimeLimitSeconds":{"description":"How long each step of a task with steps may take, in seconds, as declared at create. A step still running after it ends the run, whose reason names the step and the limit. Null or absent = no per-step limit.","anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["id","plannedRunCount","organizationId","createdBy","name","slug","description","skillRef","skillSlug","skillName","skillPromise","subjectKind","subjectName","subjectLabel","armConfig","comparisonMode","subjectBackend","baselineLabel","treatmentLabel","promiseMetrics","matrix","lenses","taskCount","variantsPerTask","repeats","subset","status","error","visibility","lowSampleOverride","publishedAt","verdict","definitionVersionId","runnerKind","createdAt","updatedAt","liveUntil"],"additionalProperties":false},"stop":{"type":"object","properties":{"alreadyStopped":{"type":"boolean","description":"True when the study had been stopped before this call: nothing was written, and any run still unfinished was cancelled."},"stoppedAt":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When the study was stopped (RFC 3339). Null for a study launched before launch records existed."},"cancelled":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Unfinished runs this call cancelled. Finished runs keep their results."},"notStarted":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Planned runs that had not started and now never will."}},"required":["alreadyStopped","stoppedAt","cancelled","notStarted"],"additionalProperties":false}},"required":["study","stop"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"study_not_found — no study with this id that the caller may open","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"study_invalid_state — the study is not running (a study still preparing its environment has no run to stop yet) · study_stop_contended — its launch changed while it was being stopped: call again","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:write","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/studies/{id}/stream":{"get":{"operationId":"study.stream","summary":"Live SSE stream: status transitions, per-run facts, grading, publish state (terminal status closes it)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The study's uuid (from create or list)."},"example":"1f7e4d1c-4b2a-4f3e-9d8c-5a6b7c8d9e0f"}],"responses":{"200":{"description":"Live SSE stream: status transitions, per-run facts, grading, publish state (terminal status closes it)","content":{"application/json":{"schema":{}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:read","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/studies/{id}/tasks/{taskId}":{"put":{"operationId":"study.updateTask","summary":"Edit a generated task's prompt before launch (status 'ready' only)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The study's uuid."},"example":"1f7e4d1c-4b2a-4f3e-9d8c-5a6b7c8d9e0f"},{"name":"taskId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The task's uuid (from the study detail's tasks list)."},"example":"8a9b0c1d-2e3f-4a5b-8c7d-6e5f4a3b2c1d"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","minLength":1,"description":"The replacement task prompt, dispatched verbatim as each run's intent. Editable only while the study is 'ready' (pre-launch)."},"expectations":{"description":"Replace this task's 'evals'-lens expectations (see studyCreateBody.tasks[].expectations). Omitted = expectations unchanged. REQUIRES the study's `lenses` to include 'evals' (422 LENS_MISMATCH otherwise); validated the same way as create.","minItems":1,"maxItems":24,"type":"array","items":{"oneOf":[{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"mcp_tool_called","description":"An MCP tool was invoked. Matched on the canonical `steps[].mcp` stamp, never a tool-name grep, so it works across every harness dialect."},"server":{"description":"MCP server name (e.g. \"tavily\"). Omit to match the tool on any server.","type":"string"},"tool":{"type":"string","description":"The MCP tool name as the server exposes it (e.g. \"search\"). Exact match."},"arguments":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"minCalls":{"type":"number"}},"required":["kind","tool"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"tool_not_called","description":"A RESTRAINT check: the named tool was never invoked. Beware vacuous passes — if the tool could never appear on this surface, use a positive check instead."},"tool":{"type":"string"},"mcp":{"type":"object","properties":{"server":{"type":"string"},"tool":{"type":"string"}},"required":["tool"]},"pattern":{"type":"string"}},"required":["kind"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"command_ran","description":"A shell command matching `pattern` was executed."},"pattern":{"type":"string","description":"Regex tested against the command text. Length-capped; backreferences and nested quantifiers are rejected as catastrophic-backtracking risks."}},"required":["kind","pattern"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"skill_loaded","description":"The agent loaded a skill. Observable ONLY under POINTER delivery — authoring this expectation auto-forces it; under inline delivery the body is embedded so no harness emits a skill step."},"slug":{"type":"string","description":"The skill slug, e.g. \"web-research\"."}},"required":["kind","slug"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"file_operation","description":"A file was read, written or edited."},"op":{"description":"Restrict to one verb. Omit to match any file operation.","type":"string","enum":["read","write","edit"]},"path":{"description":"The file path: a literal for exact match, or a matcher such as {\"$contains\":\"report\"} / {\"$pattern\":\"\\\\.md$\"}."}},"required":["kind","path"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"web_fetched","description":"A URL was fetched. Give urlHost for an exact host, urlSite for a host and its subdomains, or urlPattern for a regex over the full URL."},"urlHost":{"description":"Exact host, e.g. \"example.com\".","type":"string"},"urlSite":{"description":"A site: this host or any subdomain of it, e.g. \"example.com\" also matches \"docs.example.com\".","type":"string"},"urlPattern":{"description":"Regex over the whole URL. Same safety limits as command_ran.pattern.","type":"string"}},"required":["kind"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"response_contains","description":"The agent's final answer contains this literal text (case-sensitive substring)."},"text":{"type":"string","description":"Literal substring to find in the answer."},"normalize":{"description":"Compare by meaning rather than by glyph: 'prose' lower-cases BOTH sides, drops URLs, folds unicode dashes and typographic quotes, reads 'N to M' as 'N-M', turns hyphens/underscores into spaces and collapses whitespace. Omit for the literal, case-sensitive comparison.","type":"string","enum":["prose"]}},"required":["kind","text"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"response_matches","description":"The agent's final answer matches this regex."},"pattern":{"type":"string","description":"Regex tested against the answer text. Same safety limits as command_ran.pattern."},"ignoreCase":{"description":"Match case-insensitively. Omit (or false) for the case-sensitive default.","type":"boolean"}},"required":["kind","pattern"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"token_budget","description":"The run stayed within a token budget. ABSTAINS when usage is absent (telemetry-dark) — never fails for missing data."},"maxOutputTokens":{"description":"Ceiling on output tokens.","type":"number"},"maxTotalTokens":{"description":"Ceiling on input+output tokens.","type":"number"}},"required":["kind"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"sequence","description":"CONJUNCTION with ORDER: every branch must match, in this order. Members must be POSITIONAL (step-based) kinds — mcp_tool_called, command_ran, skill_loaded, file_operation, web_fetched. That rule is enforced by the check registry, not by this schema, so a response_* or token_budget member parses here and is refused at create."},"of":{"type":"array","items":{"$ref":"#/components/schemas/Def_0f52adfddc63c1c2862af461b851e029b5a453bd5fc4d3373ecde1dcc23a16b6"}}},"required":["kind","of"]},{"type":"object","properties":{"label":{"description":"Human label shown on the results card. Purely descriptive.","type":"string"},"arms":{"description":"Scope this check to specific arms: the study's own arm keys — \"baseline\" and \"skill\" (the treatment arm) when its comparisonMode fixes its arms, the declared groups' keys when the comparisonMode declares them. An arm-scoped check folds into a separate ADOPTION RATE and never enters the head-to-head — an arm without the subject cannot satisfy a check about it and must not be scored as if it failed. Omit to apply to every arm.","maxItems":16,"type":"array","items":{"anyOf":[{"type":"string","enum":["baseline","skill"]},{"type":"string","pattern":"^[a-z][a-z0-9-]{0,9}$"}]}},"kind":{"type":"string","const":"any_of","description":"DISJUNCTION: passes if ANY branch passes. Use it when one goal has more than one legitimate route (e.g. an MCP tool called directly OR through a proxy tool). ABSTAINS — never fails — when no branch is measurable."},"of":{"type":"array","items":{"$ref":"#/components/schemas/Def_0f52adfddc63c1c2862af461b851e029b5a453bd5fc4d3373ecde1dcc23a16b6"}}},"required":["kind","of"]}]}}},"required":["prompt"]},"example":{"prompt":"Research the three largest EU battery-storage tenders announced this quarter and cite each source."}}}},"responses":{"200":{"description":"Edit a generated task's prompt before launch (status 'ready' only)","content":{"application/json":{"schema":{"type":"object","properties":{"task":{"type":"object","properties":{"id":{"type":"string"},"studyId":{"type":"string"},"position":{"type":"number"},"prompt":{"type":"string"},"rationale":{"anyOf":[{"type":"string"},{"type":"null"}]},"category":{"anyOf":[{"type":"string"},{"type":"null"}]},"requiresWeb":{"type":"boolean"},"rubric":{"type":"array","items":{"type":"string"}},"variants":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"expectations":{"anyOf":[{"type":"array","items":{}},{"type":"null"}]},"followUps":{"description":"The task's follow-up steps: later prompts given to the agent in the same conversation, each with its own criteria (`rubric`) and checks (`expectations`). `prompt`, `rubric` and `expectations` on the task are step 1's. Omitted for a one-step task.","anyOf":[{"type":"array","items":{"type":"object","properties":{"prompt":{"type":"string"},"rubric":{"type":"array","items":{"type":"string"}},"expectations":{"anyOf":[{"type":"array","items":{}},{"type":"null"}]}},"required":["prompt","rubric"],"additionalProperties":false}},{"type":"null"}]},"files":{"description":"What is put into the agent's workspace before every run of the task starts: each a `path` with inline `content`, a `path` with the `url`, `sha256` and `sizeBytes` the run fetched and verified, or a `path` with the `repo` (its `url` and pinned `ref`) cloned into it. Omitted for a task that declares none.","anyOf":[{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"content":{"type":"string"},"url":{"type":"string"},"sha256":{"type":"string"},"sizeBytes":{"type":"number"},"repo":{"type":"object","properties":{"url":{"type":"string"},"ref":{"type":"string"},"subpath":{"type":"string"}},"required":["url","ref"],"additionalProperties":false}},"required":["path"],"additionalProperties":false}},{"type":"null"}]}},"required":["id","studyId","position","prompt","rationale","category","requiresWeb","rubric"],"additionalProperties":false}},"required":["task"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"study_invalid_state — tasks are frozen once launched — or study_archived: an imported study's results never change","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"LENS_MISMATCH — `expectations` supplied but `lenses` omits 'evals'; study_expectations_invalid — `expectations` fail shape/kind validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:write","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/studies/{id}/unpublish":{"post":{"operationId":"study.unpublish","summary":"Remove a study from the public catalog (data kept; re-publish any time)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The study's uuid (from create or list)."}}],"responses":{"200":{"description":"Remove a study from the public catalog (data kept; re-publish any time)","content":{"application/json":{"schema":{"type":"object","properties":{"study":{"type":"object","properties":{"id":{"type":"string"},"executiveSummary":{"anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryDraft":{"description":"A PUBLISHED study's summary held for review, never shown on the public page: what `studies.regenerateSummary` writes on a published study (and the first summary of a published study nothing asked for). `studies.publish` makes exactly this text the published `executiveSummary`, while the readout it was written from is still current; otherwise publish regenerates. Absent where the product has no review drafts.","anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryRequest":{"description":"A summary an explicit act asked for and not yet written: 'live' — a publish, a re-open, or a regenerate on an UNPUBLISHED completed study owes the summary in place (the public page, once published); 'draft' — a regenerate on a published study owes the review draft one. Null once the request is answered — poll `studies.get` until it is: by the written summary (`executiveSummary` or `executiveSummaryDraft`), by a later act that superseded it (a publish, a newer regenerate — its own write answers it), or as unavailable (`executiveSummaryUnavailableAt` set). While the automatic retries back off after a failed attempt it stays pending. Absent where the product has no review drafts.","anyOf":[{"type":"string","enum":["live","draft"]},{"type":"null"}]},"executiveSummaryRequestedAt":{"description":"When `executiveSummaryRequest` was made.","anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryUnavailableAt":{"description":"When the last summary request was answered as UNAVAILABLE: every attempt the retry policy allows on the study's readout failed, so no summary will be written for it until the readout changes (runs added, a re-run, a regrade) or someone regenerates or publishes again. Null otherwise; cleared by a new request or a written summary. Absent where the product has no review drafts.","anyOf":[{"type":"string"},{"type":"null"}]},"plannedRunCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The exact number of runs `launch` will fan out (taskCount × variantsPerTask × repeats × matrix cells × arms). Check this BEFORE launching."},"organizationId":{"type":"string"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"slug":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillRef":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillSlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillName":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillPromise":{"type":"string"},"subjectKind":{"type":"string","enum":["skill","tools","addon","custom","benchmark","site"],"description":"What the study measures. New studies: 'custom': any composition of skills, tools and add-ons, with its own subjectName and promise — under a comparisonMode that declares its groups, each group's configuration is in `arms`. 'benchmark': a pinned version of a catalog benchmark definition (requires definitionVersionId); the corpus is copied frozen from that version. 'site': a website (requires siteDomain, and a comparisonMode that declares its groups); the tasks are things to get done there, and every run is read against the site: whether the agent opened a page of it, and whether the site refused the agent. Every comparisonMode new studies use applies to 'benchmark': 'multi_arm' runs each declared group's setup: 1 group reads as the agent leaderboard: no reference group and no comparison, and it seeds the public leaderboard — when bare, labelled 'as published' on a model-API agent and 'harness default' on a harness agent, and 'with my setup' when it carries one; 2-6 groups are compared over the planned contrasts (with 2, one comparison, oriented only when a group has role 'reference'); only a bare group seeds the public leaderboard. A group that carries a setup is not the benchmark's bare protocol, so it does not seed the public leaderboard. 'skill', 'tools' and 'addon' are kept for the studies that already exist: under a comparisonMode new studies use, one answers 422 study_subject_invalid, and a create body that names no comparisonMode (or a legacy one) and carries it is read as the legacy body it is and answers 422 comparison_mode_removed (docs/studies/comparison-modes/README.md maps each legacy design onto the new ones)."},"subjectName":{"anyOf":[{"type":"string"},{"type":"null"}]},"siteDomain":{"description":"The website a 'site' study is run against (its host); absent for every other subject kind.","type":"string"},"subjectLabel":{"type":"string"},"armConfig":{"type":"object","properties":{"baseline":{"description":"The baseline arm's run-payload delta. Omitted = a bare run (no skill, no extras).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false},"treatment":{"description":"The treatment arm's run-payload delta (the thing under test).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"additionalProperties":false,"description":"Frozen per-arm run-payload deltas of a fixed pair of arms (comparisonMode 'ab_vs_none' or 'ab_custom' or 'single'), kept for the studies that already exist: new studies carry each group's configuration in `arms`, and a create body that names no comparisonMode (or a legacy one) and carries it is read as the legacy body it is and answers 422 comparison_mode_removed (docs/studies/comparison-modes/README.md maps each legacy design onto the new ones)."},"comparisonMode":{"type":"string","enum":["ab_vs_none","ab_custom","single","multi_arm"],"description":"The study's design. New studies: 'multi_arm' (Groups): 1-6 groups declared in `arms`, each with its own label and configuration — 1 group reads as the agent leaderboard: no reference group and no comparison, and it seeds the public leaderboard — when bare, labelled 'as published' on a model-API agent and 'harness default' on a harness agent, and 'with my setup' when it carries one; 2-6 groups are compared over the planned contrasts (with 2, one comparison, oriented only when a group has role 'reference'); only a bare group seeds the public leaderboard; which pairs are judged is `contrasts`. 'ab_vs_none', 'ab_custom' and 'single' are kept for the studies that already exist: a create naming one answers 422 comparison_mode_removed (docs/studies/comparison-modes/README.md maps each legacy design onto the new ones)."},"subjectBackend":{"anyOf":[{"type":"string","enum":["model","harness"],"description":"What answers a FRAMEWORK benchmark's requests: 'harness' — each request is answered by the cell's agent harness (the model inside its own loop, with the arm's tools, add-ons and skills), one agent run per request; 'model' — the framework's own client calls the cell's model directly and the cell's harness is not measured. Resolved once per study and recorded on every run."},{"type":"null"}]},"environmentExecutionPolicy":{"type":"string","enum":["legacy-v1","inside-v1"]},"importedFrom":{"type":"string"},"baselineLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"treatmentLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"promiseMetrics":{"type":"array","items":{"type":"object","properties":{"metric":{"type":"string","enum":["total_tokens","output_tokens","cost_usd","duration_ms","num_turns","success_rate","completion_rate","goal_rate"]},"direction":{"type":"string","enum":["down","up"]},"label":{"type":"string","minLength":1,"maxLength":120}},"required":["metric","direction","label"],"additionalProperties":false}},"matrix":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1,"maxLength":50,"description":"Harness id — the valid set (and each one's models) is GET /catalog; cells are validated against it at create."},"model":{"type":"string","minLength":1,"maxLength":100,"description":"Model id as the harness accepts it — valid ids per harness/provider are in GET /catalog (e.g. 'claude-sonnet-5', 'gpt-5.5')."},"provider":{"description":"Provider qualifier for multi-provider harnesses (e.g. 'anthropic', 'openai', 'google'). Omit to use the harness default.","type":"string","minLength":1,"maxLength":32},"params":{"description":"Provider params pinned for this cell (temperature, reasoningEffort, maxOutputTokens, thinkingBudgetTokens). A cell that pins none runs the provider's own defaults. Offered only where the harness declares support — see GET /catalog.","type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"maxOutputTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reasoningEffort":{"type":"string","enum":["low","medium","high"]},"thinkingBudgetTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"codeMode":{"type":"string","enum":["auto","on","off"]},"toolSearch":{"type":"string","enum":["on","off","directory"]},"location":{"type":"string","pattern":"^[A-Z]{2}$"},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$"}},"additionalProperties":false}},"required":["harness","model"],"additionalProperties":false,"description":"One (harness, model, params) cell — every task runs its arm(s) on every cell."}},"lenses":{"minItems":1,"type":"array","items":{"type":"string","enum":["judge","evals","reference","framework","execution","verifier"]},"description":"Which grading lenses this study runs under. Defaults to ['judge'] at create and stays editable while status is 'ready' (frozen at launch, like task expectations/rubrics). 'judge': the LLM judge panel (rubric grades + blind pairwise). 'evals': the deterministic @ora/eval-checks engine, scored against each task's authored expectations. 'reference': the static-QA lens — an answer extracted from the response and matched against the task's own reference key, scored 1/0 (spec §6.4). 'framework': the benchmark's OWN framework (HELM today) reports the metrics, mapped verbatim into a section rather than re-averaged (SP2 Task 9). 'execution': the candidate's code is extracted from the response and run against the task's own tests inside a sandboxed, network-less runner image (SP2 Task 16)."},"judgeSupplementary":{"type":"boolean"},"taskCount":{"type":"number"},"variantsPerTask":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Semantics-preserving paraphrases sampled per task (1-5; mirrors the create body's variantsPerTask). Absent at create defaults to 1 — every response reports a concrete value, including studies created before sampling existed."},"repeats":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Identical re-runs sampled per condition (1-10; mirrors the create body's repeats). Absent at create defaults to 1 — every response reports a concrete value, including studies created before sampling existed."},"subset":{"anyOf":[{"type":"object","properties":{"count":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"seed":{"type":"string","minLength":1},"of":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["count","seed","of"],"additionalProperties":false},{"type":"null"}]},"status":{"type":"string"},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"preparation":{"anyOf":[{"type":"object","properties":{"since":{"type":"string"},"progressAt":{"type":"string"},"launchedBy":{"type":"object","properties":{"userId":{"type":"string"},"role":{"type":"string"}},"additionalProperties":false},"waitingOn":{"type":"array","items":{"type":"object","properties":{"imageKey":{"type":"string"},"buildId":{"type":"string"},"stage":{"type":"string","enum":["image","snapshot"]},"retry":{"type":"object","properties":{"failedAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maxAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"notBefore":{"type":"string"},"lastFailure":{"type":"string"}},"required":["failedAttempts","maxAttempts","notBefore","lastFailure"],"additionalProperties":false}},"required":["imageKey","buildId"],"additionalProperties":false}}},"required":["since","launchedBy","waitingOn"],"additionalProperties":false},{"type":"null"}]},"visibility":{"type":"string","enum":["private","org","link","public"],"description":"Who may read this study: private (creator + org owners) | org (the whole org) | link (anyone holding ?share=<token>, unlisted) | public (everyone, listed)."},"visibilityChangedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"visibilityChangedBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"shareToken":{"anyOf":[{"type":"string"},{"type":"null"}]},"lowSampleOverride":{"type":"boolean","description":"True iff this study was explicitly published below the sample-size floor (spec A6) — the published page shows a low-sample badge when set."},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"verdict":{},"definitionVersionId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The benchmark definition VERSION this study pinned at create — non-null only for subjectKind 'benchmark'. Its corpus was copied frozen from that version, so the study stays reproducible when the definition publishes a newer one."},"runnerKind":{"type":"string","enum":["ora-runs","batch-job"],"description":"Which executor fans this study out: 'ora-runs' (the ora runs spine) or 'batch-job' (a built runner image)."},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"liveUntil":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When this study's live stream stops being held open (null while it is still running). Attaching before it yields the remaining post-terminal frames (gradings, recordings, refined verdicts)."},"launch":{"description":"The launch record: planned / created runs, the runs it could not create (missing.retryable: launching again creates them; missing.refused: a re-launch is refused the same way) with one note per cell and group, and the fan-out's state (fanning_out | deferred | settled). Null for a study launched before records existed.","anyOf":[{"type":"object","properties":{"attempt":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"state":{"type":"string","enum":["fanning_out","deferred","settled"]},"startedAt":{"type":"string"},"progressAt":{"type":"string"},"planned":{"type":"integer","minimum":0,"maximum":9007199254740991},"created":{"type":"integer","minimum":0,"maximum":9007199254740991},"missing":{"type":"object","properties":{"retryable":{"type":"integer","minimum":0,"maximum":9007199254740991},"refused":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["retryable","refused"],"additionalProperties":false},"notes":{"type":"array","items":{"type":"string"}},"settledAt":{"type":"string"},"pacing":{"type":"object","properties":{"waiting":{"type":"integer","minimum":0,"maximum":9007199254740991},"nextUnit":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"nextWaveAt":{"type":"string"},"emptyWaves":{"type":"integer","minimum":0,"maximum":9007199254740991},"stopped":{"type":"string"}},"required":["waiting"],"additionalProperties":false},"recovery":{"type":"object","properties":{"state":{"type":"string","enum":["retrying","needs_attention"]},"attempts":{"type":"integer","minimum":0,"maximum":9007199254740991},"lastAttemptAt":{"type":"string"},"nextAttemptAt":{"type":"string"},"reason":{"type":"string"}},"required":["state","attempts"],"additionalProperties":false},"stopped":{"type":"object","properties":{"at":{"type":"string"},"notStarted":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["at","notStarted"],"additionalProperties":false}},"required":["attempt","state","startedAt","progressAt"],"additionalProperties":false},{"type":"null"}]},"pacing":{"description":"How fast this study may START its runs, as declared at create: maxInFlight (at most N of its runs unfinished at once) and/or startsPerMinute (at most N started in any 60 s). Its runs start in waves of whole comparison units (every group's run of one agent on one task sample, together); the launch record's `pacing` says how many wait for a later wave. Null = every run started at launch.","anyOf":[{"type":"object","properties":{"maxInFlight":{"description":"At most this many of the study's runs unfinished at once — queued, pending or running (1-500). The next runs start as earlier ones finish.","type":"integer","minimum":1,"maximum":500},"startsPerMinute":{"description":"At most this many of the study's runs started in any 60-second window (1-600).","type":"integer","minimum":1,"maximum":600}},"additionalProperties":false},{"type":"null"}]},"relaunchable":{"description":"True when this running study may be launched again: its launch record says planned runs are missing (missing.retryable > 0), or its fan-out stopped. POST …/launch then creates exactly the runs that do not exist.","type":"boolean"},"archivedAt":{"description":"When this study was archived; null while it is not. An archived study loses nothing: it leaves the default list, is read-only (409 study_archived), and is on no public page. Restoring it clears this.","anyOf":[{"type":"string"},{"type":"null"}]},"archivedBy":{"description":"The user who archived it. Null when an API key did, and while the study is not archived.","anyOf":[{"type":"string"},{"type":"null"}]},"arms":{"description":"A declared-arm study's groups, in position order.","type":"array","items":{"type":"object","properties":{"key":{"type":"string","description":"The group's run key (each of its runs' `arm`)."},"position":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"0-based display order."},"label":{"type":"string","maxLength":80,"description":"The group's display label. Never shown to the judge."},"role":{"type":"string","enum":["reference","peer"],"description":"'reference' marks the group the others are compared against; the rest are peers."},"payload":{"type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"brief":{"description":"Text the agent is given after the task, for every task this group runs. At most 600 characters. A group with a brief is a setup of its own, never the subject as published.","type":"string","minLength":1,"maxLength":600}},"additionalProperties":false,"description":"The group's run-payload delta ({} = the subject as published)."},"cells":{"description":"The group's OWN agents, when the study's groups each list theirs (cellPlan 'per_setup'); absent = the matrix.","type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1,"maxLength":50,"description":"Harness id — the valid set (and each one's models) is GET /catalog; cells are validated against it at create."},"model":{"type":"string","minLength":1,"maxLength":100,"description":"Model id as the harness accepts it — valid ids per harness/provider are in GET /catalog (e.g. 'claude-sonnet-5', 'gpt-5.5')."},"provider":{"description":"Provider qualifier for multi-provider harnesses (e.g. 'anthropic', 'openai', 'google'). Omit to use the harness default.","type":"string","minLength":1,"maxLength":32},"params":{"description":"Provider params pinned for this cell (temperature, reasoningEffort, maxOutputTokens, thinkingBudgetTokens). A cell that pins none runs the provider's own defaults. Offered only where the harness declares support — see GET /catalog.","type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"maxOutputTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reasoningEffort":{"type":"string","enum":["low","medium","high"]},"thinkingBudgetTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"codeMode":{"type":"string","enum":["auto","on","off"]},"toolSearch":{"type":"string","enum":["on","off","directory"]},"location":{"type":"string","pattern":"^[A-Z]{2}$"},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$"}},"additionalProperties":false}},"required":["harness","model"],"additionalProperties":false,"description":"One (harness, model, params) cell — every task runs its arm(s) on every cell."}},"skipTasks":{"description":"The tasks this group leaves out, by task number (1 = the first); absent = it runs every task.","type":"array","items":{"type":"integer","minimum":1,"maximum":9007199254740991}},"skills":{"description":"The group's skills as resolved when the study was created (absent for a study created before that existed).","type":"array","items":{"type":"object","properties":{"ref":{"type":"string","description":"The skill ref the group's selection names."},"name":{"type":"string","description":"The skill's name when the study was created."},"changedSinceCreate":{"description":"True when the skill's content now differs from what the study ran; absent when the reader cannot check it.","type":"boolean"}},"required":["ref","name"],"additionalProperties":false}},"addedAgents":{"description":"The agents this group gained after the study was created (`addAgents`), by position in `cells` — absent when none was added.","type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The agent's position in the group's `cells`."},"addedAt":{"type":"string","description":"When it was added (RFC 3339)."}},"required":["position","addedAt"],"additionalProperties":false}}},"required":["key","position","label","role","payload"],"additionalProperties":false}},"contrastPlan":{"description":"The study's planned-contrast policy.","type":"string","enum":["vs_reference","all_pairs","ladder"]},"cellPlan":{"description":"How the groups meet their agents: absent = every group runs the matrix; 'per_setup' = each its own.","type":"string","enum":["crossed","per_setup"]},"skillDisclosure":{"description":"Whether the published page names the groups' skills: absent = withheld (chosen at publish).","type":"string","enum":["withheld","named"]},"modeOptions":{"description":"The comparisonMode's private inputs.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"screens":{"description":"The run screens the study declares (frozen at launch, like lenses). Absent = none.","type":"array","items":{"type":"string","enum":["test_awareness","site_access"]}},"runCounting":{"description":"Which of the study's runs its numbers count (GET /studies/:id/run-counting). Absent = every run.","anyOf":[{"type":"object","properties":{"policy":{"type":"string","const":"hold_back_screened"},"screen":{"type":"string","enum":["test_awareness"],"description":"The screen whose verdicts decide. Today: 'test_awareness'."},"levels":{"minItems":1,"type":"array","items":{"type":"string","enum":["aware","influenced"]},"description":"The verdict levels held back. A run the screen could not judge is never held back."}},"required":["policy","screen","levels"],"additionalProperties":false,"description":"Which of the study's runs its numbers count. Absent or null = every run. 'hold_back_screened' leaves out the runs the named screen flagged at one of `levels`: each is a missing measurement with a named reason, never a fail, and the count held back is stated beside every figure."},{"type":"null"}]},"seriesKey":{"description":"The series the study belongs to (set at create). Absent = none.","anyOf":[{"type":"string","pattern":"^[a-z0-9][a-z0-9._/-]{0,119}$"},{"type":"null"}]},"ref":{"description":"Where the study was taken: commit, branch, pull request. Absent = not recorded.","anyOf":[{"type":"object","properties":{"commit":{"description":"The commit the study was taken at (a SHA).","type":"string","minLength":1,"maxLength":64},"branch":{"description":"The branch it was taken on, e.g. 'main'. A gate's series baseline filters on it.","type":"string","minLength":1,"maxLength":200},"pr":{"description":"The pull request number, when it was taken for one.","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"url":{"description":"A link back to the change (the commit or pull request page).","type":"string","maxLength":500,"format":"uri"}},"additionalProperties":false},{"type":"null"}]},"gradingRevision":{"description":"The study's grading revision, when its checks were revised after its runs finished. Absent = never revised.","type":"integer","minimum":2,"maximum":9007199254740991},"gradingRevisedAt":{"description":"When the checks were last revised. Later than `publishedAt` = the grades changed after publication.","anyOf":[{"type":"string"},{"type":"null"}]},"rehearsal":{"description":"The study is a rehearsal: the smallest real run of a design, made by POST /studies/rehearsals. Absent = an ordinary study.","type":"boolean","const":true},"rehearsalMode":{"description":"How a rehearsal runs: 'live' (the real agents), or 'setup' / 'mock' (no agent is started). Absent on every other study.","type":"string"},"behaviors":{"description":"The custom behaviors the study declares (frozen at launch, like lenses). A run's verdict on one is in its `screens` under `b_<key>`. Absent = none.","type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{1,29}$","description":"A short id for the behavior, lowercase snake (`deleted_files`). Its verdicts are stored and queried under `b_<key>`."},"name":{"type":"string","minLength":1,"maxLength":80,"description":"What a reader sees: \"Deleted files it was not asked to\"."},"question":{"type":"string","minLength":10,"maxLength":400,"description":"One yes-or-no question about a single run that a judge can answer from its trace: \"Did the agent …?\"."},"version":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The version of the behavior's wording. A verdict and a review belong to the version they were made on."}},"required":["key","name","question","version"],"additionalProperties":false}},"stepTimeLimitSeconds":{"description":"How long each step of a task with steps may take, in seconds, as declared at create. A step still running after it ends the run, whose reason names the step and the limit. Null or absent = no per-step limit.","anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["id","plannedRunCount","organizationId","createdBy","name","slug","description","skillRef","skillSlug","skillName","skillPromise","subjectKind","subjectName","subjectLabel","armConfig","comparisonMode","subjectBackend","baselineLabel","treatmentLabel","promiseMetrics","matrix","lenses","taskCount","variantsPerTask","repeats","subset","status","error","visibility","lowSampleOverride","publishedAt","verdict","definitionVersionId","runnerKind","createdAt","updatedAt","liveUntil"],"additionalProperties":false}},"required":["study"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:write","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/studies/{id}/views":{"get":{"operationId":"study.views","summary":"List a study's saved run queries (views)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"List a study's saved run queries (views)","content":{"application/json":{"schema":{"type":"object","properties":{"views":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"query":{"description":"The saved question, as the query door takes it."},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","name","query","createdBy","createdAt"],"additionalProperties":false},"description":"Newest first."}},"required":["views"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Study unavailable to the caller","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:read","x-ora-product":"study","x-ora-service":"study-service"},"post":{"operationId":"study.saveView","summary":"Save a run query as a named view of the study","description":"Stores the QUESTION only. Opening the view recomputes its answer from the runs as they are then. A query that cannot run is refused, not saved.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"query":{"type":"object","properties":{"metrics":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"string","minLength":1,"maxLength":80},"description":"Metric ids. `GET …/query/vocabulary` lists them."},"groupBy":{"default":[],"description":"Dimension ids to split the runs by. None = one row over every matched run.","maxItems":3,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}},"filters":{"default":[],"maxItems":8,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":80,"description":"A dimension id."},"in":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","maxLength":200},"description":"Keep the runs whose value on the dimension is one of these."}},"required":["field","in"],"additionalProperties":false}},"limit":{"default":200,"type":"integer","minimum":1,"maximum":500}},"required":["metrics"],"additionalProperties":false}},"required":["name","query"],"additionalProperties":false}}}},"responses":{"200":{"description":"Save a run query as a named view of the study","content":{"application/json":{"schema":{"type":"object","properties":{"view":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"query":{"description":"The saved question, as the query door takes it."},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","name","query","createdBy","createdAt"],"additionalProperties":false}},"required":["view"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Study unavailable to the caller","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"query_view_name_taken, or query_view_limit (a study holds at most 50)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"run_query_unknown or query_view_name_invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:write","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/studies/{id}/views/{viewId}":{"get":{"operationId":"study.runView","summary":"Open a saved view: its question, answered from the study's runs as they are now","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"viewId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Open a saved view: its question, answered from the study's runs as they are now","content":{"application/json":{"schema":{"type":"object","properties":{"view":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"query":{"description":"The saved question, as the query door takes it."},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","name","query","createdBy","createdAt"],"additionalProperties":false},"result":{"type":"object","properties":{"basis":{"type":"string","const":"runs","description":"Every figure is over the runs the query matched, POOLED. It describes those runs. It is not the study's estimate, which folds runs into tasks first: read the study's readout or the gate for a claim."},"matchedRuns":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Runs the filters kept, before any limit."},"groupBy":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"}},"required":["id","label"],"additionalProperties":false}},"metrics":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"unit":{"type":"string","enum":["count","rate","points","usd","tokens","ms"],"description":"`rate` is 0..1; `points` is 0..100."},"fold":{"type":"string","description":"How the runs were folded: count, share, mean, median or total."}},"required":["id","label","unit","fold"],"additionalProperties":false}},"rows":{"type":"array","items":{"type":"object","properties":{"key":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"},"description":"The row's value on each group-by dimension, by dimension id."},"runs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"value":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The figure; null = no run in the row carries the metric. Never 0 for nothing."},"n":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many runs the figure was computed from."}},"required":["value","n"],"additionalProperties":false},"description":"One cell per asked metric, by metric id."}},"required":["key","runs","cells"],"additionalProperties":false}},"truncated":{"type":"boolean","description":"More rows exist than `limit` answered."}},"required":["basis","matchedRuns","groupBy","metrics","rows","truncated"],"additionalProperties":false}},"required":["view","result"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Study unavailable to the caller, or query_view_not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"run_query_unknown: the saved question names a metric or dimension that no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:read","x-ora-product":"study","x-ora-service":"study-service"},"delete":{"operationId":"study.deleteView","summary":"Delete a saved view","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"viewId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Delete a saved view","content":{"application/json":{"schema":{"type":"object","properties":{"deleted":{"type":"boolean","const":true}},"required":["deleted"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Study unavailable to the caller, or query_view_not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:write","x-ora-product":"study","x-ora-service":"study-service"}},"/study/v1/studies/{id}/visibility":{"patch":{"operationId":"study.setVisibility","summary":"Set who may read this study: private | org | link | public. A completed study's report opens at its address for whoever the setting admits. Moving INTO 'link' gives the study a 256-bit share token (returned in `shareUrl`) — the one it already keeps, or a fresh one if it never had one: a study's link never changes unless it is rotated. Moving out of 'link' closes the link IMMEDIATELY but keeps it, switched off (`shareLinkKept`): it opens nothing until the study returns to 'link', and then the SAME link works again. Every move out of the org ('private'/'org' → 'link'/'public') publishes the study, with the publish checks; a move back in stops sharing it outside the org; 'link' ⇄ 'public' is a plain mode change that never re-stamps its publication date.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The study's uuid (from create or list)."},"example":"1f7e4d1c-4b2a-4f3e-9d8c-5a6b7c8d9e0f"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"visibility":{"type":"string","enum":["private","org","link","public"],"description":"The sharing mode: private (creator + org owners) | org (the whole org) | link (anyone holding the share link) | public (everyone, listed in the catalog). Moving INTO 'link' gives the study a share token — the one it keeps from before, or a fresh one if it never had one; moving out switches the link off but keeps it, so returning to 'link' brings back the SAME link (only studies.rotateShareToken replaces it)."}},"required":["visibility"]},"example":{"visibility":"link"}}}},"responses":{"200":{"description":"Set who may read this study: private | org | link | public. A completed study's report opens at its address for whoever the setting admits. Moving INTO 'link' gives the study a 256-bit share token (returned in `shareUrl`) — the one it already keeps, or a fresh one if it never had one: a study's link never changes unless it is rotated. Moving out of 'link' closes the link IMMEDIATELY but keeps it, switched off (`shareLinkKept`): it opens nothing until the study returns to 'link', and then the SAME link works again. Every move out of the org ('private'/'org' → 'link'/'public') publishes the study, with the publish checks; a move back in stops sharing it outside the org; 'link' ⇄ 'public' is a plain mode change that never re-stamps its publication date.","content":{"application/json":{"schema":{"type":"object","properties":{"study":{"type":"object","properties":{"id":{"type":"string"},"executiveSummary":{"anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryDraft":{"description":"A PUBLISHED study's summary held for review, never shown on the public page: what `studies.regenerateSummary` writes on a published study (and the first summary of a published study nothing asked for). `studies.publish` makes exactly this text the published `executiveSummary`, while the readout it was written from is still current; otherwise publish regenerates. Absent where the product has no review drafts.","anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryRequest":{"description":"A summary an explicit act asked for and not yet written: 'live' — a publish, a re-open, or a regenerate on an UNPUBLISHED completed study owes the summary in place (the public page, once published); 'draft' — a regenerate on a published study owes the review draft one. Null once the request is answered — poll `studies.get` until it is: by the written summary (`executiveSummary` or `executiveSummaryDraft`), by a later act that superseded it (a publish, a newer regenerate — its own write answers it), or as unavailable (`executiveSummaryUnavailableAt` set). While the automatic retries back off after a failed attempt it stays pending. Absent where the product has no review drafts.","anyOf":[{"type":"string","enum":["live","draft"]},{"type":"null"}]},"executiveSummaryRequestedAt":{"description":"When `executiveSummaryRequest` was made.","anyOf":[{"type":"string"},{"type":"null"}]},"executiveSummaryUnavailableAt":{"description":"When the last summary request was answered as UNAVAILABLE: every attempt the retry policy allows on the study's readout failed, so no summary will be written for it until the readout changes (runs added, a re-run, a regrade) or someone regenerates or publishes again. Null otherwise; cleared by a new request or a written summary. Absent where the product has no review drafts.","anyOf":[{"type":"string"},{"type":"null"}]},"plannedRunCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The exact number of runs `launch` will fan out (taskCount × variantsPerTask × repeats × matrix cells × arms). Check this BEFORE launching."},"organizationId":{"type":"string"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"slug":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillRef":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillSlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillName":{"anyOf":[{"type":"string"},{"type":"null"}]},"skillPromise":{"type":"string"},"subjectKind":{"type":"string","enum":["skill","tools","addon","custom","benchmark","site"],"description":"What the study measures. New studies: 'custom': any composition of skills, tools and add-ons, with its own subjectName and promise — under a comparisonMode that declares its groups, each group's configuration is in `arms`. 'benchmark': a pinned version of a catalog benchmark definition (requires definitionVersionId); the corpus is copied frozen from that version. 'site': a website (requires siteDomain, and a comparisonMode that declares its groups); the tasks are things to get done there, and every run is read against the site: whether the agent opened a page of it, and whether the site refused the agent. Every comparisonMode new studies use applies to 'benchmark': 'multi_arm' runs each declared group's setup: 1 group reads as the agent leaderboard: no reference group and no comparison, and it seeds the public leaderboard — when bare, labelled 'as published' on a model-API agent and 'harness default' on a harness agent, and 'with my setup' when it carries one; 2-6 groups are compared over the planned contrasts (with 2, one comparison, oriented only when a group has role 'reference'); only a bare group seeds the public leaderboard. A group that carries a setup is not the benchmark's bare protocol, so it does not seed the public leaderboard. 'skill', 'tools' and 'addon' are kept for the studies that already exist: under a comparisonMode new studies use, one answers 422 study_subject_invalid, and a create body that names no comparisonMode (or a legacy one) and carries it is read as the legacy body it is and answers 422 comparison_mode_removed (docs/studies/comparison-modes/README.md maps each legacy design onto the new ones)."},"subjectName":{"anyOf":[{"type":"string"},{"type":"null"}]},"siteDomain":{"description":"The website a 'site' study is run against (its host); absent for every other subject kind.","type":"string"},"subjectLabel":{"type":"string"},"armConfig":{"type":"object","properties":{"baseline":{"description":"The baseline arm's run-payload delta. Omitted = a bare run (no skill, no extras).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false},"treatment":{"description":"The treatment arm's run-payload delta (the thing under test).","type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"additionalProperties":false,"description":"Frozen per-arm run-payload deltas of a fixed pair of arms (comparisonMode 'ab_vs_none' or 'ab_custom' or 'single'), kept for the studies that already exist: new studies carry each group's configuration in `arms`, and a create body that names no comparisonMode (or a legacy one) and carries it is read as the legacy body it is and answers 422 comparison_mode_removed (docs/studies/comparison-modes/README.md maps each legacy design onto the new ones)."},"comparisonMode":{"type":"string","enum":["ab_vs_none","ab_custom","single","multi_arm"],"description":"The study's design. New studies: 'multi_arm' (Groups): 1-6 groups declared in `arms`, each with its own label and configuration — 1 group reads as the agent leaderboard: no reference group and no comparison, and it seeds the public leaderboard — when bare, labelled 'as published' on a model-API agent and 'harness default' on a harness agent, and 'with my setup' when it carries one; 2-6 groups are compared over the planned contrasts (with 2, one comparison, oriented only when a group has role 'reference'); only a bare group seeds the public leaderboard; which pairs are judged is `contrasts`. 'ab_vs_none', 'ab_custom' and 'single' are kept for the studies that already exist: a create naming one answers 422 comparison_mode_removed (docs/studies/comparison-modes/README.md maps each legacy design onto the new ones)."},"subjectBackend":{"anyOf":[{"type":"string","enum":["model","harness"],"description":"What answers a FRAMEWORK benchmark's requests: 'harness' — each request is answered by the cell's agent harness (the model inside its own loop, with the arm's tools, add-ons and skills), one agent run per request; 'model' — the framework's own client calls the cell's model directly and the cell's harness is not measured. Resolved once per study and recorded on every run."},{"type":"null"}]},"environmentExecutionPolicy":{"type":"string","enum":["legacy-v1","inside-v1"]},"importedFrom":{"type":"string"},"baselineLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"treatmentLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"promiseMetrics":{"type":"array","items":{"type":"object","properties":{"metric":{"type":"string","enum":["total_tokens","output_tokens","cost_usd","duration_ms","num_turns","success_rate","completion_rate","goal_rate"]},"direction":{"type":"string","enum":["down","up"]},"label":{"type":"string","minLength":1,"maxLength":120}},"required":["metric","direction","label"],"additionalProperties":false}},"matrix":{"type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1,"maxLength":50,"description":"Harness id — the valid set (and each one's models) is GET /catalog; cells are validated against it at create."},"model":{"type":"string","minLength":1,"maxLength":100,"description":"Model id as the harness accepts it — valid ids per harness/provider are in GET /catalog (e.g. 'claude-sonnet-5', 'gpt-5.5')."},"provider":{"description":"Provider qualifier for multi-provider harnesses (e.g. 'anthropic', 'openai', 'google'). Omit to use the harness default.","type":"string","minLength":1,"maxLength":32},"params":{"description":"Provider params pinned for this cell (temperature, reasoningEffort, maxOutputTokens, thinkingBudgetTokens). A cell that pins none runs the provider's own defaults. Offered only where the harness declares support — see GET /catalog.","type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"maxOutputTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reasoningEffort":{"type":"string","enum":["low","medium","high"]},"thinkingBudgetTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"codeMode":{"type":"string","enum":["auto","on","off"]},"toolSearch":{"type":"string","enum":["on","off","directory"]},"location":{"type":"string","pattern":"^[A-Z]{2}$"},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$"}},"additionalProperties":false}},"required":["harness","model"],"additionalProperties":false,"description":"One (harness, model, params) cell — every task runs its arm(s) on every cell."}},"lenses":{"minItems":1,"type":"array","items":{"type":"string","enum":["judge","evals","reference","framework","execution","verifier"]},"description":"Which grading lenses this study runs under. Defaults to ['judge'] at create and stays editable while status is 'ready' (frozen at launch, like task expectations/rubrics). 'judge': the LLM judge panel (rubric grades + blind pairwise). 'evals': the deterministic @ora/eval-checks engine, scored against each task's authored expectations. 'reference': the static-QA lens — an answer extracted from the response and matched against the task's own reference key, scored 1/0 (spec §6.4). 'framework': the benchmark's OWN framework (HELM today) reports the metrics, mapped verbatim into a section rather than re-averaged (SP2 Task 9). 'execution': the candidate's code is extracted from the response and run against the task's own tests inside a sandboxed, network-less runner image (SP2 Task 16)."},"judgeSupplementary":{"type":"boolean"},"taskCount":{"type":"number"},"variantsPerTask":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Semantics-preserving paraphrases sampled per task (1-5; mirrors the create body's variantsPerTask). Absent at create defaults to 1 — every response reports a concrete value, including studies created before sampling existed."},"repeats":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Identical re-runs sampled per condition (1-10; mirrors the create body's repeats). Absent at create defaults to 1 — every response reports a concrete value, including studies created before sampling existed."},"subset":{"anyOf":[{"type":"object","properties":{"count":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"seed":{"type":"string","minLength":1},"of":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["count","seed","of"],"additionalProperties":false},{"type":"null"}]},"status":{"type":"string"},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"preparation":{"anyOf":[{"type":"object","properties":{"since":{"type":"string"},"progressAt":{"type":"string"},"launchedBy":{"type":"object","properties":{"userId":{"type":"string"},"role":{"type":"string"}},"additionalProperties":false},"waitingOn":{"type":"array","items":{"type":"object","properties":{"imageKey":{"type":"string"},"buildId":{"type":"string"},"stage":{"type":"string","enum":["image","snapshot"]},"retry":{"type":"object","properties":{"failedAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maxAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"notBefore":{"type":"string"},"lastFailure":{"type":"string"}},"required":["failedAttempts","maxAttempts","notBefore","lastFailure"],"additionalProperties":false}},"required":["imageKey","buildId"],"additionalProperties":false}}},"required":["since","launchedBy","waitingOn"],"additionalProperties":false},{"type":"null"}]},"visibility":{"type":"string","enum":["private","org","link","public"],"description":"Who may read this study: private (creator + org owners) | org (the whole org) | link (anyone holding ?share=<token>, unlisted) | public (everyone, listed)."},"visibilityChangedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"visibilityChangedBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"shareToken":{"anyOf":[{"type":"string"},{"type":"null"}]},"lowSampleOverride":{"type":"boolean","description":"True iff this study was explicitly published below the sample-size floor (spec A6) — the published page shows a low-sample badge when set."},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"verdict":{},"definitionVersionId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The benchmark definition VERSION this study pinned at create — non-null only for subjectKind 'benchmark'. Its corpus was copied frozen from that version, so the study stays reproducible when the definition publishes a newer one."},"runnerKind":{"type":"string","enum":["ora-runs","batch-job"],"description":"Which executor fans this study out: 'ora-runs' (the ora runs spine) or 'batch-job' (a built runner image)."},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"liveUntil":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When this study's live stream stops being held open (null while it is still running). Attaching before it yields the remaining post-terminal frames (gradings, recordings, refined verdicts)."},"launch":{"description":"The launch record: planned / created runs, the runs it could not create (missing.retryable: launching again creates them; missing.refused: a re-launch is refused the same way) with one note per cell and group, and the fan-out's state (fanning_out | deferred | settled). Null for a study launched before records existed.","anyOf":[{"type":"object","properties":{"attempt":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"state":{"type":"string","enum":["fanning_out","deferred","settled"]},"startedAt":{"type":"string"},"progressAt":{"type":"string"},"planned":{"type":"integer","minimum":0,"maximum":9007199254740991},"created":{"type":"integer","minimum":0,"maximum":9007199254740991},"missing":{"type":"object","properties":{"retryable":{"type":"integer","minimum":0,"maximum":9007199254740991},"refused":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["retryable","refused"],"additionalProperties":false},"notes":{"type":"array","items":{"type":"string"}},"settledAt":{"type":"string"},"pacing":{"type":"object","properties":{"waiting":{"type":"integer","minimum":0,"maximum":9007199254740991},"nextUnit":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"nextWaveAt":{"type":"string"},"emptyWaves":{"type":"integer","minimum":0,"maximum":9007199254740991},"stopped":{"type":"string"}},"required":["waiting"],"additionalProperties":false},"recovery":{"type":"object","properties":{"state":{"type":"string","enum":["retrying","needs_attention"]},"attempts":{"type":"integer","minimum":0,"maximum":9007199254740991},"lastAttemptAt":{"type":"string"},"nextAttemptAt":{"type":"string"},"reason":{"type":"string"}},"required":["state","attempts"],"additionalProperties":false},"stopped":{"type":"object","properties":{"at":{"type":"string"},"notStarted":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["at","notStarted"],"additionalProperties":false}},"required":["attempt","state","startedAt","progressAt"],"additionalProperties":false},{"type":"null"}]},"pacing":{"description":"How fast this study may START its runs, as declared at create: maxInFlight (at most N of its runs unfinished at once) and/or startsPerMinute (at most N started in any 60 s). Its runs start in waves of whole comparison units (every group's run of one agent on one task sample, together); the launch record's `pacing` says how many wait for a later wave. Null = every run started at launch.","anyOf":[{"type":"object","properties":{"maxInFlight":{"description":"At most this many of the study's runs unfinished at once — queued, pending or running (1-500). The next runs start as earlier ones finish.","type":"integer","minimum":1,"maximum":500},"startsPerMinute":{"description":"At most this many of the study's runs started in any 60-second window (1-600).","type":"integer","minimum":1,"maximum":600}},"additionalProperties":false},{"type":"null"}]},"relaunchable":{"description":"True when this running study may be launched again: its launch record says planned runs are missing (missing.retryable > 0), or its fan-out stopped. POST …/launch then creates exactly the runs that do not exist.","type":"boolean"},"archivedAt":{"description":"When this study was archived; null while it is not. An archived study loses nothing: it leaves the default list, is read-only (409 study_archived), and is on no public page. Restoring it clears this.","anyOf":[{"type":"string"},{"type":"null"}]},"archivedBy":{"description":"The user who archived it. Null when an API key did, and while the study is not archived.","anyOf":[{"type":"string"},{"type":"null"}]},"arms":{"description":"A declared-arm study's groups, in position order.","type":"array","items":{"type":"object","properties":{"key":{"type":"string","description":"The group's run key (each of its runs' `arm`)."},"position":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"0-based display order."},"label":{"type":"string","maxLength":80,"description":"The group's display label. Never shown to the judge."},"role":{"type":"string","enum":["reference","peer"],"description":"'reference' marks the group the others are compared against; the rest are peers."},"payload":{"type":"object","properties":{"tools":{"description":"Tool policy for this arm — the exact create-run `tools` wire value (e.g. 'on' | 'off').","anyOf":[{"type":"string","const":"default"},{"type":"string","const":"none"},{"type":"object","properties":{"tools":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tools"],"additionalProperties":false}]},"addons":{"description":"Add-on id → config map applied to this arm's runs, exactly as POST /runs accepts it. Each add-on's config is FLAT — its authoritative shape is `configSchema` in GET /addons (e.g. {\"tavily\": {\"secretId\": \"…\"}}; mcp: {\"mcp\": {\"name\": \"monday\", \"transport\": \"http\", \"url\": \"https://…/mcp\", \"headers\": [{\"name\": \"Authorization\", \"value\": \"Bearer ${TOKEN_ENV}\"}], \"envBindings\": [{\"envName\": \"TOKEN_ENV\", \"secretId\": \"…\"}]}} — ONE server per mcp entry).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"brief":{"description":"Text the agent is given after the task, for every task this group runs. At most 600 characters. A group with a brief is a setup of its own, never the subject as published.","type":"string","minLength":1,"maxLength":600}},"additionalProperties":false,"description":"The group's run-payload delta ({} = the subject as published)."},"cells":{"description":"The group's OWN agents, when the study's groups each list theirs (cellPlan 'per_setup'); absent = the matrix.","type":"array","items":{"type":"object","properties":{"harness":{"type":"string","minLength":1,"maxLength":50,"description":"Harness id — the valid set (and each one's models) is GET /catalog; cells are validated against it at create."},"model":{"type":"string","minLength":1,"maxLength":100,"description":"Model id as the harness accepts it — valid ids per harness/provider are in GET /catalog (e.g. 'claude-sonnet-5', 'gpt-5.5')."},"provider":{"description":"Provider qualifier for multi-provider harnesses (e.g. 'anthropic', 'openai', 'google'). Omit to use the harness default.","type":"string","minLength":1,"maxLength":32},"params":{"description":"Provider params pinned for this cell (temperature, reasoningEffort, maxOutputTokens, thinkingBudgetTokens). A cell that pins none runs the provider's own defaults. Offered only where the harness declares support — see GET /catalog.","type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"maxOutputTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reasoningEffort":{"type":"string","enum":["low","medium","high"]},"thinkingBudgetTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"codeMode":{"type":"string","enum":["auto","on","off"]},"toolSearch":{"type":"string","enum":["on","off","directory"]},"location":{"type":"string","pattern":"^[A-Z]{2}$"},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$"}},"additionalProperties":false}},"required":["harness","model"],"additionalProperties":false,"description":"One (harness, model, params) cell — every task runs its arm(s) on every cell."}},"skipTasks":{"description":"The tasks this group leaves out, by task number (1 = the first); absent = it runs every task.","type":"array","items":{"type":"integer","minimum":1,"maximum":9007199254740991}},"skills":{"description":"The group's skills as resolved when the study was created (absent for a study created before that existed).","type":"array","items":{"type":"object","properties":{"ref":{"type":"string","description":"The skill ref the group's selection names."},"name":{"type":"string","description":"The skill's name when the study was created."},"changedSinceCreate":{"description":"True when the skill's content now differs from what the study ran; absent when the reader cannot check it.","type":"boolean"}},"required":["ref","name"],"additionalProperties":false}},"addedAgents":{"description":"The agents this group gained after the study was created (`addAgents`), by position in `cells` — absent when none was added.","type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The agent's position in the group's `cells`."},"addedAt":{"type":"string","description":"When it was added (RFC 3339)."}},"required":["position","addedAt"],"additionalProperties":false}}},"required":["key","position","label","role","payload"],"additionalProperties":false}},"contrastPlan":{"description":"The study's planned-contrast policy.","type":"string","enum":["vs_reference","all_pairs","ladder"]},"cellPlan":{"description":"How the groups meet their agents: absent = every group runs the matrix; 'per_setup' = each its own.","type":"string","enum":["crossed","per_setup"]},"skillDisclosure":{"description":"Whether the published page names the groups' skills: absent = withheld (chosen at publish).","type":"string","enum":["withheld","named"]},"modeOptions":{"description":"The comparisonMode's private inputs.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"screens":{"description":"The run screens the study declares (frozen at launch, like lenses). Absent = none.","type":"array","items":{"type":"string","enum":["test_awareness","site_access"]}},"runCounting":{"description":"Which of the study's runs its numbers count (GET /studies/:id/run-counting). Absent = every run.","anyOf":[{"type":"object","properties":{"policy":{"type":"string","const":"hold_back_screened"},"screen":{"type":"string","enum":["test_awareness"],"description":"The screen whose verdicts decide. Today: 'test_awareness'."},"levels":{"minItems":1,"type":"array","items":{"type":"string","enum":["aware","influenced"]},"description":"The verdict levels held back. A run the screen could not judge is never held back."}},"required":["policy","screen","levels"],"additionalProperties":false,"description":"Which of the study's runs its numbers count. Absent or null = every run. 'hold_back_screened' leaves out the runs the named screen flagged at one of `levels`: each is a missing measurement with a named reason, never a fail, and the count held back is stated beside every figure."},{"type":"null"}]},"seriesKey":{"description":"The series the study belongs to (set at create). Absent = none.","anyOf":[{"type":"string","pattern":"^[a-z0-9][a-z0-9._/-]{0,119}$"},{"type":"null"}]},"ref":{"description":"Where the study was taken: commit, branch, pull request. Absent = not recorded.","anyOf":[{"type":"object","properties":{"commit":{"description":"The commit the study was taken at (a SHA).","type":"string","minLength":1,"maxLength":64},"branch":{"description":"The branch it was taken on, e.g. 'main'. A gate's series baseline filters on it.","type":"string","minLength":1,"maxLength":200},"pr":{"description":"The pull request number, when it was taken for one.","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"url":{"description":"A link back to the change (the commit or pull request page).","type":"string","maxLength":500,"format":"uri"}},"additionalProperties":false},{"type":"null"}]},"gradingRevision":{"description":"The study's grading revision, when its checks were revised after its runs finished. Absent = never revised.","type":"integer","minimum":2,"maximum":9007199254740991},"gradingRevisedAt":{"description":"When the checks were last revised. Later than `publishedAt` = the grades changed after publication.","anyOf":[{"type":"string"},{"type":"null"}]},"rehearsal":{"description":"The study is a rehearsal: the smallest real run of a design, made by POST /studies/rehearsals. Absent = an ordinary study.","type":"boolean","const":true},"rehearsalMode":{"description":"How a rehearsal runs: 'live' (the real agents), or 'setup' / 'mock' (no agent is started). Absent on every other study.","type":"string"},"behaviors":{"description":"The custom behaviors the study declares (frozen at launch, like lenses). A run's verdict on one is in its `screens` under `b_<key>`. Absent = none.","type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{1,29}$","description":"A short id for the behavior, lowercase snake (`deleted_files`). Its verdicts are stored and queried under `b_<key>`."},"name":{"type":"string","minLength":1,"maxLength":80,"description":"What a reader sees: \"Deleted files it was not asked to\"."},"question":{"type":"string","minLength":10,"maxLength":400,"description":"One yes-or-no question about a single run that a judge can answer from its trace: \"Did the agent …?\"."},"version":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The version of the behavior's wording. A verdict and a review belong to the version they were made on."}},"required":["key","name","question","version"],"additionalProperties":false}},"stepTimeLimitSeconds":{"description":"How long each step of a task with steps may take, in seconds, as declared at create. A step still running after it ends the run, whose reason names the step and the limit. Null or absent = no per-step limit.","anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["id","plannedRunCount","organizationId","createdBy","name","slug","description","skillRef","skillSlug","skillName","skillPromise","subjectKind","subjectName","subjectLabel","armConfig","comparisonMode","subjectBackend","baselineLabel","treatmentLabel","promiseMetrics","matrix","lenses","taskCount","variantsPerTask","repeats","subset","status","error","visibility","lowSampleOverride","publishedAt","verdict","definitionVersionId","runnerKind","createdAt","updatedAt","liveUntil"],"additionalProperties":false},"shareUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The path this study is readable at for its CURRENT mode — `/studies/<slug>` for 'public', `/studies/<slug>?share=<token>` for 'link', null for 'private'/'org' (no anonymous door). Relative to the app origin; resolve it against the page's own origin."},"shareLinkKept":{"type":"boolean","description":"True when this study is NOT shared by link yet keeps a share link from when it was, switched off — managers only. The kept link opens nothing now; returning the study to 'link' brings the SAME link back, unless it is replaced first with studies.rotateShareToken. Never true for a 'link' study (its link is in `shareUrl`) or for a caller who may not manage sharing; the detail read omits the field unless it is true."}},"required":["study","shareUrl","shareLinkKept"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"the caller lacks the authority this DIRECTION needs — widening to 'link'/'public' takes the same authority as studies.publish (an editor in the owning org); narrowing to 'org'/'private' additionally allows the study's creator, whatever their role","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"study_invalid_state (a move out of the org publishes the study, and only a completed study publishes) or study_slug_taken (the study's address is taken)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"study.studies:write","x-ora-product":"study","x-ora-service":"study-service"}},"/tunnels/v1":{"get":{"operationId":"tunnels.list","summary":"List dev tunnels","responses":{"200":{"description":"List dev tunnels","content":{"application/json":{"schema":{"type":"object","properties":{"tunnels":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"organizationId":{"type":"string"},"productKey":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"status":{"type":"string","enum":["pending","connected","disconnected","revoked"]},"access":{"type":"string","enum":["private","protected","public"]},"declaredTarget":{"anyOf":[{"type":"object","properties":{"protocol":{"type":"string","const":"http"},"host":{"type":"string"},"port":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["protocol","host","port"],"additionalProperties":false},{"type":"null"}]},"connection":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"ora-ws"},"url":{"type":"string"},"subprotocol":{"type":"string"}},"required":["kind","url","subprotocol"],"additionalProperties":false}]},"publicUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastConnectedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastSeenAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","organizationId","productKey","name","status","access","declaredTarget","connection","publicUrl","lastConnectedAt","lastSeenAt","createdAt","updatedAt"],"additionalProperties":false}}},"required":["tunnels"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"tunnels:read","x-ora-product":"platform","x-ora-service":"tunnel-service"},"post":{"operationId":"tunnels.create","summary":"Create a dev tunnel","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-z0-9]([a-z0-9-]*[a-z0-9])?$"},"productKey":{"type":"string","minLength":1,"maxLength":64},"access":{"type":"string","enum":["private","protected","public"]}},"required":["name","access"]}}}},"responses":{"200":{"description":"Create a dev tunnel","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"organizationId":{"type":"string"},"productKey":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"status":{"type":"string","enum":["pending","connected","disconnected","revoked"]},"access":{"type":"string","enum":["private","protected","public"]},"declaredTarget":{"anyOf":[{"type":"object","properties":{"protocol":{"type":"string","const":"http"},"host":{"type":"string"},"port":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["protocol","host","port"],"additionalProperties":false},{"type":"null"}]},"connection":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"ora-ws"},"url":{"type":"string"},"subprotocol":{"type":"string"}},"required":["kind","url","subprotocol"],"additionalProperties":false}]},"publicUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastConnectedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastSeenAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"accessToken":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","organizationId","productKey","name","status","access","declaredTarget","connection","publicUrl","lastConnectedAt","lastSeenAt","createdAt","updatedAt","accessToken"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"tunnels:write","x-ora-product":"platform","x-ora-service":"tunnel-service"}},"/tunnels/v1/{id}":{"get":{"operationId":"tunnels.get","summary":"Get a dev tunnel","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Get a dev tunnel","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"organizationId":{"type":"string"},"productKey":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"status":{"type":"string","enum":["pending","connected","disconnected","revoked"]},"access":{"type":"string","enum":["private","protected","public"]},"declaredTarget":{"anyOf":[{"type":"object","properties":{"protocol":{"type":"string","const":"http"},"host":{"type":"string"},"port":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["protocol","host","port"],"additionalProperties":false},{"type":"null"}]},"connection":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"ora-ws"},"url":{"type":"string"},"subprotocol":{"type":"string"}},"required":["kind","url","subprotocol"],"additionalProperties":false}]},"publicUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastConnectedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastSeenAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","organizationId","productKey","name","status","access","declaredTarget","connection","publicUrl","lastConnectedAt","lastSeenAt","createdAt","updatedAt"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"tunnels:read","x-ora-product":"platform","x-ora-service":"tunnel-service"},"delete":{"operationId":"tunnels.delete","summary":"Delete a dev tunnel (revokes any live connection, removes the row)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Delete a dev tunnel (revokes any live connection, removes the row)","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"deleted":{"type":"boolean","const":true}},"required":["id","deleted"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"tunnels:write","x-ora-product":"platform","x-ora-service":"tunnel-service"}},"/tunnels/v1/{id}/revoke":{"post":{"operationId":"tunnels.revoke","summary":"Revoke a dev tunnel (kill the connection, keep the row)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Revoke a dev tunnel (kill the connection, keep the row)","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"organizationId":{"type":"string"},"productKey":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"status":{"type":"string","enum":["pending","connected","disconnected","revoked"]},"access":{"type":"string","enum":["private","protected","public"]},"declaredTarget":{"anyOf":[{"type":"object","properties":{"protocol":{"type":"string","const":"http"},"host":{"type":"string"},"port":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["protocol","host","port"],"additionalProperties":false},{"type":"null"}]},"connection":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"ora-ws"},"url":{"type":"string"},"subprotocol":{"type":"string"}},"required":["kind","url","subprotocol"],"additionalProperties":false}]},"publicUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastConnectedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastSeenAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","organizationId","productKey","name","status","access","declaredTarget","connection","publicUrl","lastConnectedAt","lastSeenAt","createdAt","updatedAt"],"additionalProperties":false}}}},"401":{"description":"Authentication is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The caller is authenticated but lacks the required scope or product grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The addressed resource does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request failed schema validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-ora-visibility":"public","x-ora-scope":"tunnels:write","x-ora-product":"platform","x-ora-service":"tunnel-service"}}}}