An organization API key. Keys carry a role (read_write or
read_only) and may be restricted to a namespace prefix such as
acme/*, or to one namespace such as acme/prod/tenant_1. A prefix
matches on a / boundary: acme/prod/tenant_1* covers
acme/prod/tenant_1 and everything under acme/prod/tenant_1/,
never acme/prod/tenant_12.
Path Parameters
ns
string
required
The namespace name, with any / sent as %2F.
Up to 256 bytes. / separates levels of the hierarchy, as in acme/prod/tenant_123. Never exactly . or .., which a URL path can't carry.
Required string length: 1 - 256
Pattern: ^(?!\.\.?$)[A-Za-z0-9._:/-]+$
Response
The namespace.
name
string
required
Up to 256 bytes. / separates levels of the hierarchy, as in acme/prod/tenant_123. Never exactly . or .., which a URL path can't carry.
Required string length: 1 - 256
Pattern: ^(?!\.\.?$)[A-Za-z0-9._:/-]+$
created_at
string<date-time>
required
RFC 3339, UTC.
budget
object | null
required
Show child attributes
budget_paused
boolean
required
True while evaluation is paused by the budget, because spend reached it or the next engine request would have passed it. Meanwhile a changed document's answer reads stale with stale_reasonjudging_paused, and a document never judged reads unavailable; on_change judgments judge them once the budget is raised or the next billing period starts.
pinned
boolean
required
default_engine
object | null
required
An engine and its version, which must be active in GET /engines;
any other is refused with engine_version_unavailable. The version
is an exact version, which never changes, or current for an engine
that is not pinned. Today the active versions are jevcurrent
and gpt-6-lunacurrent; pplx-decider has no active version yet.
current runs whatever model the provider serves now and records the
epoch of behaviour behind each answer in its engine_version, such as
current+2026-09-24.1. There are no other aliases. Engines
differ in whether they read images (limits.images in GET /engines) and in their multiple on the bill (jev counts each row
twice, gpt-6-luna five times, your own model once).
Show child attributes
deleting
boolean
required
stats
object
required
Show child attributes
fanout
object
The fan-out settings in effect, every key present.
Show child attributes
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Brussle","colors":{"primary":"#1E3A8A","light":"#9DB0FF","dark":"#1E3A8A"},"logo":{"light":"https://mintcdn.com/altquid/fPQBQfVuwEjh5nfW/logo/wordmark-ink.svg?fit=max\u0026auto=format\u0026n=fPQBQfVuwEjh5nfW\u0026q=85\u0026s=af1814f7069f6b8f396ec15277f21582","dark":"https://mintcdn.com/altquid/fPQBQfVuwEjh5nfW/logo/wordmark-paper.svg?fit=max\u0026auto=format\u0026n=fPQBQfVuwEjh5nfW\u0026q=85\u0026s=f0a30d3a8fb60a61938cb3133f2fb16f","href":"https://brussle.com"},"favicon":"https://mintcdn.com/altquid/q7yJZo2sn3W_yJ8j/logo/mark.svg?fit=max\u0026auto=format\u0026n=q7yJZo2sn3W_yJ8j\u0026q=85\u0026s=f44818d5a6b8d4c180de5c1406d07d3d","background":{"color":{"light":"#FFFFFF","dark":"#09090B"}},"fonts":{"heading":{"family":"Space Grotesk","weight":600,"source":"fonts/space-grotesk-normal-300_700-latin.woff2","format":"woff2"},"body":{"family":"Hanken Grotesk","source":"fonts/hanken-grotesk-normal-400_600-latin.woff2","format":"woff2"}},"styling":{"codeblocks":{"theme":{"light":"css-variables","dark":"css-variables"}},"latex":false},"integrations":{"telemetry":{"enabled":false}},"contextual":{"options":["copy","view","mcp","cursor","vscode","claude","chatgpt"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"altquid","hasAudioNarration":false,"actualSubdomain":"altquid","customDomains":["docs.brussle.com"],"gitSource":{"type":"github","owner":"shaun117","repo":"vainona","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6ad9824d0692ca83e05580e0","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"default","tag":"API reference","count":108},{"language":"default","tag":"Documentation","count":79},{"language":"default","tag":"Webhooks","count":35},{"language":"default","tag":"AI columns","count":20},{"language":"default","tag":"Outcomes and calibration","count":17},{"language":"default","tag":"Read other records","count":15},{"language":"default","tag":"Judgments","count":14},{"language":"default","tag":"Calibration","count":13},{"language":"default","tag":"Your data","count":10},{"language":"default","tag":"Engines","count":9}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":false},"customCss":[{"filePath":"design.css","content":":root{--vn-white: #FFFFFF;--vn-zinc-50: #FAFAFA;--vn-zinc-100: #F4F4F5;--vn-zinc-200: #E4E4E7;--vn-zinc-300: #D4D4D8;--vn-zinc-400: #A1A1AA;--vn-zinc-500: #71717A;--vn-zinc-600: #52525B;--vn-zinc-700: #3F3F46;--vn-zinc-800: #27272A;--vn-zinc-900: #18181B;--vn-zinc-950: #09090B;--vn-dim: #82828B;--vn-ultramarine: #4F6EF7;--vn-ultramarine-button: #3451D1;--vn-cyan: #22D3EE;--vn-green: #4ADE80;--vn-red: #F87171;--vn-ultramarine-ink: #1E3A8A;--vn-cyan-ink: #0B6A84;--vn-green-ink: #176B36;--vn-red-ink: #B91C1C;--vn-amber-ink: #9A4509;--vn-font-sans: \"Hanken Grotesk\", ui-sans-serif, system-ui, -apple-system, \"Segoe UI\", sans-serif;--vn-font-mono: \"DM Mono\", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;--vn-font-display: \"Space Grotesk\", ui-sans-serif, system-ui, -apple-system, \"Segoe UI\", sans-serif;--vn-radius-control: 0;--vn-radius-card: 8px;--vn-radius-inner: 6px;--vn-radius-tag: 4px;--vn-radius-chip: 2px;--vn-ease-out: cubic-bezier(.2, .7, 0, 1);--vn-ease-button: cubic-bezier(.4, 0, 0, 1);--vn-dur-fast: .2s}html:root{--gray-50: 250 250 250;--gray-100: 244 244 245;--gray-200: 228 228 231;--gray-300: 212 212 216;--gray-400: 161 161 170;--gray-500: 113 113 122;--gray-600: 82 82 91;--gray-700: 63 63 70;--gray-800: 39 39 42;--gray-900: 24 24 27;--gray-950: 9 9 11}@font-face{font-family:\"DM Mono\";font-style:normal;font-weight:400;font-display:swap;src:url(\"/fonts/dm-mono-normal-400-latin-ext.woff2\") format(\"woff2\");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}@font-face{font-family:\"DM Mono\";font-style:normal;font-weight:400;font-display:swap;src:url(\"/fonts/dm-mono-normal-400-latin.woff2\") format(\"woff2\");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}@font-face{font-family:\"DM Mono\";font-style:normal;font-weight:500;font-display:swap;src:url(\"/fonts/dm-mono-normal-500-latin-ext.woff2\") format(\"woff2\");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}@font-face{font-family:\"DM Mono\";font-style:normal;font-weight:500;font-display:swap;src:url(\"/fonts/dm-mono-normal-500-latin.woff2\") format(\"woff2\");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}@font-face{font-family:\"Hanken Grotesk\";font-style:normal;font-weight:400 600;font-display:swap;src:url(\"/fonts/hanken-grotesk-normal-400_600-latin-ext.woff2\") format(\"woff2\");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}@font-face{font-family:\"Hanken Grotesk\";font-style:normal;font-weight:400 600;font-display:swap;src:url(\"/fonts/hanken-grotesk-normal-400_600-latin.woff2\") format(\"woff2\");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}@font-face{font-family:\"Space Grotesk\";font-style:normal;font-weight:300 700;font-display:swap;src:url(\"/fonts/space-grotesk-normal-300_700-latin-ext.woff2\") format(\"woff2\");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}@font-face{font-family:\"Space Grotesk\";font-style:normal;font-weight:300 700;font-display:swap;src:url(\"/fonts/space-grotesk-normal-300_700-latin.woff2\") format(\"woff2\");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}"},{"filePath":"theme.css","content":":root{--docs-paper: var(--vn-white);--docs-ink: var(--vn-zinc-950);--docs-soft: var(--vn-zinc-700);--docs-muted: var(--vn-zinc-600);--docs-dim: var(--vn-zinc-500);--docs-line: var(--vn-zinc-200);--docs-line-2: var(--vn-zinc-300);--docs-outline: var(--vn-zinc-400);--docs-raised: var(--vn-zinc-100);--docs-well: var(--vn-zinc-50);--docs-ring: var(--vn-cyan-ink);--docs-amber: var(--vn-amber-ink);--docs-red: var(--vn-red-ink);--docs-green: var(--vn-green-ink);--docs-chart-1: var(--vn-ultramarine-ink);--docs-chart-ref: var(--vn-zinc-400);--docs-chart-grid: var(--vn-zinc-100);--docs-chart-axis: var(--vn-zinc-300)}html.dark{--docs-paper: var(--vn-zinc-950);--docs-ink: var(--vn-zinc-50);--docs-soft: var(--vn-zinc-300);--docs-muted: var(--vn-zinc-400);--docs-dim: var(--vn-dim);--docs-line: var(--vn-zinc-800);--docs-line-2: var(--vn-zinc-700);--docs-outline: var(--vn-zinc-600);--docs-raised: var(--vn-zinc-900);--docs-well: #0d0d10;--docs-ring: var(--vn-cyan);--docs-amber: color-mix(in srgb, var(--vn-amber-ink) 60%, white);--docs-red: var(--vn-red);--docs-green: var(--vn-green);--docs-chart-1: var(--vn-ultramarine);--docs-chart-ref: var(--vn-zinc-600);--docs-chart-grid: var(--vn-zinc-900);--docs-chart-axis: var(--vn-zinc-700)}:root{--shiki-background: var(--docs-well);--shiki-foreground: var(--docs-ink);--shiki-token-keyword: var(--docs-ink);--shiki-token-function: var(--docs-ink);--shiki-token-constant: var(--docs-ink);--shiki-token-link: var(--docs-ink);--shiki-token-string: var(--docs-soft);--shiki-token-string-expression: var(--docs-soft);--shiki-token-parameter: var(--docs-soft);--shiki-token-punctuation: var(--docs-muted);--shiki-token-comment: var(--docs-dim)}:root :is(code,kbd,samp,pre,.font-mono){font-family:var(--vn-font-mono)}#content code:not(pre *){padding:0;border-radius:0;background:none;color:var(--docs-ink);font-weight:400}:is(.code-block,.code-group){border:1px solid var(--docs-line)!important;border-radius:var(--vn-radius-card)!important;background-color:var(--docs-well)!important}:is(.code-block,.code-group) [data-component-part=\"code-block-root\"]{background-color:transparent!important}:is(.code-block,.code-group) pre{font-size:13px;line-height:20px}.code-block-fade-overlay{--fade-color-light: var(--docs-well) !important;--fade-color-dark: var(--docs-well) !important}.code-group [data-component-part=\"code-group-tab-bar\"]{border-bottom:1px solid var(--docs-line)}.code-group [role=\"tab\"]{font-family:var(--vn-font-mono)}.code-group [role=\"tab\"][aria-selected=\"true\"]{color:var(--docs-ink)!important}:is(.card,.callout,.pagination-prev,.pagination-next,#request-example,#response-example){border-radius:var(--vn-radius-card)!important}:is(#search-bar-entry,#search-bar-entry-mobile,#search-input,#assistant-entry,#assistant-entry-mobile,#chat-assistant-textarea,.chat-assistant-floating-input,#page-context-menu button,.tryit-button,#feedback-thumbs-up,#feedback-thumbs-down,#feedback-form-input,#feedback-form-cancel,#feedback-form-submit,.code-block-copy-button button,#ask-assistant-code-block-button,#code-snippet-feedback-button,[data-component-name=\"theme-toggle\"]){border-radius:var(--vn-radius-control)!important}#search-bar-entry{border:1px solid var(--docs-outline)!important;background-color:var(--docs-paper)!important}:focus-visible{outline:2px solid var(--docs-ring)!important;outline-offset:2px}:is(.eyebrow,.sidebar-group-header){color:var(--docs-muted)!important;font-family:var(--vn-font-mono);font-size:12px;font-weight:500;letter-spacing:0.02em;text-transform:uppercase}.nav-tabs-item{color:var(--docs-muted)!important;font-family:var(--vn-font-mono);font-size:13px;font-weight:500;letter-spacing:0.02em;text-shadow:none!important;text-transform:uppercase}.nav-tabs-item:is([data-active],:hover){color:var(--docs-ink)!important}.toc-item[data-active]>a{color:var(--docs-ink)!important}#sidebar-content li>a{border-radius:var(--vn-radius-tag)!important}#sidebar-content li[data-active]>a{background-color:var(--docs-raised)!important;color:var(--docs-ink)!important;font-weight:500;text-shadow:none!important}#content a.link{border-bottom:1px solid var(--docs-line-2);color:var(--docs-ink);font-weight:inherit;transition:border-color var(--vn-dur-fast) var(--vn-ease-button)}#content a.link:hover{border-bottom-color:var(--docs-ink)}.callout{--callout-ink: var(--docs-muted);--callout-line: var(--docs-line);--callout-wash: transparent;border-color:var(--callout-line)!important;background-color:var(--callout-wash)!important}.callout[data-callout-type=\"warning\"]{--callout-ink: var(--docs-amber)}.callout[data-callout-type=\"danger\"]{--callout-ink: var(--docs-red)}.callout[data-callout-type=\"check\"]{--callout-ink: var(--docs-green)}.callout:is([data-callout-type=\"warning\"],[data-callout-type=\"danger\"],[data-callout-type=\"check\"]){--callout-line: color-mix(in srgb, var(--callout-ink) 30%, var(--docs-paper));--callout-wash: color-mix(in srgb, var(--callout-ink) 6%, var(--docs-paper))}.callout [data-component-part=\"callout-icon\"] svg{color:var(--callout-ink)!important}.callout [data-component-part=\"callout-content\"]{color:var(--docs-soft)!important}.step [data-component-part=\"step-indicator\"]{border:1px solid var(--docs-line);border-radius:var(--vn-radius-tag)!important;font-family:var(--vn-font-mono);font-weight:500}.docs-chart{display:block;width:100%;max-width:480px;height:auto;margin:1.5rem 0;font-family:var(--vn-font-mono);font-size:11px}.docs-chart-grid{stroke:var(--docs-chart-grid);stroke-width:1}.docs-chart-axis{stroke:var(--docs-chart-axis);stroke-width:1}.docs-chart-ref{stroke:var(--docs-chart-ref);stroke-width:1.5}.docs-chart-tick{fill:var(--docs-dim)}.docs-chart-label{fill:var(--docs-soft);font-size:12px}.docs-chart :is(.docs-chart-annot,.docs-chart-value){fill:var(--docs-ink);font-weight:500;paint-order:stroke;stroke:var(--docs-paper);stroke-width:4px;stroke-linejoin:round}.docs-chart-range{stroke:var(--docs-chart-1);stroke-width:2;stroke-linecap:round}.docs-chart-point{fill:var(--docs-chart-1);stroke:var(--docs-paper);stroke-width:2}.docs-chart-hit{fill:transparent}@media (max-width: 520px){.docs-chart{font-size:15px}.docs-chart .docs-chart-label{font-size:15px}}.docs-chart-row:hover .docs-chart-label{fill:var(--docs-ink)}html[data-current-path^=\"/api-reference/\"] #header>:not(:first-child,#page-context-menu),html[data-current-path^=\"/api-reference/\"] #header>:not(:first-child,#page-context-menu) :is(p,li){font-size:15px;line-height:1.65}"}]}
{"page":{"pagePath":"api-reference/namespaces/get-namespace-metadata-counts-and-budget","slug":"/api-reference/namespaces/get-namespace-metadata-counts-and-budget","pageMetadata":{"title":"Get namespace metadata, counts and budget","description":null,"deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /namespaces/{ns}","href":"/api-reference/namespaces/get-namespace-metadata-counts-and-budget","autogeneratedByOpenApi":true},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"codeStyling":{"theme":{"light":"css-variables","dark":"css-variables"}},"config":{},"pageMetadata":{"title":"Get namespace metadata, counts and budget","description":null,"deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /namespaces/{ns}","href":"/api-reference/namespaces/get-namespace-metadata-counts-and-budget","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"getNamespace","tags":["Namespaces"],"summary":"Get namespace metadata, counts and budget","responses":{"200":"b9acb35c-2ce8-46a8-8b20-fba6ef8f5e20","400":"38c205b4-1e65-4bb6-9e8e-ba5425ae16fe","401":"ca76708d-258b-4f85-9f0f-45e51ac310e4","403":"bdd7fc57-ee12-48c3-97da-660f09e901a7","404":"7c54a7f3-51fa-4835-9b43-0b52c026b801","413":"011b02ea-54b3-4b68-a662-0f7eb389859d","429":"85fe739f-8a57-40b1-925b-85a24a27ab1b","500":"1c9bbde4-4b3e-4480-a416-26229c56668c"},"method":"get","type":"path","servers":["9c6bc63c-4afb-4d5f-9398-d37c095e94a5"],"security":["9a45876d-f7ff-4272-8441-a152e9393dc5"],"path":"/namespaces/{ns}","baseUrlOptions":["https://api.brussle.com/v1"],"title":"Get namespace metadata, counts and budget","description":"","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"b9906256-3565-4336-af0b-aa31e9fff266":{"name":"ns","in":"path","required":true,"description":"The namespace name, with any `/` sent as `%2F`.","schema":{"type":"string","description":"The namespace name, with any `/` sent as `%2F`.\nUp to 256 bytes. `/` separates levels of the hierarchy, as in `acme/prod/tenant_123`. Never exactly `.` or `..`, which a URL path can't carry.","pattern":"^(?!\\.\\.?$)[A-Za-z0-9._:/-]+$","minLength":1,"maxLength":256,"isRequired":true,"uniqueKey":"","typeLabel":"string"}}},"responses":{"b9acb35c-2ce8-46a8-8b20-fba6ef8f5e20":{"description":"The namespace.","headers":{"X-RateLimit-Limit":{"description":"Requests allowed per second under one of the two limits on an API key, per key or per organization; the one with fewer requests left, or on a `rate_limited` response the one that refused the request. A dashboard session reports its user's limit. Only on responses to a request whose key was accepted; never on `unauthorized`, on a route that does not exist, or on a malformed namespace name.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left in the current second under the limit `X-RateLimit-Limit` gives. It does not count the per-namespace limit on reads in flight.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","required":["name","created_at","budget","budget_paused","pinned","default_engine","deleting","stats"],"properties":{"name":{"type":"string","description":"Up to 256 bytes. `/` separates levels of the hierarchy, as in `acme/prod/tenant_123`. Never exactly `.` or `..`, which a URL path can't carry.","pattern":"^(?!\\.\\.?$)[A-Za-z0-9._:/-]+$","minLength":1,"maxLength":256,"isRequired":true,"uniqueKey":"name","typeLabel":"string"},"created_at":{"type":"string","format":"date-time","description":"RFC 3339, UTC.","isRequired":true,"uniqueKey":"created_at","typeLabel":"string\u003cdate-time>"},"budget":{"oneOf":[{"type":"object","required":["compute_usd_per_month","on_exceeded"],"properties":{"compute_usd_per_month":{"type":"number","minimum":0,"description":"Cap on judging in each billing period, in US dollars at the judgment prices for your organization's volume in the period. A billing period starts on the day of the month the organization's card was added, not on the 1st, and the budget starts again with each period. Each engine request is priced before it is sent, and one that would take spend past the cap is not sent, so judging pauses before the cap rather than after it.","isRequired":true,"uniqueKey":"budget.oneOf.0.compute_usd_per_month","typeLabel":"number"},"on_exceeded":{"type":"string","enum":["pause","reject"],"description":"What happens once judging pauses at the budget. `pause`: writes continue, changed documents' answers go `stale` (`judging_paused`) and documents never judged read `unavailable`. `reject`: writes return `budget_exceeded`.","isRequired":true,"uniqueKey":"budget.oneOf.0.on_exceeded","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"budget.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"budget.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"budget","typeLabel":"object | null"},"budget_paused":{"type":"boolean","description":"True while evaluation is paused by the budget, because spend reached it or the next engine request would have passed it. Meanwhile a changed document's answer reads `stale` with `stale_reason` `judging_paused`, and a document never judged reads `unavailable`; `on_change` judgments judge them once the budget is raised or the next billing period starts.","isRequired":true,"uniqueKey":"budget_paused","typeLabel":"boolean"},"pinned":{"type":"boolean","isRequired":true,"uniqueKey":"pinned","typeLabel":"boolean"},"default_engine":{"oneOf":[{"type":"object","description":"An engine and its version, which must be active in `GET /engines`;\nany other is refused with `engine_version_unavailable`. The version\nis an exact version, which never changes, or `current` for an engine\nthat is not pinned. Today the active versions are `jev` `current`\nand `gpt-6-luna` `current`; `pplx-decider` has no active version yet.\n`current` runs whatever model the provider serves now and records the\nepoch of behaviour behind each answer in its `engine_version`, such as\n`current+2026-09-24.1`. There are no other aliases. Engines\ndiffer in whether they read images (`limits.images` in `GET\n/engines`) and in their multiple on the bill (`jev` counts each row\ntwice, `gpt-6-luna` five times, your own model once).\n","required":["name","version"],"properties":{"name":{"type":"string","description":"An included engine (`IncludedEngineName`), or a model on your own\nprovider key as `\u003cprovider>/\u003cmodel id>`, such as `openai/gpt-5.2`,\nwith the model id exactly as the provider names it. A model on\nyour own key is always at version `current`, and runs on the\ncredential stored for its provider; while that provider is not\nactive in `GET /engines`, it is refused with\n`engine_version_unavailable`.\n","pattern":"^(jev|gpt-6-luna|pplx-decider|(typesafe|openai|anthropic|google)/[A-Za-z0-9._:-]{1,128})$","isRequired":true,"uniqueKey":"default_engine.oneOf.0.name","typeLabel":"string"},"version":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"default_engine.oneOf.0.version","typeLabel":"string"}},"isRequired":true,"uniqueKey":"default_engine.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"default_engine.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"default_engine","typeLabel":"object | null"},"deleting":{"type":"boolean","isRequired":true,"uniqueKey":"deleting","typeLabel":"boolean"},"stats":{"type":"object","required":["documents","bytes","spend_month_usd"],"properties":{"documents":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"stats.documents","typeLabel":"integer\u003cint64>"},"bytes":{"type":"integer","format":"int64","minimum":0,"description":"The namespace's stored size, as storage bills it, each stored image included once however many documents name it.","isRequired":true,"uniqueKey":"stats.bytes","typeLabel":"integer\u003cint64>"},"spend_month_usd":{"type":"number","minimum":0,"description":"Judging in the organization's current billing period, in US dollars; the name is kept from when periods were calendar months. A billing period starts on the day of the month the organization's card was added, not on the 1st. Judgments are priced at the tiers of your organization's volume in the period, as counted when they were judged, which is never less than the invoice charges for them.","isRequired":true,"uniqueKey":"stats.spend_month_usd","typeLabel":"number"},"periodic_cost_usd_per_month":{"type":"number","minimum":0,"description":"Projected monthly cost of periodic judgments at the judgment prices.","uniqueKey":"stats.periodic_cost_usd_per_month","typeLabel":"number"},"freshness_lag_p90_ms":{"oneOf":[{"type":"number","minimum":0,"description":"The worst freshness lag p90 among the namespace's judgments today, in milliseconds; null before any today.","uniqueKey":"stats.freshness_lag_p90_ms.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"description":"The worst freshness lag p90 among the namespace's judgments today, in milliseconds; null before any today.","uniqueKey":"stats.freshness_lag_p90_ms.oneOf.1","typeLabel":"null"}],"uniqueKey":"stats.freshness_lag_p90_ms","typeLabel":"number | null"}},"isRequired":true,"uniqueKey":"stats","typeLabel":"object"},"fanout":{"type":"object","description":"The fan-out settings in effect, every key present.","additionalProperties":false,"minProperties":1,"properties":{"share":{"type":"number","exclusiveMinimum":0,"maximum":1,"default":0.5,"description":"The most of the namespace's in-flight engine requests fan-out may use, always at least one, so the rest serve its ordinary judging.","uniqueKey":"fanout.share","typeLabel":"number"}},"uniqueKey":"fanout","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"name":"\u003cstring>","created_at":"2023-11-07T05:31:56Z","budget":{"compute_usd_per_month":1,"on_exceeded":"pause"},"budget_paused":true,"pinned":true,"default_engine":{"name":"\u003cstring>","version":"\u003cstring>"},"deleting":true,"stats":{"documents":1,"bytes":1,"spend_month_usd":1,"periodic_cost_usd_per_month":1,"freshness_lag_p90_ms":1},"fanout":{"share":0.5}}}},"exampleType":"generated"}},"exampleType":"generated"},"38c205b4-1e65-4bb6-9e8e-ba5425ae16fe":{"description":"`invalid_request`: the request is malformed or breaks a rule of the API. On a write, `invalid_image`: an image in `images` is not `ImageData` of a PNG, JPEG or WebP whose bytes are that format, nor an `ImageReference` as the stored image is, nor a list of them; and `unknown_image`: a reference names an image the namespace does not hold. Both carry `details.id` and `details.path`, such as `images.pages[1]`. A data URL must be `image/png`, `image/jpeg` (not `image/jpg`) or `image/webp`, base64 on one line. An image name that is not 1 to 128 of `A-Z`, `a-z`, `0-9`, `_` and `-` is `invalid_request`, with `details.path`. Nothing in `state` is ever an image: any JSON there, an object shaped like an image included, is stored as written.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"HTTP status by code: `invalid_request` 400, `unauthorized` 401,\n`invalid_image` 400, `unknown_image` 400, `image_erased` 410,\n`budget_exceeded` 402, `plan_required` 402, `forbidden` 403,\n`claim_required` 403, `sign_up_closed` 403, `not_found` 404, `conflict` 409,\n`too_large` 413, `engine_version_unavailable` 422,\n`insufficient_labels` 422, `idempotency_key_reused` 422,\n`rate_limited` 429, `internal` 500,\n`engine_unavailable` 503, `unavailable` 503.\n\nAny route can also answer `unavailable`, with `Retry-After`, when it\ndid not finish within 35 s: it was stopped, and a retry runs it\nagain. Creating a judgment version, a judgment's `PATCH` and a\nbackfill's start answer within 20 s, with a job (`202`) when they\nneed longer, and never begin their change after 25 s. So when one of\nthem is answered `unavailable` this way, nothing changed and the\nretry makes the change once.\n","enum":["invalid_request","invalid_image","unknown_image","image_erased","unauthorized","forbidden","claim_required","sign_up_closed","not_found","conflict","too_large","rate_limited","budget_exceeded","plan_required","engine_unavailable","engine_version_unavailable","unavailable","insufficient_labels","idempotency_key_reused","internal"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"object","description":"Code-specific detail, such as the scan estimate on a refused query. Every `internal` error has `request_id`.","properties":{"reason":{"type":"string","description":"Why, where one code has more than one cause. On the events\nfeed's `invalid_request`, `cursor_expired`.\n","uniqueKey":"error.details.reason","typeLabel":"string"},"suggested_context":{"oneOf":[{"type":"object","description":"On a create without a context recipe, the recipe suggested from the namespace's documents, or null when there are none.","required":["recipe","cost_per_answer","whole_state_cost_per_answer","sampled_documents","excluded"],"properties":{"recipe":{"type":"object","description":"What the engine sees. A create without it is refused with a suggested\nrecipe, unless `use_context` asks for the suggestion or the whole\n`state`; a version with no recipe sends the whole\n`state`, subject to the engine limit, and no images.\n","additionalProperties":false,"properties":{"fields":{"type":"array","description":"Paths included in order, each verbatim or, as a `ClippedPath`, cut to its first `max_chars` characters. A path is `state.\u003cpath>`, `attributes.\u003cname>`, or an image path, `images.\u003cname>`, which reads that name's image or whole list; an image path takes no `max_chars`. An engine that reads images (its `limits.images` in `GET /engines`) reads each, counted by its tiles; an engine that reads none gets each as an `OmittedImage` with `engine_reads_no_images`, and the create warns. Images are written to documents, never sent with the judgment.\n","items":{"oneOf":[{"type":"string","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","pattern":"^((state|attributes)(\\.[^.]+)+|images\\.[A-Za-z0-9_-]{1,128})$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.fields.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"object","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","required":["path","max_chars"],"properties":{"path":{"type":"string","description":"In a recipe's or `previous`'s `fields`, a `state` or `attributes` path; in a relation's `fields`, any path a `RelationField` names.","pattern":"^((state|attributes)(\\.[^.]+)+|id|created_at|updated_at|answers\\.[A-Za-z0-9_-]+\\.(value|thresholds\\.[A-Za-z0-9_-]+))$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.fields.items.[INDEX].oneOf.1.path","typeLabel":"string"},"max_chars":{"type":"integer","minimum":1,"maximum":4294967295,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.fields.items.[INDEX].oneOf.1.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.fields.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.fields.items.[INDEX]","typeLabel":"string | object"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.fields","typeLabel":"(string | object)[]"},"last_n":{"type":"object","description":"Per array path in `state` or `attributes`, keep the last n elements. Not an image path.","additionalProperties":{"type":"integer","minimum":1,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.last_n.additionalProperties","typeLabel":"integer"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.last_n","typeLabel":"object"},"window":{"type":"object","description":"Per array path whose elements have a timestamp field `at`, keep elements within the window.","additionalProperties":{"type":"string","description":"A whole number and a unit (`s`, `m`, `h` or `d`), such as `7d` or `1h`.","pattern":"^[1-9][0-9]*[smhd]$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.window.additionalProperties","typeLabel":"string"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.window","typeLabel":"object"},"max_tokens":{"type":"integer","minimum":1,"description":"Hard cap, in the judgment's engine's tokens. Over it, whole images are left out first (on an engine that reads them; those of relations, then `previous`, then fields, the last first; every image when the text alone is over), then relation records, then `previous` entries, then the end of the last field is cut.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.max_tokens","typeLabel":"integer"},"related":{"type":"object","description":"Up to 4 relations, by name: documents in the same namespace that point at the judged one, or the one document it points at. Each renders as a `related.\u003cname>`\nentry after `fields`, and a write that changes what it renders\nmakes the judged document's answer `pending` until it is judged\nagain (for a referenced document, only inside the re-judge scope;\noutside it, the answer is `stale` with `stale_reason`\n`referenced_changed`).\n","minProperties":1,"maxProperties":4,"propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"type":"object","description":"Documents that point at the judged document.\nThey are ordered newest `created_at` first unless `order` says\notherwise: `window` keeps those created within the window, the order\nis applied, then `last_n` keeps the first n. At least one of `last_n`\nand `window` is required, and at least one of `fields` and\n`aggregate`. A relation reads at most the newest 1,000 documents,\nand an `order` sorts within them.\n\nWith `join: {theirs: \"id\", mine: \"attributes.\u003cname>\"}`\nthe relation reads the one document the judged document points at,\nits referenced document, and takes no `window`. With `last_n` (up to\n254) it is a named list instead: the attribute holds an array of\nids, and the relation reads the documents it names in list order\nunless `order` says otherwise, each once, at most `last_n` of them. An id that names nothing, or a\ndocument outside `match`, renders nothing and is listed in the\nevaluation's `related_documents` as `unresolved`. An attribute a\nnamed list reads holds at most 254 distinct ids.\n\nWith `join: {theirs: \"attributes.\u003ckey>\", mine:\n\"attributes.\u003ckey>\"}` it is a blocking relation over the documents\nthat share the judged document's key value. It needs `window`\nunless it sets `relative`, takes\n`last_n` up to 254 (up to the `options.from` candidate limit when a\n`choice` chooses among it with\n`options.from`), and a change to its block re-judges the block's\njudged documents. With `relative`, each judged document reads the\n`last_n` documents of its block created just before it (or just\nafter it), in creation order, and a change re-judges only the\njudged documents whose documents it moved. `fields`, `aggregate` and `match` may read other\njudgments' answers (`answers.\u003cj>.\u003cfield>`), banded or cut, and the\nnewest outcome posted for each related document\n(`outcomes.\u003cj>.value`), shown as posted: the one with the latest\n`observed_at`, of two at the same time the one posted last, about\nthe document's current life and of the judgment's current answer\ntype. Posting one re-judges the judgments that read it, within their\n`rolling_limit`. A relation reads at most 4 judgments' answers or\noutcomes.\n","required":["match","join"],"conditionallyRequiredProperties":{"aggregate":[{}],"last_n":[{},{}],"window":[{},{}]},"properties":{"match":{"type":"object","description":"Which documents the relation reads.","minProperties":1,"maxProperties":8,"propertyNames":{"type":"string","pattern":"^(attributes\\.[A-Za-z0-9_-]+|answers\\.[A-Za-z0-9_-]+\\.(value|p|score|thresholds\\.[A-Za-z0-9_-]+)|outcomes\\.[A-Za-z0-9_-]+\\.value)$"},"additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.2","typeLabel":"boolean"},{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.3.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.3.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.3.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.3.items.[INDEX]","typeLabel":"string | number | boolean"},"minItems":1,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.3","typeLabel":"(string | number | boolean)[]"},{"type":"object","description":"An inline cut on an answer's `p` or `score`, exactly as stable as a named threshold. One bound.","maxProperties":1,"minProperties":1,"properties":{"gte":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.4.gte","typeLabel":"number"},"gt":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.4.gt","typeLabel":"number"},"lte":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.4.lte","typeLabel":"number"},"lt":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.4.lt","typeLabel":"number"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.4","typeLabel":"object"},{"type":"object","description":"Selects documents that have an outcome a relation reads, on an `outcomes.\u003cj>.value` key of `match`.","required":["exists"],"properties":{"exists":{"const":true,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.5.exists","typeLabel":"any"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.5","typeLabel":"object"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties","typeLabel":"string · number · boolean · (string | number | boolean)[] · object · object"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match","typeLabel":"object"},"join":{"oneOf":[{"type":"object","description":"How a related document is matched to the judged one: one side is\n`id` and the other an attribute holding an id, or both sides the same attribute, a shared key, or one side\n`id` and the other a matching judgment's pick (a judged link). Two different\nattributes are `invalid_request`.\n","required":["theirs","mine"],"properties":{"theirs":{"type":"string","description":"The related document's attribute that holds the judged document's id, such as `attributes.parent_id`.","pattern":"^attributes\\.[A-Za-z0-9_-]+$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.0.theirs","typeLabel":"string"},"mine":{"const":"id","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.0.mine","typeLabel":"any"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.0","typeLabel":"object"},{"type":"object","description":"How a related document is matched to the judged one: one side is\n`id` and the other an attribute holding an id, or both sides the same attribute, a shared key, or one side\n`id` and the other a matching judgment's pick (a judged link). Two different\nattributes are `invalid_request`.\n","required":["theirs","mine"],"properties":{"theirs":{"const":"id","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.1.theirs","typeLabel":"any"},"mine":{"type":"string","description":"The judged document's attribute that holds the referenced document's id, such as `attributes.group_id`.","pattern":"^attributes\\.[A-Za-z0-9_-]+$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.1.mine","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.1","typeLabel":"object"},{"type":"object","description":"How a related document is matched to the judged one: one side is\n`id` and the other an attribute holding an id, or both sides the same attribute, a shared key, or one side\n`id` and the other a matching judgment's pick (a judged link). Two different\nattributes are `invalid_request`.\n","required":["theirs","mine"],"properties":{"theirs":{"type":"string","description":"The key attribute, such as `attributes.block`.","pattern":"^attributes\\.[A-Za-z0-9_-]+$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.2.theirs","typeLabel":"string"},"mine":{"type":"string","description":"The same attribute as `theirs`.","pattern":"^attributes\\.[A-Za-z0-9_-]+$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.2.mine","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.2","typeLabel":"object"},{"type":"object","description":"How a related document is matched to the judged one: one side is\n`id` and the other an attribute holding an id, or both sides the same attribute, a shared key, or one side\n`id` and the other a matching judgment's pick (a judged link). Two different\nattributes are `invalid_request`.\n","required":["theirs","mine","when"],"properties":{"theirs":{"type":"string","description":"`answers.\u003cj>.value` of the judgment that picks, which must choose among a blocking relation's candidates, or `id`.","pattern":"^(id|answers\\.[A-Za-z0-9_-]+\\.value)$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.3.theirs","typeLabel":"string"},"mine":{"type":"string","description":"`id`, or `answers.\u003cj>.value` of the judgment that picks; the other side of `theirs`.","pattern":"^(id|answers\\.[A-Za-z0-9_-]+\\.value)$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.3.mine","typeLabel":"string"},"when":{"type":"object","description":"When a judged link holds: while the named threshold of the judgment\nthat picks, a threshold on `none_of_the_above` (its unmatched\nqueue), is `false`. At or above it, the pick is not taken and the\ndocument does not link. Required. Removing that threshold while the\nrelation exists is `conflict`; changing its value re-judges each\njudged document whose links it moves, after the `downstream`\nconfirm.\n","additionalProperties":false,"required":["below"],"properties":{"below":{"type":"string","description":"A judgment, attribute or threshold name. Names are path segments in field references, so they never contain `.`.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.3.when.below","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.3.when","typeLabel":"object"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.3","typeLabel":"object"}],"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join","typeLabel":"object"},"last_n":{"type":"integer","minimum":1,"maximum":1000,"description":"Keep the first n in the relation's order, newest first by default. On a relation that reads a referenced document it makes a named list, keeping the first n documents the list names, in list order unless `order` says otherwise, at most 254; at most 254 on a blocking relation, and at most the `options.from` candidate limit (see Limits) when `options.from` chooses among it.","conditionalRequirements":[{},{}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.last_n","typeLabel":"integer"},"window":{"type":"string","description":"Keep documents created within this long before the later of the judged document's newest write and its newest related creation, at the answer's watermark. An edit to an old related document never moves the window. Not on a relation that reads a referenced document.","pattern":"^[1-9][0-9]*[smhd]$","conditionalRequirements":[{},{}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.window","typeLabel":"string"},"fields":{"type":"array","description":"Paths to include from each document, rendered under `records` in the relation's order. An entry may be a `BandedField`, which renders a number as its band, or a `ClippedPath`, which renders the first `max_chars` characters. An entry may also be a judgment's `answers.\u003cj>.value` and `answers.\u003cj>.thresholds.\u003cname>` as they are, and its `.p`, `.score` and `.dist.\u003coption>` only banded.","minItems":1,"items":{"oneOf":[{"type":"string","description":"A path in a related document, an image path `images.\u003cname>` (its image or list, read like the judged document's own), `id`, `created_at` or `updated_at`; a judgment's `answers.\u003cj>.value` or `answers.\u003cj>.thresholds.\u003cname>`, which render as they are; or the document's newest outcome, `outcomes.\u003cj>.value`, rendered as posted. An answer's `p`, `score` or `dist.\u003coption>` must be a `BandedField`.","pattern":"^((state|attributes)(\\.[^.]+)+|images\\.[A-Za-z0-9_-]{1,128}|id|created_at|updated_at|answers\\.[A-Za-z0-9_-]+\\.(value|thresholds\\.[A-Za-z0-9_-]+)|outcomes\\.[A-Za-z0-9_-]+\\.value)$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"object","description":"A number rendered as its band rather than its value, in any relation. In a relation's `fields`, `max_chars` cuts the rendered label as a `ClippedPath` does; it is refused on an aggregate's `min` or `max`. A number renders as the label whose position\nis how many cut points are at or below it: with `bands: [0.3, 0.7]`,\n0.29 is `labels[0]`, 0.3 is `labels[1]` and 0.7 or more `labels[2]`.\nA value that is not a number renders unchanged, and a missing one is\nleft out. Only a move to another band changes the context, so a move\ninside one neither fans out nor costs an evaluation. `bands` must be\nstrictly increasing and `labels` must have exactly one more entry;\nthe server refuses anything else with `invalid_request`.\n","required":["path","bands","labels"],"properties":{"path":{"type":"string","description":"A `state` or `attributes` path, or a judgment's `answers.\u003cj>.p`, `answers.\u003cj>.score` or `answers.\u003cj>.dist.\u003coption>`.","pattern":"^((state|attributes)(\\.[^.]+)+|answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^.]+))$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1.path","typeLabel":"string"},"bands":{"type":"array","description":"Cut points, strictly increasing.","minItems":1,"maxItems":9,"items":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1.bands.items.[INDEX]","typeLabel":"number"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1.bands","typeLabel":"number[]"},"labels":{"type":"array","description":"One label per band, lowest first, so one more than `bands`.","minItems":2,"maxItems":10,"items":{"type":"string","minLength":1,"maxLength":64,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1.labels.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1.labels","typeLabel":"string[]"},"max_chars":{"type":"integer","minimum":1,"maximum":4294967295,"description":"The label cut to this many characters, after the band. Only in a relation's `fields`.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","description":"A path rendered as its first `max_chars` characters (Unicode code\npoints, not bytes or tokens). A string longer than that is cut to\nit; a value that fits renders unchanged and keeps its type; any\nother longer value renders as its JSON text cut to `max_chars`, a\nstring. An edit past the cut changes nothing the engine reads from\nthe field. It bounds one field; it does not make a context fit. An\nimage is never cut, so an image path takes no `max_chars`.\n","required":["path","max_chars"],"properties":{"path":{"type":"string","description":"In a recipe's or `previous`'s `fields`, a `state` or `attributes` path; in a relation's `fields`, any path a `RelationField` names.","pattern":"^((state|attributes)(\\.[^.]+)+|id|created_at|updated_at|answers\\.[A-Za-z0-9_-]+\\.(value|thresholds\\.[A-Za-z0-9_-]+))$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.2.path","typeLabel":"string"},"max_chars":{"type":"integer","minimum":1,"maximum":4294967295,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.2.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.2","typeLabel":"object"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX]","typeLabel":"string · object · object"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields","typeLabel":"string · object · object[]"},"aggregate":{"type":"object","description":"Numbers over the relation's documents, after `match`, `window` and\n`last_n`, rendered as keys of its `related.\u003cname>` entry, such as\n`count` and `sum(state.amount)`. At most 8 paths in total, answer\npaths included. `sum`, `avg`, `min` and `max` skip values that are\nnot numbers; `sum` of nothing is 0, and `avg`, `min` and `max` of\nnothing are null. `latest` is the value in the newest document that\nhas one, of any JSON type.\n\n`latest` reads the most recently created document whatever the\nrelation's `order`.\n\n`count_where` counts documents by judgments'\nanswers; a `min` or `max` entry may be banded, and one over an\nanswer's `p` or `score` must be, rendering the band of the extreme;\n`latest` may read an answer's `value` or `thresholds.\u003cname>`. `sum`\nand `avg` may read an answer's `p`, `score` or `dist.\u003coption>` only\nas a feature the judgment names: never rendered, since it moves on\nevery child evaluation. A child whose newest answer failed adds its\nlast good value; a child with no answer adds nothing and is outside\nthe average. `count_where` and `latest` may read an outcome;\n`labelled` counts the documents that have one.\n\n`render: false` keeps the aggregates, all but `latest`, out of the\ncontext the engine reads, while features still read them: a change\nthat moves only them then re-judges with no engine call and no\ncharge.\n","additionalProperties":false,"minProperties":1,"properties":{"count":{"const":true,"description":"How many documents the relation selected.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count","typeLabel":"any"},"labelled":{"const":true,"description":"How many selected documents have an outcome the relation reads (`outcomes.\u003cj>.value`). Only on a relation that reads one.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.labelled","typeLabel":"any"},"count_where":{"type":"object","description":"How many selected documents match every key: a\njudgment's `answers.\u003cj>.value` or\n`answers.\u003cj>.thresholds.\u003cname>` by equality (a list is `In`) or\nby `{\"not\": \u003cvalue>}`, or its `.p` or `.score` by an inline cut;\nor a document's newest outcome, `outcomes.\u003cj>.value`, by equality.\nA document with no answer matches no key, `not` included. Rendered\nas `count_where`.\n\nA judgment that chooses among candidates (`options.from`) is\ncounted only by whether its value is `none_of_the_above`:\n`{\"answers.settles.value\": {\"not\": \"none_of_the_above\"}}` counts\nthe payments that settled any invoice, and\n`{\"answers.settles.value\": \"none_of_the_above\"}` those that settled\nnone. Any other condition on it is `invalid_request`.\n","minProperties":1,"maxProperties":8,"propertyNames":{"type":"string","pattern":"^(answers\\.[A-Za-z0-9_-]+\\.(value|p|score|thresholds\\.[A-Za-z0-9_-]+)|outcomes\\.[A-Za-z0-9_-]+\\.value)$"},"additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.2","typeLabel":"boolean"},{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.3.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.3.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.3.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.3.items.[INDEX]","typeLabel":"string | number | boolean"},"minItems":1,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.3","typeLabel":"(string | number | boolean)[]"},{"type":"object","description":"An inline cut on an answer's `p` or `score`, exactly as stable as a named threshold. One bound.","maxProperties":1,"minProperties":1,"properties":{"gte":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.4.gte","typeLabel":"number"},"gt":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.4.gt","typeLabel":"number"},"lte":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.4.lte","typeLabel":"number"},"lt":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.4.lt","typeLabel":"number"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.4","typeLabel":"object"},{"type":"object","description":"In a `count_where`, an answer's `value` or `thresholds.\u003cname>` that is not this value. A document with no answer does not match.","required":["not"],"properties":{"not":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.5.not.oneOf.0","typeLabel":"string"},{"type":"number","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.5.not.oneOf.1","typeLabel":"number"},{"type":"boolean","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.5.not.oneOf.2","typeLabel":"boolean"}],"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.5.not","typeLabel":"string | number | boolean"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.5","typeLabel":"object"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties","typeLabel":"string · number · boolean · (string | number | boolean)[] · object · object"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where","typeLabel":"object"},"sum":{"type":"array","description":"Paths for `sum` or `avg`; also a judgment's `answers.\u003cj>.p`, `.score` or `.dist.\u003coption>`, as a feature only.","minItems":1,"maxItems":8,"uniqueItems":true,"items":{"type":"string","description":"A `state` or `attributes` path, without `(` or `)`, or an answer's number.","pattern":"^((state|attributes)(\\.[^.()]+)+|answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^()]+))$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.sum.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.sum","typeLabel":"string[]"},"avg":{"type":"array","description":"Paths to average, the mean of the numbers there.","minItems":1,"maxItems":8,"uniqueItems":true,"items":{"type":"string","description":"A `state` or `attributes` path, without `(` or `)`, or an answer's number.","pattern":"^((state|attributes)(\\.[^.()]+)+|answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^()]+))$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.avg.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.avg","typeLabel":"string[]"},"min":{"type":"array","description":"Paths for `min` or `max`; an entry may be banded, which an answer's `p` or `score` must be. `created_at` and `updated_at` give the oldest or newest time, as RFC 3339, which an `age(...)` feature reads; they are not banded.","minItems":1,"maxItems":8,"items":{"oneOf":[{"type":"string","description":"A `state` or `attributes` path, or `created_at` or `updated_at`. Keys in it cannot contain `(` or `)`.","pattern":"^((state|attributes)(\\.[^.()]+)+|created_at|updated_at)$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"object","description":"A number rendered as its band rather than its value, in any relation. In a relation's `fields`, `max_chars` cuts the rendered label as a `ClippedPath` does; it is refused on an aggregate's `min` or `max`. A number renders as the label whose position\nis how many cut points are at or below it: with `bands: [0.3, 0.7]`,\n0.29 is `labels[0]`, 0.3 is `labels[1]` and 0.7 or more `labels[2]`.\nA value that is not a number renders unchanged, and a missing one is\nleft out. Only a move to another band changes the context, so a move\ninside one neither fans out nor costs an evaluation. `bands` must be\nstrictly increasing and `labels` must have exactly one more entry;\nthe server refuses anything else with `invalid_request`.\n","required":["path","bands","labels"],"properties":{"path":{"type":"string","description":"A `state` or `attributes` path, or a judgment's `answers.\u003cj>.p`, `answers.\u003cj>.score` or `answers.\u003cj>.dist.\u003coption>`.","pattern":"^((state|attributes)(\\.[^.]+)+|answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^.]+))$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1.path","typeLabel":"string"},"bands":{"type":"array","description":"Cut points, strictly increasing.","minItems":1,"maxItems":9,"items":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1.bands.items.[INDEX]","typeLabel":"number"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1.bands","typeLabel":"number[]"},"labels":{"type":"array","description":"One label per band, lowest first, so one more than `bands`.","minItems":2,"maxItems":10,"items":{"type":"string","minLength":1,"maxLength":64,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1.labels.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1.labels","typeLabel":"string[]"},"max_chars":{"type":"integer","minimum":1,"maximum":4294967295,"description":"The label cut to this many characters, after the band. Only in a relation's `fields`.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX]","typeLabel":"string | object"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min","typeLabel":"(string | object)[]"},"max":{"type":"array","description":"Paths for `min` or `max`; an entry may be banded, which an answer's `p` or `score` must be. `created_at` and `updated_at` give the oldest or newest time, as RFC 3339, which an `age(...)` feature reads; they are not banded.","minItems":1,"maxItems":8,"items":{"oneOf":[{"type":"string","description":"A `state` or `attributes` path, or `created_at` or `updated_at`. Keys in it cannot contain `(` or `)`.","pattern":"^((state|attributes)(\\.[^.()]+)+|created_at|updated_at)$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"object","description":"A number rendered as its band rather than its value, in any relation. In a relation's `fields`, `max_chars` cuts the rendered label as a `ClippedPath` does; it is refused on an aggregate's `min` or `max`. A number renders as the label whose position\nis how many cut points are at or below it: with `bands: [0.3, 0.7]`,\n0.29 is `labels[0]`, 0.3 is `labels[1]` and 0.7 or more `labels[2]`.\nA value that is not a number renders unchanged, and a missing one is\nleft out. Only a move to another band changes the context, so a move\ninside one neither fans out nor costs an evaluation. `bands` must be\nstrictly increasing and `labels` must have exactly one more entry;\nthe server refuses anything else with `invalid_request`.\n","required":["path","bands","labels"],"properties":{"path":{"type":"string","description":"A `state` or `attributes` path, or a judgment's `answers.\u003cj>.p`, `answers.\u003cj>.score` or `answers.\u003cj>.dist.\u003coption>`.","pattern":"^((state|attributes)(\\.[^.]+)+|answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^.]+))$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1.path","typeLabel":"string"},"bands":{"type":"array","description":"Cut points, strictly increasing.","minItems":1,"maxItems":9,"items":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1.bands.items.[INDEX]","typeLabel":"number"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1.bands","typeLabel":"number[]"},"labels":{"type":"array","description":"One label per band, lowest first, so one more than `bands`.","minItems":2,"maxItems":10,"items":{"type":"string","minLength":1,"maxLength":64,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1.labels.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1.labels","typeLabel":"string[]"},"max_chars":{"type":"integer","minimum":1,"maximum":4294967295,"description":"The label cut to this many characters, after the band. Only in a relation's `fields`.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX]","typeLabel":"string | object"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max","typeLabel":"(string | object)[]"},"latest":{"type":"array","description":"Paths for `latest`; also `created_at` or `updated_at`, the newest document's time as RFC 3339, an image path `images.\u003cname>`, which renders the newest document's image or list, a judgment's `answers.\u003cj>.value` or `answers.\u003cj>.thresholds.\u003cname>`, or a document's newest outcome, `outcomes.\u003cj>.value`.","minItems":1,"maxItems":8,"uniqueItems":true,"items":{"type":"string","description":"A `state` or `attributes` path, `created_at` or `updated_at`, an image path, an answer's `value` or `thresholds.\u003cname>`, or an outcome's `value`. Keys in it cannot contain `(` or `)`.","pattern":"^((state|attributes)(\\.[^.()]+)+|created_at|updated_at|images\\.[A-Za-z0-9_-]{1,128}|answers\\.[A-Za-z0-9_-]+\\.(value|thresholds\\.[A-Za-z0-9_-]+)|outcomes\\.[A-Za-z0-9_-]+\\.value)$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.latest.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.latest","typeLabel":"string[]"},"render":{"type":"boolean","default":true,"description":"Whether the aggregates, all but `latest`, are in the context the engine reads. Part of the version.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.render","typeLabel":"boolean"}},"conditionalRequirements":[{}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate","typeLabel":"object"},"order":{"type":"object","description":"Which of a relation's documents come first, and so which `last_n`\nkeeps. The newest 1,000 documents in `window` are sorted, never more:\na document outside them is not selected whatever its value, and the\nrelation's entry renders `range_full: true` when more matched.\nValues sort by type first, numbers, then strings, then booleans,\nthen missing values and anything else; `desc` reverses the order\nwithin each type, never the types. Numbers compare by value (whole\nnumbers exactly), strings by Unicode code point, and `false` comes\nbefore `true`. Ties go to the most recently created, then the lower\n`id`. `records` render in this order and, over the token limit, the\nones that sort last are dropped first; `latest` stays the most\nrecently created document's value. Ordered by anything but\n`created_at`, a write to the ordered field can move a document into\nor out of the selection. The relation reads up to 1,000 documents\nper judged document to sort them; the create response's warnings\nname the factor. On a named list it sorts the documents the list\nnames in place of list order, `created_at` included. Refused on a\nblocking relation and on one that reads a single referenced\ndocument.\n","additionalProperties":false,"required":["by"],"properties":{"by":{"type":"string","description":"`created_at`, `updated_at`, a `state.\u003cpath>` or an `attributes.\u003cname>`.","pattern":"^(created_at|updated_at|state(\\.[^.]+)+|attributes\\.[A-Za-z0-9_-]+)$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.order.by","typeLabel":"string"},"desc":{"type":"boolean","default":true,"description":"Largest first within each type.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.order.desc","typeLabel":"boolean"}},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.order","typeLabel":"object"},"relative":{"type":"string","enum":["before","after"],"description":"On a blocking relation, which side of the judged document it\nreads: the `last_n` documents of the block created nearest\nbefore it (`before`) or after it (`after`), never the judged\ndocument itself, in creation order, oldest first. Creation order\nis `created_at`, ties by `id`: the `created_at` a write supplied\nwhen it created the document, or the time of that write. What a\njudged document reads never moves when the block grows at the\nother end, so a document judged again later reads the same\ndocuments unless one of them was created, deleted, re-keyed or\nchanged. Such a change re-judges only the judged documents whose\n`last_n` it is or was in, at most `last_n` of them on the side\nthat reads it; a new document after every other one re-judges\nnothing in a `before` relation. Over the token limit the\nfarthest documents are dropped first (the oldest of a `before`\nrun, the newest of an `after` run); aggregates cover every\ndocument read. Refused with `window` and `order`.\n","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.relative","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties","typeLabel":"object"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related","typeLabel":"object"},"previous":{"type":"object","description":"The judged document as the judgment's last successful evaluation saw it, rendered as `previous.\u003cpath>` entries\nafter `fields`, so a question can ask what changed. When a revision\nrenders the same as the stored current, as a nightly re-upsert of\nthe same record does, the context is the one the last verdict saw\nand costs nothing. A document with no stored rendering in its\nincarnation renders nothing under `previous`, and its evaluation\nsays `first_revision: true`. Truncation cuts `previous` before\n`fields`, after any images, which go first.\n","additionalProperties":false,"required":["fields"],"properties":{"fields":{"type":"array","description":"The document's own paths to render as they were, in order, each verbatim or cut to `max_chars`.","minItems":1,"items":{"oneOf":[{"type":"string","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","pattern":"^((state|attributes)(\\.[^.]+)+|images\\.[A-Za-z0-9_-]{1,128})$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous.fields.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"object","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","required":["path","max_chars"],"properties":{"path":{"type":"string","description":"In a recipe's or `previous`'s `fields`, a `state` or `attributes` path; in a relation's `fields`, any path a `RelationField` names.","pattern":"^((state|attributes)(\\.[^.]+)+|id|created_at|updated_at|answers\\.[A-Za-z0-9_-]+\\.(value|thresholds\\.[A-Za-z0-9_-]+))$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous.fields.items.[INDEX].oneOf.1.path","typeLabel":"string"},"max_chars":{"type":"integer","minimum":1,"maximum":4294967295,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous.fields.items.[INDEX].oneOf.1.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous.fields.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous.fields.items.[INDEX]","typeLabel":"string | object"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous.fields","typeLabel":"(string | object)[]"},"anchor":{"type":"string","description":"An attribute such as `attributes.approved_at`. The stored previous moves on only when this attribute's value changes, so every edit is compared with the revision last approved, however many rejected edits come between.","pattern":"^attributes\\.[A-Za-z0-9_-]+$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous.anchor","typeLabel":"string"}},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe","typeLabel":"object"},"cost_per_answer":{"oneOf":[{"type":"number","minimum":0,"description":"Mean units per answer, in the unit used before rows kept (two rows each), counted by size class at the engine's multiple as the bill counts them, over the sample with this recipe and the definition's question. The suggested `max_tokens` is at most 2,000, the standard ceiling, less the question's tokens, so a context that fills it stays standard with its question.","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.cost_per_answer.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"description":"Mean units per answer, in the unit used before rows kept (two rows each), counted by size class at the engine's multiple as the bill counts them, over the sample with this recipe and the definition's question. The suggested `max_tokens` is at most 2,000, the standard ceiling, less the question's tokens, so a context that fills it stays standard with its question.","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.cost_per_answer.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.cost_per_answer","typeLabel":"number | null"},"whole_state_cost_per_answer":{"oneOf":[{"type":"number","minimum":0,"description":"The same with the whole `state`.","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.whole_state_cost_per_answer.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"description":"The same with the whole `state`.","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.whole_state_cost_per_answer.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.whole_state_cost_per_answer","typeLabel":"number | null"},"sampled_documents":{"type":"integer","minimum":1,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.sampled_documents","typeLabel":"integer"},"excluded":{"type":"array","description":"Each path left out, and why, so you can put back what the question needs.","items":{"type":"object","required":["path","reason"],"properties":{"path":{"type":"string","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.excluded.items.[INDEX].path","typeLabel":"string"},"reason":{"type":"string","enum":["id","timestamp","url","binary","image","long","rare","too_many"],"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.excluded.items.[INDEX].reason","typeLabel":"enum\u003cstring>"}},"uniqueKey":"error.details.suggested_context.oneOf.0.excluded.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.excluded","typeLabel":"object[]"}},"uniqueKey":"error.details.suggested_context.oneOf.0","typeLabel":"object"},{"type":"null","description":"On a create without a context recipe, the recipe suggested from the namespace's documents, or null when there are none.","uniqueKey":"error.details.suggested_context.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.details.suggested_context","typeLabel":"object | null"}},"uniqueKey":"error.details","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"invalid_request","message":"\u003cstring>","details":{"reason":"\u003cstring>","suggested_context":{"recipe":{"fields":["\u003cstring>"],"last_n":{},"window":{},"max_tokens":2,"related":{},"previous":{"fields":["\u003cstring>"],"anchor":"\u003cstring>"}},"cost_per_answer":1,"whole_state_cost_per_answer":1,"sampled_documents":2,"excluded":[{"path":"\u003cstring>","reason":"id"}]}}}}}},"exampleType":"generated"}},"exampleType":"generated"},"ca76708d-258b-4f85-9f0f-45e51ac310e4":{"description":"`unauthorized`: the key is missing, unknown or revoked.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"HTTP status by code: `invalid_request` 400, `unauthorized` 401,\n`invalid_image` 400, `unknown_image` 400, `image_erased` 410,\n`budget_exceeded` 402, `plan_required` 402, `forbidden` 403,\n`claim_required` 403, `sign_up_closed` 403, `not_found` 404, `conflict` 409,\n`too_large` 413, `engine_version_unavailable` 422,\n`insufficient_labels` 422, `idempotency_key_reused` 422,\n`rate_limited` 429, `internal` 500,\n`engine_unavailable` 503, `unavailable` 503.\n\nAny route can also answer `unavailable`, with `Retry-After`, when it\ndid not finish within 35 s: it was stopped, and a retry runs it\nagain. Creating a judgment version, a judgment's `PATCH` and a\nbackfill's start answer within 20 s, with a job (`202`) when they\nneed longer, and never begin their change after 25 s. So when one of\nthem is answered `unavailable` this way, nothing changed and the\nretry makes the change once.\n","enum":["invalid_request","invalid_image","unknown_image","image_erased","unauthorized","forbidden","claim_required","sign_up_closed","not_found","conflict","too_large","rate_limited","budget_exceeded","plan_required","engine_unavailable","engine_version_unavailable","unavailable","insufficient_labels","idempotency_key_reused","internal"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"object","description":"Code-specific detail, such as the scan estimate on a refused query. Every `internal` error has `request_id`.","properties":{"reason":{"type":"string","description":"Why, where one code has more than one cause. On the events\nfeed's `invalid_request`, `cursor_expired`.\n","uniqueKey":"error.details.reason","typeLabel":"string"},"suggested_context":{"oneOf":[{"type":"object","description":"On a create without a context recipe, the recipe suggested from the namespace's documents, or null when there are none.","required":["recipe","cost_per_answer","whole_state_cost_per_answer","sampled_documents","excluded"],"properties":{"recipe":{"type":"object","description":"What the engine sees. A create without it is refused with a suggested\nrecipe, unless `use_context` asks for the suggestion or the whole\n`state`; a version with no recipe sends the whole\n`state`, subject to the engine limit, and no images.\n","additionalProperties":false,"properties":{"fields":{"type":"array","description":"Paths included in order, each verbatim or, as a `ClippedPath`, cut to its first `max_chars` characters. A path is `state.\u003cpath>`, `attributes.\u003cname>`, or an image path, `images.\u003cname>`, which reads that name's image or whole list; an image path takes no `max_chars`. An engine that reads images (its `limits.images` in `GET /engines`) reads each, counted by its tiles; an engine that reads none gets each as an `OmittedImage` with `engine_reads_no_images`, and the create warns. Images are written to documents, never sent with the judgment.\n","items":{"oneOf":[{"type":"string","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","pattern":"^((state|attributes)(\\.[^.]+)+|images\\.[A-Za-z0-9_-]{1,128})$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.fields.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"object","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","required":["path","max_chars"],"properties":{"path":{"type":"string","description":"In a recipe's or `previous`'s `fields`, a `state` or `attributes` path; in a relation's `fields`, any path a `RelationField` names.","pattern":"^((state|attributes)(\\.[^.]+)+|id|created_at|updated_at|answers\\.[A-Za-z0-9_-]+\\.(value|thresholds\\.[A-Za-z0-9_-]+))$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.fields.items.[INDEX].oneOf.1.path","typeLabel":"string"},"max_chars":{"type":"integer","minimum":1,"maximum":4294967295,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.fields.items.[INDEX].oneOf.1.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.fields.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.fields.items.[INDEX]","typeLabel":"string | object"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.fields","typeLabel":"(string | object)[]"},"last_n":{"type":"object","description":"Per array path in `state` or `attributes`, keep the last n elements. Not an image path.","additionalProperties":{"type":"integer","minimum":1,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.last_n.additionalProperties","typeLabel":"integer"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.last_n","typeLabel":"object"},"window":{"type":"object","description":"Per array path whose elements have a timestamp field `at`, keep elements within the window.","additionalProperties":{"type":"string","description":"A whole number and a unit (`s`, `m`, `h` or `d`), such as `7d` or `1h`.","pattern":"^[1-9][0-9]*[smhd]$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.window.additionalProperties","typeLabel":"string"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.window","typeLabel":"object"},"max_tokens":{"type":"integer","minimum":1,"description":"Hard cap, in the judgment's engine's tokens. Over it, whole images are left out first (on an engine that reads them; those of relations, then `previous`, then fields, the last first; every image when the text alone is over), then relation records, then `previous` entries, then the end of the last field is cut.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.max_tokens","typeLabel":"integer"},"related":{"type":"object","description":"Up to 4 relations, by name: documents in the same namespace that point at the judged one, or the one document it points at. Each renders as a `related.\u003cname>`\nentry after `fields`, and a write that changes what it renders\nmakes the judged document's answer `pending` until it is judged\nagain (for a referenced document, only inside the re-judge scope;\noutside it, the answer is `stale` with `stale_reason`\n`referenced_changed`).\n","minProperties":1,"maxProperties":4,"propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"type":"object","description":"Documents that point at the judged document.\nThey are ordered newest `created_at` first unless `order` says\notherwise: `window` keeps those created within the window, the order\nis applied, then `last_n` keeps the first n. At least one of `last_n`\nand `window` is required, and at least one of `fields` and\n`aggregate`. A relation reads at most the newest 1,000 documents,\nand an `order` sorts within them.\n\nWith `join: {theirs: \"id\", mine: \"attributes.\u003cname>\"}`\nthe relation reads the one document the judged document points at,\nits referenced document, and takes no `window`. With `last_n` (up to\n254) it is a named list instead: the attribute holds an array of\nids, and the relation reads the documents it names in list order\nunless `order` says otherwise, each once, at most `last_n` of them. An id that names nothing, or a\ndocument outside `match`, renders nothing and is listed in the\nevaluation's `related_documents` as `unresolved`. An attribute a\nnamed list reads holds at most 254 distinct ids.\n\nWith `join: {theirs: \"attributes.\u003ckey>\", mine:\n\"attributes.\u003ckey>\"}` it is a blocking relation over the documents\nthat share the judged document's key value. It needs `window`\nunless it sets `relative`, takes\n`last_n` up to 254 (up to the `options.from` candidate limit when a\n`choice` chooses among it with\n`options.from`), and a change to its block re-judges the block's\njudged documents. With `relative`, each judged document reads the\n`last_n` documents of its block created just before it (or just\nafter it), in creation order, and a change re-judges only the\njudged documents whose documents it moved. `fields`, `aggregate` and `match` may read other\njudgments' answers (`answers.\u003cj>.\u003cfield>`), banded or cut, and the\nnewest outcome posted for each related document\n(`outcomes.\u003cj>.value`), shown as posted: the one with the latest\n`observed_at`, of two at the same time the one posted last, about\nthe document's current life and of the judgment's current answer\ntype. Posting one re-judges the judgments that read it, within their\n`rolling_limit`. A relation reads at most 4 judgments' answers or\noutcomes.\n","required":["match","join"],"conditionallyRequiredProperties":{"aggregate":[{}],"last_n":[{},{}],"window":[{},{}]},"properties":{"match":{"type":"object","description":"Which documents the relation reads.","minProperties":1,"maxProperties":8,"propertyNames":{"type":"string","pattern":"^(attributes\\.[A-Za-z0-9_-]+|answers\\.[A-Za-z0-9_-]+\\.(value|p|score|thresholds\\.[A-Za-z0-9_-]+)|outcomes\\.[A-Za-z0-9_-]+\\.value)$"},"additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.2","typeLabel":"boolean"},{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.3.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.3.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.3.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.3.items.[INDEX]","typeLabel":"string | number | boolean"},"minItems":1,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.3","typeLabel":"(string | number | boolean)[]"},{"type":"object","description":"An inline cut on an answer's `p` or `score`, exactly as stable as a named threshold. One bound.","maxProperties":1,"minProperties":1,"properties":{"gte":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.4.gte","typeLabel":"number"},"gt":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.4.gt","typeLabel":"number"},"lte":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.4.lte","typeLabel":"number"},"lt":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.4.lt","typeLabel":"number"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.4","typeLabel":"object"},{"type":"object","description":"Selects documents that have an outcome a relation reads, on an `outcomes.\u003cj>.value` key of `match`.","required":["exists"],"properties":{"exists":{"const":true,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.5.exists","typeLabel":"any"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.5","typeLabel":"object"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties","typeLabel":"string · number · boolean · (string | number | boolean)[] · object · object"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match","typeLabel":"object"},"join":{"oneOf":[{"type":"object","description":"How a related document is matched to the judged one: one side is\n`id` and the other an attribute holding an id, or both sides the same attribute, a shared key, or one side\n`id` and the other a matching judgment's pick (a judged link). Two different\nattributes are `invalid_request`.\n","required":["theirs","mine"],"properties":{"theirs":{"type":"string","description":"The related document's attribute that holds the judged document's id, such as `attributes.parent_id`.","pattern":"^attributes\\.[A-Za-z0-9_-]+$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.0.theirs","typeLabel":"string"},"mine":{"const":"id","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.0.mine","typeLabel":"any"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.0","typeLabel":"object"},{"type":"object","description":"How a related document is matched to the judged one: one side is\n`id` and the other an attribute holding an id, or both sides the same attribute, a shared key, or one side\n`id` and the other a matching judgment's pick (a judged link). Two different\nattributes are `invalid_request`.\n","required":["theirs","mine"],"properties":{"theirs":{"const":"id","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.1.theirs","typeLabel":"any"},"mine":{"type":"string","description":"The judged document's attribute that holds the referenced document's id, such as `attributes.group_id`.","pattern":"^attributes\\.[A-Za-z0-9_-]+$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.1.mine","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.1","typeLabel":"object"},{"type":"object","description":"How a related document is matched to the judged one: one side is\n`id` and the other an attribute holding an id, or both sides the same attribute, a shared key, or one side\n`id` and the other a matching judgment's pick (a judged link). Two different\nattributes are `invalid_request`.\n","required":["theirs","mine"],"properties":{"theirs":{"type":"string","description":"The key attribute, such as `attributes.block`.","pattern":"^attributes\\.[A-Za-z0-9_-]+$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.2.theirs","typeLabel":"string"},"mine":{"type":"string","description":"The same attribute as `theirs`.","pattern":"^attributes\\.[A-Za-z0-9_-]+$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.2.mine","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.2","typeLabel":"object"},{"type":"object","description":"How a related document is matched to the judged one: one side is\n`id` and the other an attribute holding an id, or both sides the same attribute, a shared key, or one side\n`id` and the other a matching judgment's pick (a judged link). Two different\nattributes are `invalid_request`.\n","required":["theirs","mine","when"],"properties":{"theirs":{"type":"string","description":"`answers.\u003cj>.value` of the judgment that picks, which must choose among a blocking relation's candidates, or `id`.","pattern":"^(id|answers\\.[A-Za-z0-9_-]+\\.value)$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.3.theirs","typeLabel":"string"},"mine":{"type":"string","description":"`id`, or `answers.\u003cj>.value` of the judgment that picks; the other side of `theirs`.","pattern":"^(id|answers\\.[A-Za-z0-9_-]+\\.value)$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.3.mine","typeLabel":"string"},"when":{"type":"object","description":"When a judged link holds: while the named threshold of the judgment\nthat picks, a threshold on `none_of_the_above` (its unmatched\nqueue), is `false`. At or above it, the pick is not taken and the\ndocument does not link. Required. Removing that threshold while the\nrelation exists is `conflict`; changing its value re-judges each\njudged document whose links it moves, after the `downstream`\nconfirm.\n","additionalProperties":false,"required":["below"],"properties":{"below":{"type":"string","description":"A judgment, attribute or threshold name. Names are path segments in field references, so they never contain `.`.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.3.when.below","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.3.when","typeLabel":"object"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.3","typeLabel":"object"}],"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join","typeLabel":"object"},"last_n":{"type":"integer","minimum":1,"maximum":1000,"description":"Keep the first n in the relation's order, newest first by default. On a relation that reads a referenced document it makes a named list, keeping the first n documents the list names, in list order unless `order` says otherwise, at most 254; at most 254 on a blocking relation, and at most the `options.from` candidate limit (see Limits) when `options.from` chooses among it.","conditionalRequirements":[{},{}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.last_n","typeLabel":"integer"},"window":{"type":"string","description":"Keep documents created within this long before the later of the judged document's newest write and its newest related creation, at the answer's watermark. An edit to an old related document never moves the window. Not on a relation that reads a referenced document.","pattern":"^[1-9][0-9]*[smhd]$","conditionalRequirements":[{},{}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.window","typeLabel":"string"},"fields":{"type":"array","description":"Paths to include from each document, rendered under `records` in the relation's order. An entry may be a `BandedField`, which renders a number as its band, or a `ClippedPath`, which renders the first `max_chars` characters. An entry may also be a judgment's `answers.\u003cj>.value` and `answers.\u003cj>.thresholds.\u003cname>` as they are, and its `.p`, `.score` and `.dist.\u003coption>` only banded.","minItems":1,"items":{"oneOf":[{"type":"string","description":"A path in a related document, an image path `images.\u003cname>` (its image or list, read like the judged document's own), `id`, `created_at` or `updated_at`; a judgment's `answers.\u003cj>.value` or `answers.\u003cj>.thresholds.\u003cname>`, which render as they are; or the document's newest outcome, `outcomes.\u003cj>.value`, rendered as posted. An answer's `p`, `score` or `dist.\u003coption>` must be a `BandedField`.","pattern":"^((state|attributes)(\\.[^.]+)+|images\\.[A-Za-z0-9_-]{1,128}|id|created_at|updated_at|answers\\.[A-Za-z0-9_-]+\\.(value|thresholds\\.[A-Za-z0-9_-]+)|outcomes\\.[A-Za-z0-9_-]+\\.value)$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"object","description":"A number rendered as its band rather than its value, in any relation. In a relation's `fields`, `max_chars` cuts the rendered label as a `ClippedPath` does; it is refused on an aggregate's `min` or `max`. A number renders as the label whose position\nis how many cut points are at or below it: with `bands: [0.3, 0.7]`,\n0.29 is `labels[0]`, 0.3 is `labels[1]` and 0.7 or more `labels[2]`.\nA value that is not a number renders unchanged, and a missing one is\nleft out. Only a move to another band changes the context, so a move\ninside one neither fans out nor costs an evaluation. `bands` must be\nstrictly increasing and `labels` must have exactly one more entry;\nthe server refuses anything else with `invalid_request`.\n","required":["path","bands","labels"],"properties":{"path":{"type":"string","description":"A `state` or `attributes` path, or a judgment's `answers.\u003cj>.p`, `answers.\u003cj>.score` or `answers.\u003cj>.dist.\u003coption>`.","pattern":"^((state|attributes)(\\.[^.]+)+|answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^.]+))$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1.path","typeLabel":"string"},"bands":{"type":"array","description":"Cut points, strictly increasing.","minItems":1,"maxItems":9,"items":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1.bands.items.[INDEX]","typeLabel":"number"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1.bands","typeLabel":"number[]"},"labels":{"type":"array","description":"One label per band, lowest first, so one more than `bands`.","minItems":2,"maxItems":10,"items":{"type":"string","minLength":1,"maxLength":64,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1.labels.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1.labels","typeLabel":"string[]"},"max_chars":{"type":"integer","minimum":1,"maximum":4294967295,"description":"The label cut to this many characters, after the band. Only in a relation's `fields`.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","description":"A path rendered as its first `max_chars` characters (Unicode code\npoints, not bytes or tokens). A string longer than that is cut to\nit; a value that fits renders unchanged and keeps its type; any\nother longer value renders as its JSON text cut to `max_chars`, a\nstring. An edit past the cut changes nothing the engine reads from\nthe field. It bounds one field; it does not make a context fit. An\nimage is never cut, so an image path takes no `max_chars`.\n","required":["path","max_chars"],"properties":{"path":{"type":"string","description":"In a recipe's or `previous`'s `fields`, a `state` or `attributes` path; in a relation's `fields`, any path a `RelationField` names.","pattern":"^((state|attributes)(\\.[^.]+)+|id|created_at|updated_at|answers\\.[A-Za-z0-9_-]+\\.(value|thresholds\\.[A-Za-z0-9_-]+))$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.2.path","typeLabel":"string"},"max_chars":{"type":"integer","minimum":1,"maximum":4294967295,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.2.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.2","typeLabel":"object"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX]","typeLabel":"string · object · object"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields","typeLabel":"string · object · object[]"},"aggregate":{"type":"object","description":"Numbers over the relation's documents, after `match`, `window` and\n`last_n`, rendered as keys of its `related.\u003cname>` entry, such as\n`count` and `sum(state.amount)`. At most 8 paths in total, answer\npaths included. `sum`, `avg`, `min` and `max` skip values that are\nnot numbers; `sum` of nothing is 0, and `avg`, `min` and `max` of\nnothing are null. `latest` is the value in the newest document that\nhas one, of any JSON type.\n\n`latest` reads the most recently created document whatever the\nrelation's `order`.\n\n`count_where` counts documents by judgments'\nanswers; a `min` or `max` entry may be banded, and one over an\nanswer's `p` or `score` must be, rendering the band of the extreme;\n`latest` may read an answer's `value` or `thresholds.\u003cname>`. `sum`\nand `avg` may read an answer's `p`, `score` or `dist.\u003coption>` only\nas a feature the judgment names: never rendered, since it moves on\nevery child evaluation. A child whose newest answer failed adds its\nlast good value; a child with no answer adds nothing and is outside\nthe average. `count_where` and `latest` may read an outcome;\n`labelled` counts the documents that have one.\n\n`render: false` keeps the aggregates, all but `latest`, out of the\ncontext the engine reads, while features still read them: a change\nthat moves only them then re-judges with no engine call and no\ncharge.\n","additionalProperties":false,"minProperties":1,"properties":{"count":{"const":true,"description":"How many documents the relation selected.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count","typeLabel":"any"},"labelled":{"const":true,"description":"How many selected documents have an outcome the relation reads (`outcomes.\u003cj>.value`). Only on a relation that reads one.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.labelled","typeLabel":"any"},"count_where":{"type":"object","description":"How many selected documents match every key: a\njudgment's `answers.\u003cj>.value` or\n`answers.\u003cj>.thresholds.\u003cname>` by equality (a list is `In`) or\nby `{\"not\": \u003cvalue>}`, or its `.p` or `.score` by an inline cut;\nor a document's newest outcome, `outcomes.\u003cj>.value`, by equality.\nA document with no answer matches no key, `not` included. Rendered\nas `count_where`.\n\nA judgment that chooses among candidates (`options.from`) is\ncounted only by whether its value is `none_of_the_above`:\n`{\"answers.settles.value\": {\"not\": \"none_of_the_above\"}}` counts\nthe payments that settled any invoice, and\n`{\"answers.settles.value\": \"none_of_the_above\"}` those that settled\nnone. Any other condition on it is `invalid_request`.\n","minProperties":1,"maxProperties":8,"propertyNames":{"type":"string","pattern":"^(answers\\.[A-Za-z0-9_-]+\\.(value|p|score|thresholds\\.[A-Za-z0-9_-]+)|outcomes\\.[A-Za-z0-9_-]+\\.value)$"},"additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.2","typeLabel":"boolean"},{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.3.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.3.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.3.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.3.items.[INDEX]","typeLabel":"string | number | boolean"},"minItems":1,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.3","typeLabel":"(string | number | boolean)[]"},{"type":"object","description":"An inline cut on an answer's `p` or `score`, exactly as stable as a named threshold. One bound.","maxProperties":1,"minProperties":1,"properties":{"gte":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.4.gte","typeLabel":"number"},"gt":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.4.gt","typeLabel":"number"},"lte":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.4.lte","typeLabel":"number"},"lt":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.4.lt","typeLabel":"number"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.4","typeLabel":"object"},{"type":"object","description":"In a `count_where`, an answer's `value` or `thresholds.\u003cname>` that is not this value. A document with no answer does not match.","required":["not"],"properties":{"not":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.5.not.oneOf.0","typeLabel":"string"},{"type":"number","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.5.not.oneOf.1","typeLabel":"number"},{"type":"boolean","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.5.not.oneOf.2","typeLabel":"boolean"}],"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.5.not","typeLabel":"string | number | boolean"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.5","typeLabel":"object"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties","typeLabel":"string · number · boolean · (string | number | boolean)[] · object · object"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where","typeLabel":"object"},"sum":{"type":"array","description":"Paths for `sum` or `avg`; also a judgment's `answers.\u003cj>.p`, `.score` or `.dist.\u003coption>`, as a feature only.","minItems":1,"maxItems":8,"uniqueItems":true,"items":{"type":"string","description":"A `state` or `attributes` path, without `(` or `)`, or an answer's number.","pattern":"^((state|attributes)(\\.[^.()]+)+|answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^()]+))$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.sum.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.sum","typeLabel":"string[]"},"avg":{"type":"array","description":"Paths to average, the mean of the numbers there.","minItems":1,"maxItems":8,"uniqueItems":true,"items":{"type":"string","description":"A `state` or `attributes` path, without `(` or `)`, or an answer's number.","pattern":"^((state|attributes)(\\.[^.()]+)+|answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^()]+))$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.avg.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.avg","typeLabel":"string[]"},"min":{"type":"array","description":"Paths for `min` or `max`; an entry may be banded, which an answer's `p` or `score` must be. `created_at` and `updated_at` give the oldest or newest time, as RFC 3339, which an `age(...)` feature reads; they are not banded.","minItems":1,"maxItems":8,"items":{"oneOf":[{"type":"string","description":"A `state` or `attributes` path, or `created_at` or `updated_at`. Keys in it cannot contain `(` or `)`.","pattern":"^((state|attributes)(\\.[^.()]+)+|created_at|updated_at)$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"object","description":"A number rendered as its band rather than its value, in any relation. In a relation's `fields`, `max_chars` cuts the rendered label as a `ClippedPath` does; it is refused on an aggregate's `min` or `max`. A number renders as the label whose position\nis how many cut points are at or below it: with `bands: [0.3, 0.7]`,\n0.29 is `labels[0]`, 0.3 is `labels[1]` and 0.7 or more `labels[2]`.\nA value that is not a number renders unchanged, and a missing one is\nleft out. Only a move to another band changes the context, so a move\ninside one neither fans out nor costs an evaluation. `bands` must be\nstrictly increasing and `labels` must have exactly one more entry;\nthe server refuses anything else with `invalid_request`.\n","required":["path","bands","labels"],"properties":{"path":{"type":"string","description":"A `state` or `attributes` path, or a judgment's `answers.\u003cj>.p`, `answers.\u003cj>.score` or `answers.\u003cj>.dist.\u003coption>`.","pattern":"^((state|attributes)(\\.[^.]+)+|answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^.]+))$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1.path","typeLabel":"string"},"bands":{"type":"array","description":"Cut points, strictly increasing.","minItems":1,"maxItems":9,"items":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1.bands.items.[INDEX]","typeLabel":"number"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1.bands","typeLabel":"number[]"},"labels":{"type":"array","description":"One label per band, lowest first, so one more than `bands`.","minItems":2,"maxItems":10,"items":{"type":"string","minLength":1,"maxLength":64,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1.labels.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1.labels","typeLabel":"string[]"},"max_chars":{"type":"integer","minimum":1,"maximum":4294967295,"description":"The label cut to this many characters, after the band. Only in a relation's `fields`.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX]","typeLabel":"string | object"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min","typeLabel":"(string | object)[]"},"max":{"type":"array","description":"Paths for `min` or `max`; an entry may be banded, which an answer's `p` or `score` must be. `created_at` and `updated_at` give the oldest or newest time, as RFC 3339, which an `age(...)` feature reads; they are not banded.","minItems":1,"maxItems":8,"items":{"oneOf":[{"type":"string","description":"A `state` or `attributes` path, or `created_at` or `updated_at`. Keys in it cannot contain `(` or `)`.","pattern":"^((state|attributes)(\\.[^.()]+)+|created_at|updated_at)$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"object","description":"A number rendered as its band rather than its value, in any relation. In a relation's `fields`, `max_chars` cuts the rendered label as a `ClippedPath` does; it is refused on an aggregate's `min` or `max`. A number renders as the label whose position\nis how many cut points are at or below it: with `bands: [0.3, 0.7]`,\n0.29 is `labels[0]`, 0.3 is `labels[1]` and 0.7 or more `labels[2]`.\nA value that is not a number renders unchanged, and a missing one is\nleft out. Only a move to another band changes the context, so a move\ninside one neither fans out nor costs an evaluation. `bands` must be\nstrictly increasing and `labels` must have exactly one more entry;\nthe server refuses anything else with `invalid_request`.\n","required":["path","bands","labels"],"properties":{"path":{"type":"string","description":"A `state` or `attributes` path, or a judgment's `answers.\u003cj>.p`, `answers.\u003cj>.score` or `answers.\u003cj>.dist.\u003coption>`.","pattern":"^((state|attributes)(\\.[^.]+)+|answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^.]+))$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1.path","typeLabel":"string"},"bands":{"type":"array","description":"Cut points, strictly increasing.","minItems":1,"maxItems":9,"items":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1.bands.items.[INDEX]","typeLabel":"number"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1.bands","typeLabel":"number[]"},"labels":{"type":"array","description":"One label per band, lowest first, so one more than `bands`.","minItems":2,"maxItems":10,"items":{"type":"string","minLength":1,"maxLength":64,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1.labels.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1.labels","typeLabel":"string[]"},"max_chars":{"type":"integer","minimum":1,"maximum":4294967295,"description":"The label cut to this many characters, after the band. Only in a relation's `fields`.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX]","typeLabel":"string | object"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max","typeLabel":"(string | object)[]"},"latest":{"type":"array","description":"Paths for `latest`; also `created_at` or `updated_at`, the newest document's time as RFC 3339, an image path `images.\u003cname>`, which renders the newest document's image or list, a judgment's `answers.\u003cj>.value` or `answers.\u003cj>.thresholds.\u003cname>`, or a document's newest outcome, `outcomes.\u003cj>.value`.","minItems":1,"maxItems":8,"uniqueItems":true,"items":{"type":"string","description":"A `state` or `attributes` path, `created_at` or `updated_at`, an image path, an answer's `value` or `thresholds.\u003cname>`, or an outcome's `value`. Keys in it cannot contain `(` or `)`.","pattern":"^((state|attributes)(\\.[^.()]+)+|created_at|updated_at|images\\.[A-Za-z0-9_-]{1,128}|answers\\.[A-Za-z0-9_-]+\\.(value|thresholds\\.[A-Za-z0-9_-]+)|outcomes\\.[A-Za-z0-9_-]+\\.value)$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.latest.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.latest","typeLabel":"string[]"},"render":{"type":"boolean","default":true,"description":"Whether the aggregates, all but `latest`, are in the context the engine reads. Part of the version.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.render","typeLabel":"boolean"}},"conditionalRequirements":[{}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate","typeLabel":"object"},"order":{"type":"object","description":"Which of a relation's documents come first, and so which `last_n`\nkeeps. The newest 1,000 documents in `window` are sorted, never more:\na document outside them is not selected whatever its value, and the\nrelation's entry renders `range_full: true` when more matched.\nValues sort by type first, numbers, then strings, then booleans,\nthen missing values and anything else; `desc` reverses the order\nwithin each type, never the types. Numbers compare by value (whole\nnumbers exactly), strings by Unicode code point, and `false` comes\nbefore `true`. Ties go to the most recently created, then the lower\n`id`. `records` render in this order and, over the token limit, the\nones that sort last are dropped first; `latest` stays the most\nrecently created document's value. Ordered by anything but\n`created_at`, a write to the ordered field can move a document into\nor out of the selection. The relation reads up to 1,000 documents\nper judged document to sort them; the create response's warnings\nname the factor. On a named list it sorts the documents the list\nnames in place of list order, `created_at` included. Refused on a\nblocking relation and on one that reads a single referenced\ndocument.\n","additionalProperties":false,"required":["by"],"properties":{"by":{"type":"string","description":"`created_at`, `updated_at`, a `state.\u003cpath>` or an `attributes.\u003cname>`.","pattern":"^(created_at|updated_at|state(\\.[^.]+)+|attributes\\.[A-Za-z0-9_-]+)$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.order.by","typeLabel":"string"},"desc":{"type":"boolean","default":true,"description":"Largest first within each type.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.order.desc","typeLabel":"boolean"}},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.order","typeLabel":"object"},"relative":{"type":"string","enum":["before","after"],"description":"On a blocking relation, which side of the judged document it\nreads: the `last_n` documents of the block created nearest\nbefore it (`before`) or after it (`after`), never the judged\ndocument itself, in creation order, oldest first. Creation order\nis `created_at`, ties by `id`: the `created_at` a write supplied\nwhen it created the document, or the time of that write. What a\njudged document reads never moves when the block grows at the\nother end, so a document judged again later reads the same\ndocuments unless one of them was created, deleted, re-keyed or\nchanged. Such a change re-judges only the judged documents whose\n`last_n` it is or was in, at most `last_n` of them on the side\nthat reads it; a new document after every other one re-judges\nnothing in a `before` relation. Over the token limit the\nfarthest documents are dropped first (the oldest of a `before`\nrun, the newest of an `after` run); aggregates cover every\ndocument read. Refused with `window` and `order`.\n","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.relative","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties","typeLabel":"object"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related","typeLabel":"object"},"previous":{"type":"object","description":"The judged document as the judgment's last successful evaluation saw it, rendered as `previous.\u003cpath>` entries\nafter `fields`, so a question can ask what changed. When a revision\nrenders the same as the stored current, as a nightly re-upsert of\nthe same record does, the context is the one the last verdict saw\nand costs nothing. A document with no stored rendering in its\nincarnation renders nothing under `previous`, and its evaluation\nsays `first_revision: true`. Truncation cuts `previous` before\n`fields`, after any images, which go first.\n","additionalProperties":false,"required":["fields"],"properties":{"fields":{"type":"array","description":"The document's own paths to render as they were, in order, each verbatim or cut to `max_chars`.","minItems":1,"items":{"oneOf":[{"type":"string","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","pattern":"^((state|attributes)(\\.[^.]+)+|images\\.[A-Za-z0-9_-]{1,128})$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous.fields.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"object","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","required":["path","max_chars"],"properties":{"path":{"type":"string","description":"In a recipe's or `previous`'s `fields`, a `state` or `attributes` path; in a relation's `fields`, any path a `RelationField` names.","pattern":"^((state|attributes)(\\.[^.]+)+|id|created_at|updated_at|answers\\.[A-Za-z0-9_-]+\\.(value|thresholds\\.[A-Za-z0-9_-]+))$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous.fields.items.[INDEX].oneOf.1.path","typeLabel":"string"},"max_chars":{"type":"integer","minimum":1,"maximum":4294967295,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous.fields.items.[INDEX].oneOf.1.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous.fields.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous.fields.items.[INDEX]","typeLabel":"string | object"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous.fields","typeLabel":"(string | object)[]"},"anchor":{"type":"string","description":"An attribute such as `attributes.approved_at`. The stored previous moves on only when this attribute's value changes, so every edit is compared with the revision last approved, however many rejected edits come between.","pattern":"^attributes\\.[A-Za-z0-9_-]+$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous.anchor","typeLabel":"string"}},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe","typeLabel":"object"},"cost_per_answer":{"oneOf":[{"type":"number","minimum":0,"description":"Mean units per answer, in the unit used before rows kept (two rows each), counted by size class at the engine's multiple as the bill counts them, over the sample with this recipe and the definition's question. The suggested `max_tokens` is at most 2,000, the standard ceiling, less the question's tokens, so a context that fills it stays standard with its question.","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.cost_per_answer.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"description":"Mean units per answer, in the unit used before rows kept (two rows each), counted by size class at the engine's multiple as the bill counts them, over the sample with this recipe and the definition's question. The suggested `max_tokens` is at most 2,000, the standard ceiling, less the question's tokens, so a context that fills it stays standard with its question.","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.cost_per_answer.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.cost_per_answer","typeLabel":"number | null"},"whole_state_cost_per_answer":{"oneOf":[{"type":"number","minimum":0,"description":"The same with the whole `state`.","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.whole_state_cost_per_answer.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"description":"The same with the whole `state`.","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.whole_state_cost_per_answer.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.whole_state_cost_per_answer","typeLabel":"number | null"},"sampled_documents":{"type":"integer","minimum":1,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.sampled_documents","typeLabel":"integer"},"excluded":{"type":"array","description":"Each path left out, and why, so you can put back what the question needs.","items":{"type":"object","required":["path","reason"],"properties":{"path":{"type":"string","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.excluded.items.[INDEX].path","typeLabel":"string"},"reason":{"type":"string","enum":["id","timestamp","url","binary","image","long","rare","too_many"],"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.excluded.items.[INDEX].reason","typeLabel":"enum\u003cstring>"}},"uniqueKey":"error.details.suggested_context.oneOf.0.excluded.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.excluded","typeLabel":"object[]"}},"uniqueKey":"error.details.suggested_context.oneOf.0","typeLabel":"object"},{"type":"null","description":"On a create without a context recipe, the recipe suggested from the namespace's documents, or null when there are none.","uniqueKey":"error.details.suggested_context.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.details.suggested_context","typeLabel":"object | null"}},"uniqueKey":"error.details","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"invalid_request","message":"\u003cstring>","details":{"reason":"\u003cstring>","suggested_context":{"recipe":{"fields":["\u003cstring>"],"last_n":{},"window":{},"max_tokens":2,"related":{},"previous":{"fields":["\u003cstring>"],"anchor":"\u003cstring>"}},"cost_per_answer":1,"whole_state_cost_per_answer":1,"sampled_documents":2,"excluded":[{"path":"\u003cstring>","reason":"id"}]}}}}}},"exampleType":"generated"}},"exampleType":"generated"},"bdd7fc57-ee12-48c3-97da-660f09e901a7":{"description":"`forbidden`: the key's role or namespace prefix does not allow this.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"HTTP status by code: `invalid_request` 400, `unauthorized` 401,\n`invalid_image` 400, `unknown_image` 400, `image_erased` 410,\n`budget_exceeded` 402, `plan_required` 402, `forbidden` 403,\n`claim_required` 403, `sign_up_closed` 403, `not_found` 404, `conflict` 409,\n`too_large` 413, `engine_version_unavailable` 422,\n`insufficient_labels` 422, `idempotency_key_reused` 422,\n`rate_limited` 429, `internal` 500,\n`engine_unavailable` 503, `unavailable` 503.\n\nAny route can also answer `unavailable`, with `Retry-After`, when it\ndid not finish within 35 s: it was stopped, and a retry runs it\nagain. Creating a judgment version, a judgment's `PATCH` and a\nbackfill's start answer within 20 s, with a job (`202`) when they\nneed longer, and never begin their change after 25 s. So when one of\nthem is answered `unavailable` this way, nothing changed and the\nretry makes the change once.\n","enum":["invalid_request","invalid_image","unknown_image","image_erased","unauthorized","forbidden","claim_required","sign_up_closed","not_found","conflict","too_large","rate_limited","budget_exceeded","plan_required","engine_unavailable","engine_version_unavailable","unavailable","insufficient_labels","idempotency_key_reused","internal"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"object","description":"Code-specific detail, such as the scan estimate on a refused query. Every `internal` error has `request_id`.","properties":{"reason":{"type":"string","description":"Why, where one code has more than one cause. On the events\nfeed's `invalid_request`, `cursor_expired`.\n","uniqueKey":"error.details.reason","typeLabel":"string"},"suggested_context":{"oneOf":[{"type":"object","description":"On a create without a context recipe, the recipe suggested from the namespace's documents, or null when there are none.","required":["recipe","cost_per_answer","whole_state_cost_per_answer","sampled_documents","excluded"],"properties":{"recipe":{"type":"object","description":"What the engine sees. A create without it is refused with a suggested\nrecipe, unless `use_context` asks for the suggestion or the whole\n`state`; a version with no recipe sends the whole\n`state`, subject to the engine limit, and no images.\n","additionalProperties":false,"properties":{"fields":{"type":"array","description":"Paths included in order, each verbatim or, as a `ClippedPath`, cut to its first `max_chars` characters. A path is `state.\u003cpath>`, `attributes.\u003cname>`, or an image path, `images.\u003cname>`, which reads that name's image or whole list; an image path takes no `max_chars`. An engine that reads images (its `limits.images` in `GET /engines`) reads each, counted by its tiles; an engine that reads none gets each as an `OmittedImage` with `engine_reads_no_images`, and the create warns. Images are written to documents, never sent with the judgment.\n","items":{"oneOf":[{"type":"string","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","pattern":"^((state|attributes)(\\.[^.]+)+|images\\.[A-Za-z0-9_-]{1,128})$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.fields.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"object","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","required":["path","max_chars"],"properties":{"path":{"type":"string","description":"In a recipe's or `previous`'s `fields`, a `state` or `attributes` path; in a relation's `fields`, any path a `RelationField` names.","pattern":"^((state|attributes)(\\.[^.]+)+|id|created_at|updated_at|answers\\.[A-Za-z0-9_-]+\\.(value|thresholds\\.[A-Za-z0-9_-]+))$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.fields.items.[INDEX].oneOf.1.path","typeLabel":"string"},"max_chars":{"type":"integer","minimum":1,"maximum":4294967295,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.fields.items.[INDEX].oneOf.1.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.fields.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.fields.items.[INDEX]","typeLabel":"string | object"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.fields","typeLabel":"(string | object)[]"},"last_n":{"type":"object","description":"Per array path in `state` or `attributes`, keep the last n elements. Not an image path.","additionalProperties":{"type":"integer","minimum":1,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.last_n.additionalProperties","typeLabel":"integer"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.last_n","typeLabel":"object"},"window":{"type":"object","description":"Per array path whose elements have a timestamp field `at`, keep elements within the window.","additionalProperties":{"type":"string","description":"A whole number and a unit (`s`, `m`, `h` or `d`), such as `7d` or `1h`.","pattern":"^[1-9][0-9]*[smhd]$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.window.additionalProperties","typeLabel":"string"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.window","typeLabel":"object"},"max_tokens":{"type":"integer","minimum":1,"description":"Hard cap, in the judgment's engine's tokens. Over it, whole images are left out first (on an engine that reads them; those of relations, then `previous`, then fields, the last first; every image when the text alone is over), then relation records, then `previous` entries, then the end of the last field is cut.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.max_tokens","typeLabel":"integer"},"related":{"type":"object","description":"Up to 4 relations, by name: documents in the same namespace that point at the judged one, or the one document it points at. Each renders as a `related.\u003cname>`\nentry after `fields`, and a write that changes what it renders\nmakes the judged document's answer `pending` until it is judged\nagain (for a referenced document, only inside the re-judge scope;\noutside it, the answer is `stale` with `stale_reason`\n`referenced_changed`).\n","minProperties":1,"maxProperties":4,"propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"type":"object","description":"Documents that point at the judged document.\nThey are ordered newest `created_at` first unless `order` says\notherwise: `window` keeps those created within the window, the order\nis applied, then `last_n` keeps the first n. At least one of `last_n`\nand `window` is required, and at least one of `fields` and\n`aggregate`. A relation reads at most the newest 1,000 documents,\nand an `order` sorts within them.\n\nWith `join: {theirs: \"id\", mine: \"attributes.\u003cname>\"}`\nthe relation reads the one document the judged document points at,\nits referenced document, and takes no `window`. With `last_n` (up to\n254) it is a named list instead: the attribute holds an array of\nids, and the relation reads the documents it names in list order\nunless `order` says otherwise, each once, at most `last_n` of them. An id that names nothing, or a\ndocument outside `match`, renders nothing and is listed in the\nevaluation's `related_documents` as `unresolved`. An attribute a\nnamed list reads holds at most 254 distinct ids.\n\nWith `join: {theirs: \"attributes.\u003ckey>\", mine:\n\"attributes.\u003ckey>\"}` it is a blocking relation over the documents\nthat share the judged document's key value. It needs `window`\nunless it sets `relative`, takes\n`last_n` up to 254 (up to the `options.from` candidate limit when a\n`choice` chooses among it with\n`options.from`), and a change to its block re-judges the block's\njudged documents. With `relative`, each judged document reads the\n`last_n` documents of its block created just before it (or just\nafter it), in creation order, and a change re-judges only the\njudged documents whose documents it moved. `fields`, `aggregate` and `match` may read other\njudgments' answers (`answers.\u003cj>.\u003cfield>`), banded or cut, and the\nnewest outcome posted for each related document\n(`outcomes.\u003cj>.value`), shown as posted: the one with the latest\n`observed_at`, of two at the same time the one posted last, about\nthe document's current life and of the judgment's current answer\ntype. Posting one re-judges the judgments that read it, within their\n`rolling_limit`. A relation reads at most 4 judgments' answers or\noutcomes.\n","required":["match","join"],"conditionallyRequiredProperties":{"aggregate":[{}],"last_n":[{},{}],"window":[{},{}]},"properties":{"match":{"type":"object","description":"Which documents the relation reads.","minProperties":1,"maxProperties":8,"propertyNames":{"type":"string","pattern":"^(attributes\\.[A-Za-z0-9_-]+|answers\\.[A-Za-z0-9_-]+\\.(value|p|score|thresholds\\.[A-Za-z0-9_-]+)|outcomes\\.[A-Za-z0-9_-]+\\.value)$"},"additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.2","typeLabel":"boolean"},{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.3.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.3.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.3.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.3.items.[INDEX]","typeLabel":"string | number | boolean"},"minItems":1,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.3","typeLabel":"(string | number | boolean)[]"},{"type":"object","description":"An inline cut on an answer's `p` or `score`, exactly as stable as a named threshold. One bound.","maxProperties":1,"minProperties":1,"properties":{"gte":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.4.gte","typeLabel":"number"},"gt":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.4.gt","typeLabel":"number"},"lte":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.4.lte","typeLabel":"number"},"lt":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.4.lt","typeLabel":"number"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.4","typeLabel":"object"},{"type":"object","description":"Selects documents that have an outcome a relation reads, on an `outcomes.\u003cj>.value` key of `match`.","required":["exists"],"properties":{"exists":{"const":true,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.5.exists","typeLabel":"any"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.5","typeLabel":"object"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties","typeLabel":"string · number · boolean · (string | number | boolean)[] · object · object"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match","typeLabel":"object"},"join":{"oneOf":[{"type":"object","description":"How a related document is matched to the judged one: one side is\n`id` and the other an attribute holding an id, or both sides the same attribute, a shared key, or one side\n`id` and the other a matching judgment's pick (a judged link). Two different\nattributes are `invalid_request`.\n","required":["theirs","mine"],"properties":{"theirs":{"type":"string","description":"The related document's attribute that holds the judged document's id, such as `attributes.parent_id`.","pattern":"^attributes\\.[A-Za-z0-9_-]+$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.0.theirs","typeLabel":"string"},"mine":{"const":"id","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.0.mine","typeLabel":"any"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.0","typeLabel":"object"},{"type":"object","description":"How a related document is matched to the judged one: one side is\n`id` and the other an attribute holding an id, or both sides the same attribute, a shared key, or one side\n`id` and the other a matching judgment's pick (a judged link). Two different\nattributes are `invalid_request`.\n","required":["theirs","mine"],"properties":{"theirs":{"const":"id","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.1.theirs","typeLabel":"any"},"mine":{"type":"string","description":"The judged document's attribute that holds the referenced document's id, such as `attributes.group_id`.","pattern":"^attributes\\.[A-Za-z0-9_-]+$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.1.mine","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.1","typeLabel":"object"},{"type":"object","description":"How a related document is matched to the judged one: one side is\n`id` and the other an attribute holding an id, or both sides the same attribute, a shared key, or one side\n`id` and the other a matching judgment's pick (a judged link). Two different\nattributes are `invalid_request`.\n","required":["theirs","mine"],"properties":{"theirs":{"type":"string","description":"The key attribute, such as `attributes.block`.","pattern":"^attributes\\.[A-Za-z0-9_-]+$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.2.theirs","typeLabel":"string"},"mine":{"type":"string","description":"The same attribute as `theirs`.","pattern":"^attributes\\.[A-Za-z0-9_-]+$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.2.mine","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.2","typeLabel":"object"},{"type":"object","description":"How a related document is matched to the judged one: one side is\n`id` and the other an attribute holding an id, or both sides the same attribute, a shared key, or one side\n`id` and the other a matching judgment's pick (a judged link). Two different\nattributes are `invalid_request`.\n","required":["theirs","mine","when"],"properties":{"theirs":{"type":"string","description":"`answers.\u003cj>.value` of the judgment that picks, which must choose among a blocking relation's candidates, or `id`.","pattern":"^(id|answers\\.[A-Za-z0-9_-]+\\.value)$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.3.theirs","typeLabel":"string"},"mine":{"type":"string","description":"`id`, or `answers.\u003cj>.value` of the judgment that picks; the other side of `theirs`.","pattern":"^(id|answers\\.[A-Za-z0-9_-]+\\.value)$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.3.mine","typeLabel":"string"},"when":{"type":"object","description":"When a judged link holds: while the named threshold of the judgment\nthat picks, a threshold on `none_of_the_above` (its unmatched\nqueue), is `false`. At or above it, the pick is not taken and the\ndocument does not link. Required. Removing that threshold while the\nrelation exists is `conflict`; changing its value re-judges each\njudged document whose links it moves, after the `downstream`\nconfirm.\n","additionalProperties":false,"required":["below"],"properties":{"below":{"type":"string","description":"A judgment, attribute or threshold name. Names are path segments in field references, so they never contain `.`.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.3.when.below","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.3.when","typeLabel":"object"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.3","typeLabel":"object"}],"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join","typeLabel":"object"},"last_n":{"type":"integer","minimum":1,"maximum":1000,"description":"Keep the first n in the relation's order, newest first by default. On a relation that reads a referenced document it makes a named list, keeping the first n documents the list names, in list order unless `order` says otherwise, at most 254; at most 254 on a blocking relation, and at most the `options.from` candidate limit (see Limits) when `options.from` chooses among it.","conditionalRequirements":[{},{}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.last_n","typeLabel":"integer"},"window":{"type":"string","description":"Keep documents created within this long before the later of the judged document's newest write and its newest related creation, at the answer's watermark. An edit to an old related document never moves the window. Not on a relation that reads a referenced document.","pattern":"^[1-9][0-9]*[smhd]$","conditionalRequirements":[{},{}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.window","typeLabel":"string"},"fields":{"type":"array","description":"Paths to include from each document, rendered under `records` in the relation's order. An entry may be a `BandedField`, which renders a number as its band, or a `ClippedPath`, which renders the first `max_chars` characters. An entry may also be a judgment's `answers.\u003cj>.value` and `answers.\u003cj>.thresholds.\u003cname>` as they are, and its `.p`, `.score` and `.dist.\u003coption>` only banded.","minItems":1,"items":{"oneOf":[{"type":"string","description":"A path in a related document, an image path `images.\u003cname>` (its image or list, read like the judged document's own), `id`, `created_at` or `updated_at`; a judgment's `answers.\u003cj>.value` or `answers.\u003cj>.thresholds.\u003cname>`, which render as they are; or the document's newest outcome, `outcomes.\u003cj>.value`, rendered as posted. An answer's `p`, `score` or `dist.\u003coption>` must be a `BandedField`.","pattern":"^((state|attributes)(\\.[^.]+)+|images\\.[A-Za-z0-9_-]{1,128}|id|created_at|updated_at|answers\\.[A-Za-z0-9_-]+\\.(value|thresholds\\.[A-Za-z0-9_-]+)|outcomes\\.[A-Za-z0-9_-]+\\.value)$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"object","description":"A number rendered as its band rather than its value, in any relation. In a relation's `fields`, `max_chars` cuts the rendered label as a `ClippedPath` does; it is refused on an aggregate's `min` or `max`. A number renders as the label whose position\nis how many cut points are at or below it: with `bands: [0.3, 0.7]`,\n0.29 is `labels[0]`, 0.3 is `labels[1]` and 0.7 or more `labels[2]`.\nA value that is not a number renders unchanged, and a missing one is\nleft out. Only a move to another band changes the context, so a move\ninside one neither fans out nor costs an evaluation. `bands` must be\nstrictly increasing and `labels` must have exactly one more entry;\nthe server refuses anything else with `invalid_request`.\n","required":["path","bands","labels"],"properties":{"path":{"type":"string","description":"A `state` or `attributes` path, or a judgment's `answers.\u003cj>.p`, `answers.\u003cj>.score` or `answers.\u003cj>.dist.\u003coption>`.","pattern":"^((state|attributes)(\\.[^.]+)+|answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^.]+))$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1.path","typeLabel":"string"},"bands":{"type":"array","description":"Cut points, strictly increasing.","minItems":1,"maxItems":9,"items":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1.bands.items.[INDEX]","typeLabel":"number"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1.bands","typeLabel":"number[]"},"labels":{"type":"array","description":"One label per band, lowest first, so one more than `bands`.","minItems":2,"maxItems":10,"items":{"type":"string","minLength":1,"maxLength":64,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1.labels.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1.labels","typeLabel":"string[]"},"max_chars":{"type":"integer","minimum":1,"maximum":4294967295,"description":"The label cut to this many characters, after the band. Only in a relation's `fields`.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","description":"A path rendered as its first `max_chars` characters (Unicode code\npoints, not bytes or tokens). A string longer than that is cut to\nit; a value that fits renders unchanged and keeps its type; any\nother longer value renders as its JSON text cut to `max_chars`, a\nstring. An edit past the cut changes nothing the engine reads from\nthe field. It bounds one field; it does not make a context fit. An\nimage is never cut, so an image path takes no `max_chars`.\n","required":["path","max_chars"],"properties":{"path":{"type":"string","description":"In a recipe's or `previous`'s `fields`, a `state` or `attributes` path; in a relation's `fields`, any path a `RelationField` names.","pattern":"^((state|attributes)(\\.[^.]+)+|id|created_at|updated_at|answers\\.[A-Za-z0-9_-]+\\.(value|thresholds\\.[A-Za-z0-9_-]+))$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.2.path","typeLabel":"string"},"max_chars":{"type":"integer","minimum":1,"maximum":4294967295,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.2.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.2","typeLabel":"object"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX]","typeLabel":"string · object · object"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields","typeLabel":"string · object · object[]"},"aggregate":{"type":"object","description":"Numbers over the relation's documents, after `match`, `window` and\n`last_n`, rendered as keys of its `related.\u003cname>` entry, such as\n`count` and `sum(state.amount)`. At most 8 paths in total, answer\npaths included. `sum`, `avg`, `min` and `max` skip values that are\nnot numbers; `sum` of nothing is 0, and `avg`, `min` and `max` of\nnothing are null. `latest` is the value in the newest document that\nhas one, of any JSON type.\n\n`latest` reads the most recently created document whatever the\nrelation's `order`.\n\n`count_where` counts documents by judgments'\nanswers; a `min` or `max` entry may be banded, and one over an\nanswer's `p` or `score` must be, rendering the band of the extreme;\n`latest` may read an answer's `value` or `thresholds.\u003cname>`. `sum`\nand `avg` may read an answer's `p`, `score` or `dist.\u003coption>` only\nas a feature the judgment names: never rendered, since it moves on\nevery child evaluation. A child whose newest answer failed adds its\nlast good value; a child with no answer adds nothing and is outside\nthe average. `count_where` and `latest` may read an outcome;\n`labelled` counts the documents that have one.\n\n`render: false` keeps the aggregates, all but `latest`, out of the\ncontext the engine reads, while features still read them: a change\nthat moves only them then re-judges with no engine call and no\ncharge.\n","additionalProperties":false,"minProperties":1,"properties":{"count":{"const":true,"description":"How many documents the relation selected.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count","typeLabel":"any"},"labelled":{"const":true,"description":"How many selected documents have an outcome the relation reads (`outcomes.\u003cj>.value`). Only on a relation that reads one.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.labelled","typeLabel":"any"},"count_where":{"type":"object","description":"How many selected documents match every key: a\njudgment's `answers.\u003cj>.value` or\n`answers.\u003cj>.thresholds.\u003cname>` by equality (a list is `In`) or\nby `{\"not\": \u003cvalue>}`, or its `.p` or `.score` by an inline cut;\nor a document's newest outcome, `outcomes.\u003cj>.value`, by equality.\nA document with no answer matches no key, `not` included. Rendered\nas `count_where`.\n\nA judgment that chooses among candidates (`options.from`) is\ncounted only by whether its value is `none_of_the_above`:\n`{\"answers.settles.value\": {\"not\": \"none_of_the_above\"}}` counts\nthe payments that settled any invoice, and\n`{\"answers.settles.value\": \"none_of_the_above\"}` those that settled\nnone. Any other condition on it is `invalid_request`.\n","minProperties":1,"maxProperties":8,"propertyNames":{"type":"string","pattern":"^(answers\\.[A-Za-z0-9_-]+\\.(value|p|score|thresholds\\.[A-Za-z0-9_-]+)|outcomes\\.[A-Za-z0-9_-]+\\.value)$"},"additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.2","typeLabel":"boolean"},{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.3.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.3.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.3.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.3.items.[INDEX]","typeLabel":"string | number | boolean"},"minItems":1,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.3","typeLabel":"(string | number | boolean)[]"},{"type":"object","description":"An inline cut on an answer's `p` or `score`, exactly as stable as a named threshold. One bound.","maxProperties":1,"minProperties":1,"properties":{"gte":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.4.gte","typeLabel":"number"},"gt":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.4.gt","typeLabel":"number"},"lte":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.4.lte","typeLabel":"number"},"lt":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.4.lt","typeLabel":"number"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.4","typeLabel":"object"},{"type":"object","description":"In a `count_where`, an answer's `value` or `thresholds.\u003cname>` that is not this value. A document with no answer does not match.","required":["not"],"properties":{"not":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.5.not.oneOf.0","typeLabel":"string"},{"type":"number","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.5.not.oneOf.1","typeLabel":"number"},{"type":"boolean","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.5.not.oneOf.2","typeLabel":"boolean"}],"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.5.not","typeLabel":"string | number | boolean"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.5","typeLabel":"object"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties","typeLabel":"string · number · boolean · (string | number | boolean)[] · object · object"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where","typeLabel":"object"},"sum":{"type":"array","description":"Paths for `sum` or `avg`; also a judgment's `answers.\u003cj>.p`, `.score` or `.dist.\u003coption>`, as a feature only.","minItems":1,"maxItems":8,"uniqueItems":true,"items":{"type":"string","description":"A `state` or `attributes` path, without `(` or `)`, or an answer's number.","pattern":"^((state|attributes)(\\.[^.()]+)+|answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^()]+))$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.sum.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.sum","typeLabel":"string[]"},"avg":{"type":"array","description":"Paths to average, the mean of the numbers there.","minItems":1,"maxItems":8,"uniqueItems":true,"items":{"type":"string","description":"A `state` or `attributes` path, without `(` or `)`, or an answer's number.","pattern":"^((state|attributes)(\\.[^.()]+)+|answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^()]+))$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.avg.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.avg","typeLabel":"string[]"},"min":{"type":"array","description":"Paths for `min` or `max`; an entry may be banded, which an answer's `p` or `score` must be. `created_at` and `updated_at` give the oldest or newest time, as RFC 3339, which an `age(...)` feature reads; they are not banded.","minItems":1,"maxItems":8,"items":{"oneOf":[{"type":"string","description":"A `state` or `attributes` path, or `created_at` or `updated_at`. Keys in it cannot contain `(` or `)`.","pattern":"^((state|attributes)(\\.[^.()]+)+|created_at|updated_at)$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"object","description":"A number rendered as its band rather than its value, in any relation. In a relation's `fields`, `max_chars` cuts the rendered label as a `ClippedPath` does; it is refused on an aggregate's `min` or `max`. A number renders as the label whose position\nis how many cut points are at or below it: with `bands: [0.3, 0.7]`,\n0.29 is `labels[0]`, 0.3 is `labels[1]` and 0.7 or more `labels[2]`.\nA value that is not a number renders unchanged, and a missing one is\nleft out. Only a move to another band changes the context, so a move\ninside one neither fans out nor costs an evaluation. `bands` must be\nstrictly increasing and `labels` must have exactly one more entry;\nthe server refuses anything else with `invalid_request`.\n","required":["path","bands","labels"],"properties":{"path":{"type":"string","description":"A `state` or `attributes` path, or a judgment's `answers.\u003cj>.p`, `answers.\u003cj>.score` or `answers.\u003cj>.dist.\u003coption>`.","pattern":"^((state|attributes)(\\.[^.]+)+|answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^.]+))$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1.path","typeLabel":"string"},"bands":{"type":"array","description":"Cut points, strictly increasing.","minItems":1,"maxItems":9,"items":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1.bands.items.[INDEX]","typeLabel":"number"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1.bands","typeLabel":"number[]"},"labels":{"type":"array","description":"One label per band, lowest first, so one more than `bands`.","minItems":2,"maxItems":10,"items":{"type":"string","minLength":1,"maxLength":64,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1.labels.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1.labels","typeLabel":"string[]"},"max_chars":{"type":"integer","minimum":1,"maximum":4294967295,"description":"The label cut to this many characters, after the band. Only in a relation's `fields`.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX]","typeLabel":"string | object"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min","typeLabel":"(string | object)[]"},"max":{"type":"array","description":"Paths for `min` or `max`; an entry may be banded, which an answer's `p` or `score` must be. `created_at` and `updated_at` give the oldest or newest time, as RFC 3339, which an `age(...)` feature reads; they are not banded.","minItems":1,"maxItems":8,"items":{"oneOf":[{"type":"string","description":"A `state` or `attributes` path, or `created_at` or `updated_at`. Keys in it cannot contain `(` or `)`.","pattern":"^((state|attributes)(\\.[^.()]+)+|created_at|updated_at)$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"object","description":"A number rendered as its band rather than its value, in any relation. In a relation's `fields`, `max_chars` cuts the rendered label as a `ClippedPath` does; it is refused on an aggregate's `min` or `max`. A number renders as the label whose position\nis how many cut points are at or below it: with `bands: [0.3, 0.7]`,\n0.29 is `labels[0]`, 0.3 is `labels[1]` and 0.7 or more `labels[2]`.\nA value that is not a number renders unchanged, and a missing one is\nleft out. Only a move to another band changes the context, so a move\ninside one neither fans out nor costs an evaluation. `bands` must be\nstrictly increasing and `labels` must have exactly one more entry;\nthe server refuses anything else with `invalid_request`.\n","required":["path","bands","labels"],"properties":{"path":{"type":"string","description":"A `state` or `attributes` path, or a judgment's `answers.\u003cj>.p`, `answers.\u003cj>.score` or `answers.\u003cj>.dist.\u003coption>`.","pattern":"^((state|attributes)(\\.[^.]+)+|answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^.]+))$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1.path","typeLabel":"string"},"bands":{"type":"array","description":"Cut points, strictly increasing.","minItems":1,"maxItems":9,"items":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1.bands.items.[INDEX]","typeLabel":"number"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1.bands","typeLabel":"number[]"},"labels":{"type":"array","description":"One label per band, lowest first, so one more than `bands`.","minItems":2,"maxItems":10,"items":{"type":"string","minLength":1,"maxLength":64,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1.labels.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1.labels","typeLabel":"string[]"},"max_chars":{"type":"integer","minimum":1,"maximum":4294967295,"description":"The label cut to this many characters, after the band. Only in a relation's `fields`.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX]","typeLabel":"string | object"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max","typeLabel":"(string | object)[]"},"latest":{"type":"array","description":"Paths for `latest`; also `created_at` or `updated_at`, the newest document's time as RFC 3339, an image path `images.\u003cname>`, which renders the newest document's image or list, a judgment's `answers.\u003cj>.value` or `answers.\u003cj>.thresholds.\u003cname>`, or a document's newest outcome, `outcomes.\u003cj>.value`.","minItems":1,"maxItems":8,"uniqueItems":true,"items":{"type":"string","description":"A `state` or `attributes` path, `created_at` or `updated_at`, an image path, an answer's `value` or `thresholds.\u003cname>`, or an outcome's `value`. Keys in it cannot contain `(` or `)`.","pattern":"^((state|attributes)(\\.[^.()]+)+|created_at|updated_at|images\\.[A-Za-z0-9_-]{1,128}|answers\\.[A-Za-z0-9_-]+\\.(value|thresholds\\.[A-Za-z0-9_-]+)|outcomes\\.[A-Za-z0-9_-]+\\.value)$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.latest.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.latest","typeLabel":"string[]"},"render":{"type":"boolean","default":true,"description":"Whether the aggregates, all but `latest`, are in the context the engine reads. Part of the version.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.render","typeLabel":"boolean"}},"conditionalRequirements":[{}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate","typeLabel":"object"},"order":{"type":"object","description":"Which of a relation's documents come first, and so which `last_n`\nkeeps. The newest 1,000 documents in `window` are sorted, never more:\na document outside them is not selected whatever its value, and the\nrelation's entry renders `range_full: true` when more matched.\nValues sort by type first, numbers, then strings, then booleans,\nthen missing values and anything else; `desc` reverses the order\nwithin each type, never the types. Numbers compare by value (whole\nnumbers exactly), strings by Unicode code point, and `false` comes\nbefore `true`. Ties go to the most recently created, then the lower\n`id`. `records` render in this order and, over the token limit, the\nones that sort last are dropped first; `latest` stays the most\nrecently created document's value. Ordered by anything but\n`created_at`, a write to the ordered field can move a document into\nor out of the selection. The relation reads up to 1,000 documents\nper judged document to sort them; the create response's warnings\nname the factor. On a named list it sorts the documents the list\nnames in place of list order, `created_at` included. Refused on a\nblocking relation and on one that reads a single referenced\ndocument.\n","additionalProperties":false,"required":["by"],"properties":{"by":{"type":"string","description":"`created_at`, `updated_at`, a `state.\u003cpath>` or an `attributes.\u003cname>`.","pattern":"^(created_at|updated_at|state(\\.[^.]+)+|attributes\\.[A-Za-z0-9_-]+)$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.order.by","typeLabel":"string"},"desc":{"type":"boolean","default":true,"description":"Largest first within each type.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.order.desc","typeLabel":"boolean"}},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.order","typeLabel":"object"},"relative":{"type":"string","enum":["before","after"],"description":"On a blocking relation, which side of the judged document it\nreads: the `last_n` documents of the block created nearest\nbefore it (`before`) or after it (`after`), never the judged\ndocument itself, in creation order, oldest first. Creation order\nis `created_at`, ties by `id`: the `created_at` a write supplied\nwhen it created the document, or the time of that write. What a\njudged document reads never moves when the block grows at the\nother end, so a document judged again later reads the same\ndocuments unless one of them was created, deleted, re-keyed or\nchanged. Such a change re-judges only the judged documents whose\n`last_n` it is or was in, at most `last_n` of them on the side\nthat reads it; a new document after every other one re-judges\nnothing in a `before` relation. Over the token limit the\nfarthest documents are dropped first (the oldest of a `before`\nrun, the newest of an `after` run); aggregates cover every\ndocument read. Refused with `window` and `order`.\n","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.relative","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties","typeLabel":"object"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related","typeLabel":"object"},"previous":{"type":"object","description":"The judged document as the judgment's last successful evaluation saw it, rendered as `previous.\u003cpath>` entries\nafter `fields`, so a question can ask what changed. When a revision\nrenders the same as the stored current, as a nightly re-upsert of\nthe same record does, the context is the one the last verdict saw\nand costs nothing. A document with no stored rendering in its\nincarnation renders nothing under `previous`, and its evaluation\nsays `first_revision: true`. Truncation cuts `previous` before\n`fields`, after any images, which go first.\n","additionalProperties":false,"required":["fields"],"properties":{"fields":{"type":"array","description":"The document's own paths to render as they were, in order, each verbatim or cut to `max_chars`.","minItems":1,"items":{"oneOf":[{"type":"string","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","pattern":"^((state|attributes)(\\.[^.]+)+|images\\.[A-Za-z0-9_-]{1,128})$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous.fields.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"object","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","required":["path","max_chars"],"properties":{"path":{"type":"string","description":"In a recipe's or `previous`'s `fields`, a `state` or `attributes` path; in a relation's `fields`, any path a `RelationField` names.","pattern":"^((state|attributes)(\\.[^.]+)+|id|created_at|updated_at|answers\\.[A-Za-z0-9_-]+\\.(value|thresholds\\.[A-Za-z0-9_-]+))$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous.fields.items.[INDEX].oneOf.1.path","typeLabel":"string"},"max_chars":{"type":"integer","minimum":1,"maximum":4294967295,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous.fields.items.[INDEX].oneOf.1.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous.fields.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous.fields.items.[INDEX]","typeLabel":"string | object"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous.fields","typeLabel":"(string | object)[]"},"anchor":{"type":"string","description":"An attribute such as `attributes.approved_at`. The stored previous moves on only when this attribute's value changes, so every edit is compared with the revision last approved, however many rejected edits come between.","pattern":"^attributes\\.[A-Za-z0-9_-]+$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous.anchor","typeLabel":"string"}},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe","typeLabel":"object"},"cost_per_answer":{"oneOf":[{"type":"number","minimum":0,"description":"Mean units per answer, in the unit used before rows kept (two rows each), counted by size class at the engine's multiple as the bill counts them, over the sample with this recipe and the definition's question. The suggested `max_tokens` is at most 2,000, the standard ceiling, less the question's tokens, so a context that fills it stays standard with its question.","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.cost_per_answer.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"description":"Mean units per answer, in the unit used before rows kept (two rows each), counted by size class at the engine's multiple as the bill counts them, over the sample with this recipe and the definition's question. The suggested `max_tokens` is at most 2,000, the standard ceiling, less the question's tokens, so a context that fills it stays standard with its question.","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.cost_per_answer.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.cost_per_answer","typeLabel":"number | null"},"whole_state_cost_per_answer":{"oneOf":[{"type":"number","minimum":0,"description":"The same with the whole `state`.","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.whole_state_cost_per_answer.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"description":"The same with the whole `state`.","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.whole_state_cost_per_answer.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.whole_state_cost_per_answer","typeLabel":"number | null"},"sampled_documents":{"type":"integer","minimum":1,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.sampled_documents","typeLabel":"integer"},"excluded":{"type":"array","description":"Each path left out, and why, so you can put back what the question needs.","items":{"type":"object","required":["path","reason"],"properties":{"path":{"type":"string","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.excluded.items.[INDEX].path","typeLabel":"string"},"reason":{"type":"string","enum":["id","timestamp","url","binary","image","long","rare","too_many"],"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.excluded.items.[INDEX].reason","typeLabel":"enum\u003cstring>"}},"uniqueKey":"error.details.suggested_context.oneOf.0.excluded.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.excluded","typeLabel":"object[]"}},"uniqueKey":"error.details.suggested_context.oneOf.0","typeLabel":"object"},{"type":"null","description":"On a create without a context recipe, the recipe suggested from the namespace's documents, or null when there are none.","uniqueKey":"error.details.suggested_context.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.details.suggested_context","typeLabel":"object | null"}},"uniqueKey":"error.details","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"invalid_request","message":"\u003cstring>","details":{"reason":"\u003cstring>","suggested_context":{"recipe":{"fields":["\u003cstring>"],"last_n":{},"window":{},"max_tokens":2,"related":{},"previous":{"fields":["\u003cstring>"],"anchor":"\u003cstring>"}},"cost_per_answer":1,"whole_state_cost_per_answer":1,"sampled_documents":2,"excluded":[{"path":"\u003cstring>","reason":"id"}]}}}}}},"exampleType":"generated"}},"exampleType":"generated"},"7c54a7f3-51fa-4835-9b43-0b52c026b801":{"description":"`not_found`: the namespace, document, judgment or job does not exist.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"HTTP status by code: `invalid_request` 400, `unauthorized` 401,\n`invalid_image` 400, `unknown_image` 400, `image_erased` 410,\n`budget_exceeded` 402, `plan_required` 402, `forbidden` 403,\n`claim_required` 403, `sign_up_closed` 403, `not_found` 404, `conflict` 409,\n`too_large` 413, `engine_version_unavailable` 422,\n`insufficient_labels` 422, `idempotency_key_reused` 422,\n`rate_limited` 429, `internal` 500,\n`engine_unavailable` 503, `unavailable` 503.\n\nAny route can also answer `unavailable`, with `Retry-After`, when it\ndid not finish within 35 s: it was stopped, and a retry runs it\nagain. Creating a judgment version, a judgment's `PATCH` and a\nbackfill's start answer within 20 s, with a job (`202`) when they\nneed longer, and never begin their change after 25 s. So when one of\nthem is answered `unavailable` this way, nothing changed and the\nretry makes the change once.\n","enum":["invalid_request","invalid_image","unknown_image","image_erased","unauthorized","forbidden","claim_required","sign_up_closed","not_found","conflict","too_large","rate_limited","budget_exceeded","plan_required","engine_unavailable","engine_version_unavailable","unavailable","insufficient_labels","idempotency_key_reused","internal"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"object","description":"Code-specific detail, such as the scan estimate on a refused query. Every `internal` error has `request_id`.","properties":{"reason":{"type":"string","description":"Why, where one code has more than one cause. On the events\nfeed's `invalid_request`, `cursor_expired`.\n","uniqueKey":"error.details.reason","typeLabel":"string"},"suggested_context":{"oneOf":[{"type":"object","description":"On a create without a context recipe, the recipe suggested from the namespace's documents, or null when there are none.","required":["recipe","cost_per_answer","whole_state_cost_per_answer","sampled_documents","excluded"],"properties":{"recipe":{"type":"object","description":"What the engine sees. A create without it is refused with a suggested\nrecipe, unless `use_context` asks for the suggestion or the whole\n`state`; a version with no recipe sends the whole\n`state`, subject to the engine limit, and no images.\n","additionalProperties":false,"properties":{"fields":{"type":"array","description":"Paths included in order, each verbatim or, as a `ClippedPath`, cut to its first `max_chars` characters. A path is `state.\u003cpath>`, `attributes.\u003cname>`, or an image path, `images.\u003cname>`, which reads that name's image or whole list; an image path takes no `max_chars`. An engine that reads images (its `limits.images` in `GET /engines`) reads each, counted by its tiles; an engine that reads none gets each as an `OmittedImage` with `engine_reads_no_images`, and the create warns. Images are written to documents, never sent with the judgment.\n","items":{"oneOf":[{"type":"string","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","pattern":"^((state|attributes)(\\.[^.]+)+|images\\.[A-Za-z0-9_-]{1,128})$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.fields.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"object","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","required":["path","max_chars"],"properties":{"path":{"type":"string","description":"In a recipe's or `previous`'s `fields`, a `state` or `attributes` path; in a relation's `fields`, any path a `RelationField` names.","pattern":"^((state|attributes)(\\.[^.]+)+|id|created_at|updated_at|answers\\.[A-Za-z0-9_-]+\\.(value|thresholds\\.[A-Za-z0-9_-]+))$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.fields.items.[INDEX].oneOf.1.path","typeLabel":"string"},"max_chars":{"type":"integer","minimum":1,"maximum":4294967295,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.fields.items.[INDEX].oneOf.1.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.fields.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.fields.items.[INDEX]","typeLabel":"string | object"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.fields","typeLabel":"(string | object)[]"},"last_n":{"type":"object","description":"Per array path in `state` or `attributes`, keep the last n elements. Not an image path.","additionalProperties":{"type":"integer","minimum":1,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.last_n.additionalProperties","typeLabel":"integer"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.last_n","typeLabel":"object"},"window":{"type":"object","description":"Per array path whose elements have a timestamp field `at`, keep elements within the window.","additionalProperties":{"type":"string","description":"A whole number and a unit (`s`, `m`, `h` or `d`), such as `7d` or `1h`.","pattern":"^[1-9][0-9]*[smhd]$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.window.additionalProperties","typeLabel":"string"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.window","typeLabel":"object"},"max_tokens":{"type":"integer","minimum":1,"description":"Hard cap, in the judgment's engine's tokens. Over it, whole images are left out first (on an engine that reads them; those of relations, then `previous`, then fields, the last first; every image when the text alone is over), then relation records, then `previous` entries, then the end of the last field is cut.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.max_tokens","typeLabel":"integer"},"related":{"type":"object","description":"Up to 4 relations, by name: documents in the same namespace that point at the judged one, or the one document it points at. Each renders as a `related.\u003cname>`\nentry after `fields`, and a write that changes what it renders\nmakes the judged document's answer `pending` until it is judged\nagain (for a referenced document, only inside the re-judge scope;\noutside it, the answer is `stale` with `stale_reason`\n`referenced_changed`).\n","minProperties":1,"maxProperties":4,"propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"type":"object","description":"Documents that point at the judged document.\nThey are ordered newest `created_at` first unless `order` says\notherwise: `window` keeps those created within the window, the order\nis applied, then `last_n` keeps the first n. At least one of `last_n`\nand `window` is required, and at least one of `fields` and\n`aggregate`. A relation reads at most the newest 1,000 documents,\nand an `order` sorts within them.\n\nWith `join: {theirs: \"id\", mine: \"attributes.\u003cname>\"}`\nthe relation reads the one document the judged document points at,\nits referenced document, and takes no `window`. With `last_n` (up to\n254) it is a named list instead: the attribute holds an array of\nids, and the relation reads the documents it names in list order\nunless `order` says otherwise, each once, at most `last_n` of them. An id that names nothing, or a\ndocument outside `match`, renders nothing and is listed in the\nevaluation's `related_documents` as `unresolved`. An attribute a\nnamed list reads holds at most 254 distinct ids.\n\nWith `join: {theirs: \"attributes.\u003ckey>\", mine:\n\"attributes.\u003ckey>\"}` it is a blocking relation over the documents\nthat share the judged document's key value. It needs `window`\nunless it sets `relative`, takes\n`last_n` up to 254 (up to the `options.from` candidate limit when a\n`choice` chooses among it with\n`options.from`), and a change to its block re-judges the block's\njudged documents. With `relative`, each judged document reads the\n`last_n` documents of its block created just before it (or just\nafter it), in creation order, and a change re-judges only the\njudged documents whose documents it moved. `fields`, `aggregate` and `match` may read other\njudgments' answers (`answers.\u003cj>.\u003cfield>`), banded or cut, and the\nnewest outcome posted for each related document\n(`outcomes.\u003cj>.value`), shown as posted: the one with the latest\n`observed_at`, of two at the same time the one posted last, about\nthe document's current life and of the judgment's current answer\ntype. Posting one re-judges the judgments that read it, within their\n`rolling_limit`. A relation reads at most 4 judgments' answers or\noutcomes.\n","required":["match","join"],"conditionallyRequiredProperties":{"aggregate":[{}],"last_n":[{},{}],"window":[{},{}]},"properties":{"match":{"type":"object","description":"Which documents the relation reads.","minProperties":1,"maxProperties":8,"propertyNames":{"type":"string","pattern":"^(attributes\\.[A-Za-z0-9_-]+|answers\\.[A-Za-z0-9_-]+\\.(value|p|score|thresholds\\.[A-Za-z0-9_-]+)|outcomes\\.[A-Za-z0-9_-]+\\.value)$"},"additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.2","typeLabel":"boolean"},{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.3.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.3.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.3.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.3.items.[INDEX]","typeLabel":"string | number | boolean"},"minItems":1,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.3","typeLabel":"(string | number | boolean)[]"},{"type":"object","description":"An inline cut on an answer's `p` or `score`, exactly as stable as a named threshold. One bound.","maxProperties":1,"minProperties":1,"properties":{"gte":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.4.gte","typeLabel":"number"},"gt":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.4.gt","typeLabel":"number"},"lte":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.4.lte","typeLabel":"number"},"lt":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.4.lt","typeLabel":"number"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.4","typeLabel":"object"},{"type":"object","description":"Selects documents that have an outcome a relation reads, on an `outcomes.\u003cj>.value` key of `match`.","required":["exists"],"properties":{"exists":{"const":true,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.5.exists","typeLabel":"any"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.5","typeLabel":"object"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties","typeLabel":"string · number · boolean · (string | number | boolean)[] · object · object"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match","typeLabel":"object"},"join":{"oneOf":[{"type":"object","description":"How a related document is matched to the judged one: one side is\n`id` and the other an attribute holding an id, or both sides the same attribute, a shared key, or one side\n`id` and the other a matching judgment's pick (a judged link). Two different\nattributes are `invalid_request`.\n","required":["theirs","mine"],"properties":{"theirs":{"type":"string","description":"The related document's attribute that holds the judged document's id, such as `attributes.parent_id`.","pattern":"^attributes\\.[A-Za-z0-9_-]+$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.0.theirs","typeLabel":"string"},"mine":{"const":"id","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.0.mine","typeLabel":"any"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.0","typeLabel":"object"},{"type":"object","description":"How a related document is matched to the judged one: one side is\n`id` and the other an attribute holding an id, or both sides the same attribute, a shared key, or one side\n`id` and the other a matching judgment's pick (a judged link). Two different\nattributes are `invalid_request`.\n","required":["theirs","mine"],"properties":{"theirs":{"const":"id","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.1.theirs","typeLabel":"any"},"mine":{"type":"string","description":"The judged document's attribute that holds the referenced document's id, such as `attributes.group_id`.","pattern":"^attributes\\.[A-Za-z0-9_-]+$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.1.mine","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.1","typeLabel":"object"},{"type":"object","description":"How a related document is matched to the judged one: one side is\n`id` and the other an attribute holding an id, or both sides the same attribute, a shared key, or one side\n`id` and the other a matching judgment's pick (a judged link). Two different\nattributes are `invalid_request`.\n","required":["theirs","mine"],"properties":{"theirs":{"type":"string","description":"The key attribute, such as `attributes.block`.","pattern":"^attributes\\.[A-Za-z0-9_-]+$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.2.theirs","typeLabel":"string"},"mine":{"type":"string","description":"The same attribute as `theirs`.","pattern":"^attributes\\.[A-Za-z0-9_-]+$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.2.mine","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.2","typeLabel":"object"},{"type":"object","description":"How a related document is matched to the judged one: one side is\n`id` and the other an attribute holding an id, or both sides the same attribute, a shared key, or one side\n`id` and the other a matching judgment's pick (a judged link). Two different\nattributes are `invalid_request`.\n","required":["theirs","mine","when"],"properties":{"theirs":{"type":"string","description":"`answers.\u003cj>.value` of the judgment that picks, which must choose among a blocking relation's candidates, or `id`.","pattern":"^(id|answers\\.[A-Za-z0-9_-]+\\.value)$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.3.theirs","typeLabel":"string"},"mine":{"type":"string","description":"`id`, or `answers.\u003cj>.value` of the judgment that picks; the other side of `theirs`.","pattern":"^(id|answers\\.[A-Za-z0-9_-]+\\.value)$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.3.mine","typeLabel":"string"},"when":{"type":"object","description":"When a judged link holds: while the named threshold of the judgment\nthat picks, a threshold on `none_of_the_above` (its unmatched\nqueue), is `false`. At or above it, the pick is not taken and the\ndocument does not link. Required. Removing that threshold while the\nrelation exists is `conflict`; changing its value re-judges each\njudged document whose links it moves, after the `downstream`\nconfirm.\n","additionalProperties":false,"required":["below"],"properties":{"below":{"type":"string","description":"A judgment, attribute or threshold name. Names are path segments in field references, so they never contain `.`.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.3.when.below","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.3.when","typeLabel":"object"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.3","typeLabel":"object"}],"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join","typeLabel":"object"},"last_n":{"type":"integer","minimum":1,"maximum":1000,"description":"Keep the first n in the relation's order, newest first by default. On a relation that reads a referenced document it makes a named list, keeping the first n documents the list names, in list order unless `order` says otherwise, at most 254; at most 254 on a blocking relation, and at most the `options.from` candidate limit (see Limits) when `options.from` chooses among it.","conditionalRequirements":[{},{}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.last_n","typeLabel":"integer"},"window":{"type":"string","description":"Keep documents created within this long before the later of the judged document's newest write and its newest related creation, at the answer's watermark. An edit to an old related document never moves the window. Not on a relation that reads a referenced document.","pattern":"^[1-9][0-9]*[smhd]$","conditionalRequirements":[{},{}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.window","typeLabel":"string"},"fields":{"type":"array","description":"Paths to include from each document, rendered under `records` in the relation's order. An entry may be a `BandedField`, which renders a number as its band, or a `ClippedPath`, which renders the first `max_chars` characters. An entry may also be a judgment's `answers.\u003cj>.value` and `answers.\u003cj>.thresholds.\u003cname>` as they are, and its `.p`, `.score` and `.dist.\u003coption>` only banded.","minItems":1,"items":{"oneOf":[{"type":"string","description":"A path in a related document, an image path `images.\u003cname>` (its image or list, read like the judged document's own), `id`, `created_at` or `updated_at`; a judgment's `answers.\u003cj>.value` or `answers.\u003cj>.thresholds.\u003cname>`, which render as they are; or the document's newest outcome, `outcomes.\u003cj>.value`, rendered as posted. An answer's `p`, `score` or `dist.\u003coption>` must be a `BandedField`.","pattern":"^((state|attributes)(\\.[^.]+)+|images\\.[A-Za-z0-9_-]{1,128}|id|created_at|updated_at|answers\\.[A-Za-z0-9_-]+\\.(value|thresholds\\.[A-Za-z0-9_-]+)|outcomes\\.[A-Za-z0-9_-]+\\.value)$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"object","description":"A number rendered as its band rather than its value, in any relation. In a relation's `fields`, `max_chars` cuts the rendered label as a `ClippedPath` does; it is refused on an aggregate's `min` or `max`. A number renders as the label whose position\nis how many cut points are at or below it: with `bands: [0.3, 0.7]`,\n0.29 is `labels[0]`, 0.3 is `labels[1]` and 0.7 or more `labels[2]`.\nA value that is not a number renders unchanged, and a missing one is\nleft out. Only a move to another band changes the context, so a move\ninside one neither fans out nor costs an evaluation. `bands` must be\nstrictly increasing and `labels` must have exactly one more entry;\nthe server refuses anything else with `invalid_request`.\n","required":["path","bands","labels"],"properties":{"path":{"type":"string","description":"A `state` or `attributes` path, or a judgment's `answers.\u003cj>.p`, `answers.\u003cj>.score` or `answers.\u003cj>.dist.\u003coption>`.","pattern":"^((state|attributes)(\\.[^.]+)+|answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^.]+))$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1.path","typeLabel":"string"},"bands":{"type":"array","description":"Cut points, strictly increasing.","minItems":1,"maxItems":9,"items":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1.bands.items.[INDEX]","typeLabel":"number"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1.bands","typeLabel":"number[]"},"labels":{"type":"array","description":"One label per band, lowest first, so one more than `bands`.","minItems":2,"maxItems":10,"items":{"type":"string","minLength":1,"maxLength":64,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1.labels.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1.labels","typeLabel":"string[]"},"max_chars":{"type":"integer","minimum":1,"maximum":4294967295,"description":"The label cut to this many characters, after the band. Only in a relation's `fields`.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","description":"A path rendered as its first `max_chars` characters (Unicode code\npoints, not bytes or tokens). A string longer than that is cut to\nit; a value that fits renders unchanged and keeps its type; any\nother longer value renders as its JSON text cut to `max_chars`, a\nstring. An edit past the cut changes nothing the engine reads from\nthe field. It bounds one field; it does not make a context fit. An\nimage is never cut, so an image path takes no `max_chars`.\n","required":["path","max_chars"],"properties":{"path":{"type":"string","description":"In a recipe's or `previous`'s `fields`, a `state` or `attributes` path; in a relation's `fields`, any path a `RelationField` names.","pattern":"^((state|attributes)(\\.[^.]+)+|id|created_at|updated_at|answers\\.[A-Za-z0-9_-]+\\.(value|thresholds\\.[A-Za-z0-9_-]+))$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.2.path","typeLabel":"string"},"max_chars":{"type":"integer","minimum":1,"maximum":4294967295,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.2.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.2","typeLabel":"object"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX]","typeLabel":"string · object · object"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields","typeLabel":"string · object · object[]"},"aggregate":{"type":"object","description":"Numbers over the relation's documents, after `match`, `window` and\n`last_n`, rendered as keys of its `related.\u003cname>` entry, such as\n`count` and `sum(state.amount)`. At most 8 paths in total, answer\npaths included. `sum`, `avg`, `min` and `max` skip values that are\nnot numbers; `sum` of nothing is 0, and `avg`, `min` and `max` of\nnothing are null. `latest` is the value in the newest document that\nhas one, of any JSON type.\n\n`latest` reads the most recently created document whatever the\nrelation's `order`.\n\n`count_where` counts documents by judgments'\nanswers; a `min` or `max` entry may be banded, and one over an\nanswer's `p` or `score` must be, rendering the band of the extreme;\n`latest` may read an answer's `value` or `thresholds.\u003cname>`. `sum`\nand `avg` may read an answer's `p`, `score` or `dist.\u003coption>` only\nas a feature the judgment names: never rendered, since it moves on\nevery child evaluation. A child whose newest answer failed adds its\nlast good value; a child with no answer adds nothing and is outside\nthe average. `count_where` and `latest` may read an outcome;\n`labelled` counts the documents that have one.\n\n`render: false` keeps the aggregates, all but `latest`, out of the\ncontext the engine reads, while features still read them: a change\nthat moves only them then re-judges with no engine call and no\ncharge.\n","additionalProperties":false,"minProperties":1,"properties":{"count":{"const":true,"description":"How many documents the relation selected.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count","typeLabel":"any"},"labelled":{"const":true,"description":"How many selected documents have an outcome the relation reads (`outcomes.\u003cj>.value`). Only on a relation that reads one.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.labelled","typeLabel":"any"},"count_where":{"type":"object","description":"How many selected documents match every key: a\njudgment's `answers.\u003cj>.value` or\n`answers.\u003cj>.thresholds.\u003cname>` by equality (a list is `In`) or\nby `{\"not\": \u003cvalue>}`, or its `.p` or `.score` by an inline cut;\nor a document's newest outcome, `outcomes.\u003cj>.value`, by equality.\nA document with no answer matches no key, `not` included. Rendered\nas `count_where`.\n\nA judgment that chooses among candidates (`options.from`) is\ncounted only by whether its value is `none_of_the_above`:\n`{\"answers.settles.value\": {\"not\": \"none_of_the_above\"}}` counts\nthe payments that settled any invoice, and\n`{\"answers.settles.value\": \"none_of_the_above\"}` those that settled\nnone. Any other condition on it is `invalid_request`.\n","minProperties":1,"maxProperties":8,"propertyNames":{"type":"string","pattern":"^(answers\\.[A-Za-z0-9_-]+\\.(value|p|score|thresholds\\.[A-Za-z0-9_-]+)|outcomes\\.[A-Za-z0-9_-]+\\.value)$"},"additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.2","typeLabel":"boolean"},{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.3.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.3.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.3.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.3.items.[INDEX]","typeLabel":"string | number | boolean"},"minItems":1,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.3","typeLabel":"(string | number | boolean)[]"},{"type":"object","description":"An inline cut on an answer's `p` or `score`, exactly as stable as a named threshold. One bound.","maxProperties":1,"minProperties":1,"properties":{"gte":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.4.gte","typeLabel":"number"},"gt":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.4.gt","typeLabel":"number"},"lte":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.4.lte","typeLabel":"number"},"lt":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.4.lt","typeLabel":"number"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.4","typeLabel":"object"},{"type":"object","description":"In a `count_where`, an answer's `value` or `thresholds.\u003cname>` that is not this value. A document with no answer does not match.","required":["not"],"properties":{"not":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.5.not.oneOf.0","typeLabel":"string"},{"type":"number","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.5.not.oneOf.1","typeLabel":"number"},{"type":"boolean","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.5.not.oneOf.2","typeLabel":"boolean"}],"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.5.not","typeLabel":"string | number | boolean"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.5","typeLabel":"object"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties","typeLabel":"string · number · boolean · (string | number | boolean)[] · object · object"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where","typeLabel":"object"},"sum":{"type":"array","description":"Paths for `sum` or `avg`; also a judgment's `answers.\u003cj>.p`, `.score` or `.dist.\u003coption>`, as a feature only.","minItems":1,"maxItems":8,"uniqueItems":true,"items":{"type":"string","description":"A `state` or `attributes` path, without `(` or `)`, or an answer's number.","pattern":"^((state|attributes)(\\.[^.()]+)+|answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^()]+))$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.sum.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.sum","typeLabel":"string[]"},"avg":{"type":"array","description":"Paths to average, the mean of the numbers there.","minItems":1,"maxItems":8,"uniqueItems":true,"items":{"type":"string","description":"A `state` or `attributes` path, without `(` or `)`, or an answer's number.","pattern":"^((state|attributes)(\\.[^.()]+)+|answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^()]+))$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.avg.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.avg","typeLabel":"string[]"},"min":{"type":"array","description":"Paths for `min` or `max`; an entry may be banded, which an answer's `p` or `score` must be. `created_at` and `updated_at` give the oldest or newest time, as RFC 3339, which an `age(...)` feature reads; they are not banded.","minItems":1,"maxItems":8,"items":{"oneOf":[{"type":"string","description":"A `state` or `attributes` path, or `created_at` or `updated_at`. Keys in it cannot contain `(` or `)`.","pattern":"^((state|attributes)(\\.[^.()]+)+|created_at|updated_at)$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"object","description":"A number rendered as its band rather than its value, in any relation. In a relation's `fields`, `max_chars` cuts the rendered label as a `ClippedPath` does; it is refused on an aggregate's `min` or `max`. A number renders as the label whose position\nis how many cut points are at or below it: with `bands: [0.3, 0.7]`,\n0.29 is `labels[0]`, 0.3 is `labels[1]` and 0.7 or more `labels[2]`.\nA value that is not a number renders unchanged, and a missing one is\nleft out. Only a move to another band changes the context, so a move\ninside one neither fans out nor costs an evaluation. `bands` must be\nstrictly increasing and `labels` must have exactly one more entry;\nthe server refuses anything else with `invalid_request`.\n","required":["path","bands","labels"],"properties":{"path":{"type":"string","description":"A `state` or `attributes` path, or a judgment's `answers.\u003cj>.p`, `answers.\u003cj>.score` or `answers.\u003cj>.dist.\u003coption>`.","pattern":"^((state|attributes)(\\.[^.]+)+|answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^.]+))$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1.path","typeLabel":"string"},"bands":{"type":"array","description":"Cut points, strictly increasing.","minItems":1,"maxItems":9,"items":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1.bands.items.[INDEX]","typeLabel":"number"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1.bands","typeLabel":"number[]"},"labels":{"type":"array","description":"One label per band, lowest first, so one more than `bands`.","minItems":2,"maxItems":10,"items":{"type":"string","minLength":1,"maxLength":64,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1.labels.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1.labels","typeLabel":"string[]"},"max_chars":{"type":"integer","minimum":1,"maximum":4294967295,"description":"The label cut to this many characters, after the band. Only in a relation's `fields`.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX]","typeLabel":"string | object"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min","typeLabel":"(string | object)[]"},"max":{"type":"array","description":"Paths for `min` or `max`; an entry may be banded, which an answer's `p` or `score` must be. `created_at` and `updated_at` give the oldest or newest time, as RFC 3339, which an `age(...)` feature reads; they are not banded.","minItems":1,"maxItems":8,"items":{"oneOf":[{"type":"string","description":"A `state` or `attributes` path, or `created_at` or `updated_at`. Keys in it cannot contain `(` or `)`.","pattern":"^((state|attributes)(\\.[^.()]+)+|created_at|updated_at)$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"object","description":"A number rendered as its band rather than its value, in any relation. In a relation's `fields`, `max_chars` cuts the rendered label as a `ClippedPath` does; it is refused on an aggregate's `min` or `max`. A number renders as the label whose position\nis how many cut points are at or below it: with `bands: [0.3, 0.7]`,\n0.29 is `labels[0]`, 0.3 is `labels[1]` and 0.7 or more `labels[2]`.\nA value that is not a number renders unchanged, and a missing one is\nleft out. Only a move to another band changes the context, so a move\ninside one neither fans out nor costs an evaluation. `bands` must be\nstrictly increasing and `labels` must have exactly one more entry;\nthe server refuses anything else with `invalid_request`.\n","required":["path","bands","labels"],"properties":{"path":{"type":"string","description":"A `state` or `attributes` path, or a judgment's `answers.\u003cj>.p`, `answers.\u003cj>.score` or `answers.\u003cj>.dist.\u003coption>`.","pattern":"^((state|attributes)(\\.[^.]+)+|answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^.]+))$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1.path","typeLabel":"string"},"bands":{"type":"array","description":"Cut points, strictly increasing.","minItems":1,"maxItems":9,"items":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1.bands.items.[INDEX]","typeLabel":"number"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1.bands","typeLabel":"number[]"},"labels":{"type":"array","description":"One label per band, lowest first, so one more than `bands`.","minItems":2,"maxItems":10,"items":{"type":"string","minLength":1,"maxLength":64,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1.labels.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1.labels","typeLabel":"string[]"},"max_chars":{"type":"integer","minimum":1,"maximum":4294967295,"description":"The label cut to this many characters, after the band. Only in a relation's `fields`.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX]","typeLabel":"string | object"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max","typeLabel":"(string | object)[]"},"latest":{"type":"array","description":"Paths for `latest`; also `created_at` or `updated_at`, the newest document's time as RFC 3339, an image path `images.\u003cname>`, which renders the newest document's image or list, a judgment's `answers.\u003cj>.value` or `answers.\u003cj>.thresholds.\u003cname>`, or a document's newest outcome, `outcomes.\u003cj>.value`.","minItems":1,"maxItems":8,"uniqueItems":true,"items":{"type":"string","description":"A `state` or `attributes` path, `created_at` or `updated_at`, an image path, an answer's `value` or `thresholds.\u003cname>`, or an outcome's `value`. Keys in it cannot contain `(` or `)`.","pattern":"^((state|attributes)(\\.[^.()]+)+|created_at|updated_at|images\\.[A-Za-z0-9_-]{1,128}|answers\\.[A-Za-z0-9_-]+\\.(value|thresholds\\.[A-Za-z0-9_-]+)|outcomes\\.[A-Za-z0-9_-]+\\.value)$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.latest.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.latest","typeLabel":"string[]"},"render":{"type":"boolean","default":true,"description":"Whether the aggregates, all but `latest`, are in the context the engine reads. Part of the version.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.render","typeLabel":"boolean"}},"conditionalRequirements":[{}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate","typeLabel":"object"},"order":{"type":"object","description":"Which of a relation's documents come first, and so which `last_n`\nkeeps. The newest 1,000 documents in `window` are sorted, never more:\na document outside them is not selected whatever its value, and the\nrelation's entry renders `range_full: true` when more matched.\nValues sort by type first, numbers, then strings, then booleans,\nthen missing values and anything else; `desc` reverses the order\nwithin each type, never the types. Numbers compare by value (whole\nnumbers exactly), strings by Unicode code point, and `false` comes\nbefore `true`. Ties go to the most recently created, then the lower\n`id`. `records` render in this order and, over the token limit, the\nones that sort last are dropped first; `latest` stays the most\nrecently created document's value. Ordered by anything but\n`created_at`, a write to the ordered field can move a document into\nor out of the selection. The relation reads up to 1,000 documents\nper judged document to sort them; the create response's warnings\nname the factor. On a named list it sorts the documents the list\nnames in place of list order, `created_at` included. Refused on a\nblocking relation and on one that reads a single referenced\ndocument.\n","additionalProperties":false,"required":["by"],"properties":{"by":{"type":"string","description":"`created_at`, `updated_at`, a `state.\u003cpath>` or an `attributes.\u003cname>`.","pattern":"^(created_at|updated_at|state(\\.[^.]+)+|attributes\\.[A-Za-z0-9_-]+)$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.order.by","typeLabel":"string"},"desc":{"type":"boolean","default":true,"description":"Largest first within each type.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.order.desc","typeLabel":"boolean"}},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.order","typeLabel":"object"},"relative":{"type":"string","enum":["before","after"],"description":"On a blocking relation, which side of the judged document it\nreads: the `last_n` documents of the block created nearest\nbefore it (`before`) or after it (`after`), never the judged\ndocument itself, in creation order, oldest first. Creation order\nis `created_at`, ties by `id`: the `created_at` a write supplied\nwhen it created the document, or the time of that write. What a\njudged document reads never moves when the block grows at the\nother end, so a document judged again later reads the same\ndocuments unless one of them was created, deleted, re-keyed or\nchanged. Such a change re-judges only the judged documents whose\n`last_n` it is or was in, at most `last_n` of them on the side\nthat reads it; a new document after every other one re-judges\nnothing in a `before` relation. Over the token limit the\nfarthest documents are dropped first (the oldest of a `before`\nrun, the newest of an `after` run); aggregates cover every\ndocument read. Refused with `window` and `order`.\n","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.relative","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties","typeLabel":"object"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related","typeLabel":"object"},"previous":{"type":"object","description":"The judged document as the judgment's last successful evaluation saw it, rendered as `previous.\u003cpath>` entries\nafter `fields`, so a question can ask what changed. When a revision\nrenders the same as the stored current, as a nightly re-upsert of\nthe same record does, the context is the one the last verdict saw\nand costs nothing. A document with no stored rendering in its\nincarnation renders nothing under `previous`, and its evaluation\nsays `first_revision: true`. Truncation cuts `previous` before\n`fields`, after any images, which go first.\n","additionalProperties":false,"required":["fields"],"properties":{"fields":{"type":"array","description":"The document's own paths to render as they were, in order, each verbatim or cut to `max_chars`.","minItems":1,"items":{"oneOf":[{"type":"string","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","pattern":"^((state|attributes)(\\.[^.]+)+|images\\.[A-Za-z0-9_-]{1,128})$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous.fields.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"object","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","required":["path","max_chars"],"properties":{"path":{"type":"string","description":"In a recipe's or `previous`'s `fields`, a `state` or `attributes` path; in a relation's `fields`, any path a `RelationField` names.","pattern":"^((state|attributes)(\\.[^.]+)+|id|created_at|updated_at|answers\\.[A-Za-z0-9_-]+\\.(value|thresholds\\.[A-Za-z0-9_-]+))$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous.fields.items.[INDEX].oneOf.1.path","typeLabel":"string"},"max_chars":{"type":"integer","minimum":1,"maximum":4294967295,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous.fields.items.[INDEX].oneOf.1.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous.fields.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous.fields.items.[INDEX]","typeLabel":"string | object"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous.fields","typeLabel":"(string | object)[]"},"anchor":{"type":"string","description":"An attribute such as `attributes.approved_at`. The stored previous moves on only when this attribute's value changes, so every edit is compared with the revision last approved, however many rejected edits come between.","pattern":"^attributes\\.[A-Za-z0-9_-]+$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous.anchor","typeLabel":"string"}},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe","typeLabel":"object"},"cost_per_answer":{"oneOf":[{"type":"number","minimum":0,"description":"Mean units per answer, in the unit used before rows kept (two rows each), counted by size class at the engine's multiple as the bill counts them, over the sample with this recipe and the definition's question. The suggested `max_tokens` is at most 2,000, the standard ceiling, less the question's tokens, so a context that fills it stays standard with its question.","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.cost_per_answer.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"description":"Mean units per answer, in the unit used before rows kept (two rows each), counted by size class at the engine's multiple as the bill counts them, over the sample with this recipe and the definition's question. The suggested `max_tokens` is at most 2,000, the standard ceiling, less the question's tokens, so a context that fills it stays standard with its question.","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.cost_per_answer.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.cost_per_answer","typeLabel":"number | null"},"whole_state_cost_per_answer":{"oneOf":[{"type":"number","minimum":0,"description":"The same with the whole `state`.","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.whole_state_cost_per_answer.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"description":"The same with the whole `state`.","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.whole_state_cost_per_answer.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.whole_state_cost_per_answer","typeLabel":"number | null"},"sampled_documents":{"type":"integer","minimum":1,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.sampled_documents","typeLabel":"integer"},"excluded":{"type":"array","description":"Each path left out, and why, so you can put back what the question needs.","items":{"type":"object","required":["path","reason"],"properties":{"path":{"type":"string","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.excluded.items.[INDEX].path","typeLabel":"string"},"reason":{"type":"string","enum":["id","timestamp","url","binary","image","long","rare","too_many"],"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.excluded.items.[INDEX].reason","typeLabel":"enum\u003cstring>"}},"uniqueKey":"error.details.suggested_context.oneOf.0.excluded.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.excluded","typeLabel":"object[]"}},"uniqueKey":"error.details.suggested_context.oneOf.0","typeLabel":"object"},{"type":"null","description":"On a create without a context recipe, the recipe suggested from the namespace's documents, or null when there are none.","uniqueKey":"error.details.suggested_context.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.details.suggested_context","typeLabel":"object | null"}},"uniqueKey":"error.details","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"invalid_request","message":"\u003cstring>","details":{"reason":"\u003cstring>","suggested_context":{"recipe":{"fields":["\u003cstring>"],"last_n":{},"window":{},"max_tokens":2,"related":{},"previous":{"fields":["\u003cstring>"],"anchor":"\u003cstring>"}},"cost_per_answer":1,"whole_state_cost_per_answer":1,"sampled_documents":2,"excluded":[{"path":"\u003cstring>","reason":"id"}]}}}}}},"exampleType":"generated"}},"exampleType":"generated"},"011b02ea-54b3-4b68-a662-0f7eb389859d":{"description":"`too_large`: the request body (on any route), a document, or the estimated query scan is over its limit. On a write, an image over 20 MB decoded or 64 megapixels, or a document with more than 16 images (each image of a list counted, after a patch merges), is `too_large` too, with `details.id` and `details.path`, the 17th image in name order. `details` carries the estimate for queries. It also answers a write that would grow a namespace past its size limit (100,000,000 documents or 256 GB; `default/quickstart`: 10,000 documents or 100 MB), with `details.limit` (`documents` or `bytes`, which limit), `details.documents`, `details.bytes`, `details.max_documents` and `details.max_bytes`; and a write that adds an attribute name past the namespace's 1,024, with `details.id`, `details.path`, `details.limit` (`attribute_names`), `details.max_attribute_names` and `details.attribute_names`. Retrying does not help: change the request, or delete documents.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"HTTP status by code: `invalid_request` 400, `unauthorized` 401,\n`invalid_image` 400, `unknown_image` 400, `image_erased` 410,\n`budget_exceeded` 402, `plan_required` 402, `forbidden` 403,\n`claim_required` 403, `sign_up_closed` 403, `not_found` 404, `conflict` 409,\n`too_large` 413, `engine_version_unavailable` 422,\n`insufficient_labels` 422, `idempotency_key_reused` 422,\n`rate_limited` 429, `internal` 500,\n`engine_unavailable` 503, `unavailable` 503.\n\nAny route can also answer `unavailable`, with `Retry-After`, when it\ndid not finish within 35 s: it was stopped, and a retry runs it\nagain. Creating a judgment version, a judgment's `PATCH` and a\nbackfill's start answer within 20 s, with a job (`202`) when they\nneed longer, and never begin their change after 25 s. So when one of\nthem is answered `unavailable` this way, nothing changed and the\nretry makes the change once.\n","enum":["invalid_request","invalid_image","unknown_image","image_erased","unauthorized","forbidden","claim_required","sign_up_closed","not_found","conflict","too_large","rate_limited","budget_exceeded","plan_required","engine_unavailable","engine_version_unavailable","unavailable","insufficient_labels","idempotency_key_reused","internal"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"object","description":"Code-specific detail, such as the scan estimate on a refused query. Every `internal` error has `request_id`.","properties":{"reason":{"type":"string","description":"Why, where one code has more than one cause. On the events\nfeed's `invalid_request`, `cursor_expired`.\n","uniqueKey":"error.details.reason","typeLabel":"string"},"suggested_context":{"oneOf":[{"type":"object","description":"On a create without a context recipe, the recipe suggested from the namespace's documents, or null when there are none.","required":["recipe","cost_per_answer","whole_state_cost_per_answer","sampled_documents","excluded"],"properties":{"recipe":{"type":"object","description":"What the engine sees. A create without it is refused with a suggested\nrecipe, unless `use_context` asks for the suggestion or the whole\n`state`; a version with no recipe sends the whole\n`state`, subject to the engine limit, and no images.\n","additionalProperties":false,"properties":{"fields":{"type":"array","description":"Paths included in order, each verbatim or, as a `ClippedPath`, cut to its first `max_chars` characters. A path is `state.\u003cpath>`, `attributes.\u003cname>`, or an image path, `images.\u003cname>`, which reads that name's image or whole list; an image path takes no `max_chars`. An engine that reads images (its `limits.images` in `GET /engines`) reads each, counted by its tiles; an engine that reads none gets each as an `OmittedImage` with `engine_reads_no_images`, and the create warns. Images are written to documents, never sent with the judgment.\n","items":{"oneOf":[{"type":"string","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","pattern":"^((state|attributes)(\\.[^.]+)+|images\\.[A-Za-z0-9_-]{1,128})$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.fields.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"object","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","required":["path","max_chars"],"properties":{"path":{"type":"string","description":"In a recipe's or `previous`'s `fields`, a `state` or `attributes` path; in a relation's `fields`, any path a `RelationField` names.","pattern":"^((state|attributes)(\\.[^.]+)+|id|created_at|updated_at|answers\\.[A-Za-z0-9_-]+\\.(value|thresholds\\.[A-Za-z0-9_-]+))$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.fields.items.[INDEX].oneOf.1.path","typeLabel":"string"},"max_chars":{"type":"integer","minimum":1,"maximum":4294967295,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.fields.items.[INDEX].oneOf.1.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.fields.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.fields.items.[INDEX]","typeLabel":"string | object"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.fields","typeLabel":"(string | object)[]"},"last_n":{"type":"object","description":"Per array path in `state` or `attributes`, keep the last n elements. Not an image path.","additionalProperties":{"type":"integer","minimum":1,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.last_n.additionalProperties","typeLabel":"integer"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.last_n","typeLabel":"object"},"window":{"type":"object","description":"Per array path whose elements have a timestamp field `at`, keep elements within the window.","additionalProperties":{"type":"string","description":"A whole number and a unit (`s`, `m`, `h` or `d`), such as `7d` or `1h`.","pattern":"^[1-9][0-9]*[smhd]$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.window.additionalProperties","typeLabel":"string"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.window","typeLabel":"object"},"max_tokens":{"type":"integer","minimum":1,"description":"Hard cap, in the judgment's engine's tokens. Over it, whole images are left out first (on an engine that reads them; those of relations, then `previous`, then fields, the last first; every image when the text alone is over), then relation records, then `previous` entries, then the end of the last field is cut.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.max_tokens","typeLabel":"integer"},"related":{"type":"object","description":"Up to 4 relations, by name: documents in the same namespace that point at the judged one, or the one document it points at. Each renders as a `related.\u003cname>`\nentry after `fields`, and a write that changes what it renders\nmakes the judged document's answer `pending` until it is judged\nagain (for a referenced document, only inside the re-judge scope;\noutside it, the answer is `stale` with `stale_reason`\n`referenced_changed`).\n","minProperties":1,"maxProperties":4,"propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"type":"object","description":"Documents that point at the judged document.\nThey are ordered newest `created_at` first unless `order` says\notherwise: `window` keeps those created within the window, the order\nis applied, then `last_n` keeps the first n. At least one of `last_n`\nand `window` is required, and at least one of `fields` and\n`aggregate`. A relation reads at most the newest 1,000 documents,\nand an `order` sorts within them.\n\nWith `join: {theirs: \"id\", mine: \"attributes.\u003cname>\"}`\nthe relation reads the one document the judged document points at,\nits referenced document, and takes no `window`. With `last_n` (up to\n254) it is a named list instead: the attribute holds an array of\nids, and the relation reads the documents it names in list order\nunless `order` says otherwise, each once, at most `last_n` of them. An id that names nothing, or a\ndocument outside `match`, renders nothing and is listed in the\nevaluation's `related_documents` as `unresolved`. An attribute a\nnamed list reads holds at most 254 distinct ids.\n\nWith `join: {theirs: \"attributes.\u003ckey>\", mine:\n\"attributes.\u003ckey>\"}` it is a blocking relation over the documents\nthat share the judged document's key value. It needs `window`\nunless it sets `relative`, takes\n`last_n` up to 254 (up to the `options.from` candidate limit when a\n`choice` chooses among it with\n`options.from`), and a change to its block re-judges the block's\njudged documents. With `relative`, each judged document reads the\n`last_n` documents of its block created just before it (or just\nafter it), in creation order, and a change re-judges only the\njudged documents whose documents it moved. `fields`, `aggregate` and `match` may read other\njudgments' answers (`answers.\u003cj>.\u003cfield>`), banded or cut, and the\nnewest outcome posted for each related document\n(`outcomes.\u003cj>.value`), shown as posted: the one with the latest\n`observed_at`, of two at the same time the one posted last, about\nthe document's current life and of the judgment's current answer\ntype. Posting one re-judges the judgments that read it, within their\n`rolling_limit`. A relation reads at most 4 judgments' answers or\noutcomes.\n","required":["match","join"],"conditionallyRequiredProperties":{"aggregate":[{}],"last_n":[{},{}],"window":[{},{}]},"properties":{"match":{"type":"object","description":"Which documents the relation reads.","minProperties":1,"maxProperties":8,"propertyNames":{"type":"string","pattern":"^(attributes\\.[A-Za-z0-9_-]+|answers\\.[A-Za-z0-9_-]+\\.(value|p|score|thresholds\\.[A-Za-z0-9_-]+)|outcomes\\.[A-Za-z0-9_-]+\\.value)$"},"additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.2","typeLabel":"boolean"},{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.3.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.3.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.3.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.3.items.[INDEX]","typeLabel":"string | number | boolean"},"minItems":1,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.3","typeLabel":"(string | number | boolean)[]"},{"type":"object","description":"An inline cut on an answer's `p` or `score`, exactly as stable as a named threshold. One bound.","maxProperties":1,"minProperties":1,"properties":{"gte":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.4.gte","typeLabel":"number"},"gt":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.4.gt","typeLabel":"number"},"lte":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.4.lte","typeLabel":"number"},"lt":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.4.lt","typeLabel":"number"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.4","typeLabel":"object"},{"type":"object","description":"Selects documents that have an outcome a relation reads, on an `outcomes.\u003cj>.value` key of `match`.","required":["exists"],"properties":{"exists":{"const":true,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.5.exists","typeLabel":"any"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.5","typeLabel":"object"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties","typeLabel":"string · number · boolean · (string | number | boolean)[] · object · object"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match","typeLabel":"object"},"join":{"oneOf":[{"type":"object","description":"How a related document is matched to the judged one: one side is\n`id` and the other an attribute holding an id, or both sides the same attribute, a shared key, or one side\n`id` and the other a matching judgment's pick (a judged link). Two different\nattributes are `invalid_request`.\n","required":["theirs","mine"],"properties":{"theirs":{"type":"string","description":"The related document's attribute that holds the judged document's id, such as `attributes.parent_id`.","pattern":"^attributes\\.[A-Za-z0-9_-]+$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.0.theirs","typeLabel":"string"},"mine":{"const":"id","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.0.mine","typeLabel":"any"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.0","typeLabel":"object"},{"type":"object","description":"How a related document is matched to the judged one: one side is\n`id` and the other an attribute holding an id, or both sides the same attribute, a shared key, or one side\n`id` and the other a matching judgment's pick (a judged link). Two different\nattributes are `invalid_request`.\n","required":["theirs","mine"],"properties":{"theirs":{"const":"id","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.1.theirs","typeLabel":"any"},"mine":{"type":"string","description":"The judged document's attribute that holds the referenced document's id, such as `attributes.group_id`.","pattern":"^attributes\\.[A-Za-z0-9_-]+$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.1.mine","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.1","typeLabel":"object"},{"type":"object","description":"How a related document is matched to the judged one: one side is\n`id` and the other an attribute holding an id, or both sides the same attribute, a shared key, or one side\n`id` and the other a matching judgment's pick (a judged link). Two different\nattributes are `invalid_request`.\n","required":["theirs","mine"],"properties":{"theirs":{"type":"string","description":"The key attribute, such as `attributes.block`.","pattern":"^attributes\\.[A-Za-z0-9_-]+$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.2.theirs","typeLabel":"string"},"mine":{"type":"string","description":"The same attribute as `theirs`.","pattern":"^attributes\\.[A-Za-z0-9_-]+$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.2.mine","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.2","typeLabel":"object"},{"type":"object","description":"How a related document is matched to the judged one: one side is\n`id` and the other an attribute holding an id, or both sides the same attribute, a shared key, or one side\n`id` and the other a matching judgment's pick (a judged link). Two different\nattributes are `invalid_request`.\n","required":["theirs","mine","when"],"properties":{"theirs":{"type":"string","description":"`answers.\u003cj>.value` of the judgment that picks, which must choose among a blocking relation's candidates, or `id`.","pattern":"^(id|answers\\.[A-Za-z0-9_-]+\\.value)$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.3.theirs","typeLabel":"string"},"mine":{"type":"string","description":"`id`, or `answers.\u003cj>.value` of the judgment that picks; the other side of `theirs`.","pattern":"^(id|answers\\.[A-Za-z0-9_-]+\\.value)$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.3.mine","typeLabel":"string"},"when":{"type":"object","description":"When a judged link holds: while the named threshold of the judgment\nthat picks, a threshold on `none_of_the_above` (its unmatched\nqueue), is `false`. At or above it, the pick is not taken and the\ndocument does not link. Required. Removing that threshold while the\nrelation exists is `conflict`; changing its value re-judges each\njudged document whose links it moves, after the `downstream`\nconfirm.\n","additionalProperties":false,"required":["below"],"properties":{"below":{"type":"string","description":"A judgment, attribute or threshold name. Names are path segments in field references, so they never contain `.`.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.3.when.below","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.3.when","typeLabel":"object"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.3","typeLabel":"object"}],"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join","typeLabel":"object"},"last_n":{"type":"integer","minimum":1,"maximum":1000,"description":"Keep the first n in the relation's order, newest first by default. On a relation that reads a referenced document it makes a named list, keeping the first n documents the list names, in list order unless `order` says otherwise, at most 254; at most 254 on a blocking relation, and at most the `options.from` candidate limit (see Limits) when `options.from` chooses among it.","conditionalRequirements":[{},{}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.last_n","typeLabel":"integer"},"window":{"type":"string","description":"Keep documents created within this long before the later of the judged document's newest write and its newest related creation, at the answer's watermark. An edit to an old related document never moves the window. Not on a relation that reads a referenced document.","pattern":"^[1-9][0-9]*[smhd]$","conditionalRequirements":[{},{}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.window","typeLabel":"string"},"fields":{"type":"array","description":"Paths to include from each document, rendered under `records` in the relation's order. An entry may be a `BandedField`, which renders a number as its band, or a `ClippedPath`, which renders the first `max_chars` characters. An entry may also be a judgment's `answers.\u003cj>.value` and `answers.\u003cj>.thresholds.\u003cname>` as they are, and its `.p`, `.score` and `.dist.\u003coption>` only banded.","minItems":1,"items":{"oneOf":[{"type":"string","description":"A path in a related document, an image path `images.\u003cname>` (its image or list, read like the judged document's own), `id`, `created_at` or `updated_at`; a judgment's `answers.\u003cj>.value` or `answers.\u003cj>.thresholds.\u003cname>`, which render as they are; or the document's newest outcome, `outcomes.\u003cj>.value`, rendered as posted. An answer's `p`, `score` or `dist.\u003coption>` must be a `BandedField`.","pattern":"^((state|attributes)(\\.[^.]+)+|images\\.[A-Za-z0-9_-]{1,128}|id|created_at|updated_at|answers\\.[A-Za-z0-9_-]+\\.(value|thresholds\\.[A-Za-z0-9_-]+)|outcomes\\.[A-Za-z0-9_-]+\\.value)$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"object","description":"A number rendered as its band rather than its value, in any relation. In a relation's `fields`, `max_chars` cuts the rendered label as a `ClippedPath` does; it is refused on an aggregate's `min` or `max`. A number renders as the label whose position\nis how many cut points are at or below it: with `bands: [0.3, 0.7]`,\n0.29 is `labels[0]`, 0.3 is `labels[1]` and 0.7 or more `labels[2]`.\nA value that is not a number renders unchanged, and a missing one is\nleft out. Only a move to another band changes the context, so a move\ninside one neither fans out nor costs an evaluation. `bands` must be\nstrictly increasing and `labels` must have exactly one more entry;\nthe server refuses anything else with `invalid_request`.\n","required":["path","bands","labels"],"properties":{"path":{"type":"string","description":"A `state` or `attributes` path, or a judgment's `answers.\u003cj>.p`, `answers.\u003cj>.score` or `answers.\u003cj>.dist.\u003coption>`.","pattern":"^((state|attributes)(\\.[^.]+)+|answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^.]+))$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1.path","typeLabel":"string"},"bands":{"type":"array","description":"Cut points, strictly increasing.","minItems":1,"maxItems":9,"items":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1.bands.items.[INDEX]","typeLabel":"number"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1.bands","typeLabel":"number[]"},"labels":{"type":"array","description":"One label per band, lowest first, so one more than `bands`.","minItems":2,"maxItems":10,"items":{"type":"string","minLength":1,"maxLength":64,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1.labels.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1.labels","typeLabel":"string[]"},"max_chars":{"type":"integer","minimum":1,"maximum":4294967295,"description":"The label cut to this many characters, after the band. Only in a relation's `fields`.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","description":"A path rendered as its first `max_chars` characters (Unicode code\npoints, not bytes or tokens). A string longer than that is cut to\nit; a value that fits renders unchanged and keeps its type; any\nother longer value renders as its JSON text cut to `max_chars`, a\nstring. An edit past the cut changes nothing the engine reads from\nthe field. It bounds one field; it does not make a context fit. An\nimage is never cut, so an image path takes no `max_chars`.\n","required":["path","max_chars"],"properties":{"path":{"type":"string","description":"In a recipe's or `previous`'s `fields`, a `state` or `attributes` path; in a relation's `fields`, any path a `RelationField` names.","pattern":"^((state|attributes)(\\.[^.]+)+|id|created_at|updated_at|answers\\.[A-Za-z0-9_-]+\\.(value|thresholds\\.[A-Za-z0-9_-]+))$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.2.path","typeLabel":"string"},"max_chars":{"type":"integer","minimum":1,"maximum":4294967295,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.2.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.2","typeLabel":"object"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX]","typeLabel":"string · object · object"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields","typeLabel":"string · object · object[]"},"aggregate":{"type":"object","description":"Numbers over the relation's documents, after `match`, `window` and\n`last_n`, rendered as keys of its `related.\u003cname>` entry, such as\n`count` and `sum(state.amount)`. At most 8 paths in total, answer\npaths included. `sum`, `avg`, `min` and `max` skip values that are\nnot numbers; `sum` of nothing is 0, and `avg`, `min` and `max` of\nnothing are null. `latest` is the value in the newest document that\nhas one, of any JSON type.\n\n`latest` reads the most recently created document whatever the\nrelation's `order`.\n\n`count_where` counts documents by judgments'\nanswers; a `min` or `max` entry may be banded, and one over an\nanswer's `p` or `score` must be, rendering the band of the extreme;\n`latest` may read an answer's `value` or `thresholds.\u003cname>`. `sum`\nand `avg` may read an answer's `p`, `score` or `dist.\u003coption>` only\nas a feature the judgment names: never rendered, since it moves on\nevery child evaluation. A child whose newest answer failed adds its\nlast good value; a child with no answer adds nothing and is outside\nthe average. `count_where` and `latest` may read an outcome;\n`labelled` counts the documents that have one.\n\n`render: false` keeps the aggregates, all but `latest`, out of the\ncontext the engine reads, while features still read them: a change\nthat moves only them then re-judges with no engine call and no\ncharge.\n","additionalProperties":false,"minProperties":1,"properties":{"count":{"const":true,"description":"How many documents the relation selected.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count","typeLabel":"any"},"labelled":{"const":true,"description":"How many selected documents have an outcome the relation reads (`outcomes.\u003cj>.value`). Only on a relation that reads one.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.labelled","typeLabel":"any"},"count_where":{"type":"object","description":"How many selected documents match every key: a\njudgment's `answers.\u003cj>.value` or\n`answers.\u003cj>.thresholds.\u003cname>` by equality (a list is `In`) or\nby `{\"not\": \u003cvalue>}`, or its `.p` or `.score` by an inline cut;\nor a document's newest outcome, `outcomes.\u003cj>.value`, by equality.\nA document with no answer matches no key, `not` included. Rendered\nas `count_where`.\n\nA judgment that chooses among candidates (`options.from`) is\ncounted only by whether its value is `none_of_the_above`:\n`{\"answers.settles.value\": {\"not\": \"none_of_the_above\"}}` counts\nthe payments that settled any invoice, and\n`{\"answers.settles.value\": \"none_of_the_above\"}` those that settled\nnone. Any other condition on it is `invalid_request`.\n","minProperties":1,"maxProperties":8,"propertyNames":{"type":"string","pattern":"^(answers\\.[A-Za-z0-9_-]+\\.(value|p|score|thresholds\\.[A-Za-z0-9_-]+)|outcomes\\.[A-Za-z0-9_-]+\\.value)$"},"additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.2","typeLabel":"boolean"},{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.3.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.3.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.3.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.3.items.[INDEX]","typeLabel":"string | number | boolean"},"minItems":1,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.3","typeLabel":"(string | number | boolean)[]"},{"type":"object","description":"An inline cut on an answer's `p` or `score`, exactly as stable as a named threshold. One bound.","maxProperties":1,"minProperties":1,"properties":{"gte":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.4.gte","typeLabel":"number"},"gt":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.4.gt","typeLabel":"number"},"lte":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.4.lte","typeLabel":"number"},"lt":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.4.lt","typeLabel":"number"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.4","typeLabel":"object"},{"type":"object","description":"In a `count_where`, an answer's `value` or `thresholds.\u003cname>` that is not this value. A document with no answer does not match.","required":["not"],"properties":{"not":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.5.not.oneOf.0","typeLabel":"string"},{"type":"number","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.5.not.oneOf.1","typeLabel":"number"},{"type":"boolean","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.5.not.oneOf.2","typeLabel":"boolean"}],"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.5.not","typeLabel":"string | number | boolean"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.5","typeLabel":"object"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties","typeLabel":"string · number · boolean · (string | number | boolean)[] · object · object"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where","typeLabel":"object"},"sum":{"type":"array","description":"Paths for `sum` or `avg`; also a judgment's `answers.\u003cj>.p`, `.score` or `.dist.\u003coption>`, as a feature only.","minItems":1,"maxItems":8,"uniqueItems":true,"items":{"type":"string","description":"A `state` or `attributes` path, without `(` or `)`, or an answer's number.","pattern":"^((state|attributes)(\\.[^.()]+)+|answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^()]+))$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.sum.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.sum","typeLabel":"string[]"},"avg":{"type":"array","description":"Paths to average, the mean of the numbers there.","minItems":1,"maxItems":8,"uniqueItems":true,"items":{"type":"string","description":"A `state` or `attributes` path, without `(` or `)`, or an answer's number.","pattern":"^((state|attributes)(\\.[^.()]+)+|answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^()]+))$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.avg.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.avg","typeLabel":"string[]"},"min":{"type":"array","description":"Paths for `min` or `max`; an entry may be banded, which an answer's `p` or `score` must be. `created_at` and `updated_at` give the oldest or newest time, as RFC 3339, which an `age(...)` feature reads; they are not banded.","minItems":1,"maxItems":8,"items":{"oneOf":[{"type":"string","description":"A `state` or `attributes` path, or `created_at` or `updated_at`. Keys in it cannot contain `(` or `)`.","pattern":"^((state|attributes)(\\.[^.()]+)+|created_at|updated_at)$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"object","description":"A number rendered as its band rather than its value, in any relation. In a relation's `fields`, `max_chars` cuts the rendered label as a `ClippedPath` does; it is refused on an aggregate's `min` or `max`. A number renders as the label whose position\nis how many cut points are at or below it: with `bands: [0.3, 0.7]`,\n0.29 is `labels[0]`, 0.3 is `labels[1]` and 0.7 or more `labels[2]`.\nA value that is not a number renders unchanged, and a missing one is\nleft out. Only a move to another band changes the context, so a move\ninside one neither fans out nor costs an evaluation. `bands` must be\nstrictly increasing and `labels` must have exactly one more entry;\nthe server refuses anything else with `invalid_request`.\n","required":["path","bands","labels"],"properties":{"path":{"type":"string","description":"A `state` or `attributes` path, or a judgment's `answers.\u003cj>.p`, `answers.\u003cj>.score` or `answers.\u003cj>.dist.\u003coption>`.","pattern":"^((state|attributes)(\\.[^.]+)+|answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^.]+))$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1.path","typeLabel":"string"},"bands":{"type":"array","description":"Cut points, strictly increasing.","minItems":1,"maxItems":9,"items":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1.bands.items.[INDEX]","typeLabel":"number"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1.bands","typeLabel":"number[]"},"labels":{"type":"array","description":"One label per band, lowest first, so one more than `bands`.","minItems":2,"maxItems":10,"items":{"type":"string","minLength":1,"maxLength":64,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1.labels.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1.labels","typeLabel":"string[]"},"max_chars":{"type":"integer","minimum":1,"maximum":4294967295,"description":"The label cut to this many characters, after the band. Only in a relation's `fields`.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX]","typeLabel":"string | object"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min","typeLabel":"(string | object)[]"},"max":{"type":"array","description":"Paths for `min` or `max`; an entry may be banded, which an answer's `p` or `score` must be. `created_at` and `updated_at` give the oldest or newest time, as RFC 3339, which an `age(...)` feature reads; they are not banded.","minItems":1,"maxItems":8,"items":{"oneOf":[{"type":"string","description":"A `state` or `attributes` path, or `created_at` or `updated_at`. Keys in it cannot contain `(` or `)`.","pattern":"^((state|attributes)(\\.[^.()]+)+|created_at|updated_at)$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"object","description":"A number rendered as its band rather than its value, in any relation. In a relation's `fields`, `max_chars` cuts the rendered label as a `ClippedPath` does; it is refused on an aggregate's `min` or `max`. A number renders as the label whose position\nis how many cut points are at or below it: with `bands: [0.3, 0.7]`,\n0.29 is `labels[0]`, 0.3 is `labels[1]` and 0.7 or more `labels[2]`.\nA value that is not a number renders unchanged, and a missing one is\nleft out. Only a move to another band changes the context, so a move\ninside one neither fans out nor costs an evaluation. `bands` must be\nstrictly increasing and `labels` must have exactly one more entry;\nthe server refuses anything else with `invalid_request`.\n","required":["path","bands","labels"],"properties":{"path":{"type":"string","description":"A `state` or `attributes` path, or a judgment's `answers.\u003cj>.p`, `answers.\u003cj>.score` or `answers.\u003cj>.dist.\u003coption>`.","pattern":"^((state|attributes)(\\.[^.]+)+|answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^.]+))$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1.path","typeLabel":"string"},"bands":{"type":"array","description":"Cut points, strictly increasing.","minItems":1,"maxItems":9,"items":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1.bands.items.[INDEX]","typeLabel":"number"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1.bands","typeLabel":"number[]"},"labels":{"type":"array","description":"One label per band, lowest first, so one more than `bands`.","minItems":2,"maxItems":10,"items":{"type":"string","minLength":1,"maxLength":64,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1.labels.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1.labels","typeLabel":"string[]"},"max_chars":{"type":"integer","minimum":1,"maximum":4294967295,"description":"The label cut to this many characters, after the band. Only in a relation's `fields`.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX]","typeLabel":"string | object"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max","typeLabel":"(string | object)[]"},"latest":{"type":"array","description":"Paths for `latest`; also `created_at` or `updated_at`, the newest document's time as RFC 3339, an image path `images.\u003cname>`, which renders the newest document's image or list, a judgment's `answers.\u003cj>.value` or `answers.\u003cj>.thresholds.\u003cname>`, or a document's newest outcome, `outcomes.\u003cj>.value`.","minItems":1,"maxItems":8,"uniqueItems":true,"items":{"type":"string","description":"A `state` or `attributes` path, `created_at` or `updated_at`, an image path, an answer's `value` or `thresholds.\u003cname>`, or an outcome's `value`. Keys in it cannot contain `(` or `)`.","pattern":"^((state|attributes)(\\.[^.()]+)+|created_at|updated_at|images\\.[A-Za-z0-9_-]{1,128}|answers\\.[A-Za-z0-9_-]+\\.(value|thresholds\\.[A-Za-z0-9_-]+)|outcomes\\.[A-Za-z0-9_-]+\\.value)$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.latest.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.latest","typeLabel":"string[]"},"render":{"type":"boolean","default":true,"description":"Whether the aggregates, all but `latest`, are in the context the engine reads. Part of the version.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.render","typeLabel":"boolean"}},"conditionalRequirements":[{}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate","typeLabel":"object"},"order":{"type":"object","description":"Which of a relation's documents come first, and so which `last_n`\nkeeps. The newest 1,000 documents in `window` are sorted, never more:\na document outside them is not selected whatever its value, and the\nrelation's entry renders `range_full: true` when more matched.\nValues sort by type first, numbers, then strings, then booleans,\nthen missing values and anything else; `desc` reverses the order\nwithin each type, never the types. Numbers compare by value (whole\nnumbers exactly), strings by Unicode code point, and `false` comes\nbefore `true`. Ties go to the most recently created, then the lower\n`id`. `records` render in this order and, over the token limit, the\nones that sort last are dropped first; `latest` stays the most\nrecently created document's value. Ordered by anything but\n`created_at`, a write to the ordered field can move a document into\nor out of the selection. The relation reads up to 1,000 documents\nper judged document to sort them; the create response's warnings\nname the factor. On a named list it sorts the documents the list\nnames in place of list order, `created_at` included. Refused on a\nblocking relation and on one that reads a single referenced\ndocument.\n","additionalProperties":false,"required":["by"],"properties":{"by":{"type":"string","description":"`created_at`, `updated_at`, a `state.\u003cpath>` or an `attributes.\u003cname>`.","pattern":"^(created_at|updated_at|state(\\.[^.]+)+|attributes\\.[A-Za-z0-9_-]+)$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.order.by","typeLabel":"string"},"desc":{"type":"boolean","default":true,"description":"Largest first within each type.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.order.desc","typeLabel":"boolean"}},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.order","typeLabel":"object"},"relative":{"type":"string","enum":["before","after"],"description":"On a blocking relation, which side of the judged document it\nreads: the `last_n` documents of the block created nearest\nbefore it (`before`) or after it (`after`), never the judged\ndocument itself, in creation order, oldest first. Creation order\nis `created_at`, ties by `id`: the `created_at` a write supplied\nwhen it created the document, or the time of that write. What a\njudged document reads never moves when the block grows at the\nother end, so a document judged again later reads the same\ndocuments unless one of them was created, deleted, re-keyed or\nchanged. Such a change re-judges only the judged documents whose\n`last_n` it is or was in, at most `last_n` of them on the side\nthat reads it; a new document after every other one re-judges\nnothing in a `before` relation. Over the token limit the\nfarthest documents are dropped first (the oldest of a `before`\nrun, the newest of an `after` run); aggregates cover every\ndocument read. Refused with `window` and `order`.\n","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.relative","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties","typeLabel":"object"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related","typeLabel":"object"},"previous":{"type":"object","description":"The judged document as the judgment's last successful evaluation saw it, rendered as `previous.\u003cpath>` entries\nafter `fields`, so a question can ask what changed. When a revision\nrenders the same as the stored current, as a nightly re-upsert of\nthe same record does, the context is the one the last verdict saw\nand costs nothing. A document with no stored rendering in its\nincarnation renders nothing under `previous`, and its evaluation\nsays `first_revision: true`. Truncation cuts `previous` before\n`fields`, after any images, which go first.\n","additionalProperties":false,"required":["fields"],"properties":{"fields":{"type":"array","description":"The document's own paths to render as they were, in order, each verbatim or cut to `max_chars`.","minItems":1,"items":{"oneOf":[{"type":"string","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","pattern":"^((state|attributes)(\\.[^.]+)+|images\\.[A-Za-z0-9_-]{1,128})$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous.fields.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"object","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","required":["path","max_chars"],"properties":{"path":{"type":"string","description":"In a recipe's or `previous`'s `fields`, a `state` or `attributes` path; in a relation's `fields`, any path a `RelationField` names.","pattern":"^((state|attributes)(\\.[^.]+)+|id|created_at|updated_at|answers\\.[A-Za-z0-9_-]+\\.(value|thresholds\\.[A-Za-z0-9_-]+))$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous.fields.items.[INDEX].oneOf.1.path","typeLabel":"string"},"max_chars":{"type":"integer","minimum":1,"maximum":4294967295,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous.fields.items.[INDEX].oneOf.1.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous.fields.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous.fields.items.[INDEX]","typeLabel":"string | object"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous.fields","typeLabel":"(string | object)[]"},"anchor":{"type":"string","description":"An attribute such as `attributes.approved_at`. The stored previous moves on only when this attribute's value changes, so every edit is compared with the revision last approved, however many rejected edits come between.","pattern":"^attributes\\.[A-Za-z0-9_-]+$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous.anchor","typeLabel":"string"}},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe","typeLabel":"object"},"cost_per_answer":{"oneOf":[{"type":"number","minimum":0,"description":"Mean units per answer, in the unit used before rows kept (two rows each), counted by size class at the engine's multiple as the bill counts them, over the sample with this recipe and the definition's question. The suggested `max_tokens` is at most 2,000, the standard ceiling, less the question's tokens, so a context that fills it stays standard with its question.","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.cost_per_answer.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"description":"Mean units per answer, in the unit used before rows kept (two rows each), counted by size class at the engine's multiple as the bill counts them, over the sample with this recipe and the definition's question. The suggested `max_tokens` is at most 2,000, the standard ceiling, less the question's tokens, so a context that fills it stays standard with its question.","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.cost_per_answer.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.cost_per_answer","typeLabel":"number | null"},"whole_state_cost_per_answer":{"oneOf":[{"type":"number","minimum":0,"description":"The same with the whole `state`.","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.whole_state_cost_per_answer.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"description":"The same with the whole `state`.","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.whole_state_cost_per_answer.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.whole_state_cost_per_answer","typeLabel":"number | null"},"sampled_documents":{"type":"integer","minimum":1,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.sampled_documents","typeLabel":"integer"},"excluded":{"type":"array","description":"Each path left out, and why, so you can put back what the question needs.","items":{"type":"object","required":["path","reason"],"properties":{"path":{"type":"string","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.excluded.items.[INDEX].path","typeLabel":"string"},"reason":{"type":"string","enum":["id","timestamp","url","binary","image","long","rare","too_many"],"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.excluded.items.[INDEX].reason","typeLabel":"enum\u003cstring>"}},"uniqueKey":"error.details.suggested_context.oneOf.0.excluded.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.excluded","typeLabel":"object[]"}},"uniqueKey":"error.details.suggested_context.oneOf.0","typeLabel":"object"},{"type":"null","description":"On a create without a context recipe, the recipe suggested from the namespace's documents, or null when there are none.","uniqueKey":"error.details.suggested_context.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.details.suggested_context","typeLabel":"object | null"}},"uniqueKey":"error.details","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"invalid_request","message":"\u003cstring>","details":{"reason":"\u003cstring>","suggested_context":{"recipe":{"fields":["\u003cstring>"],"last_n":{},"window":{},"max_tokens":2,"related":{},"previous":{"fields":["\u003cstring>"],"anchor":"\u003cstring>"}},"cost_per_answer":1,"whole_state_cost_per_answer":1,"sampled_documents":2,"excluded":[{"path":"\u003cstring>","reason":"id"}]}}}}}},"exampleType":"generated"}},"exampleType":"generated"},"85fe739f-8a57-40b1-925b-85a24a27ab1b":{"description":"`rate_limited`: slow down. Past a requests-per-second limit, `details.rate_limit` says which (`per_key` or `per_org`, across all the organization's keys), `details.limit` gives it. `Retry-After` says how long to wait, except when a daily allowance is used up: then `details.resets_at` says when it renews, and there is no `Retry-After`. A request that would create a namespace past the organization's creations for the UTC minute (1,000) has `details.limit` and a `Retry-After` of the seconds until the next minute. A read refused because its namespace already has as many gets and queries in flight as it allows says so in `details.concurrent_reads` (the limit, 32), and can come with rate-limit headers that show most of the per-second budget left. Any other `rate_limited` (too many requests in flight) has `Retry-After` and only `details.retry_after_s`: retry it.","headers":{"X-RateLimit-Limit":{"description":"Requests allowed per second under one of the two limits on an API key, per key or per organization; the one with fewer requests left, or on a `rate_limited` response the one that refused the request. A dashboard session reports its user's limit. Only on responses to a request whose key was accepted; never on `unauthorized`, on a route that does not exist, or on a malformed namespace name.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left in the current second under the limit `X-RateLimit-Limit` gives. It does not count the per-namespace limit on reads in flight.","schema":{"type":"integer","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"HTTP status by code: `invalid_request` 400, `unauthorized` 401,\n`invalid_image` 400, `unknown_image` 400, `image_erased` 410,\n`budget_exceeded` 402, `plan_required` 402, `forbidden` 403,\n`claim_required` 403, `sign_up_closed` 403, `not_found` 404, `conflict` 409,\n`too_large` 413, `engine_version_unavailable` 422,\n`insufficient_labels` 422, `idempotency_key_reused` 422,\n`rate_limited` 429, `internal` 500,\n`engine_unavailable` 503, `unavailable` 503.\n\nAny route can also answer `unavailable`, with `Retry-After`, when it\ndid not finish within 35 s: it was stopped, and a retry runs it\nagain. Creating a judgment version, a judgment's `PATCH` and a\nbackfill's start answer within 20 s, with a job (`202`) when they\nneed longer, and never begin their change after 25 s. So when one of\nthem is answered `unavailable` this way, nothing changed and the\nretry makes the change once.\n","enum":["invalid_request","invalid_image","unknown_image","image_erased","unauthorized","forbidden","claim_required","sign_up_closed","not_found","conflict","too_large","rate_limited","budget_exceeded","plan_required","engine_unavailable","engine_version_unavailable","unavailable","insufficient_labels","idempotency_key_reused","internal"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"object","description":"Code-specific detail, such as the scan estimate on a refused query. Every `internal` error has `request_id`.","properties":{"reason":{"type":"string","description":"Why, where one code has more than one cause. On the events\nfeed's `invalid_request`, `cursor_expired`.\n","uniqueKey":"error.details.reason","typeLabel":"string"},"suggested_context":{"oneOf":[{"type":"object","description":"On a create without a context recipe, the recipe suggested from the namespace's documents, or null when there are none.","required":["recipe","cost_per_answer","whole_state_cost_per_answer","sampled_documents","excluded"],"properties":{"recipe":{"type":"object","description":"What the engine sees. A create without it is refused with a suggested\nrecipe, unless `use_context` asks for the suggestion or the whole\n`state`; a version with no recipe sends the whole\n`state`, subject to the engine limit, and no images.\n","additionalProperties":false,"properties":{"fields":{"type":"array","description":"Paths included in order, each verbatim or, as a `ClippedPath`, cut to its first `max_chars` characters. A path is `state.\u003cpath>`, `attributes.\u003cname>`, or an image path, `images.\u003cname>`, which reads that name's image or whole list; an image path takes no `max_chars`. An engine that reads images (its `limits.images` in `GET /engines`) reads each, counted by its tiles; an engine that reads none gets each as an `OmittedImage` with `engine_reads_no_images`, and the create warns. Images are written to documents, never sent with the judgment.\n","items":{"oneOf":[{"type":"string","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","pattern":"^((state|attributes)(\\.[^.]+)+|images\\.[A-Za-z0-9_-]{1,128})$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.fields.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"object","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","required":["path","max_chars"],"properties":{"path":{"type":"string","description":"In a recipe's or `previous`'s `fields`, a `state` or `attributes` path; in a relation's `fields`, any path a `RelationField` names.","pattern":"^((state|attributes)(\\.[^.]+)+|id|created_at|updated_at|answers\\.[A-Za-z0-9_-]+\\.(value|thresholds\\.[A-Za-z0-9_-]+))$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.fields.items.[INDEX].oneOf.1.path","typeLabel":"string"},"max_chars":{"type":"integer","minimum":1,"maximum":4294967295,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.fields.items.[INDEX].oneOf.1.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.fields.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.fields.items.[INDEX]","typeLabel":"string | object"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.fields","typeLabel":"(string | object)[]"},"last_n":{"type":"object","description":"Per array path in `state` or `attributes`, keep the last n elements. Not an image path.","additionalProperties":{"type":"integer","minimum":1,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.last_n.additionalProperties","typeLabel":"integer"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.last_n","typeLabel":"object"},"window":{"type":"object","description":"Per array path whose elements have a timestamp field `at`, keep elements within the window.","additionalProperties":{"type":"string","description":"A whole number and a unit (`s`, `m`, `h` or `d`), such as `7d` or `1h`.","pattern":"^[1-9][0-9]*[smhd]$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.window.additionalProperties","typeLabel":"string"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.window","typeLabel":"object"},"max_tokens":{"type":"integer","minimum":1,"description":"Hard cap, in the judgment's engine's tokens. Over it, whole images are left out first (on an engine that reads them; those of relations, then `previous`, then fields, the last first; every image when the text alone is over), then relation records, then `previous` entries, then the end of the last field is cut.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.max_tokens","typeLabel":"integer"},"related":{"type":"object","description":"Up to 4 relations, by name: documents in the same namespace that point at the judged one, or the one document it points at. Each renders as a `related.\u003cname>`\nentry after `fields`, and a write that changes what it renders\nmakes the judged document's answer `pending` until it is judged\nagain (for a referenced document, only inside the re-judge scope;\noutside it, the answer is `stale` with `stale_reason`\n`referenced_changed`).\n","minProperties":1,"maxProperties":4,"propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"type":"object","description":"Documents that point at the judged document.\nThey are ordered newest `created_at` first unless `order` says\notherwise: `window` keeps those created within the window, the order\nis applied, then `last_n` keeps the first n. At least one of `last_n`\nand `window` is required, and at least one of `fields` and\n`aggregate`. A relation reads at most the newest 1,000 documents,\nand an `order` sorts within them.\n\nWith `join: {theirs: \"id\", mine: \"attributes.\u003cname>\"}`\nthe relation reads the one document the judged document points at,\nits referenced document, and takes no `window`. With `last_n` (up to\n254) it is a named list instead: the attribute holds an array of\nids, and the relation reads the documents it names in list order\nunless `order` says otherwise, each once, at most `last_n` of them. An id that names nothing, or a\ndocument outside `match`, renders nothing and is listed in the\nevaluation's `related_documents` as `unresolved`. An attribute a\nnamed list reads holds at most 254 distinct ids.\n\nWith `join: {theirs: \"attributes.\u003ckey>\", mine:\n\"attributes.\u003ckey>\"}` it is a blocking relation over the documents\nthat share the judged document's key value. It needs `window`\nunless it sets `relative`, takes\n`last_n` up to 254 (up to the `options.from` candidate limit when a\n`choice` chooses among it with\n`options.from`), and a change to its block re-judges the block's\njudged documents. With `relative`, each judged document reads the\n`last_n` documents of its block created just before it (or just\nafter it), in creation order, and a change re-judges only the\njudged documents whose documents it moved. `fields`, `aggregate` and `match` may read other\njudgments' answers (`answers.\u003cj>.\u003cfield>`), banded or cut, and the\nnewest outcome posted for each related document\n(`outcomes.\u003cj>.value`), shown as posted: the one with the latest\n`observed_at`, of two at the same time the one posted last, about\nthe document's current life and of the judgment's current answer\ntype. Posting one re-judges the judgments that read it, within their\n`rolling_limit`. A relation reads at most 4 judgments' answers or\noutcomes.\n","required":["match","join"],"conditionallyRequiredProperties":{"aggregate":[{}],"last_n":[{},{}],"window":[{},{}]},"properties":{"match":{"type":"object","description":"Which documents the relation reads.","minProperties":1,"maxProperties":8,"propertyNames":{"type":"string","pattern":"^(attributes\\.[A-Za-z0-9_-]+|answers\\.[A-Za-z0-9_-]+\\.(value|p|score|thresholds\\.[A-Za-z0-9_-]+)|outcomes\\.[A-Za-z0-9_-]+\\.value)$"},"additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.2","typeLabel":"boolean"},{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.3.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.3.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.3.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.3.items.[INDEX]","typeLabel":"string | number | boolean"},"minItems":1,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.3","typeLabel":"(string | number | boolean)[]"},{"type":"object","description":"An inline cut on an answer's `p` or `score`, exactly as stable as a named threshold. One bound.","maxProperties":1,"minProperties":1,"properties":{"gte":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.4.gte","typeLabel":"number"},"gt":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.4.gt","typeLabel":"number"},"lte":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.4.lte","typeLabel":"number"},"lt":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.4.lt","typeLabel":"number"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.4","typeLabel":"object"},{"type":"object","description":"Selects documents that have an outcome a relation reads, on an `outcomes.\u003cj>.value` key of `match`.","required":["exists"],"properties":{"exists":{"const":true,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.5.exists","typeLabel":"any"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.5","typeLabel":"object"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties","typeLabel":"string · number · boolean · (string | number | boolean)[] · object · object"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match","typeLabel":"object"},"join":{"oneOf":[{"type":"object","description":"How a related document is matched to the judged one: one side is\n`id` and the other an attribute holding an id, or both sides the same attribute, a shared key, or one side\n`id` and the other a matching judgment's pick (a judged link). Two different\nattributes are `invalid_request`.\n","required":["theirs","mine"],"properties":{"theirs":{"type":"string","description":"The related document's attribute that holds the judged document's id, such as `attributes.parent_id`.","pattern":"^attributes\\.[A-Za-z0-9_-]+$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.0.theirs","typeLabel":"string"},"mine":{"const":"id","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.0.mine","typeLabel":"any"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.0","typeLabel":"object"},{"type":"object","description":"How a related document is matched to the judged one: one side is\n`id` and the other an attribute holding an id, or both sides the same attribute, a shared key, or one side\n`id` and the other a matching judgment's pick (a judged link). Two different\nattributes are `invalid_request`.\n","required":["theirs","mine"],"properties":{"theirs":{"const":"id","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.1.theirs","typeLabel":"any"},"mine":{"type":"string","description":"The judged document's attribute that holds the referenced document's id, such as `attributes.group_id`.","pattern":"^attributes\\.[A-Za-z0-9_-]+$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.1.mine","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.1","typeLabel":"object"},{"type":"object","description":"How a related document is matched to the judged one: one side is\n`id` and the other an attribute holding an id, or both sides the same attribute, a shared key, or one side\n`id` and the other a matching judgment's pick (a judged link). Two different\nattributes are `invalid_request`.\n","required":["theirs","mine"],"properties":{"theirs":{"type":"string","description":"The key attribute, such as `attributes.block`.","pattern":"^attributes\\.[A-Za-z0-9_-]+$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.2.theirs","typeLabel":"string"},"mine":{"type":"string","description":"The same attribute as `theirs`.","pattern":"^attributes\\.[A-Za-z0-9_-]+$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.2.mine","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.2","typeLabel":"object"},{"type":"object","description":"How a related document is matched to the judged one: one side is\n`id` and the other an attribute holding an id, or both sides the same attribute, a shared key, or one side\n`id` and the other a matching judgment's pick (a judged link). Two different\nattributes are `invalid_request`.\n","required":["theirs","mine","when"],"properties":{"theirs":{"type":"string","description":"`answers.\u003cj>.value` of the judgment that picks, which must choose among a blocking relation's candidates, or `id`.","pattern":"^(id|answers\\.[A-Za-z0-9_-]+\\.value)$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.3.theirs","typeLabel":"string"},"mine":{"type":"string","description":"`id`, or `answers.\u003cj>.value` of the judgment that picks; the other side of `theirs`.","pattern":"^(id|answers\\.[A-Za-z0-9_-]+\\.value)$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.3.mine","typeLabel":"string"},"when":{"type":"object","description":"When a judged link holds: while the named threshold of the judgment\nthat picks, a threshold on `none_of_the_above` (its unmatched\nqueue), is `false`. At or above it, the pick is not taken and the\ndocument does not link. Required. Removing that threshold while the\nrelation exists is `conflict`; changing its value re-judges each\njudged document whose links it moves, after the `downstream`\nconfirm.\n","additionalProperties":false,"required":["below"],"properties":{"below":{"type":"string","description":"A judgment, attribute or threshold name. Names are path segments in field references, so they never contain `.`.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.3.when.below","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.3.when","typeLabel":"object"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.3","typeLabel":"object"}],"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join","typeLabel":"object"},"last_n":{"type":"integer","minimum":1,"maximum":1000,"description":"Keep the first n in the relation's order, newest first by default. On a relation that reads a referenced document it makes a named list, keeping the first n documents the list names, in list order unless `order` says otherwise, at most 254; at most 254 on a blocking relation, and at most the `options.from` candidate limit (see Limits) when `options.from` chooses among it.","conditionalRequirements":[{},{}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.last_n","typeLabel":"integer"},"window":{"type":"string","description":"Keep documents created within this long before the later of the judged document's newest write and its newest related creation, at the answer's watermark. An edit to an old related document never moves the window. Not on a relation that reads a referenced document.","pattern":"^[1-9][0-9]*[smhd]$","conditionalRequirements":[{},{}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.window","typeLabel":"string"},"fields":{"type":"array","description":"Paths to include from each document, rendered under `records` in the relation's order. An entry may be a `BandedField`, which renders a number as its band, or a `ClippedPath`, which renders the first `max_chars` characters. An entry may also be a judgment's `answers.\u003cj>.value` and `answers.\u003cj>.thresholds.\u003cname>` as they are, and its `.p`, `.score` and `.dist.\u003coption>` only banded.","minItems":1,"items":{"oneOf":[{"type":"string","description":"A path in a related document, an image path `images.\u003cname>` (its image or list, read like the judged document's own), `id`, `created_at` or `updated_at`; a judgment's `answers.\u003cj>.value` or `answers.\u003cj>.thresholds.\u003cname>`, which render as they are; or the document's newest outcome, `outcomes.\u003cj>.value`, rendered as posted. An answer's `p`, `score` or `dist.\u003coption>` must be a `BandedField`.","pattern":"^((state|attributes)(\\.[^.]+)+|images\\.[A-Za-z0-9_-]{1,128}|id|created_at|updated_at|answers\\.[A-Za-z0-9_-]+\\.(value|thresholds\\.[A-Za-z0-9_-]+)|outcomes\\.[A-Za-z0-9_-]+\\.value)$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"object","description":"A number rendered as its band rather than its value, in any relation. In a relation's `fields`, `max_chars` cuts the rendered label as a `ClippedPath` does; it is refused on an aggregate's `min` or `max`. A number renders as the label whose position\nis how many cut points are at or below it: with `bands: [0.3, 0.7]`,\n0.29 is `labels[0]`, 0.3 is `labels[1]` and 0.7 or more `labels[2]`.\nA value that is not a number renders unchanged, and a missing one is\nleft out. Only a move to another band changes the context, so a move\ninside one neither fans out nor costs an evaluation. `bands` must be\nstrictly increasing and `labels` must have exactly one more entry;\nthe server refuses anything else with `invalid_request`.\n","required":["path","bands","labels"],"properties":{"path":{"type":"string","description":"A `state` or `attributes` path, or a judgment's `answers.\u003cj>.p`, `answers.\u003cj>.score` or `answers.\u003cj>.dist.\u003coption>`.","pattern":"^((state|attributes)(\\.[^.]+)+|answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^.]+))$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1.path","typeLabel":"string"},"bands":{"type":"array","description":"Cut points, strictly increasing.","minItems":1,"maxItems":9,"items":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1.bands.items.[INDEX]","typeLabel":"number"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1.bands","typeLabel":"number[]"},"labels":{"type":"array","description":"One label per band, lowest first, so one more than `bands`.","minItems":2,"maxItems":10,"items":{"type":"string","minLength":1,"maxLength":64,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1.labels.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1.labels","typeLabel":"string[]"},"max_chars":{"type":"integer","minimum":1,"maximum":4294967295,"description":"The label cut to this many characters, after the band. Only in a relation's `fields`.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","description":"A path rendered as its first `max_chars` characters (Unicode code\npoints, not bytes or tokens). A string longer than that is cut to\nit; a value that fits renders unchanged and keeps its type; any\nother longer value renders as its JSON text cut to `max_chars`, a\nstring. An edit past the cut changes nothing the engine reads from\nthe field. It bounds one field; it does not make a context fit. An\nimage is never cut, so an image path takes no `max_chars`.\n","required":["path","max_chars"],"properties":{"path":{"type":"string","description":"In a recipe's or `previous`'s `fields`, a `state` or `attributes` path; in a relation's `fields`, any path a `RelationField` names.","pattern":"^((state|attributes)(\\.[^.]+)+|id|created_at|updated_at|answers\\.[A-Za-z0-9_-]+\\.(value|thresholds\\.[A-Za-z0-9_-]+))$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.2.path","typeLabel":"string"},"max_chars":{"type":"integer","minimum":1,"maximum":4294967295,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.2.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.2","typeLabel":"object"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX]","typeLabel":"string · object · object"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields","typeLabel":"string · object · object[]"},"aggregate":{"type":"object","description":"Numbers over the relation's documents, after `match`, `window` and\n`last_n`, rendered as keys of its `related.\u003cname>` entry, such as\n`count` and `sum(state.amount)`. At most 8 paths in total, answer\npaths included. `sum`, `avg`, `min` and `max` skip values that are\nnot numbers; `sum` of nothing is 0, and `avg`, `min` and `max` of\nnothing are null. `latest` is the value in the newest document that\nhas one, of any JSON type.\n\n`latest` reads the most recently created document whatever the\nrelation's `order`.\n\n`count_where` counts documents by judgments'\nanswers; a `min` or `max` entry may be banded, and one over an\nanswer's `p` or `score` must be, rendering the band of the extreme;\n`latest` may read an answer's `value` or `thresholds.\u003cname>`. `sum`\nand `avg` may read an answer's `p`, `score` or `dist.\u003coption>` only\nas a feature the judgment names: never rendered, since it moves on\nevery child evaluation. A child whose newest answer failed adds its\nlast good value; a child with no answer adds nothing and is outside\nthe average. `count_where` and `latest` may read an outcome;\n`labelled` counts the documents that have one.\n\n`render: false` keeps the aggregates, all but `latest`, out of the\ncontext the engine reads, while features still read them: a change\nthat moves only them then re-judges with no engine call and no\ncharge.\n","additionalProperties":false,"minProperties":1,"properties":{"count":{"const":true,"description":"How many documents the relation selected.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count","typeLabel":"any"},"labelled":{"const":true,"description":"How many selected documents have an outcome the relation reads (`outcomes.\u003cj>.value`). Only on a relation that reads one.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.labelled","typeLabel":"any"},"count_where":{"type":"object","description":"How many selected documents match every key: a\njudgment's `answers.\u003cj>.value` or\n`answers.\u003cj>.thresholds.\u003cname>` by equality (a list is `In`) or\nby `{\"not\": \u003cvalue>}`, or its `.p` or `.score` by an inline cut;\nor a document's newest outcome, `outcomes.\u003cj>.value`, by equality.\nA document with no answer matches no key, `not` included. Rendered\nas `count_where`.\n\nA judgment that chooses among candidates (`options.from`) is\ncounted only by whether its value is `none_of_the_above`:\n`{\"answers.settles.value\": {\"not\": \"none_of_the_above\"}}` counts\nthe payments that settled any invoice, and\n`{\"answers.settles.value\": \"none_of_the_above\"}` those that settled\nnone. Any other condition on it is `invalid_request`.\n","minProperties":1,"maxProperties":8,"propertyNames":{"type":"string","pattern":"^(answers\\.[A-Za-z0-9_-]+\\.(value|p|score|thresholds\\.[A-Za-z0-9_-]+)|outcomes\\.[A-Za-z0-9_-]+\\.value)$"},"additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.2","typeLabel":"boolean"},{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.3.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.3.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.3.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.3.items.[INDEX]","typeLabel":"string | number | boolean"},"minItems":1,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.3","typeLabel":"(string | number | boolean)[]"},{"type":"object","description":"An inline cut on an answer's `p` or `score`, exactly as stable as a named threshold. One bound.","maxProperties":1,"minProperties":1,"properties":{"gte":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.4.gte","typeLabel":"number"},"gt":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.4.gt","typeLabel":"number"},"lte":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.4.lte","typeLabel":"number"},"lt":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.4.lt","typeLabel":"number"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.4","typeLabel":"object"},{"type":"object","description":"In a `count_where`, an answer's `value` or `thresholds.\u003cname>` that is not this value. A document with no answer does not match.","required":["not"],"properties":{"not":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.5.not.oneOf.0","typeLabel":"string"},{"type":"number","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.5.not.oneOf.1","typeLabel":"number"},{"type":"boolean","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.5.not.oneOf.2","typeLabel":"boolean"}],"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.5.not","typeLabel":"string | number | boolean"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.5","typeLabel":"object"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties","typeLabel":"string · number · boolean · (string | number | boolean)[] · object · object"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where","typeLabel":"object"},"sum":{"type":"array","description":"Paths for `sum` or `avg`; also a judgment's `answers.\u003cj>.p`, `.score` or `.dist.\u003coption>`, as a feature only.","minItems":1,"maxItems":8,"uniqueItems":true,"items":{"type":"string","description":"A `state` or `attributes` path, without `(` or `)`, or an answer's number.","pattern":"^((state|attributes)(\\.[^.()]+)+|answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^()]+))$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.sum.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.sum","typeLabel":"string[]"},"avg":{"type":"array","description":"Paths to average, the mean of the numbers there.","minItems":1,"maxItems":8,"uniqueItems":true,"items":{"type":"string","description":"A `state` or `attributes` path, without `(` or `)`, or an answer's number.","pattern":"^((state|attributes)(\\.[^.()]+)+|answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^()]+))$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.avg.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.avg","typeLabel":"string[]"},"min":{"type":"array","description":"Paths for `min` or `max`; an entry may be banded, which an answer's `p` or `score` must be. `created_at` and `updated_at` give the oldest or newest time, as RFC 3339, which an `age(...)` feature reads; they are not banded.","minItems":1,"maxItems":8,"items":{"oneOf":[{"type":"string","description":"A `state` or `attributes` path, or `created_at` or `updated_at`. Keys in it cannot contain `(` or `)`.","pattern":"^((state|attributes)(\\.[^.()]+)+|created_at|updated_at)$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"object","description":"A number rendered as its band rather than its value, in any relation. In a relation's `fields`, `max_chars` cuts the rendered label as a `ClippedPath` does; it is refused on an aggregate's `min` or `max`. A number renders as the label whose position\nis how many cut points are at or below it: with `bands: [0.3, 0.7]`,\n0.29 is `labels[0]`, 0.3 is `labels[1]` and 0.7 or more `labels[2]`.\nA value that is not a number renders unchanged, and a missing one is\nleft out. Only a move to another band changes the context, so a move\ninside one neither fans out nor costs an evaluation. `bands` must be\nstrictly increasing and `labels` must have exactly one more entry;\nthe server refuses anything else with `invalid_request`.\n","required":["path","bands","labels"],"properties":{"path":{"type":"string","description":"A `state` or `attributes` path, or a judgment's `answers.\u003cj>.p`, `answers.\u003cj>.score` or `answers.\u003cj>.dist.\u003coption>`.","pattern":"^((state|attributes)(\\.[^.]+)+|answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^.]+))$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1.path","typeLabel":"string"},"bands":{"type":"array","description":"Cut points, strictly increasing.","minItems":1,"maxItems":9,"items":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1.bands.items.[INDEX]","typeLabel":"number"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1.bands","typeLabel":"number[]"},"labels":{"type":"array","description":"One label per band, lowest first, so one more than `bands`.","minItems":2,"maxItems":10,"items":{"type":"string","minLength":1,"maxLength":64,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1.labels.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1.labels","typeLabel":"string[]"},"max_chars":{"type":"integer","minimum":1,"maximum":4294967295,"description":"The label cut to this many characters, after the band. Only in a relation's `fields`.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX]","typeLabel":"string | object"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min","typeLabel":"(string | object)[]"},"max":{"type":"array","description":"Paths for `min` or `max`; an entry may be banded, which an answer's `p` or `score` must be. `created_at` and `updated_at` give the oldest or newest time, as RFC 3339, which an `age(...)` feature reads; they are not banded.","minItems":1,"maxItems":8,"items":{"oneOf":[{"type":"string","description":"A `state` or `attributes` path, or `created_at` or `updated_at`. Keys in it cannot contain `(` or `)`.","pattern":"^((state|attributes)(\\.[^.()]+)+|created_at|updated_at)$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"object","description":"A number rendered as its band rather than its value, in any relation. In a relation's `fields`, `max_chars` cuts the rendered label as a `ClippedPath` does; it is refused on an aggregate's `min` or `max`. A number renders as the label whose position\nis how many cut points are at or below it: with `bands: [0.3, 0.7]`,\n0.29 is `labels[0]`, 0.3 is `labels[1]` and 0.7 or more `labels[2]`.\nA value that is not a number renders unchanged, and a missing one is\nleft out. Only a move to another band changes the context, so a move\ninside one neither fans out nor costs an evaluation. `bands` must be\nstrictly increasing and `labels` must have exactly one more entry;\nthe server refuses anything else with `invalid_request`.\n","required":["path","bands","labels"],"properties":{"path":{"type":"string","description":"A `state` or `attributes` path, or a judgment's `answers.\u003cj>.p`, `answers.\u003cj>.score` or `answers.\u003cj>.dist.\u003coption>`.","pattern":"^((state|attributes)(\\.[^.]+)+|answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^.]+))$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1.path","typeLabel":"string"},"bands":{"type":"array","description":"Cut points, strictly increasing.","minItems":1,"maxItems":9,"items":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1.bands.items.[INDEX]","typeLabel":"number"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1.bands","typeLabel":"number[]"},"labels":{"type":"array","description":"One label per band, lowest first, so one more than `bands`.","minItems":2,"maxItems":10,"items":{"type":"string","minLength":1,"maxLength":64,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1.labels.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1.labels","typeLabel":"string[]"},"max_chars":{"type":"integer","minimum":1,"maximum":4294967295,"description":"The label cut to this many characters, after the band. Only in a relation's `fields`.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX]","typeLabel":"string | object"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max","typeLabel":"(string | object)[]"},"latest":{"type":"array","description":"Paths for `latest`; also `created_at` or `updated_at`, the newest document's time as RFC 3339, an image path `images.\u003cname>`, which renders the newest document's image or list, a judgment's `answers.\u003cj>.value` or `answers.\u003cj>.thresholds.\u003cname>`, or a document's newest outcome, `outcomes.\u003cj>.value`.","minItems":1,"maxItems":8,"uniqueItems":true,"items":{"type":"string","description":"A `state` or `attributes` path, `created_at` or `updated_at`, an image path, an answer's `value` or `thresholds.\u003cname>`, or an outcome's `value`. Keys in it cannot contain `(` or `)`.","pattern":"^((state|attributes)(\\.[^.()]+)+|created_at|updated_at|images\\.[A-Za-z0-9_-]{1,128}|answers\\.[A-Za-z0-9_-]+\\.(value|thresholds\\.[A-Za-z0-9_-]+)|outcomes\\.[A-Za-z0-9_-]+\\.value)$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.latest.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.latest","typeLabel":"string[]"},"render":{"type":"boolean","default":true,"description":"Whether the aggregates, all but `latest`, are in the context the engine reads. Part of the version.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.render","typeLabel":"boolean"}},"conditionalRequirements":[{}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate","typeLabel":"object"},"order":{"type":"object","description":"Which of a relation's documents come first, and so which `last_n`\nkeeps. The newest 1,000 documents in `window` are sorted, never more:\na document outside them is not selected whatever its value, and the\nrelation's entry renders `range_full: true` when more matched.\nValues sort by type first, numbers, then strings, then booleans,\nthen missing values and anything else; `desc` reverses the order\nwithin each type, never the types. Numbers compare by value (whole\nnumbers exactly), strings by Unicode code point, and `false` comes\nbefore `true`. Ties go to the most recently created, then the lower\n`id`. `records` render in this order and, over the token limit, the\nones that sort last are dropped first; `latest` stays the most\nrecently created document's value. Ordered by anything but\n`created_at`, a write to the ordered field can move a document into\nor out of the selection. The relation reads up to 1,000 documents\nper judged document to sort them; the create response's warnings\nname the factor. On a named list it sorts the documents the list\nnames in place of list order, `created_at` included. Refused on a\nblocking relation and on one that reads a single referenced\ndocument.\n","additionalProperties":false,"required":["by"],"properties":{"by":{"type":"string","description":"`created_at`, `updated_at`, a `state.\u003cpath>` or an `attributes.\u003cname>`.","pattern":"^(created_at|updated_at|state(\\.[^.]+)+|attributes\\.[A-Za-z0-9_-]+)$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.order.by","typeLabel":"string"},"desc":{"type":"boolean","default":true,"description":"Largest first within each type.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.order.desc","typeLabel":"boolean"}},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.order","typeLabel":"object"},"relative":{"type":"string","enum":["before","after"],"description":"On a blocking relation, which side of the judged document it\nreads: the `last_n` documents of the block created nearest\nbefore it (`before`) or after it (`after`), never the judged\ndocument itself, in creation order, oldest first. Creation order\nis `created_at`, ties by `id`: the `created_at` a write supplied\nwhen it created the document, or the time of that write. What a\njudged document reads never moves when the block grows at the\nother end, so a document judged again later reads the same\ndocuments unless one of them was created, deleted, re-keyed or\nchanged. Such a change re-judges only the judged documents whose\n`last_n` it is or was in, at most `last_n` of them on the side\nthat reads it; a new document after every other one re-judges\nnothing in a `before` relation. Over the token limit the\nfarthest documents are dropped first (the oldest of a `before`\nrun, the newest of an `after` run); aggregates cover every\ndocument read. Refused with `window` and `order`.\n","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.relative","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties","typeLabel":"object"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related","typeLabel":"object"},"previous":{"type":"object","description":"The judged document as the judgment's last successful evaluation saw it, rendered as `previous.\u003cpath>` entries\nafter `fields`, so a question can ask what changed. When a revision\nrenders the same as the stored current, as a nightly re-upsert of\nthe same record does, the context is the one the last verdict saw\nand costs nothing. A document with no stored rendering in its\nincarnation renders nothing under `previous`, and its evaluation\nsays `first_revision: true`. Truncation cuts `previous` before\n`fields`, after any images, which go first.\n","additionalProperties":false,"required":["fields"],"properties":{"fields":{"type":"array","description":"The document's own paths to render as they were, in order, each verbatim or cut to `max_chars`.","minItems":1,"items":{"oneOf":[{"type":"string","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","pattern":"^((state|attributes)(\\.[^.]+)+|images\\.[A-Za-z0-9_-]{1,128})$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous.fields.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"object","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","required":["path","max_chars"],"properties":{"path":{"type":"string","description":"In a recipe's or `previous`'s `fields`, a `state` or `attributes` path; in a relation's `fields`, any path a `RelationField` names.","pattern":"^((state|attributes)(\\.[^.]+)+|id|created_at|updated_at|answers\\.[A-Za-z0-9_-]+\\.(value|thresholds\\.[A-Za-z0-9_-]+))$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous.fields.items.[INDEX].oneOf.1.path","typeLabel":"string"},"max_chars":{"type":"integer","minimum":1,"maximum":4294967295,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous.fields.items.[INDEX].oneOf.1.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous.fields.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous.fields.items.[INDEX]","typeLabel":"string | object"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous.fields","typeLabel":"(string | object)[]"},"anchor":{"type":"string","description":"An attribute such as `attributes.approved_at`. The stored previous moves on only when this attribute's value changes, so every edit is compared with the revision last approved, however many rejected edits come between.","pattern":"^attributes\\.[A-Za-z0-9_-]+$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous.anchor","typeLabel":"string"}},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe","typeLabel":"object"},"cost_per_answer":{"oneOf":[{"type":"number","minimum":0,"description":"Mean units per answer, in the unit used before rows kept (two rows each), counted by size class at the engine's multiple as the bill counts them, over the sample with this recipe and the definition's question. The suggested `max_tokens` is at most 2,000, the standard ceiling, less the question's tokens, so a context that fills it stays standard with its question.","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.cost_per_answer.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"description":"Mean units per answer, in the unit used before rows kept (two rows each), counted by size class at the engine's multiple as the bill counts them, over the sample with this recipe and the definition's question. The suggested `max_tokens` is at most 2,000, the standard ceiling, less the question's tokens, so a context that fills it stays standard with its question.","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.cost_per_answer.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.cost_per_answer","typeLabel":"number | null"},"whole_state_cost_per_answer":{"oneOf":[{"type":"number","minimum":0,"description":"The same with the whole `state`.","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.whole_state_cost_per_answer.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"description":"The same with the whole `state`.","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.whole_state_cost_per_answer.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.whole_state_cost_per_answer","typeLabel":"number | null"},"sampled_documents":{"type":"integer","minimum":1,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.sampled_documents","typeLabel":"integer"},"excluded":{"type":"array","description":"Each path left out, and why, so you can put back what the question needs.","items":{"type":"object","required":["path","reason"],"properties":{"path":{"type":"string","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.excluded.items.[INDEX].path","typeLabel":"string"},"reason":{"type":"string","enum":["id","timestamp","url","binary","image","long","rare","too_many"],"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.excluded.items.[INDEX].reason","typeLabel":"enum\u003cstring>"}},"uniqueKey":"error.details.suggested_context.oneOf.0.excluded.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.excluded","typeLabel":"object[]"}},"uniqueKey":"error.details.suggested_context.oneOf.0","typeLabel":"object"},{"type":"null","description":"On a create without a context recipe, the recipe suggested from the namespace's documents, or null when there are none.","uniqueKey":"error.details.suggested_context.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.details.suggested_context","typeLabel":"object | null"}},"uniqueKey":"error.details","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"invalid_request","message":"\u003cstring>","details":{"reason":"\u003cstring>","suggested_context":{"recipe":{"fields":["\u003cstring>"],"last_n":{},"window":{},"max_tokens":2,"related":{},"previous":{"fields":["\u003cstring>"],"anchor":"\u003cstring>"}},"cost_per_answer":1,"whole_state_cost_per_answer":1,"sampled_documents":2,"excluded":[{"path":"\u003cstring>","reason":"id"}]}}}}}},"exampleType":"generated"}},"exampleType":"generated"},"1c9bbde4-4b3e-4480-a416-26229c56668c":{"description":"`internal`: something failed on our side. Nothing partial is returned, and a request never commits part of itself. Most `internal` errors committed nothing. A write can instead fail with a message saying it may have been committed, when we could not tell whether its batch landed: it then committed all of it or none of it. Retrying a write is safe either way, because writes are idempotent. The message is generic and carries a request id, also in `details.request_id`, which support uses to find the cause.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"HTTP status by code: `invalid_request` 400, `unauthorized` 401,\n`invalid_image` 400, `unknown_image` 400, `image_erased` 410,\n`budget_exceeded` 402, `plan_required` 402, `forbidden` 403,\n`claim_required` 403, `sign_up_closed` 403, `not_found` 404, `conflict` 409,\n`too_large` 413, `engine_version_unavailable` 422,\n`insufficient_labels` 422, `idempotency_key_reused` 422,\n`rate_limited` 429, `internal` 500,\n`engine_unavailable` 503, `unavailable` 503.\n\nAny route can also answer `unavailable`, with `Retry-After`, when it\ndid not finish within 35 s: it was stopped, and a retry runs it\nagain. Creating a judgment version, a judgment's `PATCH` and a\nbackfill's start answer within 20 s, with a job (`202`) when they\nneed longer, and never begin their change after 25 s. So when one of\nthem is answered `unavailable` this way, nothing changed and the\nretry makes the change once.\n","enum":["invalid_request","invalid_image","unknown_image","image_erased","unauthorized","forbidden","claim_required","sign_up_closed","not_found","conflict","too_large","rate_limited","budget_exceeded","plan_required","engine_unavailable","engine_version_unavailable","unavailable","insufficient_labels","idempotency_key_reused","internal"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"object","description":"Code-specific detail, such as the scan estimate on a refused query. Every `internal` error has `request_id`.","properties":{"reason":{"type":"string","description":"Why, where one code has more than one cause. On the events\nfeed's `invalid_request`, `cursor_expired`.\n","uniqueKey":"error.details.reason","typeLabel":"string"},"suggested_context":{"oneOf":[{"type":"object","description":"On a create without a context recipe, the recipe suggested from the namespace's documents, or null when there are none.","required":["recipe","cost_per_answer","whole_state_cost_per_answer","sampled_documents","excluded"],"properties":{"recipe":{"type":"object","description":"What the engine sees. A create without it is refused with a suggested\nrecipe, unless `use_context` asks for the suggestion or the whole\n`state`; a version with no recipe sends the whole\n`state`, subject to the engine limit, and no images.\n","additionalProperties":false,"properties":{"fields":{"type":"array","description":"Paths included in order, each verbatim or, as a `ClippedPath`, cut to its first `max_chars` characters. A path is `state.\u003cpath>`, `attributes.\u003cname>`, or an image path, `images.\u003cname>`, which reads that name's image or whole list; an image path takes no `max_chars`. An engine that reads images (its `limits.images` in `GET /engines`) reads each, counted by its tiles; an engine that reads none gets each as an `OmittedImage` with `engine_reads_no_images`, and the create warns. Images are written to documents, never sent with the judgment.\n","items":{"oneOf":[{"type":"string","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","pattern":"^((state|attributes)(\\.[^.]+)+|images\\.[A-Za-z0-9_-]{1,128})$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.fields.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"object","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","required":["path","max_chars"],"properties":{"path":{"type":"string","description":"In a recipe's or `previous`'s `fields`, a `state` or `attributes` path; in a relation's `fields`, any path a `RelationField` names.","pattern":"^((state|attributes)(\\.[^.]+)+|id|created_at|updated_at|answers\\.[A-Za-z0-9_-]+\\.(value|thresholds\\.[A-Za-z0-9_-]+))$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.fields.items.[INDEX].oneOf.1.path","typeLabel":"string"},"max_chars":{"type":"integer","minimum":1,"maximum":4294967295,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.fields.items.[INDEX].oneOf.1.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.fields.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.fields.items.[INDEX]","typeLabel":"string | object"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.fields","typeLabel":"(string | object)[]"},"last_n":{"type":"object","description":"Per array path in `state` or `attributes`, keep the last n elements. Not an image path.","additionalProperties":{"type":"integer","minimum":1,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.last_n.additionalProperties","typeLabel":"integer"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.last_n","typeLabel":"object"},"window":{"type":"object","description":"Per array path whose elements have a timestamp field `at`, keep elements within the window.","additionalProperties":{"type":"string","description":"A whole number and a unit (`s`, `m`, `h` or `d`), such as `7d` or `1h`.","pattern":"^[1-9][0-9]*[smhd]$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.window.additionalProperties","typeLabel":"string"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.window","typeLabel":"object"},"max_tokens":{"type":"integer","minimum":1,"description":"Hard cap, in the judgment's engine's tokens. Over it, whole images are left out first (on an engine that reads them; those of relations, then `previous`, then fields, the last first; every image when the text alone is over), then relation records, then `previous` entries, then the end of the last field is cut.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.max_tokens","typeLabel":"integer"},"related":{"type":"object","description":"Up to 4 relations, by name: documents in the same namespace that point at the judged one, or the one document it points at. Each renders as a `related.\u003cname>`\nentry after `fields`, and a write that changes what it renders\nmakes the judged document's answer `pending` until it is judged\nagain (for a referenced document, only inside the re-judge scope;\noutside it, the answer is `stale` with `stale_reason`\n`referenced_changed`).\n","minProperties":1,"maxProperties":4,"propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"type":"object","description":"Documents that point at the judged document.\nThey are ordered newest `created_at` first unless `order` says\notherwise: `window` keeps those created within the window, the order\nis applied, then `last_n` keeps the first n. At least one of `last_n`\nand `window` is required, and at least one of `fields` and\n`aggregate`. A relation reads at most the newest 1,000 documents,\nand an `order` sorts within them.\n\nWith `join: {theirs: \"id\", mine: \"attributes.\u003cname>\"}`\nthe relation reads the one document the judged document points at,\nits referenced document, and takes no `window`. With `last_n` (up to\n254) it is a named list instead: the attribute holds an array of\nids, and the relation reads the documents it names in list order\nunless `order` says otherwise, each once, at most `last_n` of them. An id that names nothing, or a\ndocument outside `match`, renders nothing and is listed in the\nevaluation's `related_documents` as `unresolved`. An attribute a\nnamed list reads holds at most 254 distinct ids.\n\nWith `join: {theirs: \"attributes.\u003ckey>\", mine:\n\"attributes.\u003ckey>\"}` it is a blocking relation over the documents\nthat share the judged document's key value. It needs `window`\nunless it sets `relative`, takes\n`last_n` up to 254 (up to the `options.from` candidate limit when a\n`choice` chooses among it with\n`options.from`), and a change to its block re-judges the block's\njudged documents. With `relative`, each judged document reads the\n`last_n` documents of its block created just before it (or just\nafter it), in creation order, and a change re-judges only the\njudged documents whose documents it moved. `fields`, `aggregate` and `match` may read other\njudgments' answers (`answers.\u003cj>.\u003cfield>`), banded or cut, and the\nnewest outcome posted for each related document\n(`outcomes.\u003cj>.value`), shown as posted: the one with the latest\n`observed_at`, of two at the same time the one posted last, about\nthe document's current life and of the judgment's current answer\ntype. Posting one re-judges the judgments that read it, within their\n`rolling_limit`. A relation reads at most 4 judgments' answers or\noutcomes.\n","required":["match","join"],"conditionallyRequiredProperties":{"aggregate":[{}],"last_n":[{},{}],"window":[{},{}]},"properties":{"match":{"type":"object","description":"Which documents the relation reads.","minProperties":1,"maxProperties":8,"propertyNames":{"type":"string","pattern":"^(attributes\\.[A-Za-z0-9_-]+|answers\\.[A-Za-z0-9_-]+\\.(value|p|score|thresholds\\.[A-Za-z0-9_-]+)|outcomes\\.[A-Za-z0-9_-]+\\.value)$"},"additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.2","typeLabel":"boolean"},{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.3.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.3.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.3.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.3.items.[INDEX]","typeLabel":"string | number | boolean"},"minItems":1,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.3","typeLabel":"(string | number | boolean)[]"},{"type":"object","description":"An inline cut on an answer's `p` or `score`, exactly as stable as a named threshold. One bound.","maxProperties":1,"minProperties":1,"properties":{"gte":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.4.gte","typeLabel":"number"},"gt":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.4.gt","typeLabel":"number"},"lte":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.4.lte","typeLabel":"number"},"lt":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.4.lt","typeLabel":"number"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.4","typeLabel":"object"},{"type":"object","description":"Selects documents that have an outcome a relation reads, on an `outcomes.\u003cj>.value` key of `match`.","required":["exists"],"properties":{"exists":{"const":true,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.5.exists","typeLabel":"any"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.5","typeLabel":"object"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties","typeLabel":"string · number · boolean · (string | number | boolean)[] · object · object"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match","typeLabel":"object"},"join":{"oneOf":[{"type":"object","description":"How a related document is matched to the judged one: one side is\n`id` and the other an attribute holding an id, or both sides the same attribute, a shared key, or one side\n`id` and the other a matching judgment's pick (a judged link). Two different\nattributes are `invalid_request`.\n","required":["theirs","mine"],"properties":{"theirs":{"type":"string","description":"The related document's attribute that holds the judged document's id, such as `attributes.parent_id`.","pattern":"^attributes\\.[A-Za-z0-9_-]+$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.0.theirs","typeLabel":"string"},"mine":{"const":"id","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.0.mine","typeLabel":"any"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.0","typeLabel":"object"},{"type":"object","description":"How a related document is matched to the judged one: one side is\n`id` and the other an attribute holding an id, or both sides the same attribute, a shared key, or one side\n`id` and the other a matching judgment's pick (a judged link). Two different\nattributes are `invalid_request`.\n","required":["theirs","mine"],"properties":{"theirs":{"const":"id","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.1.theirs","typeLabel":"any"},"mine":{"type":"string","description":"The judged document's attribute that holds the referenced document's id, such as `attributes.group_id`.","pattern":"^attributes\\.[A-Za-z0-9_-]+$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.1.mine","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.1","typeLabel":"object"},{"type":"object","description":"How a related document is matched to the judged one: one side is\n`id` and the other an attribute holding an id, or both sides the same attribute, a shared key, or one side\n`id` and the other a matching judgment's pick (a judged link). Two different\nattributes are `invalid_request`.\n","required":["theirs","mine"],"properties":{"theirs":{"type":"string","description":"The key attribute, such as `attributes.block`.","pattern":"^attributes\\.[A-Za-z0-9_-]+$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.2.theirs","typeLabel":"string"},"mine":{"type":"string","description":"The same attribute as `theirs`.","pattern":"^attributes\\.[A-Za-z0-9_-]+$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.2.mine","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.2","typeLabel":"object"},{"type":"object","description":"How a related document is matched to the judged one: one side is\n`id` and the other an attribute holding an id, or both sides the same attribute, a shared key, or one side\n`id` and the other a matching judgment's pick (a judged link). Two different\nattributes are `invalid_request`.\n","required":["theirs","mine","when"],"properties":{"theirs":{"type":"string","description":"`answers.\u003cj>.value` of the judgment that picks, which must choose among a blocking relation's candidates, or `id`.","pattern":"^(id|answers\\.[A-Za-z0-9_-]+\\.value)$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.3.theirs","typeLabel":"string"},"mine":{"type":"string","description":"`id`, or `answers.\u003cj>.value` of the judgment that picks; the other side of `theirs`.","pattern":"^(id|answers\\.[A-Za-z0-9_-]+\\.value)$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.3.mine","typeLabel":"string"},"when":{"type":"object","description":"When a judged link holds: while the named threshold of the judgment\nthat picks, a threshold on `none_of_the_above` (its unmatched\nqueue), is `false`. At or above it, the pick is not taken and the\ndocument does not link. Required. Removing that threshold while the\nrelation exists is `conflict`; changing its value re-judges each\njudged document whose links it moves, after the `downstream`\nconfirm.\n","additionalProperties":false,"required":["below"],"properties":{"below":{"type":"string","description":"A judgment, attribute or threshold name. Names are path segments in field references, so they never contain `.`.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.3.when.below","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.3.when","typeLabel":"object"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.3","typeLabel":"object"}],"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join","typeLabel":"object"},"last_n":{"type":"integer","minimum":1,"maximum":1000,"description":"Keep the first n in the relation's order, newest first by default. On a relation that reads a referenced document it makes a named list, keeping the first n documents the list names, in list order unless `order` says otherwise, at most 254; at most 254 on a blocking relation, and at most the `options.from` candidate limit (see Limits) when `options.from` chooses among it.","conditionalRequirements":[{},{}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.last_n","typeLabel":"integer"},"window":{"type":"string","description":"Keep documents created within this long before the later of the judged document's newest write and its newest related creation, at the answer's watermark. An edit to an old related document never moves the window. Not on a relation that reads a referenced document.","pattern":"^[1-9][0-9]*[smhd]$","conditionalRequirements":[{},{}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.window","typeLabel":"string"},"fields":{"type":"array","description":"Paths to include from each document, rendered under `records` in the relation's order. An entry may be a `BandedField`, which renders a number as its band, or a `ClippedPath`, which renders the first `max_chars` characters. An entry may also be a judgment's `answers.\u003cj>.value` and `answers.\u003cj>.thresholds.\u003cname>` as they are, and its `.p`, `.score` and `.dist.\u003coption>` only banded.","minItems":1,"items":{"oneOf":[{"type":"string","description":"A path in a related document, an image path `images.\u003cname>` (its image or list, read like the judged document's own), `id`, `created_at` or `updated_at`; a judgment's `answers.\u003cj>.value` or `answers.\u003cj>.thresholds.\u003cname>`, which render as they are; or the document's newest outcome, `outcomes.\u003cj>.value`, rendered as posted. An answer's `p`, `score` or `dist.\u003coption>` must be a `BandedField`.","pattern":"^((state|attributes)(\\.[^.]+)+|images\\.[A-Za-z0-9_-]{1,128}|id|created_at|updated_at|answers\\.[A-Za-z0-9_-]+\\.(value|thresholds\\.[A-Za-z0-9_-]+)|outcomes\\.[A-Za-z0-9_-]+\\.value)$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"object","description":"A number rendered as its band rather than its value, in any relation. In a relation's `fields`, `max_chars` cuts the rendered label as a `ClippedPath` does; it is refused on an aggregate's `min` or `max`. A number renders as the label whose position\nis how many cut points are at or below it: with `bands: [0.3, 0.7]`,\n0.29 is `labels[0]`, 0.3 is `labels[1]` and 0.7 or more `labels[2]`.\nA value that is not a number renders unchanged, and a missing one is\nleft out. Only a move to another band changes the context, so a move\ninside one neither fans out nor costs an evaluation. `bands` must be\nstrictly increasing and `labels` must have exactly one more entry;\nthe server refuses anything else with `invalid_request`.\n","required":["path","bands","labels"],"properties":{"path":{"type":"string","description":"A `state` or `attributes` path, or a judgment's `answers.\u003cj>.p`, `answers.\u003cj>.score` or `answers.\u003cj>.dist.\u003coption>`.","pattern":"^((state|attributes)(\\.[^.]+)+|answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^.]+))$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1.path","typeLabel":"string"},"bands":{"type":"array","description":"Cut points, strictly increasing.","minItems":1,"maxItems":9,"items":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1.bands.items.[INDEX]","typeLabel":"number"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1.bands","typeLabel":"number[]"},"labels":{"type":"array","description":"One label per band, lowest first, so one more than `bands`.","minItems":2,"maxItems":10,"items":{"type":"string","minLength":1,"maxLength":64,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1.labels.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1.labels","typeLabel":"string[]"},"max_chars":{"type":"integer","minimum":1,"maximum":4294967295,"description":"The label cut to this many characters, after the band. Only in a relation's `fields`.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","description":"A path rendered as its first `max_chars` characters (Unicode code\npoints, not bytes or tokens). A string longer than that is cut to\nit; a value that fits renders unchanged and keeps its type; any\nother longer value renders as its JSON text cut to `max_chars`, a\nstring. An edit past the cut changes nothing the engine reads from\nthe field. It bounds one field; it does not make a context fit. An\nimage is never cut, so an image path takes no `max_chars`.\n","required":["path","max_chars"],"properties":{"path":{"type":"string","description":"In a recipe's or `previous`'s `fields`, a `state` or `attributes` path; in a relation's `fields`, any path a `RelationField` names.","pattern":"^((state|attributes)(\\.[^.]+)+|id|created_at|updated_at|answers\\.[A-Za-z0-9_-]+\\.(value|thresholds\\.[A-Za-z0-9_-]+))$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.2.path","typeLabel":"string"},"max_chars":{"type":"integer","minimum":1,"maximum":4294967295,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.2.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.2","typeLabel":"object"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX]","typeLabel":"string · object · object"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields","typeLabel":"string · object · object[]"},"aggregate":{"type":"object","description":"Numbers over the relation's documents, after `match`, `window` and\n`last_n`, rendered as keys of its `related.\u003cname>` entry, such as\n`count` and `sum(state.amount)`. At most 8 paths in total, answer\npaths included. `sum`, `avg`, `min` and `max` skip values that are\nnot numbers; `sum` of nothing is 0, and `avg`, `min` and `max` of\nnothing are null. `latest` is the value in the newest document that\nhas one, of any JSON type.\n\n`latest` reads the most recently created document whatever the\nrelation's `order`.\n\n`count_where` counts documents by judgments'\nanswers; a `min` or `max` entry may be banded, and one over an\nanswer's `p` or `score` must be, rendering the band of the extreme;\n`latest` may read an answer's `value` or `thresholds.\u003cname>`. `sum`\nand `avg` may read an answer's `p`, `score` or `dist.\u003coption>` only\nas a feature the judgment names: never rendered, since it moves on\nevery child evaluation. A child whose newest answer failed adds its\nlast good value; a child with no answer adds nothing and is outside\nthe average. `count_where` and `latest` may read an outcome;\n`labelled` counts the documents that have one.\n\n`render: false` keeps the aggregates, all but `latest`, out of the\ncontext the engine reads, while features still read them: a change\nthat moves only them then re-judges with no engine call and no\ncharge.\n","additionalProperties":false,"minProperties":1,"properties":{"count":{"const":true,"description":"How many documents the relation selected.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count","typeLabel":"any"},"labelled":{"const":true,"description":"How many selected documents have an outcome the relation reads (`outcomes.\u003cj>.value`). Only on a relation that reads one.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.labelled","typeLabel":"any"},"count_where":{"type":"object","description":"How many selected documents match every key: a\njudgment's `answers.\u003cj>.value` or\n`answers.\u003cj>.thresholds.\u003cname>` by equality (a list is `In`) or\nby `{\"not\": \u003cvalue>}`, or its `.p` or `.score` by an inline cut;\nor a document's newest outcome, `outcomes.\u003cj>.value`, by equality.\nA document with no answer matches no key, `not` included. Rendered\nas `count_where`.\n\nA judgment that chooses among candidates (`options.from`) is\ncounted only by whether its value is `none_of_the_above`:\n`{\"answers.settles.value\": {\"not\": \"none_of_the_above\"}}` counts\nthe payments that settled any invoice, and\n`{\"answers.settles.value\": \"none_of_the_above\"}` those that settled\nnone. Any other condition on it is `invalid_request`.\n","minProperties":1,"maxProperties":8,"propertyNames":{"type":"string","pattern":"^(answers\\.[A-Za-z0-9_-]+\\.(value|p|score|thresholds\\.[A-Za-z0-9_-]+)|outcomes\\.[A-Za-z0-9_-]+\\.value)$"},"additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.2","typeLabel":"boolean"},{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.3.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.3.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.3.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.3.items.[INDEX]","typeLabel":"string | number | boolean"},"minItems":1,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.3","typeLabel":"(string | number | boolean)[]"},{"type":"object","description":"An inline cut on an answer's `p` or `score`, exactly as stable as a named threshold. One bound.","maxProperties":1,"minProperties":1,"properties":{"gte":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.4.gte","typeLabel":"number"},"gt":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.4.gt","typeLabel":"number"},"lte":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.4.lte","typeLabel":"number"},"lt":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.4.lt","typeLabel":"number"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.4","typeLabel":"object"},{"type":"object","description":"In a `count_where`, an answer's `value` or `thresholds.\u003cname>` that is not this value. A document with no answer does not match.","required":["not"],"properties":{"not":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.5.not.oneOf.0","typeLabel":"string"},{"type":"number","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.5.not.oneOf.1","typeLabel":"number"},{"type":"boolean","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.5.not.oneOf.2","typeLabel":"boolean"}],"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.5.not","typeLabel":"string | number | boolean"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.5","typeLabel":"object"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties","typeLabel":"string · number · boolean · (string | number | boolean)[] · object · object"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where","typeLabel":"object"},"sum":{"type":"array","description":"Paths for `sum` or `avg`; also a judgment's `answers.\u003cj>.p`, `.score` or `.dist.\u003coption>`, as a feature only.","minItems":1,"maxItems":8,"uniqueItems":true,"items":{"type":"string","description":"A `state` or `attributes` path, without `(` or `)`, or an answer's number.","pattern":"^((state|attributes)(\\.[^.()]+)+|answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^()]+))$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.sum.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.sum","typeLabel":"string[]"},"avg":{"type":"array","description":"Paths to average, the mean of the numbers there.","minItems":1,"maxItems":8,"uniqueItems":true,"items":{"type":"string","description":"A `state` or `attributes` path, without `(` or `)`, or an answer's number.","pattern":"^((state|attributes)(\\.[^.()]+)+|answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^()]+))$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.avg.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.avg","typeLabel":"string[]"},"min":{"type":"array","description":"Paths for `min` or `max`; an entry may be banded, which an answer's `p` or `score` must be. `created_at` and `updated_at` give the oldest or newest time, as RFC 3339, which an `age(...)` feature reads; they are not banded.","minItems":1,"maxItems":8,"items":{"oneOf":[{"type":"string","description":"A `state` or `attributes` path, or `created_at` or `updated_at`. Keys in it cannot contain `(` or `)`.","pattern":"^((state|attributes)(\\.[^.()]+)+|created_at|updated_at)$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"object","description":"A number rendered as its band rather than its value, in any relation. In a relation's `fields`, `max_chars` cuts the rendered label as a `ClippedPath` does; it is refused on an aggregate's `min` or `max`. A number renders as the label whose position\nis how many cut points are at or below it: with `bands: [0.3, 0.7]`,\n0.29 is `labels[0]`, 0.3 is `labels[1]` and 0.7 or more `labels[2]`.\nA value that is not a number renders unchanged, and a missing one is\nleft out. Only a move to another band changes the context, so a move\ninside one neither fans out nor costs an evaluation. `bands` must be\nstrictly increasing and `labels` must have exactly one more entry;\nthe server refuses anything else with `invalid_request`.\n","required":["path","bands","labels"],"properties":{"path":{"type":"string","description":"A `state` or `attributes` path, or a judgment's `answers.\u003cj>.p`, `answers.\u003cj>.score` or `answers.\u003cj>.dist.\u003coption>`.","pattern":"^((state|attributes)(\\.[^.]+)+|answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^.]+))$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1.path","typeLabel":"string"},"bands":{"type":"array","description":"Cut points, strictly increasing.","minItems":1,"maxItems":9,"items":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1.bands.items.[INDEX]","typeLabel":"number"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1.bands","typeLabel":"number[]"},"labels":{"type":"array","description":"One label per band, lowest first, so one more than `bands`.","minItems":2,"maxItems":10,"items":{"type":"string","minLength":1,"maxLength":64,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1.labels.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1.labels","typeLabel":"string[]"},"max_chars":{"type":"integer","minimum":1,"maximum":4294967295,"description":"The label cut to this many characters, after the band. Only in a relation's `fields`.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX]","typeLabel":"string | object"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min","typeLabel":"(string | object)[]"},"max":{"type":"array","description":"Paths for `min` or `max`; an entry may be banded, which an answer's `p` or `score` must be. `created_at` and `updated_at` give the oldest or newest time, as RFC 3339, which an `age(...)` feature reads; they are not banded.","minItems":1,"maxItems":8,"items":{"oneOf":[{"type":"string","description":"A `state` or `attributes` path, or `created_at` or `updated_at`. Keys in it cannot contain `(` or `)`.","pattern":"^((state|attributes)(\\.[^.()]+)+|created_at|updated_at)$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"object","description":"A number rendered as its band rather than its value, in any relation. In a relation's `fields`, `max_chars` cuts the rendered label as a `ClippedPath` does; it is refused on an aggregate's `min` or `max`. A number renders as the label whose position\nis how many cut points are at or below it: with `bands: [0.3, 0.7]`,\n0.29 is `labels[0]`, 0.3 is `labels[1]` and 0.7 or more `labels[2]`.\nA value that is not a number renders unchanged, and a missing one is\nleft out. Only a move to another band changes the context, so a move\ninside one neither fans out nor costs an evaluation. `bands` must be\nstrictly increasing and `labels` must have exactly one more entry;\nthe server refuses anything else with `invalid_request`.\n","required":["path","bands","labels"],"properties":{"path":{"type":"string","description":"A `state` or `attributes` path, or a judgment's `answers.\u003cj>.p`, `answers.\u003cj>.score` or `answers.\u003cj>.dist.\u003coption>`.","pattern":"^((state|attributes)(\\.[^.]+)+|answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^.]+))$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1.path","typeLabel":"string"},"bands":{"type":"array","description":"Cut points, strictly increasing.","minItems":1,"maxItems":9,"items":{"type":"number","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1.bands.items.[INDEX]","typeLabel":"number"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1.bands","typeLabel":"number[]"},"labels":{"type":"array","description":"One label per band, lowest first, so one more than `bands`.","minItems":2,"maxItems":10,"items":{"type":"string","minLength":1,"maxLength":64,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1.labels.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1.labels","typeLabel":"string[]"},"max_chars":{"type":"integer","minimum":1,"maximum":4294967295,"description":"The label cut to this many characters, after the band. Only in a relation's `fields`.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX]","typeLabel":"string | object"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max","typeLabel":"(string | object)[]"},"latest":{"type":"array","description":"Paths for `latest`; also `created_at` or `updated_at`, the newest document's time as RFC 3339, an image path `images.\u003cname>`, which renders the newest document's image or list, a judgment's `answers.\u003cj>.value` or `answers.\u003cj>.thresholds.\u003cname>`, or a document's newest outcome, `outcomes.\u003cj>.value`.","minItems":1,"maxItems":8,"uniqueItems":true,"items":{"type":"string","description":"A `state` or `attributes` path, `created_at` or `updated_at`, an image path, an answer's `value` or `thresholds.\u003cname>`, or an outcome's `value`. Keys in it cannot contain `(` or `)`.","pattern":"^((state|attributes)(\\.[^.()]+)+|created_at|updated_at|images\\.[A-Za-z0-9_-]{1,128}|answers\\.[A-Za-z0-9_-]+\\.(value|thresholds\\.[A-Za-z0-9_-]+)|outcomes\\.[A-Za-z0-9_-]+\\.value)$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.latest.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.latest","typeLabel":"string[]"},"render":{"type":"boolean","default":true,"description":"Whether the aggregates, all but `latest`, are in the context the engine reads. Part of the version.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.render","typeLabel":"boolean"}},"conditionalRequirements":[{}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate","typeLabel":"object"},"order":{"type":"object","description":"Which of a relation's documents come first, and so which `last_n`\nkeeps. The newest 1,000 documents in `window` are sorted, never more:\na document outside them is not selected whatever its value, and the\nrelation's entry renders `range_full: true` when more matched.\nValues sort by type first, numbers, then strings, then booleans,\nthen missing values and anything else; `desc` reverses the order\nwithin each type, never the types. Numbers compare by value (whole\nnumbers exactly), strings by Unicode code point, and `false` comes\nbefore `true`. Ties go to the most recently created, then the lower\n`id`. `records` render in this order and, over the token limit, the\nones that sort last are dropped first; `latest` stays the most\nrecently created document's value. Ordered by anything but\n`created_at`, a write to the ordered field can move a document into\nor out of the selection. The relation reads up to 1,000 documents\nper judged document to sort them; the create response's warnings\nname the factor. On a named list it sorts the documents the list\nnames in place of list order, `created_at` included. Refused on a\nblocking relation and on one that reads a single referenced\ndocument.\n","additionalProperties":false,"required":["by"],"properties":{"by":{"type":"string","description":"`created_at`, `updated_at`, a `state.\u003cpath>` or an `attributes.\u003cname>`.","pattern":"^(created_at|updated_at|state(\\.[^.]+)+|attributes\\.[A-Za-z0-9_-]+)$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.order.by","typeLabel":"string"},"desc":{"type":"boolean","default":true,"description":"Largest first within each type.","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.order.desc","typeLabel":"boolean"}},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.order","typeLabel":"object"},"relative":{"type":"string","enum":["before","after"],"description":"On a blocking relation, which side of the judged document it\nreads: the `last_n` documents of the block created nearest\nbefore it (`before`) or after it (`after`), never the judged\ndocument itself, in creation order, oldest first. Creation order\nis `created_at`, ties by `id`: the `created_at` a write supplied\nwhen it created the document, or the time of that write. What a\njudged document reads never moves when the block grows at the\nother end, so a document judged again later reads the same\ndocuments unless one of them was created, deleted, re-keyed or\nchanged. Such a change re-judges only the judged documents whose\n`last_n` it is or was in, at most `last_n` of them on the side\nthat reads it; a new document after every other one re-judges\nnothing in a `before` relation. Over the token limit the\nfarthest documents are dropped first (the oldest of a `before`\nrun, the newest of an `after` run); aggregates cover every\ndocument read. Refused with `window` and `order`.\n","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.relative","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related.additionalProperties","typeLabel":"object"},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.related","typeLabel":"object"},"previous":{"type":"object","description":"The judged document as the judgment's last successful evaluation saw it, rendered as `previous.\u003cpath>` entries\nafter `fields`, so a question can ask what changed. When a revision\nrenders the same as the stored current, as a nightly re-upsert of\nthe same record does, the context is the one the last verdict saw\nand costs nothing. A document with no stored rendering in its\nincarnation renders nothing under `previous`, and its evaluation\nsays `first_revision: true`. Truncation cuts `previous` before\n`fields`, after any images, which go first.\n","additionalProperties":false,"required":["fields"],"properties":{"fields":{"type":"array","description":"The document's own paths to render as they were, in order, each verbatim or cut to `max_chars`.","minItems":1,"items":{"oneOf":[{"type":"string","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","pattern":"^((state|attributes)(\\.[^.]+)+|images\\.[A-Za-z0-9_-]{1,128})$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous.fields.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"object","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","required":["path","max_chars"],"properties":{"path":{"type":"string","description":"In a recipe's or `previous`'s `fields`, a `state` or `attributes` path; in a relation's `fields`, any path a `RelationField` names.","pattern":"^((state|attributes)(\\.[^.]+)+|id|created_at|updated_at|answers\\.[A-Za-z0-9_-]+\\.(value|thresholds\\.[A-Za-z0-9_-]+))$","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous.fields.items.[INDEX].oneOf.1.path","typeLabel":"string"},"max_chars":{"type":"integer","minimum":1,"maximum":4294967295,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous.fields.items.[INDEX].oneOf.1.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous.fields.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous.fields.items.[INDEX]","typeLabel":"string | object"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous.fields","typeLabel":"(string | object)[]"},"anchor":{"type":"string","description":"An attribute such as `attributes.approved_at`. The stored previous moves on only when this attribute's value changes, so every edit is compared with the revision last approved, however many rejected edits come between.","pattern":"^attributes\\.[A-Za-z0-9_-]+$","uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous.anchor","typeLabel":"string"}},"uniqueKey":"error.details.suggested_context.oneOf.0.recipe.previous","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.recipe","typeLabel":"object"},"cost_per_answer":{"oneOf":[{"type":"number","minimum":0,"description":"Mean units per answer, in the unit used before rows kept (two rows each), counted by size class at the engine's multiple as the bill counts them, over the sample with this recipe and the definition's question. The suggested `max_tokens` is at most 2,000, the standard ceiling, less the question's tokens, so a context that fills it stays standard with its question.","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.cost_per_answer.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"description":"Mean units per answer, in the unit used before rows kept (two rows each), counted by size class at the engine's multiple as the bill counts them, over the sample with this recipe and the definition's question. The suggested `max_tokens` is at most 2,000, the standard ceiling, less the question's tokens, so a context that fills it stays standard with its question.","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.cost_per_answer.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.cost_per_answer","typeLabel":"number | null"},"whole_state_cost_per_answer":{"oneOf":[{"type":"number","minimum":0,"description":"The same with the whole `state`.","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.whole_state_cost_per_answer.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"description":"The same with the whole `state`.","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.whole_state_cost_per_answer.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.whole_state_cost_per_answer","typeLabel":"number | null"},"sampled_documents":{"type":"integer","minimum":1,"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.sampled_documents","typeLabel":"integer"},"excluded":{"type":"array","description":"Each path left out, and why, so you can put back what the question needs.","items":{"type":"object","required":["path","reason"],"properties":{"path":{"type":"string","isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.excluded.items.[INDEX].path","typeLabel":"string"},"reason":{"type":"string","enum":["id","timestamp","url","binary","image","long","rare","too_many"],"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.excluded.items.[INDEX].reason","typeLabel":"enum\u003cstring>"}},"uniqueKey":"error.details.suggested_context.oneOf.0.excluded.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"error.details.suggested_context.oneOf.0.excluded","typeLabel":"object[]"}},"uniqueKey":"error.details.suggested_context.oneOf.0","typeLabel":"object"},{"type":"null","description":"On a create without a context recipe, the recipe suggested from the namespace's documents, or null when there are none.","uniqueKey":"error.details.suggested_context.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.details.suggested_context","typeLabel":"object | null"}},"uniqueKey":"error.details","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"invalid_request","message":"\u003cstring>","details":{"reason":"\u003cstring>","suggested_context":{"recipe":{"fields":["\u003cstring>"],"last_n":{},"window":{},"max_tokens":2,"related":{},"previous":{"fields":["\u003cstring>"],"anchor":"\u003cstring>"}},"cost_per_answer":1,"whole_state_cost_per_answer":1,"sampled_documents":2,"excluded":[{"path":"\u003cstring>","reason":"id"}]}}}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"9a45876d-f7ff-4272-8441-a152e9393dc5":{"apiKey":{"type":"http","scheme":"bearer","description":"An organization API key. Keys carry a role (`read_write` or\n`read_only`) and may be restricted to a namespace prefix such as\n`acme/*`, or to one namespace such as `acme/prod/tenant_1`. A prefix\nmatches on a `/` boundary: `acme/prod/tenant_1*` covers\n`acme/prod/tenant_1` and everything under `acme/prod/tenant_1/`,\nnever `acme/prod/tenant_12`.\n","scopes":[],"schemeName":"apiKey"}}},"servers":{"9c6bc63c-4afb-4d5f-9398-d37c095e94a5":{"url":"https://api.brussle.com/v1"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"An organization API key. Keys carry a role (`read_write` or\n`read_only`) and may be restricted to a namespace prefix such as\n`acme/*`, or to one namespace such as `acme/prod/tenant_1`. A prefix\nmatches on a `/` boundary: `acme/prod/tenant_1*` covers\n`acme/prod/tenant_1` and everything under `acme/prod/tenant_1/`,\nnever `acme/prod/tenant_12`.\n","scopes":[],"schemeName":"apiKey"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"An organization API key. Keys carry a role (`read_write` or\n`read_only`) and may be restricted to a namespace prefix such as\n`acme/*`, or to one namespace such as `acme/prod/tenant_1`. A prefix\nmatches on a `/` boundary: `acme/prod/tenant_1*` covers\n`acme/prod/tenant_1` and everything under `acme/prod/tenant_1/`,\nnever `acme/prod/tenant_12`.\n","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"apiKey","name":"Authorization"}],"title":"apiKey"}]},"originalFileLocation":"api-reference/openapi.yaml"},"subdomain":"altquid","siteName":"Brussle","title":"Get namespace metadata, counts and budget - Brussle","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-22T03:26:13.122Z","originalFileLocation":"api-reference/namespaces/get-namespace-metadata-counts-and-budget.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"Brussle\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/altquid/atdMLGzhzAm9MJtQ/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/altquid/atdMLGzhzAm9MJtQ/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/altquid/atdMLGzhzAm9MJtQ/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/altquid/atdMLGzhzAm9MJtQ/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/altquid/atdMLGzhzAm9MJtQ/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/altquid/atdMLGzhzAm9MJtQ/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/altquid/atdMLGzhzAm9MJtQ/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/altquid/atdMLGzhzAm9MJtQ/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/altquid/atdMLGzhzAm9MJtQ/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Get namespace metadata, counts and budget - Brussle\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Brussle\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.brussle.com/api-reference/namespaces/get-namespace-metadata-counts-and-budget\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://altquid.mintlify.site/_mintlify/api/og/v2?division=Namespaces\u0026amp;title=Get+namespace+metadata%2C+counts+and+budget\u0026amp;theme=509d0c020f182003776567c8\u0026amp;signature=73dd963fb34c5767778e8421b693a3db9787c57bc43d352fe2b70de772d778a7\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Get namespace metadata, counts and budget - Brussle\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://altquid.mintlify.site/_mintlify/api/og/v2?division=Namespaces\u0026amp;title=Get+namespace+metadata%2C+counts+and+budget\u0026amp;theme=509d0c020f182003776567c8\u0026amp;signature=73dd963fb34c5767778e8421b693a3db9787c57bc43d352fe2b70de772d778a7\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/altquid/atdMLGzhzAm9MJtQ/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Brussle\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1E3A8A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.brussle.com/api-reference/namespaces/get-namespace-metadata-counts-and-budget\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/namespaces/get-namespace-metadata-counts-and-budget.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.brussle.com/#organization\",\"name\":\"Brussle\",\"url\":\"https://docs.brussle.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/altquid/fPQBQfVuwEjh5nfW/logo/wordmark-ink.svg?fit=max\u0026auto=format\u0026n=fPQBQfVuwEjh5nfW\u0026q=85\u0026s=af1814f7069f6b8f396ec15277f21582\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.brussle.com#website\",\"name\":\"Brussle\",\"url\":\"https://docs.brussle.com\",\"publisher\":{\"@id\":\"https://docs.brussle.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.brussle.com/api-reference/namespaces/get-namespace-metadata-counts-and-budget#webpage\",\"url\":\"https://docs.brussle.com/api-reference/namespaces/get-namespace-metadata-counts-and-budget\",\"name\":\"Get namespace metadata, counts and budget\",\"dateModified\":\"2026-10-22T03:26:13.122Z\",\"isPartOf\":{\"@id\":\"https://docs.brussle.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.brussle.com/api-reference/namespaces/get-namespace-metadata-counts-and-budget#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.brussle.com/api-reference/namespaces/get-namespace-metadata-counts-and-budget#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Namespaces\",\"item\":\"https://docs.brussle.com/api-reference/namespaces/list-namespaces\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Get namespace metadata, counts and budget\",\"item\":\"https://docs.brussle.com/api-reference/namespaces/get-namespace-metadata-counts-and-budget\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.brussle.com/api-reference/namespaces/get-namespace-metadata-counts-and-budget#apireference\",\"headline\":\"Get namespace metadata, counts and budget\",\"name\":\"Get namespace metadata, counts and budget\",\"url\":\"https://docs.brussle.com/api-reference/namespaces/get-namespace-metadata-counts-and-budget\",\"mainEntityOfPage\":{\"@id\":\"https://docs.brussle.com/api-reference/namespaces/get-namespace-metadata-counts-and-budget#webpage\"},\"dateModified\":\"2026-10-22T03:26:13.122Z\",\"publisher\":{\"@id\":\"https://docs.brussle.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.brussle.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Brussle\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Brussle\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/namespaces/get-namespace-metadata-counts-and-budget.md","siteName":"Brussle","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"API reference","groups":[{"group":"Namespaces","pages":[{"title":"List namespaces","description":null,"deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /namespaces","href":"/api-reference/namespaces/list-namespaces"},{"title":"Get namespace metadata, counts and budget","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /namespaces/{ns}","href":"/api-reference/namespaces/get-namespace-metadata-counts-and-budget"},{"title":"Delete the namespace and everything in it","description":"Deletes the namespace at once: when it returns, nothing of it is\nreadable, and a write to the same name creates a new, empty namespace. Starts a `namespace_delete` job that removes the deleted namespace's data from storage within 24 h, and cancels the\nnamespace's other open jobs, with `error` \"the namespace was deleted\".\n","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /namespaces/{ns}","href":"/api-reference/namespaces/delete-the-namespace-and-everything-in-it"},{"title":"Change budget, pinning and default engine","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml patch /namespaces/{ns}","href":"/api-reference/namespaces/change-budget-pinning-and-default-engine"},{"title":"Warm the namespace's caches","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /namespaces/{ns}/warm","href":"/api-reference/namespaces/warm-the-namespaces-caches"}]},{"group":"Documents","pages":[{"title":"Write documents (upsert, patch, append, delete)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /namespaces/{ns}","href":"/api-reference/documents/write-documents-upsert-patch-append-delete"},{"title":"Get a document, its answers and optional history","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /namespaces/{ns}/documents/{id}","href":"/api-reference/documents/get-a-document-its-answers-and-optional-history"},{"title":"Get an image that documents name","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /namespaces/{ns}/images/{digest}","href":"/api-reference/documents/get-an-image-that-documents-name"},{"title":"Erase an image","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /namespaces/{ns}/images/{digest}","href":"/api-reference/documents/erase-an-image"},{"title":"Get one evaluation record","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /namespaces/{ns}/evaluations/{id}","href":"/api-reference/documents/get-one-evaluation-record"},{"title":"Export evaluation history","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /namespaces/{ns}/evaluations/exports","href":"/api-reference/documents/export-evaluation-history"},{"title":"Filter, rank and page documents","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /namespaces/{ns}/query","href":"/api-reference/documents/filter-rank-and-page-documents"}]},{"group":"Judgments","pages":[{"title":"List active judgments","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /namespaces/{ns}/judgments","href":"/api-reference/judgments/list-active-judgments"},{"title":"Create a judgment, or a new version of an existing name","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /namespaces/{ns}/judgments","href":"/api-reference/judgments/create-a-judgment-or-a-new-version-of-an-existing-name"},{"title":"Get all versions, the active version and thresholds","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /namespaces/{ns}/judgments/{name}","href":"/api-reference/judgments/get-all-versions-the-active-version-and-thresholds"},{"title":"Deactivate a judgment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /namespaces/{ns}/judgments/{name}","href":"/api-reference/judgments/deactivate-a-judgment"},{"title":"Change freshness, thresholds and outcome settings without a new version","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml patch /namespaces/{ns}/judgments/{name}","href":"/api-reference/judgments/change-freshness-thresholds-and-outcome-settings-without-a-new-version"},{"title":"Make a version the one new evaluations use","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /namespaces/{ns}/judgments/{name}/activate","href":"/api-reference/judgments/make-a-version-the-one-new-evaluations-use"},{"title":"Estimate a backfill, or run it with confirm","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /namespaces/{ns}/judgments/{name}/backfill","href":"/api-reference/judgments/estimate-a-backfill-or-run-it-with-confirm"},{"title":"Detach an inherited judgment from its template","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /namespaces/{ns}/judgments/{name}/detach","href":"/api-reference/judgments/detach-an-inherited-judgment-from-its-template"},{"title":"Suggest sub-questions for a composite judgment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /namespaces/{ns}/judgments/{name}/suggest_parts","href":"/api-reference/judgments/suggest-sub-questions-for-a-composite-judgment"},{"title":"Simulate a change to a referenced document","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /namespaces/{ns}/judgments/{name}/simulate","href":"/api-reference/judgments/simulate-a-change-to-a-referenced-document"},{"title":"Propose options for what the escape option holds","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /namespaces/{ns}/judgments/{name}/discover","href":"/api-reference/judgments/propose-options-for-what-the-escape-option-holds"},{"title":"Suggest the relations your documents already hold","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /namespaces/{ns}/relations/suggest","href":"/api-reference/judgments/suggest-the-relations-your-documents-already-hold"},{"title":"List templates","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /templates","href":"/api-reference/judgments/list-templates"},{"title":"List starter judgments","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /starters","href":"/api-reference/judgments/list-starter-judgments"}]},{"group":"Outcomes and calibration","pages":[{"title":"Append observed outcomes or labelled examples","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /namespaces/{ns}/outcomes","href":"/api-reference/outcomes-and-calibration/append-observed-outcomes-or-labelled-examples"},{"title":"Get the calibration report for the active version","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /namespaces/{ns}/judgments/{name}/calibration","href":"/api-reference/outcomes-and-calibration/get-the-calibration-report-for-the-active-version"},{"title":"Fit calibration now","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /namespaces/{ns}/judgments/{name}/calibration/fit","href":"/api-reference/outcomes-and-calibration/fit-calibration-now"},{"title":"List the judgment's calibration fits","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /namespaces/{ns}/judgments/{name}/calibration/fits","href":"/api-reference/outcomes-and-calibration/list-the-judgments-calibration-fits"},{"title":"Get a calibration fit with its map","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /namespaces/{ns}/judgments/{name}/calibration/fits/{fit}","href":"/api-reference/outcomes-and-calibration/get-a-calibration-fit-with-its-map"},{"title":"Compare two calibration fits on the same outcomes","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /namespaces/{ns}/judgments/{name}/calibration/fits/{fit}/compare","href":"/api-reference/outcomes-and-calibration/compare-two-calibration-fits-on-the-same-outcomes"},{"title":"Recommend a threshold for a precision or recall target","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /namespaces/{ns}/judgments/{name}/thresholds/recommend","href":"/api-reference/outcomes-and-calibration/recommend-a-threshold-for-a-precision-or-recall-target"},{"title":"Preview the labelling queue by probability band","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /namespaces/{ns}/judgments/{name}/labelling-queue","href":"/api-reference/outcomes-and-calibration/preview-the-labelling-queue-by-probability-band"},{"title":"Draw documents to label","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /namespaces/{ns}/judgments/{name}/labelling-queue","href":"/api-reference/outcomes-and-calibration/draw-documents-to-label"},{"title":"Get the cheaper context recipe the outcomes support","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /namespaces/{ns}/judgments/{name}/recipe-suggestion","href":"/api-reference/outcomes-and-calibration/get-the-cheaper-context-recipe-the-outcomes-support"},{"title":"Run this month's recipe tuning now","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /namespaces/{ns}/judgments/{name}/recipe-tuning","href":"/api-reference/outcomes-and-calibration/run-this-months-recipe-tuning-now"},{"title":"See which alternative your outcomes prefer","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /namespaces/{ns}/judgments/{name}/alternatives","href":"/api-reference/outcomes-and-calibration/see-which-alternative-your-outcomes-prefer"},{"title":"Name alternatives to score","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /namespaces/{ns}/judgments/{name}/alternatives","href":"/api-reference/outcomes-and-calibration/name-alternatives-to-score"},{"title":"Remove a named alternative","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /namespaces/{ns}/judgments/{name}/alternatives/{id}","href":"/api-reference/outcomes-and-calibration/remove-a-named-alternative"},{"title":"Score the alternatives on your outcomes","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /namespaces/{ns}/judgments/{name}/alternatives/run","href":"/api-reference/outcomes-and-calibration/score-the-alternatives-on-your-outcomes"},{"title":"Draft other wordings of the question","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /namespaces/{ns}/judgments/{name}/alternatives/drafts","href":"/api-reference/outcomes-and-calibration/draft-other-wordings-of-the-question"},{"title":"Make an alternative a version, and see its shadow report","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /namespaces/{ns}/judgments/{name}/alternatives/{id}/version","href":"/api-reference/outcomes-and-calibration/make-an-alternative-a-version-and-see-its-shadow-report"}]},{"group":"Groups","pages":[{"title":"List groups","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /namespaces/{ns}/groups","href":"/api-reference/groups/list-groups"},{"title":"Create a group","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /namespaces/{ns}/groups","href":"/api-reference/groups/create-a-group"},{"title":"Get a group and its rows","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /namespaces/{ns}/groups/{name}","href":"/api-reference/groups/get-a-group-and-its-rows"},{"title":"Delete a group","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /namespaces/{ns}/groups/{name}","href":"/api-reference/groups/delete-a-group"},{"title":"Add aggregates or change keep_keys","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml patch /namespaces/{ns}/groups/{name}","href":"/api-reference/groups/add-aggregates-or-change-keep_keys"},{"title":"Get the tenant summary and each tenant's status","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /namespaces/{ns}/tenant_summary","href":"/api-reference/groups/get-the-tenant-summary-and-each-tenants-status"},{"title":"Publish a tenant document per namespace under a template","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /namespaces/{ns}/tenant_summary","href":"/api-reference/groups/publish-a-tenant-document-per-namespace-under-a-template"},{"title":"Stop publishing tenant documents","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /namespaces/{ns}/tenant_summary","href":"/api-reference/groups/stop-publishing-tenant-documents"},{"title":"Change the published groups, bands or keys","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml patch /namespaces/{ns}/tenant_summary","href":"/api-reference/groups/change-the-published-groups-bands-or-keys"}]},{"group":"Subscriptions","pages":[{"title":"List subscriptions","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /namespaces/{ns}/subscriptions","href":"/api-reference/subscriptions/list-subscriptions"},{"title":"Create a subscription","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /namespaces/{ns}/subscriptions","href":"/api-reference/subscriptions/create-a-subscription"},{"title":"Get a subscription, its status and lag","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /namespaces/{ns}/subscriptions/{name}","href":"/api-reference/subscriptions/get-a-subscription-its-status-and-lag"},{"title":"Delete a subscription","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /namespaces/{ns}/subscriptions/{name}","href":"/api-reference/subscriptions/delete-a-subscription"},{"title":"Change a subscription's events, include, endpoint or bulk","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml patch /namespaces/{ns}/subscriptions/{name}","href":"/api-reference/subscriptions/change-a-subscriptions-events-include-endpoint-or-bulk"},{"title":"Query the documents that match a subscription now","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /namespaces/{ns}/subscriptions/{name}/query","href":"/api-reference/subscriptions/query-the-documents-that-match-a-subscription-now"}]},{"group":"Jobs","pages":[{"title":"Get progress, estimate and spend","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /jobs/{id}","href":"/api-reference/jobs/get-progress-estimate-and-spend"},{"title":"Start a job in awaiting_confirm","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /jobs/{id}/confirm","href":"/api-reference/jobs/start-a-job-in-awaiting_confirm"},{"title":"Pause a running job","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /jobs/{id}/pause","href":"/api-reference/jobs/pause-a-running-job"},{"title":"Resume a paused job","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /jobs/{id}/resume","href":"/api-reference/jobs/resume-a-paused-job"},{"title":"Cancel a job","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /jobs/{id}/cancel","href":"/api-reference/jobs/cancel-a-job"}]},{"group":"Engines","pages":[{"title":"List active engine versions","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /engines","href":"/api-reference/engines/list-active-engine-versions"}]},{"group":"Credentials","pages":[{"title":"List provider credentials","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /credentials","href":"/api-reference/credentials/list-provider-credentials"},{"title":"Get a provider credential","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /credentials/{provider}","href":"/api-reference/credentials/get-a-provider-credential"},{"title":"Store a provider key","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml put /credentials/{provider}","href":"/api-reference/credentials/store-a-provider-key"},{"title":"Revoke a provider credential","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /credentials/{provider}","href":"/api-reference/credentials/revoke-a-provider-credential"},{"title":"Test a stored provider credential","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /credentials/{provider}/test","href":"/api-reference/credentials/test-a-stored-provider-credential"}]},{"group":"Sign-up","pages":[{"title":"Create an organization with no account","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /signups","href":"/api-reference/sign-up/create-an-organization-with-no-account"}]},{"group":"Organization","pages":[{"title":"List non-production prefixes","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /nonproduction-prefixes","href":"/api-reference/organization/list-non-production-prefixes"},{"title":"Mark a prefix non-production","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml put /nonproduction-prefixes/{prefix}","href":"/api-reference/organization/mark-a-prefix-non-production"},{"title":"Unmark a non-production prefix","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /nonproduction-prefixes/{prefix}","href":"/api-reference/organization/unmark-a-non-production-prefix"}]},{"group":"Webhooks","pages":[{"title":"List webhook endpoints","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /webhook-endpoints","href":"/api-reference/webhooks/list-webhook-endpoints"},{"title":"Create a webhook endpoint","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /webhook-endpoints","href":"/api-reference/webhooks/create-a-webhook-endpoint"},{"title":"Get a webhook endpoint, its status and stats","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /webhook-endpoints/{id}","href":"/api-reference/webhooks/get-a-webhook-endpoint-its-status-and-stats"},{"title":"Delete a webhook endpoint","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /webhook-endpoints/{id}","href":"/api-reference/webhooks/delete-a-webhook-endpoint"},{"title":"Change a webhook endpoint, or enable it again","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml patch /webhook-endpoints/{id}","href":"/api-reference/webhooks/change-a-webhook-endpoint-or-enable-it-again"},{"title":"Rotate a webhook endpoint's secret","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /webhook-endpoints/{id}/rotate-secret","href":"/api-reference/webhooks/rotate-a-webhook-endpoints-secret"},{"title":"Send a test event","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /webhook-endpoints/{id}/test","href":"/api-reference/webhooks/send-a-test-event"},{"title":"List an endpoint's deliveries","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /webhook-endpoints/{id}/deliveries","href":"/api-reference/webhooks/list-an-endpoints-deliveries"},{"title":"Re-send every failed or skipped delivery since a time","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /webhook-endpoints/{id}/recover","href":"/api-reference/webhooks/re-send-every-failed-or-skipped-delivery-since-a-time"},{"title":"Read the events feed","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /events","href":"/api-reference/webhooks/read-the-events-feed"},{"title":"Get an event and its deliveries","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /events/{id}","href":"/api-reference/webhooks/get-an-event-and-its-deliveries"},{"title":"Send an event to an endpoint again","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /events/{id}/redeliver","href":"/api-reference/webhooks/send-an-event-to-an-endpoint-again"},{"title":"subscription.entered","version":null,"deprecated":null,"openapi":"/api-reference/openapi.yaml webhook subscription.entered","href":"/api-reference/webhooks/subscriptionentered"},{"title":"subscription.exited","version":null,"deprecated":null,"openapi":"/api-reference/openapi.yaml webhook subscription.exited","href":"/api-reference/webhooks/subscriptionexited"},{"title":"subscription.synced","version":null,"deprecated":null,"openapi":"/api-reference/openapi.yaml webhook subscription.synced","href":"/api-reference/webhooks/subscriptionsynced"},{"title":"job.awaiting_confirm","version":null,"deprecated":null,"openapi":"/api-reference/openapi.yaml webhook job.awaiting_confirm","href":"/api-reference/webhooks/jobawaiting_confirm"},{"title":"job.completed","version":null,"deprecated":null,"openapi":"/api-reference/openapi.yaml webhook job.completed","href":"/api-reference/webhooks/jobcompleted"},{"title":"job.failed","version":null,"deprecated":null,"openapi":"/api-reference/openapi.yaml webhook job.failed","href":"/api-reference/webhooks/jobfailed"},{"title":"namespace.budget_paused","version":null,"deprecated":null,"openapi":"/api-reference/openapi.yaml webhook namespace.budget_paused","href":"/api-reference/webhooks/namespacebudget_paused"},{"title":"namespace.budget_resumed","version":null,"deprecated":null,"openapi":"/api-reference/openapi.yaml webhook namespace.budget_resumed","href":"/api-reference/webhooks/namespacebudget_resumed"},{"title":"judgment.limit_reached","version":null,"deprecated":null,"openapi":"/api-reference/openapi.yaml webhook judgment.limit_reached","href":"/api-reference/webhooks/judgmentlimit_reached"},{"title":"judgment.taxonomy_drift","version":null,"deprecated":null,"openapi":"/api-reference/openapi.yaml webhook judgment.taxonomy_drift","href":"/api-reference/webhooks/judgmenttaxonomy_drift"},{"title":"judgment.fit_applied","version":null,"deprecated":null,"openapi":"/api-reference/openapi.yaml webhook judgment.fit_applied","href":"/api-reference/webhooks/judgmentfit_applied"},{"title":"judgment.fit_withdrawn","version":null,"deprecated":null,"openapi":"/api-reference/openapi.yaml webhook judgment.fit_withdrawn","href":"/api-reference/webhooks/judgmentfit_withdrawn"},{"title":"judgment.engine_changed","version":null,"deprecated":null,"openapi":"/api-reference/openapi.yaml webhook judgment.engine_changed","href":"/api-reference/webhooks/judgmentengine_changed"},{"title":"judgment.engine_regressed","version":null,"deprecated":null,"openapi":"/api-reference/openapi.yaml webhook judgment.engine_regressed","href":"/api-reference/webhooks/judgmentengine_regressed"},{"title":"judgment.alternative_scored","version":null,"deprecated":null,"openapi":"/api-reference/openapi.yaml webhook judgment.alternative_scored","href":"/api-reference/webhooks/judgmentalternative_scored"},{"title":"judgment.alternatives_awaiting_confirm","version":null,"deprecated":null,"openapi":"/api-reference/openapi.yaml webhook judgment.alternatives_awaiting_confirm","href":"/api-reference/webhooks/judgmentalternatives_awaiting_confirm"},{"title":"namespace.tenant_summary_failed","version":null,"deprecated":null,"openapi":"/api-reference/openapi.yaml webhook namespace.tenant_summary_failed","href":"/api-reference/webhooks/namespacetenant_summary_failed"},{"title":"webhook.test","version":null,"deprecated":null,"openapi":"/api-reference/openapi.yaml webhook webhook.test","href":"/api-reference/webhooks/webhooktest"},{"title":"judgment.budget_reached","version":null,"deprecated":null,"openapi":"/api-reference/openapi.yaml webhook judgment.budget_reached","href":"/api-reference/webhooks/judgmentbudget_reached"},{"title":"namespace.credential_unusable","version":null,"deprecated":null,"openapi":"/api-reference/openapi.yaml webhook namespace.credential_unusable","href":"/api-reference/webhooks/namespacecredential_unusable"},{"title":"namespace.credential_restored","version":null,"deprecated":null,"openapi":"/api-reference/openapi.yaml webhook namespace.credential_restored","href":"/api-reference/webhooks/namespacecredential_restored"},{"title":"judgment.engine_retiring","version":null,"deprecated":null,"openapi":"/api-reference/openapi.yaml webhook judgment.engine_retiring","href":"/api-reference/webhooks/judgmentengine_retiring"},{"title":"judgment.engine_retired","version":null,"deprecated":null,"openapi":"/api-reference/openapi.yaml webhook judgment.engine_retired","href":"/api-reference/webhooks/judgmentengine_retired"}]}]}]},"basePath":"","title":"Get namespace metadata, counts and budget - Brussle","deploymentId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","buildId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-_HcdDqS2.js","snippetPresets-CXnm-WO6.js","utils-Dg59J__o.js","style-to-object-BY3JEAdk.js","utils-D8TRpdk7.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-B6QaxWc5.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DeMZ-lcM.js","_Uint8Array-BjA2mcVW.js","isObject-FP1Yky1u.js","ApiExamples-cjPyMv63.js","usePlaygroundInputsStore-D7BWoaw4.js","shallow-Z1ceDNSG.js","isEqual-BObTuQrO.js","CodeSnippets-D1UZ1AE-.js","CodeSnippet-B373COAT.js","getApiPlaygroundDisplay-CfL-UuDS.js","Page-DuqezyvM.js","DynamicMarkdown-5yMTCLas.js","SectionHeading-BxT1HYfP.js","icon-DYJTTD3g.js","MethodPill-4AyycJeu.js","getPastedJson-Bp3WV6cN.js","Check2Icon-PhZu6Gry.js","axios-CsQoIw0U.js","Markdown-Dy9a8hT8.js","AssistantPageLink-87tSPwGm.js","dist-CXMB3QQU.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}